From peter at ixp.jp Sun May 1 04:09:52 2011 From: peter at ixp.jp (Peter Evans) Date: Sun, 1 May 2011 10:09:52 +0900 Subject: [Dovecot] dovecot.org mirrors? In-Reply-To: <8DBD31E0-5567-4EA5-A839-A0397CCA87FF@iki.fi> References: <1303835702.4116.15.camel@hurina> <1304097045.10421.57.camel@hurina> <4DBBA08B.4080601@esiee.fr> <8DBD31E0-5567-4EA5-A839-A0397CCA87FF@iki.fi> Message-ID: <02e501cc079c$797f9a00$6c7ece00$@ixp.jp> > Currently 1 GB, but grows every day of course. I'm currently thinking maybe > there could be one mirror in every continent (so Finland = Europe already) > and with some DNS redirection magic going to the nearest server :) Space isn't a problem, but my webserver is ZWS (they don't do ipv6 for example) However, I can offer DNS ^^; P From michael at orlitzky.com Sun May 1 07:58:14 2011 From: michael at orlitzky.com (Michael Orlitzky) Date: Sun, 01 May 2011 00:58:14 -0400 Subject: [Dovecot] dovecot.org mirrors? In-Reply-To: <20110430191153.GP2976@cardinal> References: <1303835702.4116.15.camel@hurina> <1304097045.10421.57.camel@hurina> <20110430191153.GP2976@cardinal> Message-ID: <4DBCE866.8000102@orlitzky.com> On 04/30/2011 03:11 PM, /dev/rob0 wrote: > On Fri, Apr 29, 2011 at 08:10:45PM +0300, Timo Sirainen wrote: >> The mirroring setup is finished. There's a master server now >> handling dovecot.org and a mirror server handling www/hg/wiki. >> Would be nice to get another reliable fast mirror server if >> someone wants to donate one :) Requirements are: >> >> - Apache2 with WSGI >> - Mercurial >> - Patched moinmoin >> - ssh + rsync so I can push changes immediately > > I think I had offered you a mirror and/or DNS slaves in the past. ATM > we can't manage the Mercurial and moinmoin, but that might change in > the near future. > > I can still offer you two DNS slaves, if you're interested in that, > but there are other free/gratis services available which can do that > quite well. > >> BTW. Apparently there's still something wrong with dovecot.org's >> reverse DNS record. It appears to be ok, but some DNS servers have >> cached it wrong. I don't know why. We've complained to the ISP. > > Sounds like the TTL was too long before a change was made. > >> Also dovecot.org is currently sharing IP with some other stuff, >> but should get its own IP some day. > > dovecot.org. 3600 IN A 194.89.34.45 > 45.34.89.194.in-addr.arpa. 86400 IN PTR mkentta.iki.fi. > mkentta.iki.fi. 86400 IN A 194.89.34.45 > > Looks fine, although the PTR is mkentta.iki.fi. and not dovecot.org. > I'd use "mkentta.iki.fi" as the HELO name if sending mail from there, > but that shouldn't be much of a problem. At the moment, $ dig -x 194.89.34.45 ; <<>> DiG 9.7.3 <<>> -x 194.89.34.45 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 44132 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL:0 ;; QUESTION SECTION: ;45.34.89.194.in-addr.arpa. IN PTR ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Sun May 1 00:49:20 2011 ;; MSG SIZE rcvd: 43 $ dig +short 34.89.194.in-addr.arpa ns $ dig +short 89.194.in-addr.arpa ns ns2-usa.global.sonera.net. ns2-fin.global.sonera.fi. ns1-fin.global.sonera.fi. ns1-swe.global.sonera.se. ns.ripe.net. $ dig +short @ns2-usa.global.sonera.net -x 194.89.34.45 mkentta.iki.fi. $ dig +short @ns2-fin.global.sonera.fi. -x 194.89.34.45 mkentta.iki.fi. $ dig +short @ns1-fin.global.sonera.fi -x 194.89.34.45 mkentta.iki.fi. $ dig +short @ns1-swe.global.sonera.se. -x 194.89.34.45 mkentta.iki.fi. $ dig +short @ns.ripe.net -x 194.89.34.45 It looks like that last one could be the problem. From linuxmail at 4lin.net Sun May 1 19:33:01 2011 From: linuxmail at 4lin.net (Denny Schierz) Date: Sun, 1 May 2011 18:33:01 +0200 Subject: [Dovecot] dovecot.org mirrors? In-Reply-To: <4DBCE866.8000102@orlitzky.com> References: <1303835702.4116.15.camel@hurina> <1304097045.10421.57.camel@hurina> <20110430191153.GP2976@cardinal> <4DBCE866.8000102@orlitzky.com> Message-ID: <7E0D79B9-75E2-447B-92B2-DEC5403263E4@4lin.net> hi, I can also offer you a dovecot mirror (Germany with RootServer from Hetzner) on a own Xen based virtual host and own IP (IPV6 is broken at the moment, but possible) Let me know, if necessary :-) cu denny From tompos at martos.bme.hu Sun May 1 22:23:56 2011 From: tompos at martos.bme.hu (Papp Tamas) Date: Sun, 01 May 2011 21:23:56 +0200 Subject: [Dovecot] dict quota problem In-Reply-To: References: <4DAEBE34.1090504@martos.bme.hu> <1l7pp5qh8cvv8@mids.svenhartge.de> <4DAEF104.3070806@martos.bme.hu> <1o7ppiie8cvv8@mids.svenhartge.de> <4DBB1001.5090000@martos.bme.hu> <4DBBCB29.40401@martos.bme.hu> <4DBC26E8.4070408@martos.bme.hu> Message-ID: <4DBDB34C.7010500@martos.bme.hu> On 04/30/2011 10:21 PM, Sven Hartge wrote: > Yes. You as admin have to deal with this. Buy a bigger disk, reduce the > quota, etc. > > Or use a filesystem quota, which will (of course) only work with real > users and not with virtual users. OK, thank you. Well, virtual users are needed:) tamas From peter at bellfamily.org.uk Mon May 2 13:19:33 2011 From: peter at bellfamily.org.uk (Peter Bell) Date: Mon, 02 May 2011 18:19:33 +0800 Subject: [Dovecot] Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection Message-ID: <4DBE8535.1010005@bellfamily.org.uk> Hi all, This is my first message to the list. I've been experimenting with running dovecot on my unRAID server (basically, a parity-protected array of disks, running on a slackware 13.1 platform). Someone on the unRAID forum had built a binary distribution of dovecot 1.1.20 and I got this up and running without too much trouble. Today, I've been building the latest dovecot release (2.0.12) and getting this up and running. My biggest problem has been reconstructing the configuration file but, after a few diversions, I'm now back up and running, with access to my mail once more. However, I'm just a little bit miffed that I can't get rid of this warning. My configuration: root at Tower:~# doveconf -n # 2.0.12: /usr/local/etc/dovecot/dovecot.conf doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection # OS: Linux 2.6.36.2-unRAID i686 Slackware 13.1.0 fuse.shfs disable_plaintext_auth = no listen = * mail_location = maildir:/mnt/user/Maildir/%u passdb { args = /etc/passwd.dovecot driver = passwd-file } protocols = imap service auth { user = root } service imap-login { inet_listener imap { port = 143 } } ssl = no userdb { args = /etc/passwd.dovecot driver = passwd-file } root at Tower:~# Can someone point me to where the (implicit?) ssl=yes is coming from? In the meantime I will have a play at mail fetching, comparing dumping the mails straight into maildir, with using the dovecote lda. Thanks for any advice. -- ------------------------------------------------------------------- Peter Bell From linuxmail at 4lin.net Mon May 2 13:40:57 2011 From: linuxmail at 4lin.net (Denny Schierz) Date: Mon, 02 May 2011 12:40:57 +0200 Subject: [Dovecot] 2.0.12 Coredump under Solaris 10 *SOLVED* In-Reply-To: <7E0E850A-9F14-445B-BE70-22E4FC892716@iki.fi> References: <1303892653.4232.69.camel@pcdenny> <1303897041.4116.21.camel@hurina> <1303899544.4232.78.camel@pcdenny> <1304016044.10421.18.camel@hurina> <1304068170.4232.191.camel@pcdenny> <7E0E850A-9F14-445B-BE70-22E4FC892716@iki.fi> Message-ID: <1304332857.10574.0.camel@pcdenny> hi, Am Freitag, den 29.04.2011, 14:44 +0300 schrieb Timo Sirainen: > =home=/imap/spool/%d/%1n/%n that works :-) Thanks cu denny -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: From voytek at sbt.net.au Mon May 2 14:30:44 2011 From: voytek at sbt.net.au (Voytek Eymont) Date: Mon, 2 May 2011 22:30:44 +1100 Subject: [Dovecot] is reverse dns down ? Message-ID: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> Hi guys, is that a genuine email from the list, I'm getting it rejected as it's missing reverse hostname: May 2 21:21:41 postfix/smtpd[18033]: NOQUEUE: reject: RCPT from unknown[194.89.34.45]: 450 4.7.1 Client host rejected: cannot find your reverse hostname, [194.89.34.45]; from= to= proto=ESMTP helo= # host mkentta.iki.fi mkentta.iki.fi has address 194.89.34.45 mkentta.iki.fi mail is handled by 10 mkentta.iki.fi. mkentta.iki.fi mail is handled by 100 smtp.menturagroup.com. # host 194.89.34.45 Host 45.34.89.194.in-addr.arpa. not found: 3(NXDOMAIN) -- Voytek From esther.yebenes at conzentra.com Mon May 2 14:42:59 2011 From: esther.yebenes at conzentra.com (=?ISO-8859-1?Q?Esther_Y=E9benes_--Conzentra--?=) Date: Mon, 02 May 2011 13:42:59 +0200 Subject: [Dovecot] is reverse dns down ? In-Reply-To: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> References: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> Message-ID: <4DBE98C3.9010501@conzentra.com> Hi Voytek, I am not having any problem: # host mkentta.iki.fi mkentta.iki.fi has address 194.89.34.45 mkentta.iki.fi mail is handled by 100 smtp.menturagroup.com. mkentta.iki.fi mail is handled by 10 mkentta.iki.fi. # host 194.89.34.45 45.34.89.194.in-addr.arpa domain name pointer mkentta.iki.fi. Maybe it's a local problem with your NS server. On 02/05/11 13:30, Voytek Eymont wrote: > Hi guys, is that a genuine email from the list, I'm getting it rejected as > it's missing reverse hostname: > > May 2 21:21:41 postfix/smtpd[18033]: NOQUEUE: reject: RCPT from > unknown[194.89.34.45]: 450 4.7.1 Client host rejected: cannot find your > reverse hostname, [194.89.34.45]; from= > to= proto=ESMTP helo= > > # host mkentta.iki.fi > mkentta.iki.fi has address 194.89.34.45 > mkentta.iki.fi mail is handled by 10 mkentta.iki.fi. > mkentta.iki.fi mail is handled by 100 smtp.menturagroup.com. > > # host 194.89.34.45 > Host 45.34.89.194.in-addr.arpa. not found: 3(NXDOMAIN) > > > > > -- Esther Y?benes esther.yebenes at conzentra.com Tel. +34 93 412 3750. Ext. 306 Fax. +34 902 889 440 ............................................................................................. S?guenos en: Conzentra your internet bussines partner www.conzentra.com Barcelona c/ Sancho de ?vila 52, 5? 4?, Distrito 22 at . 08009 Barcelona Conzentra BCN en Google Maps! Madrid c/ Alcal? 85, 3? izq. 28009 Madrid Conzentra Madrid en Google Maps! Girona P.? Olot 68-70, bajos. 17006 Girona Conzentra Girona en Google Maps! Tandil c/ 9 de Julio 388, 5? 2000 Tandil (Argentina) Conzentra Tandil en Google Maps! ............................................................................................. Advertencia: Este correo electr?nico contiene informaci?n privada y confidencial. Si usted no es el destinatario del presente mensaje no est? autorizado a leerlo, retenerlo o difundirlo. Warning: This e-mail is privileged, confidential and contains private information. Any reading, retention, distribution or copying of this communication by any person other than its intended recipient is prohibited. -------------- next part -------------- A non-text attachment was scrubbed... Name: blog.jpg Type: image/jpeg Size: 2253 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: twitter.jpg Type: image/jpeg Size: 1711 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: linkedin.jpg Type: image/jpeg Size: 1389 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: facebook.jpg Type: image/jpeg Size: 1589 bytes Desc: not available URL: From stan at hardwarefreak.com Mon May 2 15:05:42 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Mon, 02 May 2011 07:05:42 -0500 Subject: [Dovecot] is reverse dns down ? In-Reply-To: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> References: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> Message-ID: <4DBE9E16.2060401@hardwarefreak.com> On 5/2/2011 6:30 AM, Voytek Eymont wrote: > # host 194.89.34.45 > Host 45.34.89.194.in-addr.arpa. not found: 3(NXDOMAIN) ~$ host 194.89.34.45 45.34.89.194.in-addr.arpa domain name pointer mkentta.iki.fi. ~$ prdns.pl 194.89.34.45/32 194.89.34.45: mkentta.iki.fi ~$ rdns-tool.pl 194.89.34.45/32 using mask 32 194.89.34.45: mkentta.iki.fi Looks like there's a DNS issue on your end. Try flushing your cache. For obvious reasons Postfix returns a 450 in this case, so the list server will attempt delivery for a few days. If you don't run your own resolver on your Postfix MX I suggest you do so. I use PowerDNS recursor on my MX MTAs. Works great. Setup takes less than 5 minutes. Caching is in memory only, not disk, so a restart clears everything. -- Stan From ejs at shubes.net Mon May 2 17:20:30 2011 From: ejs at shubes.net (Eric Shubert) Date: Mon, 02 May 2011 07:20:30 -0700 Subject: [Dovecot] IMAP vs. POP3 In-Reply-To: References: Message-ID: On 04/28/2011 10:31 AM, Matt wrote: > Does IMAP create much additional system load vs. POP3? > How much is much? They do have different usage patterns. The server load also depends on how each client program is configured. Some client configurations create more of a load than others (eg how messages are cached on the client). My impression is that the client configuration can affect system load more so than the difference between IMAP and POP3. Generally speaking, IMAP is preferable to POP3 due to the accessibility it provides from multiple clients/devices. POP3 is the past, IMAP is the future. -- -Eric 'shubes' From lm7812 at gmail.com Mon May 2 18:11:46 2011 From: lm7812 at gmail.com (Matt) Date: Mon, 2 May 2011 10:11:46 -0500 Subject: [Dovecot] Restricting IMAP Message-ID: I want to restrict IMAP use too 127.0.0.1 and to only certain usernames. Such as fred at my777domain.com would be allowed to use IMAP. How would I do that with Dovecot or can I? Basically I want webmail to work with IMAP regardless of username but I only want certain usernames allowed to use IMAP remotely. From wgillespie+dovecot at es2eng.com Mon May 2 18:27:45 2011 From: wgillespie+dovecot at es2eng.com (Willie Gillespie) Date: Mon, 02 May 2011 09:27:45 -0600 Subject: [Dovecot] Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection In-Reply-To: <4DBE8535.1010005@bellfamily.org.uk> References: <4DBE8535.1010005@bellfamily.org.uk> Message-ID: <4DBECD71.5080108@es2eng.com> On 05/02/2011 04:19 AM, Peter Bell wrote: > However, I'm just a little bit miffed that I can't get rid of this warning. > > My configuration: > root at Tower:~# doveconf -n > # 2.0.12: /usr/local/etc/dovecot/dovecot.conf > doveconf: Warning: SSL is disabled because global ssl=no, ignoring > ssl=yes for subsection > # OS: Linux 2.6.36.2-unRAID i686 Slackware 13.1.0 fuse.shfs > > Can someone point me to where the (implicit?) ssl=yes is coming from? Timo fixed this just a little while back (April 20th) Fixed: http://hg.dovecot.org/dovecot-2.0/rev/7d60cd847c70 From rob0 at gmx.co.uk Mon May 2 18:32:20 2011 From: rob0 at gmx.co.uk (/dev/rob0) Date: Mon, 2 May 2011 10:32:20 -0500 Subject: [Dovecot] is reverse dns down ? In-Reply-To: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> References: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> Message-ID: <20110502153218.GA7434@cardinal> On Mon, May 02, 2011 at 10:30:44PM +1100, Voytek Eymont wrote: > Hi guys, is that a genuine email from the list, I'm getting it > rejected as it's missing reverse hostname: > > May 2 21:21:41 postfix/smtpd[18033]: NOQUEUE: reject: RCPT > from unknown[194.89.34.45]: 450 4.7.1 Client host rejected: > cannot find your reverse hostname, [194.89.34.45]; > from= to= > proto=ESMTP helo= > > # host mkentta.iki.fi > mkentta.iki.fi has address 194.89.34.45 > mkentta.iki.fi mail is handled by 10 mkentta.iki.fi. > mkentta.iki.fi mail is handled by 100 smtp.menturagroup.com. > > # host 194.89.34.45 > Host 45.34.89.194.in-addr.arpa. not found: 3(NXDOMAIN) We discussed this the other day under Timo's thread about dovecot.org. It seems that ns.ripe.net., one of the NS hosts for 89.194.in-addr.arpa., is not returning the PTR for 45.34.89.194.in-addr.arpa. AFAICS the other NS hosts seem to be working fine, but if your resolver was unlucky enough to hit ns.ripe.net., you have a host with no PTR. It's like Russian roulette with rDNS. I suspect it might be a casualty of DNSSEC, but I get the same "noerror" response when querying with +dnssec and +nodnssec. At this point those who use the normally safe and reasonable reject_unknown_reverse_client_hostname restriction should consider whitelisting mkentta.iki.fi[194.89.34.45] in the MTA. And Timo needs to scream louder at the ISP. ;) -- Offlist mail to this address is discarded unless "/dev/rob0" or "not-spam" is in Subject: header From rick at havokmon.com Mon May 2 18:56:32 2011 From: rick at havokmon.com (Rick Romero) Date: Mon, 02 May 2011 10:56:32 -0500 Subject: [Dovecot] Restricting IMAP In-Reply-To: References: Message-ID: <20110502105632.Horde.5kV1OaPBW7JNvtQwEwpjRgA@beta.vfemail.net> Quoting Matt : > I want to restrict IMAP use too 127.0.0.1 and to only certain > usernames. Such as fred at my777domain.com would be allowed to use IMAP. > How would I do that with Dovecot or can I? Basically I want webmail > to work with IMAP regardless of username but I only want certain > usernames allowed to use IMAP remotely. You can use post-login scripting: http://wiki2.dovecot.org/PostLoginScripting Rick From helga.mayer at uni-hohenheim.de Tue May 3 11:26:24 2011 From: helga.mayer at uni-hohenheim.de (Helga Mayer) Date: Tue, 03 May 2011 10:26:24 +0200 Subject: [Dovecot] is reverse dns down ? In-Reply-To: <4DBE9E16.2060401@hardwarefreak.com> References: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> <4DBE9E16.2060401@hardwarefreak.com> Message-ID: <20110503102624.10004t12hq3gyxww@webmail.uni-hohenheim.de> Quoting Stan Hoeppner : > On 5/2/2011 6:30 AM, Voytek Eymont wrote: > >> # host 194.89.34.45 >> Host 45.34.89.194.in-addr.arpa. not found: 3(NXDOMAIN) > > ~$ host 194.89.34.45 > 45.34.89.194.in-addr.arpa domain name pointer mkentta.iki.fi. > > ~$ prdns.pl 194.89.34.45/32 > 194.89.34.45: mkentta.iki.fi > > ~$ rdns-tool.pl 194.89.34.45/32 > using mask 32 > 194.89.34.45: mkentta.iki.fi > > Looks like there's a DNS issue on your end. Try flushing your > cache. For obvious reasons Postfix returns a 450 in this case, so > the list server will attempt delivery for a few days. > > If you don't run your own resolver on your Postfix MX I suggest you > do so. I use PowerDNS recursor on my MX MTAs. Works great. Setup > takes less than 5 minutes. Caching is in memory only, not disk, so > a restart clears everything. > > -- > Stan > got a mail from sonera today which says it's fixed. Helga Helga Mayer Universit?t Hohenheim Kommunikations-, Informations- und Medienzentrum (630) IT-Dienste | Mail Schloss-Westhof-S?d | 70599 Stuttgart Tel.: +49 711 459-22838 | Fax: +49 711 459-23449 https://kim.uni-hohenheim.de From p.heinlein at heinlein-support.de Tue May 3 13:50:20 2011 From: p.heinlein at heinlein-support.de (Peer Heinlein) Date: Tue, 3 May 2011 12:50:20 +0200 Subject: [Dovecot] Saving mails to +detail failed: Namespace error Message-ID: <201105031250.20947.p.heinlein@heinlein-support.de> We have the following namespace: namespace { inbox = yes list = yes location = prefix = INBOX/ separator = / subscriptions = yes type = private } namespace { list = children location = maildir:%%h:INDEX=%h/shared/%%u:CONTROL=%h/shared/%%u prefix = shared/%%u/ separator = / subscriptions = yes type = shared } and we set: lmtp_save_to_detail_mailbox = yes recipient_delimiter = + But sending Mails to user+detail is failing: May 3 12:40:06 dobby2 postfix/cleanup[8245]: 12E787756C: message- id=<201105031239.40804.p.heinlein at heinlein-support.de> May 3 12:40:06 dobby2 postfix/qmgr[23304]: 12E787756C: from=, size=1963, nrcpt=1 (queue active) May 3 12:40:06 dobby2 dovecot: lmtp(6537): Debug: auth input: p.heinlein at jpberlin.de home=/mail/jpberlin.de/p.heinlein/Maildir/ uid=10000 gid=10000 May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Effective uid=10000, gid=10000, home=/mail/jpberlin.de/p.heinlein/Maildir/ May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Namespace : type=private, prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~:INDEX=/cache/jpberlin.de/p.heinlein May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: maildir++: root=/mail/jpberlin.de/p.heinlein/Maildir/, index=/cache/jpberlin.de/p.heinlein, control=, inbox=/mail/jpberlin.de/p.heinlein/Maildir/ May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Namespace : type=shared, prefix=shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=maildir: %h:INDEX=/mail/jpberlin.de/p.heinlein/Maildir//shared/%u:CONTROL=/mail/jpberlin.de/p.heinlein/Maildir//shared/%u May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: shared: root=/var/run/dovecot/, index=, control=, inbox= May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Pg/fKrHav02JGQAAir+T1Q: sieve: user's script path /mail/jpberlin.de/p.heinlein/Maildir//../.dovecot.sieve doesn't exist (using global script path in stead) May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Pg/fKrHav02JGQAAir+T1Q: sieve: user has no valid personal script May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Pg/fKrHav02JGQAAir+T1Q: sieve: no scripts to execute: reverting to default delivery. May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Pg/fKrHav02JGQAAir+T1Q: msgid=<201105031239.40804.p.heinlein at heinlein- support.de>: save failed to Cong: Unknown namespace May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Pg/fKrHav02JGQAAir+T1Q: msgid=<201105031239.40804.p.heinlein at heinlein- support.de>: saved mail to INBOX May 3 12:40:06 dobby2 postfix/lmtp[8338]: 12E787756C: to=, relay=dobby.heinlein- support.de[private/lmtp-dovecot], delay=0.1, delays=0.06/0.02/0/0.02, dsn=2.0.0, status=sent (250 2.0.0 Pg/fKrHav02JGQAAir+T1Q Saved) But a folder named "Cong" exists: # ls -la .Cong -d drwx------ 5 vmail vmail 4096 30. Apr 04:46 .Cong # What's going wrong? My mistake or is it a bug? peer -- Die Mailserver-Konferenz: Das Know-how-Update f?r Postmaster 26./27. Mai 2011 - http://www.heinlein-support.de/mk Heinlein Professional Linux Support GmbH Linux: Akademie - Support - Hosting http://www.heinlein-support.de Tel: 030 / 40 50 51 - 0 Fax: 030 / 40 50 51 - 19 Zwangsangaben lt. ?35a GmbHG: HRB 93818 B / Amtsgericht Berlin-Charlottenburg, Gesch?ftsf?hrer: Peer Heinlein -- Sitz: Berlin From Leo.Baltus at omroep.nl Tue May 3 15:39:49 2011 From: Leo.Baltus at omroep.nl (Leo Baltus) Date: Tue, 3 May 2011 14:39:49 +0200 Subject: [Dovecot] listen = ipv4, ipv6 Message-ID: <20110503123949.GD28713@omroep.nl> Hi, We want dovecot to listen on a specific ip4 & ipv6 addresses like so: listen = 145.58.1.1, [2a02:458:1::1] But on startup it tells me: Fatal: service(managesieve-login) Can't resolve address [2a02:458:1::1]: Name or service not known Wether it is in the dns or not. If I however change the listen directive to: listen = f.qd.nl where f.qd.nl resolves to an ip4 and ipv6 address dovecot starts up and binds to these ipaddresses the way we expect it. However this makes it depend on DNS which is undesirable. Maybe I am overlooking something, but if not can this be changed so we can configure ipv4 & ipv6 with ip-addresses? -- Leo Baltus, internetbeheerder /\ NPO ICT Internet Services /NPO/\ Sumatralaan 45, 1217 GP Hilversum, Filmcentrum, west \ /\/ beheer at omroep.nl, 035-6773555 \/ From vtarhononu at eapps.com Tue May 3 15:40:30 2011 From: vtarhononu at eapps.com (Victor TARHON-ONU) Date: Tue, 3 May 2011 15:40:30 +0300 (EEST) Subject: [Dovecot] mbox/maildir mixed setup with system/virtual mixed users Message-ID: Hello Everyone, I'm using dovecot 1.0.7 (not sure how relevant it is though) configured to handle both sytem users and virtual users. The system users are handled by default (PAM), while the virtual users are handled pretty much like this: passdb passwd-file { args = /var/spool/vmail/%d/auth/%n } ...And mailbox and folder location settings: userdb static { args = uid=mail gid=mail home=/var/spool/vmail/%d/mail/%n mail=mbox:/var/spool/vmail/%d/imap/%n:INBOX=mbox:/var/spool/vmail/%d/mail/%n } Everything works perfectly with the inbox and mail foder in mbox format. Now, what I'm trying to accomplish is to reconfigure dovecot to create and handle the secondary mail folders (/home/user/mail for system users and /var/spool/vmail/domainname/imap/user/imap for virtual users) in maildir format. I tried to define some name spaces to make this happen, but whatever I to do make one work (either the virtual users or the system users) would make the other non-functional. By example, I have these name space definitions and the virtual users work fine with maildir: namespace private { separator = / prefix = "#mbox/" location = mbox:/var/spool/vmail/%d/imap/%n:INBOX=/var/spool/vmail/%d/mail/%n inbox = yes hidden = yes } namespace private { separator = / prefix = location = maildir:/var/spool/vmail/%d/imap/%n hidden = yes } Maybe I didn't fully understand the namespace concept, but I was unable to make them apply only to one location of the imap folders locations or another. Can anyone give me a hand with this, if this setup is even possible? -- From apm at one.com Tue May 3 16:19:22 2011 From: apm at one.com (Peter Mogensen) Date: Tue, 03 May 2011 15:19:22 +0200 Subject: [Dovecot] Spelling error in #define ? Message-ID: <4DC000DA.4060407@one.com> Hi, I stumbled over this define in lazy-expunge-plugin.h: #ifndef LAZY_EXPUNGE_PLUGIN_H #define TLAZY_EXPUNGE_PLUGIN_H Isn't there a "T" too much? http://hg.dovecot.org/dovecot-2.0/file/036260ae0261/src/plugins/lazy-expunge/lazy-expunge-plugin.h /Peter From berni at birkenwald.de Tue May 3 16:36:31 2011 From: berni at birkenwald.de (Bernhard Schmidt) Date: Tue, 3 May 2011 13:36:31 +0000 (UTC) Subject: [Dovecot] listen = ipv4, ipv6 References: <20110503123949.GD28713@omroep.nl> Message-ID: Leo Baltus wrote: Hello Leo, > We want dovecot to listen on a specific ip4 & ipv6 addresses like so: > > listen = 145.58.1.1, [2a02:458:1::1] > > But on startup it tells me: > > Fatal: service(managesieve-login) Can't resolve address [2a02:458:1::1]: Name or service not known Try without the []. listen = 83.170.6.69, 2001:1b10:1000::110:1:1 works just perfect for me. Bernhard From Leo.Baltus at omroep.nl Tue May 3 17:41:01 2011 From: Leo.Baltus at omroep.nl (Leo Baltus) Date: Tue, 3 May 2011 16:41:01 +0200 Subject: [Dovecot] listen = ipv4, ipv6 In-Reply-To: References: <20110503123949.GD28713@omroep.nl> Message-ID: <20110503144101.GB2075@omroep.nl> Op 03/05/2011 om 13:36:31 +0000, schreef Bernhard Schmidt: > Leo Baltus wrote: > > Hello Leo, > > > We want dovecot to listen on a specific ip4 & ipv6 addresses like so: > > > > listen = 145.58.1.1, [2a02:458:1::1] > > > > But on startup it tells me: > > > > Fatal: service(managesieve-login) Can't resolve address [2a02:458:1::1]: Name or service not known > > Try without the []. > > listen = 83.170.6.69, 2001:1b10:1000::110:1:1 > > works just perfect for me. Argh, I rtfm first, stupid me :) In my weak defense: it's still in the tarball: wiki/Upgrading.1.1.txt -- Leo Baltus, internetbeheerder /\ NPO ICT Internet Services /NPO/\ Sumatralaan 45, 1217 GP Hilversum, Filmcentrum, west \ /\/ beheer at omroep.nl, 035-6773555 \/ From CMarcus at Media-Brokers.com Wed May 4 00:13:11 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Tue, 03 May 2011 17:13:11 -0400 Subject: [Dovecot] dovecot Digest, Vol 96, Issue 61 In-Reply-To: <003201cc0707$a89d2c20$f9d78460$@net> References: <003201cc0707$a89d2c20$f9d78460$@net> Message-ID: <4DC06FE7.8050306@Media-Brokers.com> On 2011-04-30 3:24 AM, Ceyhun Ganioglu wrote: > "Choosing the IMAP sent folder as account's sent items folder" is not > working. That was the problem. But I fixed the problem using a "copy on > send" rule. Many thanks That isn't fixing the problem, it is working around something that is broken. -- Best regards, Charles From bmihulka at gmail.com Wed May 4 00:22:28 2011 From: bmihulka at gmail.com (Brian Mihulka) Date: Tue, 3 May 2011 16:22:28 -0500 Subject: [Dovecot] Forwarding loop Message-ID: I used to filter my mail through gmail with the following sieve rule. if not header :contains "X-Forwarded-To" "bmihulka at hulkster.net"{ redirect "bmihulka at gmail.com"; } With the gmail account set to forward to bmihulka at hulkster.net After upgrading to dovecot 1.2.9 and postfix 2.7.0 from whatever was with debian etch. I get a forwarding loop error. I don't know if this is a dovecot issue or postfix issue so I'm starting here. If anyone has any ideas or a better place to ask about this please let me know. Thanks Brian Mihulka From schulzj at gmail.com Wed May 4 00:43:30 2011 From: schulzj at gmail.com (Jason Schulz) Date: Tue, 3 May 2011 17:43:30 -0400 Subject: [Dovecot] Forwarding loop In-Reply-To: References: Message-ID: Just a shot in the dark, but perhaps something changed in your gmail filtering rules? -Jason On Tue, May 3, 2011 at 5:22 PM, Brian Mihulka wrote: > I used to filter my mail through gmail with the following sieve rule. > > if not header :contains "X-Forwarded-To" "bmihulka at hulkster.net"{ > redirect "bmihulka at gmail.com"; > } > > With the gmail account set to forward to bmihulka at hulkster.net > > After upgrading to dovecot 1.2.9 and postfix 2.7.0 from whatever was with > debian etch. I get a forwarding loop error. I don't know if this is a > dovecot issue or postfix issue so I'm starting here. If anyone has any > ideas or a better place to ask about this please let me know. > > Thanks > Brian Mihulka > From dovecot.user at seibercom.net Wed May 4 01:54:38 2011 From: dovecot.user at seibercom.net (Jerry) Date: Tue, 3 May 2011 18:54:38 -0400 Subject: [Dovecot] Forwarding loop In-Reply-To: References: Message-ID: <20110503185438.36532ceb@scorpio> On Tue, 3 May 2011 16:22:28 -0500 Brian Mihulka articulated: > I used to filter my mail through gmail with the following sieve rule. > > if not header :contains "X-Forwarded-To" "bmihulka at hulkster.net"{ > redirect "bmihulka at gmail.com"; > } > > With the gmail account set to forward to bmihulka at hulkster.net > > After upgrading to dovecot 1.2.9 and postfix 2.7.0 from whatever was > with debian etch. I get a forwarding loop error. I don't know if > this is a dovecot issue or postfix issue so I'm starting here. If > anyone has any ideas or a better place to ask about this please let > me know. Brian, I have endured problems like that before. Without more specific information, all answers would be at most guesswork. To debug the problem, post the output of "postconf -n" and the log entries pertaining to the message that was creating the forwarding loop. Exacting how is the mail being delivered to your mail server anyway? -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From joseba.torre at ehu.es Wed May 4 10:47:27 2011 From: joseba.torre at ehu.es (Joseba Torre) Date: Wed, 4 May 2011 09:47:27 +0200 Subject: [Dovecot] Forwarding loop In-Reply-To: References: Message-ID: <201105040947.27766.joseba.torre@ehu.es> On Martes 03 Mayo 2011 23:43:30 Jason Schulz escribi?: > Just a shot in the dark, but perhaps something changed in your gmail > filtering rules? > This has happened to some of my users before. For some unknown reason, the "Resend a copy of the incoming e-mail" [1] gets activated every now and then, and this is the mail reason for my "Mail forwarding loop" issues. HTH [1] Or something like that, I use gmail in spanish -- Joseba Torre. Vicegerencia de TICs, ?rea de Explotaci?n From alexwbaule at gmail.com Wed May 4 20:05:53 2011 From: alexwbaule at gmail.com (Alex Baule) Date: Wed, 4 May 2011 14:05:53 -0300 Subject: [Dovecot] Importing emails from mounted NFS to dovecot using doveadm Message-ID: Hello Timo.... I try to import emails using doveadm, but i found one little issue to me, my driver in auth is auth_default_realm = exemplo.com.br auth_mechanisms = LOGIN PLAIN passdb { driver = pam } userdb { driver = static args = uid=mail gid=mail home=/storage/gss/emexis/messages/%d/%n allow_all_users=yes } but my emails to import in NFS i cant change the UID-GID to mail:mail, because is in use by another IMAP (in one machine uid X is different from another machine) There is a way to import emails with doveadm without change the owner from my emails to import ? From kevingoodsell.lists at gmail.com Wed May 4 20:39:39 2011 From: kevingoodsell.lists at gmail.com (Kevin Goodsell) Date: Wed, 4 May 2011 10:39:39 -0700 Subject: [Dovecot] Bug Report: Failure delay config is ignored Message-ID: I have a set of automated tests for a system that can authenticate a user by forwarding authentication details to a server. That is, in order to authenticate a user, this system logs on to, e.g., an IMAP server using the credentials supplied by the user to verify the correctness of those credentials. I've been using dovecot as the authentication server to test IMAP, IMAPs, POP3, and APOP. To run the tests (most of which are authentication failures), I configure dovecot without authentication failure delays, since obviously I don't want to wait several minutes for the tests to finish. Setting the configuration variable auth_failure_delay to 0 worked fine in Dovecot 1.2, but since Debian updated to Dovecot 2.0 it no longer works. The tests take a very long time to run. I tried changing my passwd file to include nodelay=y, but this only works in a very limited way. For the set of tests which use the correct username, but an incorrect password, this successfully disables the failure delay. However, for the set of tests which use incorrect usernames (names not found in the user database or the password database, and which therefore don't have the extra nodelay field), the failure delay still occurs. There seems to be at least two problems here. The first is that it isn't clear what effect auth_failure_delay has. The comment in the sample config file just says "Time to delay before replying to failed authentications", which is certainly an incomplete description if not totally inaccurate. This setting seems to be completely unmentioned in the 2.0 wiki. The second problem is that the nodelay extra field can only be applied on a per-user basis. There doesn't seem to be any way to apply it to all users, or to apply it to authentication attempts for non-existent users. It seems to me that the failure delay that is actually used should either be 1) the actual value of auth_failure_delay (ideally with some random variance for extra security, but recognizing 0 as meaning disabled) or 2) some multiple of auth_failure_delay, where the multiplier increases with subsequent failures up to some max delay, with 0 still giving no delay. Config information follows. Thanks. -Kevin $ dovecot -n # 2.0.12: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-5-686 i686 Debian wheezy/sid auth_debug = yes auth_failure_delay = 0 auth_mechanisms = plain apop auth_verbose = yes listen = 127.0.0.1 log_path = /var/log/dovecot mail_location = maildir:~/Maildir passdb { args = /etc/dovecot/passwd driver = passwd-file } protocols = " imap pop3" ssl_cert = # 2.0.11: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 8.2-STABLE amd64 Dovecot stops with the following logged: - master: Fatal: kevent(): Invalid argument I have found that a diff was created for "src/lib/ioloop-kqueue.c" for a similar issue: http://dovecot.org/pipermail/dovecot/2010-November/054855.html I have patched my system with this and haven't seen the problem since, but I don't know if this is a coincidence. Could you please explain if the diff should actually fix anything or just add some more logging in case it stops again? Best regards Henrik Larsson From f.bonnet at esiee.fr Thu May 5 08:25:00 2011 From: f.bonnet at esiee.fr (Frank Bonnet) Date: Thu, 05 May 2011 07:25:00 +0200 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds Message-ID: <4DC234AC.5090002@esiee.fr> Hello I get this warning in dovecot.log the machine is running ntpd so this is a bit strange ... From ronny.becker at bioscientia.de Thu May 5 11:04:54 2011 From: ronny.becker at bioscientia.de (Becker, Ronny) Date: Thu, 05 May 2011 10:04:54 +0200 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders Message-ID: <4DC25A26.3000808@bioscientia.de> Hello, I am using Dovecot 1.2.9 on a 32bit on Ubuntu 10.04.2 LTS. We got one user who uses folders in an "exessive" way. He has got 704 subscribed folders. That means about nearly 3000 folders on the filesystem. Since ~ a week the user couldn't work because of timeouts when connecting to Dovecot (IMAP). Thunderbird doesn't show any folders - timeout - the webmail System (Groupoffice) only presents the INBOX. I did some debugging and found that a lsub "" "*" that is used by Thunderbird takes > 5 minutes. Thunderbird disconnects after ~1 Minute showing the timeout. I entered the command directly via port communication. So this is no clientside problem. But there is no error message or something else in any logs. I did some debugging with strace, too. It's about 22MB only for running the lsub command !? The Mailbox size is about ~2.2GB, so this should be no problem. The maximum subfolder level is about 13 - could this be a problem? You can find the structure (simply shown) attached. Thanks for any help!! Best regards Ronny Becker -- Mit freundlichen Gr??en, Ronny Becker Institut f?r Medizinische Diagnostik GmbH Ingelheim / Datenverarbeitung Konrad Adenauer Strasse 17 55218 Ingelheim Telefon: 06132 781 249 Fax: 06132 781 9 249 ronny.becker at bioscientia.de www.bioscientia.de Gesellschaft mit beschr?nkter Haftung mit Sitz in 55218 Ingelheim am Rhein, eingetragen im Handelsregister des Amtsgerichts Mainz unter HRB 21166. Gesch?ftsf?hrer: PD. Dr. med. Markus Nauck und Dipl.-Vw. Johannes Brill. Vorsitzender des Aufsichtsrates: Prof. Dr. med. Bernd Heicke. Diese E-Mail kann vertrauliche oder auf andere Weise gesch?tzte Informationen enthalten. Sollten Sie diese E-Mail irrt?mlich erhalten haben, l?schen Sie diese bitte von Ihrem System und setzen Sie uns unverz?glich von dem Vorfall in Kenntnis. USt-ID-Nr. DE 811138229 ___ Limited liability company with registered office in 55218 Ingelheim am Rhein, registered with the commercial register of the local court of Mainz under HRB 21166. Managing directors: PD Dr. med. Markus Nauck and Dipl.-Vw. Johannes Brill. Chairman of the supervisory board: Prof. Dr. med. Bernd Heicke. This e-mail may contain confidential or otherwise privileged information. If you are not the intended recipient, please inform us immediately and delete the e-mail from your system. VAT-ID-Nr. DE 811138229 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: subfolder_structure.txt URL: From tss at iki.fi Thu May 5 11:19:00 2011 From: tss at iki.fi (Timo Sirainen) Date: Thu, 5 May 2011 10:19:00 +0200 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: <4DC25A26.3000808@bioscientia.de> References: <4DC25A26.3000808@bioscientia.de> Message-ID: <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> On 5.5.2011, at 10.04, Becker, Ronny wrote: > I did some debugging and found that a lsub "" "*" that is used by Thunderbird takes > 5 minutes. Something's very wrong. I just tested with 1000 folders in a subscriptions file and it lists it in less than a second. > I did some debugging with strace, too. It's about 22MB only for running the lsub command !? Run it with strace -tt and send me the output compressed? Also dovecot -n output could be useful. From tss at iki.fi Thu May 5 11:44:58 2011 From: tss at iki.fi (Timo Sirainen) Date: Thu, 5 May 2011 10:44:58 +0200 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> References: <4DC25A26.3000808@bioscientia.de> <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> Message-ID: On 5.5.2011, at 10.19, Timo Sirainen wrote: >> I did some debugging with strace, too. It's about 22MB only for running the lsub command !? > > Run it with strace -tt and send me the output compressed? Ah, you have ACLs enabled. With ACLs it's looking up dovecot-acl file from each folder before returning it. This shouldn't be necessary with LSUB I think. I suppose some kind of an ACL cache could be a good idea some day too. And maybe a setting not to bother looking up ACLs for mailboxes in private namespaces. I'll try to do something about those within a few days.. From ronny.becker at bioscientia.de Thu May 5 12:26:23 2011 From: ronny.becker at bioscientia.de (Becker, Ronny) Date: Thu, 05 May 2011 11:26:23 +0200 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: References: <4DC25A26.3000808@bioscientia.de> <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> Message-ID: <4DC26D3F.5020103@bioscientia.de> Am 05.05.2011 10:44, schrieb Timo Sirainen: > On 5.5.2011, at 10.19, Timo Sirainen wrote: > >>> I did some debugging with strace, too. It's about 22MB only for running the lsub command !? >> Run it with strace -tt and send me the output compressed? > Ah, you have ACLs enabled. With ACLs it's looking up dovecot-acl file from each folder before returning it. This shouldn't be necessary with LSUB I think. I suppose some kind of an ACL cache could be a good idea some day too. And maybe a setting not to bother looking up ACLs for mailboxes in private namespaces. Ok, so for getting off this problem I will disable acl support. > I'll try to do something about those within a few days.. > I think it would be really a good thing to optimize dovecot this way. So you can reduce a lot of I/O. Hopefully I can get this fix - if available-, because I am using the Ubuntu packages !?!? Gesellschaft mit beschr?nkter Haftung mit Sitz in 55218 Ingelheim am Rhein, eingetragen im Handelsregister des Amtsgerichts Mainz unter HRB 21166. Gesch?ftsf?hrer: PD. Dr. med. Markus Nauck und Dipl.-Vw. Johannes Brill. Vorsitzender des Aufsichtsrates: Prof. Dr. med. Bernd Heicke. Diese E-Mail kann vertrauliche oder auf andere Weise gesch?tzte Informationen enthalten. Sollten Sie diese E-Mail irrt?mlich erhalten haben, l?schen Sie diese bitte von Ihrem System und setzen Sie uns unverz?glich von dem Vorfall in Kenntnis. USt-ID-Nr. DE 811138229 ___ Limited liability company with registered office in 55218 Ingelheim am Rhein, registered with the commercial register of the local court of Mainz under HRB 21166. Managing directors: PD Dr. med. Markus Nauck and Dipl.-Vw. Johannes Brill. Chairman of the supervisory board: Prof. Dr. med. Bernd Heicke. This e-mail may contain confidential or otherwise privileged information. If you are not the intended recipient, please inform us immediately and delete the e-mail from your system. VAT-ID-Nr. DE 811138229 From Ralf.Hildebrandt at charite.de Thu May 5 12:26:50 2011 From: Ralf.Hildebrandt at charite.de (Ralf Hildebrandt) Date: Thu, 5 May 2011 11:26:50 +0200 Subject: [Dovecot] Backtrace:dovecot/imap with 2.0.9 hg checkout from 1st of Febrauary In-Reply-To: <20110203090827.GC12879@charite.de> References: <20110202085907.GD2120@charite.de> <1296685692.18488.322.camel@hurina> <20110203090827.GC12879@charite.de> Message-ID: <20110505092649.GD23316@charite.de> * Ralf Hildebrandt : > Maybe it's a accidentially doubly gzipped mail :( It is! > > There's anyway a bug since it shouldn't be crashing even with garbage > > input. > > Yes, indeed. > > > Do you still have this message available? You can probably find it with: > > > > doveadm fetch -u username 'mailbox size.virtual' uid 37 > > > > And seeing if that's a >130k message somewhere in the list. If that's a > > spam or otherwise a message you can send me, it would help fixing this. Can dovecot changed in a way that it doesn't crash when it encounters a accidentially doubly gzipped mail? -- Ralf Hildebrandt Gesch?ftsbereich IT | Abteilung Netzwerk Charit? - Universit?tsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt at charite.de | http://www.charite.de From mobile at janantha.net Thu May 5 13:23:29 2011 From: mobile at janantha.net (Janantha Marasinghe) Date: Thu, 5 May 2011 15:53:29 +0530 Subject: [Dovecot] IMAP push Message-ID: Dear all, Im running dovecot v2 and want to know if it supports IMAP push capabilities. I have a few client who has blackberries, iphones and tabs. Please let me know. Sent via Mobile From dg at dguhl.org Thu May 5 13:58:44 2011 From: dg at dguhl.org (Dennis Guhl) Date: Thu, 5 May 2011 12:58:44 +0200 Subject: [Dovecot] IMAP push In-Reply-To: References: Message-ID: <20110505105843.GA25050@laptop-dg.leere.eu> On Thu, May 05, 2011 at 03:53:29PM +0530, Janantha Marasinghe wrote: > Dear all, > Im running dovecot v2 and want to know if it supports IMAP push capabilities. Dovecot supports IMAP IDLE as in RFC 2177 (http://tools.ietf.org/html/rfc2177). > I have a few client who has blackberries, iphones and tabs. Blackberries are using their own proprietary form of push service in conjunction a Blackberry Enterprise Server. None the less they are able to use IMAP IDLE like iPhones and other smartphones or tablet PCs. Dennis From robert at schetterer.org Thu May 5 16:27:11 2011 From: robert at schetterer.org (Robert Schetterer) Date: Thu, 05 May 2011 15:27:11 +0200 Subject: [Dovecot] Post-login scripting last login question Message-ID: <4DC2A5AF.90105@schetterer.org> Hi Timo, is there any relation between Post-login scripting i.e like last_login writing and imap/pop3 performance i.e on cluster file systems like ocfs2 etc ? -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From CMarcus at Media-Brokers.com Thu May 5 16:32:58 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Thu, 05 May 2011 09:32:58 -0400 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <4DC234AC.5090002@esiee.fr> References: <4DC234AC.5090002@esiee.fr> Message-ID: <4DC2A70A.2070101@Media-Brokers.com> On 2011-05-05 1:25 AM, Frank Bonnet wrote: > Hello > > I get this warning in dovecot.log > > the machine is running ntpd so this is > a bit strange ... How are you using it? It obviously isn't working correctly if your server isn't staying in time. -- Best regards, Charles From sarder.kamal at parlicentre.org Thu May 5 19:05:36 2011 From: sarder.kamal at parlicentre.org (Sarder Kamal) Date: Thu, 05 May 2011 17:05:36 +0100 Subject: [Dovecot] how to cat / grep from dbox files Message-ID: <4DC2CAD0.60601@parlicentre.org> Dear List members I am new to dovecot and am looking for a solution. I have googled as much as I could, but most likely my search criteria was wrong, and hence asking here. I am familiar with maildir format, and could easily do cat / grep / sed on those files to extract data. The server I am looking at now uses dbox format, which seems to store data in a different way. just to give you an example, when I do cat Drafts/dbox-Mails/u.11 I get the following output 2 M1e C4daa51f6 N 000000000000030A ?Tmo?6??_q?0`?B?r?D?? ??tF?5X??HI'??D??T??=*^?u??M?A?x/?=??E ???4?d??M_4?Z?.??mt??e??U?=?=1?s?B?^?0?_?_& ?"??H??eehuCA?1?I]a????p???????)\?-??H ???t4??E,???I?P?G????+???I??K+??u;9Z-???)ri????????un ????W?@?m?l?P?'??.??|???6?????)?S?C?T???>??n????U?r????]X9R???u?=?T??S_?:6??]?4hak??JWpkMe%???P_???~O~MW?jOU?F}?b? 3?]?~?/??8?_"??}L??????|L?}6hE'?7 ??^?q?-Y?I???.f???_ References: <4DC234AC.5090002@esiee.fr> Message-ID: <20110505120732.Horde.KKIIO5LnE6FNwstEF1LlrnA@mail.patrickdk.com> ntp isn't a magical fix. You need a good selection of source servers, or local time sources for it to pick a steady reliable time to use. Also, if the clock in your computer drifts too much, ntp will refuse to correct it or keep it in sync at all. Quoting Frank Bonnet : > Hello > > I get this warning in dovecot.log > > the machine is running ntpd so this is > a bit strange ... From tss at iki.fi Thu May 5 19:18:25 2011 From: tss at iki.fi (Timo Sirainen) Date: Thu, 5 May 2011 18:18:25 +0200 Subject: [Dovecot] how to cat / grep from dbox files In-Reply-To: <4DC2CAD0.60601@parlicentre.org> References: <4DC2CAD0.60601@parlicentre.org> Message-ID: On 5.5.2011, at 18.05, Sarder Kamal wrote: > Drafts/dbox-Mails/u.11 > I get the following output > 2 M1e C4daa51f6 > N 000000000000030A > ?Tmo?6??_q?0`?B?r?D?? ??tF?5X??HI'??D??T??=*^?u??M?A?x/?=??E .. > As it is quite evident, the output is in binary format, but I need it in text (even if that means I use some other command and pipe the output to cat / grep / sed) -- can this be done? The output is binary because the mail is stored compressed. Otherwise it would have been in text. > This server was configured and maintained by someone else, and I am very new to dovecot or this dbox format (I used to use courier-imap). would appreciate if anyone could please suggest what could/should be done to get to my objectives. All pointers/suggestions appreciated. man doveadm-fetch man doveadm-search-query example: doveadm fetch -u user 'uid text' mailbox INBOX body "hello world" From stsiol at yahoo.co.uk Thu May 5 21:45:59 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Thu, 5 May 2011 19:45:59 +0100 (BST) Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds Message-ID: <351536.71255.qm@web27205.mail.ukl.yahoo.com> Hello, You say ntpd is running. Is it running as a daemon ? AFAIK, to keep good time on a linux machine inside the network, you need to run "ntpdate" and not "ntpd". I had _exactly_ the same problem and I was running an ntp daemon. I wasn't actually syncing to anything. So,I did some searching and found out that I need to run "ntpdate ntp.server.fqdn", then add this same line to cron. HTH, s. ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From tss at iki.fi Thu May 5 21:49:33 2011 From: tss at iki.fi (Timo Sirainen) Date: Thu, 5 May 2011 20:49:33 +0200 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <351536.71255.qm@web27205.mail.ukl.yahoo.com> References: <351536.71255.qm@web27205.mail.ukl.yahoo.com> Message-ID: <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> On 5.5.2011, at 20.45, Spyros Tsiolis wrote: > AFAIK, to keep good time on a linux machine inside the network, > you need to run "ntpdate" and not "ntpd". No no no! That just makes things worse! It's the most common reason for these "Time jumped forwards/backwards" warnings. From stsiol at yahoo.co.uk Thu May 5 21:54:50 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Thu, 5 May 2011 19:54:50 +0100 (BST) Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> Message-ID: <89819.25453.qm@web27208.mail.ukl.yahoo.com> --- On Thu, 5/5/11, Timo Sirainen wrote: > From: Timo Sirainen > Subject: Re: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds > To: "Spyros Tsiolis" > Cc: f.bonnet at esiee.fr, "Dovecot" > Date: Thursday, 5 May, 2011, 21:49 > On 5.5.2011, at 20.45, Spyros Tsiolis > wrote: > > > AFAIK, to keep good time on a linux machine inside the > network, > > you need to run "ntpdate" and not "ntpd". > > No no no! That just makes things worse! It's the most > common reason for these "Time jumped forwards/backwards" > warnings. > > ! Seriously ? .s ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From noeldude at gmail.com Thu May 5 22:18:48 2011 From: noeldude at gmail.com (Noel) Date: Thu, 05 May 2011 14:18:48 -0500 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <89819.25453.qm@web27208.mail.ukl.yahoo.com> References: <89819.25453.qm@web27208.mail.ukl.yahoo.com> Message-ID: <4DC2F818.2030809@gmail.com> On 5/5/2011 1:54 PM, Spyros Tsiolis wrote: > --- On Thu, 5/5/11, Timo Sirainen wrote: > >> From: Timo Sirainen >> Subject: Re: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds >> To: "Spyros Tsiolis" >> Cc: f.bonnet at esiee.fr, "Dovecot" >> Date: Thursday, 5 May, 2011, 21:49 >> On 5.5.2011, at 20.45, Spyros Tsiolis >> wrote: >> >>> AFAIK, to keep good time on a linux machine inside the >> network, >>> you need to run "ntpdate" and not "ntpd". >> No no no! That just makes things worse! It's the most >> common reason for these "Time jumped forwards/backwards" >> warnings. >> >> > ! > > Seriously ? > Definitely you should run ntpd -- but you need to make sure that it's configured correctly and working. Running "ntpdate" will cause time to jump. -- Noel Jones From rick at havokmon.com Thu May 5 22:27:10 2011 From: rick at havokmon.com (Rick Romero) Date: Thu, 05 May 2011 14:27:10 -0500 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <4DC2F818.2030809@gmail.com> References: <89819.25453.qm@web27208.mail.ukl.yahoo.com> <4DC2F818.2030809@gmail.com> Message-ID: <20110505142710.Horde.16ufQqPBW7JNwvoOlWuBFv8@beta.vfemail.net> Quoting Noel : > On 5/5/2011 1:54 PM, Spyros Tsiolis wrote: >> --- On Thu, 5/5/11, Timo Sirainen wrote: >> >>> From: Timo Sirainen >>> Subject: Re: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped >>> forwards 16 seconds >>> To: "Spyros Tsiolis" >>> Cc: f.bonnet at esiee.fr, "Dovecot" >>> Date: Thursday, 5 May, 2011, 21:49 >>> On 5.5.2011, at 20.45, Spyros Tsiolis >>> wrote: >>> >>>> AFAIK, to keep good time on a linux machine inside the >>> network, >>>> you need to run "ntpdate" and not "ntpd". >>> No no no! That just makes things worse! It's the most >>> common reason for these "Time jumped forwards/backwards" >>> warnings. >>> >>> >> ! >> >> Seriously ? >> > > Definitely you should run ntpd -- but you need to make sure that > it's configured correctly and working. Running "ntpdate" will cause > time to jump. > I thought everyone knew that if you removed the 1.55v watch battery from the motherboard, you could put in a 1.6v battery and time will run faster. Then just use ntpdate - time will never jump forward, and dovecot won't crash. :D From smt at vgersoft.com Thu May 5 22:42:59 2011 From: smt at vgersoft.com (Steve Thompson) Date: Thu, 5 May 2011 15:42:59 -0400 (EDT) Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> References: <4DC25A26.3000808@bioscientia.de> <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> Message-ID: On Thu, 5 May 2011, Timo Sirainen wrote: > On 5.5.2011, at 10.04, Becker, Ronny wrote: > >> I did some debugging and found that a lsub "" "*" that is used by Thunderbird takes > 5 minutes. > > Something's very wrong. I just tested with 1000 folders in a > subscriptions file and it lists it in less than a second. Interesting. I just converted a system from Courier IMAP to Dovecot, and found a massive performance increase. My own personal account has 655 subscribed folders containing about 1.3 million messages. An LSUB "" "*" command takes of the order of about 0.1 second (the IMAP server has SATA disks and an Xeon E5345's at 2.33 GHz). Using alpine as client, a full scan of all messages to find unread messages (";puz") takes about 10 seconds - with Courier, this takes over a minute. I don't know of a way to do the same test in tbird. Steve From ssilva at sgvwater.com Thu May 5 23:24:32 2011 From: ssilva at sgvwater.com (Scott Silva) Date: Thu, 05 May 2011 13:24:32 -0700 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: <4DC25A26.3000808@bioscientia.de> References: <4DC25A26.3000808@bioscientia.de> Message-ID: on 5/5/2011 1:04 AM Becker, Ronny spake the following: > Hello, > I am using Dovecot 1.2.9 on a 32bit on Ubuntu 10.04.2 LTS. > > We got one user who uses folders in an "exessive" way. He has got 704 > subscribed folders. That means about nearly 3000 folders on the filesystem. > Since ~ a week the user couldn't work because of timeouts when connecting to > Dovecot (IMAP). Thunderbird doesn't show any folders - timeout - the webmail > System (Groupoffice) only presents the INBOX. > > I did some debugging and found that a lsub "" "*" that is used by Thunderbird > takes > 5 minutes. Thunderbird disconnects after ~1 Minute showing the > timeout. I entered the command directly via port communication. So this is no > clientside problem. But there is no error message or something else in any logs. > > I did some debugging with strace, too. It's about 22MB only for running the > lsub command !? The Mailbox size is about ~2.2GB, so this should be no > problem. The maximum subfolder level is about 13 - could this be a problem? > You can find the structure (simply shown) attached. > > > Thanks for any help!! > > > Best regards > Ronny Becker > > What is the underlying filesystem, and if its ext3, is dir_index set on? From jayw at interoceansystems.com Thu May 5 23:28:03 2011 From: jayw at interoceansystems.com (Jay Welch) Date: Thu, 05 May 2011 13:28:03 -0700 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <20110505142710.Horde.16ufQqPBW7JNwvoOlWuBFv8@beta.vfemail.net> References: <89819.25453.qm@web27208.mail.ukl.yahoo.com> <4DC2F818.2030809@gmail.com> <20110505142710.Horde.16ufQqPBW7JNwvoOlWuBFv8@beta.vfemail.net> Message-ID: <4DC30853.10804@interoceansystems.com> I had the same problem. If you are running dovecot on a virtual machine this is what I did and the issue was fixed: http://nbevans.wordpress.com/2011/02/21/centos-5-5-losing-time-synchronisation-on-hyper-v-r2/ On 5/5/2011 12:27 PM, Rick Romero wrote: > > Quoting Noel : > >> On 5/5/2011 1:54 PM, Spyros Tsiolis wrote: >>> --- On Thu, 5/5/11, Timo Sirainen wrote: >>> >>>> From: Timo Sirainen >>>> Subject: Re: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped >>>> forwards 16 seconds >>>> To: "Spyros Tsiolis" >>>> Cc: f.bonnet at esiee.fr, "Dovecot" >>>> Date: Thursday, 5 May, 2011, 21:49 >>>> On 5.5.2011, at 20.45, Spyros Tsiolis >>>> wrote: >>>> >>>>> AFAIK, to keep good time on a linux machine inside the >>>> network, >>>>> you need to run "ntpdate" and not "ntpd". >>>> No no no! That just makes things worse! It's the most >>>> common reason for these "Time jumped forwards/backwards" >>>> warnings. >>>> >>>> >>> ! >>> >>> Seriously ? >>> >> >> Definitely you should run ntpd -- but you need to make sure that it's >> configured correctly and working. Running "ntpdate" will cause time >> to jump. >> > > I thought everyone knew that if you removed the 1.55v watch battery > from the motherboard, you could put in a 1.6v battery and time will > run faster. Then just use ntpdate - time will never jump forward, and > dovecot won't crash. > > > :D > > > > From Bruno.Treguier at shom.fr Fri May 6 00:13:23 2011 From: Bruno.Treguier at shom.fr (=?UTF-8?B?QnJ1bm8gVHLDqWd1aWVy?=) Date: Thu, 05 May 2011 23:13:23 +0200 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <20110505142710.Horde.16ufQqPBW7JNwvoOlWuBFv8@beta.vfemail.net> References: <89819.25453.qm@web27208.mail.ukl.yahoo.com> <4DC2F818.2030809@gmail.com> <20110505142710.Horde.16ufQqPBW7JNwvoOlWuBFv8@beta.vfemail.net> Message-ID: <4DC312F3.7080402@shom.fr> Le 05/05/2011 ? 21:27, Rick Romero a ?crit : > I thought everyone knew that if you removed the 1.55v watch battery from > the motherboard, you could put in a 1.6v battery and time will run > faster. Then just use ntpdate - time will never jump forward, and > dovecot won't crash. > > > :D Hi, As Timo just stated, you definitely should run ntpd, which tries to adjust the clock's pace smoothly, instead of ntpdate, which abruptly changes the clock and should only be used *before* starting ntpd (typically at service startup), to catch up a difference too big for ntpd to handle in a reasonable time. If time moves backwards, Dovecot will not crash, but will kill itself, which in the end amounts to pretty much the same. ;-) http://wiki2.dovecot.org/TimeMovedBackwards Best regards, Bruno -- - Service Hydrographique et Oceanographique de la Marine - DO/MGS/INF - 13, rue du Chatellier - CS 92803 - 29228 Brest Cedex 2, FRANCE - Phone: +33 2 98 22 17 49 - Email: Bruno.Treguier at shom.fr From upendra.gandhi at gmail.com Fri May 6 00:43:22 2011 From: upendra.gandhi at gmail.com (upen) Date: Thu, 5 May 2011 16:43:22 -0500 Subject: [Dovecot] alpine + Maildir Message-ID: Hello, I am trying to configure pine.conf for all users and running into an issue. In this setup, Mailbox format is Maildir and Maildir location is /Mail/Username/{new,cur,..etc} First thing required in alpine was patch for maildir and this has already been done. After that I have tried setting up folder-collection Mail #md ../../Mail/username and also tried using #mc (not sure which one is correct #md or #mc). Nothing worked. If maildir support in alpine does not work like it does for mbox then I'll have to configure IMAP setings in pine.conf for alpine users. I must say that alpine is installed on mail server :). Although IMAP setting may work fine, it will prompt user for password initially when checking email and while sending first email. I'd like to avoid this by using #md or #mc. If anyone has any useful inputs please let me know. Thank you! UG. From dovecot.fdop at tagged.lorens.org Fri May 6 00:43:25 2011 From: dovecot.fdop at tagged.lorens.org (Lorens Kockum) Date: Thu, 5 May 2011 23:43:25 +0200 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <89819.25453.qm@web27208.mail.ukl.yahoo.com> References: <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> <89819.25453.qm@web27208.mail.ukl.yahoo.com> Message-ID: <20110505214325.GA27864@tagged.lorens.org> On Thu, May 05, 2011 at 07:54:50PM +0100, Spyros Tsiolis wrote: > > Seriously ? Yes, Timo was (of course) both serious and correct. ntpdate takes one or more NTP servers as parameters, and sets your server's time to match that of the NTP servers. That may well cause a jump, even a massive jump. ntpd takes a list of NTP servers in its configuration file, and uses them to make continual small adjustments. I seem to remember that in some cases it is even capable of adjusting the speed of your system clock according to its measurements. If the difference is too great it will refuse to function and exit with an error. The usual way is to run ntpdate with -b option once at boot (just after the network comes up and long before things like dovecot and MTAs get started), and then start up ntpd. The other way is to run ntpdate frequently, against an NTP server you trust. It's not as good, but sometimes there may be objections against running daemons, and if you're aiming at a well-behaved NTP server the jumps should be minimal. When running ntpd, the essential thing is to check that it's actually doing its job. You do that with the command "ntpdc". That will drop you to a prompt. The essential commands are sysinfo peers server x.x.x.x sysinfo quit sysinfo should give your stratum as somwhere between 3 and 5 (if it's less you're probably doing something wrong, and if it's 16 you're not synchronized). peers should give one * sign in the first column and some number of + signs. After that overview, man ntpdate, man ntpd, and google :-) HTH. From dovecot-user at spambox.dk Fri May 6 01:03:56 2011 From: dovecot-user at spambox.dk (Henrik Larsson) Date: Fri, 06 May 2011 00:03:56 +0200 Subject: [Dovecot] Dovecot stops with "Fatal: kevent(): Invalid argument" In-Reply-To: <4DC1D95D.3070603@spambox.dk> References: <4DC1D95D.3070603@spambox.dk> Message-ID: <4DC31ECC.1050901@spambox.dk> > # 2.0.11: /usr/local/etc/dovecot/dovecot.conf > # OS: FreeBSD 8.2-STABLE amd64 > > Dovecot stops with the following logged: > - master: Fatal: kevent(): Invalid argument > > I have found that a diff was created for "src/lib/ioloop-kqueue.c" for > a similar issue: > http://dovecot.org/pipermail/dovecot/2010-November/054855.html > > I have patched my system with this and haven't seen the problem since, > but I don't know if this is a coincidence. Could you please explain if > the diff should actually fix anything or just add some more logging in > case it stops again? And if this is a fix, why isn't it included in 2.0.11, I think it was created for 2.0.6. Best regards Henrik Larsson From dovecot.user at seibercom.net Fri May 6 01:30:32 2011 From: dovecot.user at seibercom.net (Jerry) Date: Thu, 5 May 2011 18:30:32 -0400 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <20110505214325.GA27864@tagged.lorens.org> References: <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> <89819.25453.qm@web27208.mail.ukl.yahoo.com> <20110505214325.GA27864@tagged.lorens.org> Message-ID: <20110505183032.6d77fb6b@scorpio> On Thu, 5 May 2011 23:43:25 +0200 Lorens Kockum articulated: > On Thu, May 05, 2011 at 07:54:50PM +0100, Spyros Tsiolis wrote: > > > > Seriously ? > > Yes, Timo was (of course) both serious and correct. > > ntpdate takes one or more NTP servers as parameters, and sets > your server's time to match that of the NTP servers. That may > well cause a jump, even a massive jump. > > ntpd takes a list of NTP servers in its configuration file, > and uses them to make continual small adjustments. I seem to > remember that in some cases it is even capable of adjusting the > speed of your system clock according to its measurements. If the > difference is too great it will refuse to function and exit with > an error. > > The usual way is to run ntpdate with -b option once at boot > (just after the network comes up and long before things like > dovecot and MTAs get started), and then start up ntpd. > > The other way is to run ntpdate frequently, against an NTP > server you trust. It's not as good, but sometimes there may be > objections against running daemons, and if you're aiming at a > well-behaved NTP server the jumps should be minimal. > > When running ntpd, the essential thing is to check that > it's actually doing its job. You do that with the command > "ntpdc". That will drop you to a prompt. The essential commands > are > > sysinfo > peers > server x.x.x.x > sysinfo > quit > > sysinfo should give your stratum as somwhere between 3 and 5 (if > it's less you're probably doing something wrong, and if it's 16 > you're not synchronized). peers should give one * sign in the > first column and some number of + signs. > > After that overview, man ntpdate, man ntpd, and google :-) > > HTH. On a FreeBSD machine, putting the following two lines into the "/etc/rc.conf" file will cause "ntp" to be started and force it to synchronize the time regardless of how far out of sync it actually is. ntpd_enable="YES" # Start time server ntpd_sync_on_start="YES" # Synchronize on start Of course, you still need to have a default ntp.conf file. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From alietsantiesteban at gmail.com Fri May 6 02:55:35 2011 From: alietsantiesteban at gmail.com (Aliet Santiesteban Sifontes) Date: Thu, 5 May 2011 19:55:35 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results Message-ID: We have done some benchmarking tests using dovecot 2.0.12 to find the best shared filesystem for hosting many users, here I share with you the results, notice the bad perfomance of all the shared filesystems against the local storage. Is there any specific optimization/tunning on dovecot for use GFS2 on rhel6??, we have configured the director to make the user mailbox persistent in a node, we will thank's any help from you. we are interested in using GFS2 or NFS, we believe the problem is the locks, how can we improve this?? best regards, Aliet The results rhel 4.8 x86_64/GFS1 two nodes, shared FC lun on a SAN Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 1- 2608 1321 1311 2608 2508 3545 547 2001 2493 2702 5282 2- 2810 1440 1430 2810 2688 3835 403 2154 2679 2925 5706 3- 2913 1457 1441 2908 2778 3913 417 2253 2773 3034 5924 4- 2814 1448 1412 2812 2695 3910 401 2186 2686 2929 5712 5- 2789 1464 1432 2787 2652 3774 427 2112 2649 2879 5676 6- 2843 1460 1444 2839 2722 3948 422 2164 2713 2957 5778 rhel6 x86_64/GFS2 two nodes, shared FC lun on a SAN(Used RDM in VMWare vSphere for GFS2 lun) Tunned cluster suite cluster.conf + Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 1- 2730 1340 1356 2704 2644 3748 522 2125 2643 2662 5422 2- 3309 1618 1659 3294 3223 4658 531 2563 3221 3239 6596 3- 2131 1046 1017 2055 2025 2911 381 1608 2024 2052 4256 4- 2176 1055 1039 2082 2058 2947 377 1671 2058 2078 4344 5- 1859 928 931 1859 1800 2626 304 1454 1799 1801 3706 6- 2672 1322 1329 2672 2607 3758 464 2097 2606 2615 5326 rhel6 x86_64/GFS2 two nodes, shared FC lun on a SAN(Used RDM in VMWare vSphere for GFS2 lun) Cluster suite defaults configs for plocks Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 1- 1417 644 676 1325 1305 1872 308 1048 1302 1318 2824 2- 837 378 392 742 726 1050 117 588 722 734 1658 3- 803 363 347 752 745 1069 153 597 744 750 1658 4- 1682 802 811 1587 1569 2261 291 1299 1569 1585 3360 5- 1146 583 564 1146 1037 1500 213 811 1037 1049 2290 6- 838 403 366 744 734 1057 152 561 731 736 1664 rhel6 x86_64 two nodes used NFS(NAS Freenas 0.8, nfsvers 3) Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 1- 1382 699 691 1357 1063 1500 224 861 1053 1313 2694 2- 1634 785 799 1610 1459 2120 311 1192 1451 1570 3204 2- 1635 826 806 1611 1463 2088 345 1159 1459 1568 3190 3- 1574 758 781 1537 1403 2060 324 1135 1396 1504 3090 4- 1685 842 807 1653 1506 2135 349 1215 1504 1634 3344 5- 1766 850 893 1737 1582 2289 335 1288 1579 1705 3480 6- 1597 797 769 1572 1423 2007 313 1133 1420 1536 3142 rhel6 x86_64 local storage Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 1- 7798 3868 3889 7706 7566 10713 1080 6089 7559 7688 15562 2- 7806 3879 3874 7716 7585 10873 1114 6018 7578 7696 15572 3- 7866 3910 3855 7773 7748 11053 1076 6253 7747 7761 15710 4- 7893 3978 3931 7802 7772 10988 1117 6197 7767 7789 15760 5- 7775 3853 3809 7683 7654 10897 1081 6142 7651 7675 15534 6- 7877 3919 3872 7789 7758 10986 1085 6218 7755 7773 15720 From alietsantiesteban at gmail.com Fri May 6 02:56:55 2011 From: alietsantiesteban at gmail.com (Aliet Santiesteban Sifontes) Date: Thu, 5 May 2011 19:56:55 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: References: Message-ID: We have used sdbox as mailbox format, and all the user data is configured in LDAP Servers 2011/5/5 Aliet Santiesteban Sifontes > We have done some benchmarking tests using dovecot 2.0.12 to find the best > shared filesystem for hosting many users, here I share with you the results, > notice the bad perfomance of all the shared filesystems against the local > storage. > Is there any specific optimization/tunning on dovecot for use GFS2 on > rhel6??, we have configured the director to make the user mailbox persistent > in a node, we will thank's any help from you. > we are interested in using GFS2 or NFS, we believe the problem is the > locks, how can we improve this?? > > best regards, Aliet > > The results > > rhel 4.8 x86_64/GFS1 two nodes, shared FC lun on a SAN > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 1- 2608 1321 1311 2608 2508 3545 547 2001 2493 2702 5282 > 2- 2810 1440 1430 2810 2688 3835 403 2154 2679 2925 5706 > 3- 2913 1457 1441 2908 2778 3913 417 2253 2773 3034 5924 > 4- 2814 1448 1412 2812 2695 3910 401 2186 2686 2929 5712 > 5- 2789 1464 1432 2787 2652 3774 427 2112 2649 2879 5676 > 6- 2843 1460 1444 2839 2722 3948 422 2164 2713 2957 5778 > > rhel6 x86_64/GFS2 two nodes, shared FC lun on a SAN(Used RDM in VMWare > vSphere for GFS2 lun) > Tunned cluster suite cluster.conf + plock_rate_limit="0"/> > > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 1- 2730 1340 1356 2704 2644 3748 522 2125 2643 2662 5422 > 2- 3309 1618 1659 3294 3223 4658 531 2563 3221 3239 6596 > 3- 2131 1046 1017 2055 2025 2911 381 1608 2024 2052 4256 > 4- 2176 1055 1039 2082 2058 2947 377 1671 2058 2078 4344 > 5- 1859 928 931 1859 1800 2626 304 1454 1799 1801 3706 > 6- 2672 1322 1329 2672 2607 3758 464 2097 2606 2615 5326 > > > rhel6 x86_64/GFS2 two nodes, shared FC lun on a SAN(Used RDM in VMWare > vSphere for GFS2 lun) > Cluster suite defaults configs for plocks > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 1- 1417 644 676 1325 1305 1872 308 1048 1302 1318 2824 > 2- 837 378 392 742 726 1050 117 588 722 734 1658 > 3- 803 363 347 752 745 1069 153 597 744 750 1658 > 4- 1682 802 811 1587 1569 2261 291 1299 1569 1585 3360 > 5- 1146 583 564 1146 1037 1500 213 811 1037 1049 2290 > 6- 838 403 366 744 734 1057 152 561 731 736 1664 > > rhel6 x86_64 two nodes used NFS(NAS Freenas 0.8, nfsvers 3) > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 1- 1382 699 691 1357 1063 1500 224 861 1053 1313 2694 > 2- 1634 785 799 1610 1459 2120 311 1192 1451 1570 3204 > 2- 1635 826 806 1611 1463 2088 345 1159 1459 1568 3190 > 3- 1574 758 781 1537 1403 2060 324 1135 1396 1504 3090 > 4- 1685 842 807 1653 1506 2135 349 1215 1504 1634 3344 > 5- 1766 850 893 1737 1582 2289 335 1288 1579 1705 3480 > 6- 1597 797 769 1572 1423 2007 313 1133 1420 1536 3142 > > rhel6 x86_64 local storage > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 1- 7798 3868 3889 7706 7566 10713 1080 6089 7559 7688 15562 > 2- 7806 3879 3874 7716 7585 10873 1114 6018 7578 7696 15572 > 3- 7866 3910 3855 7773 7748 11053 1076 6253 7747 7761 15710 > 4- 7893 3978 3931 7802 7772 10988 1117 6197 7767 7789 15760 > 5- 7775 3853 3809 7683 7654 10897 1081 6142 7651 7675 15534 > 6- 7877 3919 3872 7789 7758 10986 1085 6218 7755 7773 15720 > From f.bonnet at esiee.fr Fri May 6 07:05:04 2011 From: f.bonnet at esiee.fr (Frank Bonnet) Date: Fri, 06 May 2011 06:05:04 +0200 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> References: <351536.71255.qm@web27205.mail.ukl.yahoo.com> <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> Message-ID: <4DC37370.1000008@esiee.fr> Le 05/05/2011 20:49, Timo Sirainen a ?crit : > On 5.5.2011, at 20.45, Spyros Tsiolis wrote: > >> AFAIK, to keep good time on a linux machine inside the network, >> you need to run "ntpdate" and not "ntpd". > > No no no! That just makes things worse! It's the most common reason for these "Time jumped forwards/backwards" warnings. > The machine runs FreeBSD not Linux :-) it runs ntpd pointing to several reliables NTP servers since 5 years From Bartlomiej.Solarz-Niesluchowski at wit.edu.pl Fri May 6 09:32:55 2011 From: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl (=?UTF-8?B?QmFydMWCb21pZWogU29sYXJ6LU5pZXPFgnVjaG93c2tp?=) Date: Fri, 06 May 2011 08:32:55 +0200 Subject: [Dovecot] alpine + Maildir In-Reply-To: References: Message-ID: <4DC39617.2050103@wit.edu.pl> W dniu 2011-05-05 23:43, upen pisze: > Hello, > > I am trying to configure pine.conf for all users and running into an > issue. In this setup, Mailbox format is Maildir and Maildir location > is /Mail/Username/{new,cur,..etc} > > First thing required in alpine was patch for maildir and this has > already been done. After that I have tried setting up > folder-collection Mail #md ../../Mail/username and also tried using > #mc (not sure which one is correct #md or #mc). Nothing worked. > > If maildir support in alpine does not work like it does for mbox then > I'll have to configure IMAP setings in pine.conf for alpine users. I > must say that alpine is installed on mail server :). Although IMAP > setting may work fine, it will prompt user for password initially when > checking email and while sending first email. I'd like to avoid this > by using #md or #mc. > > If anyone has any useful inputs please let me know. on my alpine in pine.conf we have settings: inbox-path=#md//var/spool/mail/$USER and alpine is: oceanic:~# rpm -qa alpine alpine-2.02-1.fc14.x86_64 and it works. > Thank you! > UG. -- Bart?omiej Solarz-Nies?uchowski, Administrator WSISiZ e-mail: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl tel. 223486547, fax 223486501 JID: solarz at jabber.wit.edu.pl 01-447 Warszawa, ul. Newelska 6, pok?j 404, pon.-pt. 8-16 Motto - Jak sobie po?cielisz tak sie wy?pisz -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6020 bytes Desc: S/MIME Cryptographic Signature URL: From tss at iki.fi Fri May 6 10:09:13 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 6 May 2011 09:09:13 +0200 Subject: [Dovecot] Dovecot stops with "Fatal: kevent(): Invalid argument" In-Reply-To: <4DC1D95D.3070603@spambox.dk> References: <4DC1D95D.3070603@spambox.dk> Message-ID: On 5.5.2011, at 0.55, Henrik Larsson wrote: > Dovecot stops with the following logged: > - master: Fatal: kevent(): Invalid argument > > I have found that a diff was created for "src/lib/ioloop-kqueue.c" for a similar issue: > http://dovecot.org/pipermail/dovecot/2010-November/054855.html > > I have patched my system with this and haven't seen the problem since, but I don't know if this is a coincidence. Could you please explain if the diff should actually fix anything or just add some more logging in case it stops again? That patch doesn't fix anything. It only changes the error message to be more informative so I could figure out what is causing it. If you haven't seen any more errors, it's just a coincidence. From tss at iki.fi Fri May 6 10:11:45 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 6 May 2011 09:11:45 +0200 Subject: [Dovecot] alpine + Maildir In-Reply-To: References: Message-ID: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> On 5.5.2011, at 23.43, upen wrote: > If maildir support in alpine does not work like it does for mbox then > I'll have to configure IMAP setings in pine.conf for alpine users. I > must say that alpine is installed on mail server :). Although IMAP > setting may work fine, it will prompt user for password initially when > checking email and while sending first email. I'd like to avoid this > by using #md or #mc. You can configure Alpine to execute Dovecot's imap binary and talk to it. That makes it work nicely with Dovecot and won't prompt the user for a password. If you're using v1.x you can run "dovecot --exec-mail imap" and with v2.0 you just need to run "imap". I don't know specifically what this setting in Alpine is called. From moiseev at mezonplus.ru Fri May 6 10:34:06 2011 From: moiseev at mezonplus.ru (Alexander Moisseev) Date: Fri, 06 May 2011 11:34:06 +0400 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: References: Message-ID: <4DC3A46E.1080702@mezonplus.ru> Are you got this warnings only after OS reboot? -- Alexander Moisseev From erevilla at yaco.es Fri May 6 13:20:38 2011 From: erevilla at yaco.es (Ernesto Revilla Derksen) Date: Fri, 6 May 2011 12:20:38 +0200 Subject: [Dovecot] Encoding dovecot keywords In-Reply-To: <6B0FEF8E-F91F-4FD3-A76A-229D8BD9C87F@iki.fi> References: <20110408155009.Horde.z3uieoF5lbhNn4MR6sYHxaA@bigworm.curecanti.org> <6B0FEF8E-F91F-4FD3-A76A-229D8BD9C87F@iki.fi> Message-ID: Hi. 2011/4/10 Timo Sirainen > On 9.4.2011, at 13.41, ??????? ???????? wrote: > > > Ok, but if I write my own MUA application? If different MUA use it's > > own encoding format I think it's bad, very very bad way. Because > > application can't decode keywords written by another application. > > Yeah, it sucks. > Well, it could be worse. Dovecot's max length is configurable. We just need atom compatible keywords. For latin written languages, this could be doable. For other languages, it sucks. It would be better if keywords were that UTF-7 modified thing, just like folder names, but that is not the standard :-( > > Can someone known a solution to this problem? > > No. You could try proposing a standard though. > http://www.washington.edu/imap/lists/imap-protocol.html This is cool! Well, changing IMAP keywords to UTF-7-mod + specifiying min size supported by IMAP servers and max size in capabilities anyhow would be a not too intrusive change, right? Regards. Erny > > > 2011/4/9 Michael M Slusarz : > >> Quoting ??????? ???????? : > >> > >>> But I can't understand what encoding use dovecot for keywords? I set > >>> "????" (number 5) keyword: > >>> > >>> cat dovecot-keywords > >>> 0 &bcienqrbbeiepgqybdaetw-_&bdwenqrcbdoema- > >>> 1 test > >>> 2 $label1 > >>> 3 $label2 > >>> 4 $label3 > >>> 5 &beienqq6beeeqg- > >>> > >>> but "&beienqq6beeeqg-" do not convert to "????". Why? > >> > >> Because only mailboxes are encoded in Modified UTF-7. There is no > >> equivalent encoding for keywords. Keywords are *not* meant to be > directly > >> viewable by an end-user. Converting between a keyword and the > >> representation displayed to the user is the job of the MUA. > >> > >> michael > >> > >> > > > > From erevilla at yaco.es Fri May 6 13:26:25 2011 From: erevilla at yaco.es (Ernesto Revilla Derksen) Date: Fri, 6 May 2011 12:26:25 +0200 Subject: [Dovecot] Delete unused IMAP keywords from permanetflags Message-ID: Hi. I'm using dovecot 2.0.9. Is there already a way to remove unused IMAP keywords from a folder? I searched in google, wiki, etc. but didn't find anything useful. Thanx. Regards Erny From CMarcus at Media-Brokers.com Fri May 6 13:49:53 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Fri, 06 May 2011 06:49:53 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: References: Message-ID: <4DC3D251.4050004@Media-Brokers.com> On 2011-05-05 7:56 PM, Aliet Santiesteban Sifontes wrote: > We have used sdbox as mailbox format, and all the user data is configured in > LDAP Servers It might help Timo to provide some suggestions if you also provide dovecot -n output... ;) -- Best regards, Charles From CMarcus at Media-Brokers.com Fri May 6 13:53:13 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Fri, 06 May 2011 06:53:13 -0400 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <4DC37370.1000008@esiee.fr> References: <351536.71255.qm@web27205.mail.ukl.yahoo.com> <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> <4DC37370.1000008@esiee.fr> Message-ID: <4DC3D319.9030603@Media-Brokers.com> On 2011-05-06 12:05 AM, Frank Bonnet wrote: > Le 05/05/2011 20:49, Timo Sirainen a ?crit : >> On 5.5.2011, at 20.45, Spyros Tsiolis wrote: >>> AFAIK, to keep good time on a linux machine inside the network, >>> you need to run "ntpdate" and not "ntpd". >> No no no! That just makes things worse! It's the most common reason >> for these "Time jumped forwards/backwards" warnings. > The machine runs FreeBSD not Linux :-) So? The basic premise is still the same... the system clock should NEVER jump time like that during normal operations, if it does, something is seriously broken. ntpdate, which causes large jumps, should only be used at boot time BEFORE server processes are started, then ntp CLIENT keeps the systems clock in sync using tiny increments, usually less than a second. > it runs ntpd pointing to several reliables NTP servers > since 5 years So something changed/broke? Happens all the time... -- Best regards, Charles From hans.moser at ofd-z.niedersachsen.de Fri May 6 14:11:09 2011 From: hans.moser at ofd-z.niedersachsen.de (Marc Patermann) Date: Fri, 6 May 2011 13:11:09 +0200 Subject: [Dovecot] IMAP push In-Reply-To: <20110505105843.GA25050@laptop-dg.leere.eu> References: <20110505105843.GA25050@laptop-dg.leere.eu> Message-ID: <4DC3D74D.2040804@ofd-z.niedersachsen.de> Hi, Dennis Guhl schrieb am 05.05.2011 12:58 Uhr: > On Thu, May 05, 2011 at 03:53:29PM +0530, Janantha Marasinghe wrote: >> Im running dovecot v2 and want to know if it supports IMAP push capabilities. > > Dovecot supports IMAP IDLE as in RFC 2177 > (http://tools.ietf.org/html/rfc2177). > >> I have a few client who has blackberries, iphones and tabs. > > Blackberries are using their own proprietary form of push service in > conjunction a Blackberry Enterprise Server. None the less they are > able to use IMAP IDLE like iPhones and other smartphones or tablet PCs. There ist Z-Push, which I haven't tested, yet. http://z-push.sourceforge.net/soswp/ There is even a session called "Connecting mobile Devices with Z-Push and Zarafa/Dovecot" at the "Mailserver-Konferenz", Berlin 26th of May. :) http://www.heinlein-support.de/mailserver-konferenz/2011/vortrag/mobile-geraete-mit-z-push-und-zarafa-dovecot Marc From dovecot.user at seibercom.net Fri May 6 14:35:03 2011 From: dovecot.user at seibercom.net (Jerry) Date: Fri, 6 May 2011 07:35:03 -0400 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <4DC3D319.9030603@Media-Brokers.com> References: <351536.71255.qm@web27205.mail.ukl.yahoo.com> <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> <4DC37370.1000008@esiee.fr> <4DC3D319.9030603@Media-Brokers.com> Message-ID: <20110506073503.76d705fc@scorpio> On Fri, 06 May 2011 06:53:13 -0400 Charles Marcus articulated: > On 2011-05-06 12:05 AM, Frank Bonnet wrote: > > Le 05/05/2011 20:49, Timo Sirainen a ?crit : > >> On 5.5.2011, at 20.45, Spyros Tsiolis wrote: > >>> AFAIK, to keep good time on a linux machine inside the network, > >>> you need to run "ntpdate" and not "ntpd". > > >> No no no! That just makes things worse! It's the most common reason > >> for these "Time jumped forwards/backwards" warnings. > > > The machine runs FreeBSD not Linux :-) > > So? The basic premise is still the same... the system clock should > NEVER jump time like that during normal operations, if it does, > something is seriously broken. > > ntpdate, which causes large jumps, should only be used at boot time > BEFORE server processes are started, then ntp CLIENT keeps the systems > clock in sync using tiny increments, usually less than a second. > > > it runs ntpd pointing to several reliables NTP servers > > since 5 years > > So something changed/broke? Happens all the time... Sorry, I missed some of this thread; however, I was wondering if anyone suggested replacing the battery. I have seen a phenomena like this once before on an old PC with a dying battery. I did post about a possible solution with ntp on a FreeBSD machine. I am not sure if the OP has tried that procedure or not. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From noeldude at gmail.com Fri May 6 14:42:10 2011 From: noeldude at gmail.com (Noel) Date: Fri, 06 May 2011 06:42:10 -0500 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <4DC3D319.9030603@Media-Brokers.com> References: <351536.71255.qm@web27205.mail.ukl.yahoo.com> <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> <4DC37370.1000008@esiee.fr> <4DC3D319.9030603@Media-Brokers.com> Message-ID: <4DC3DE92.2030500@gmail.com> On 5/6/2011 5:53 AM, Charles Marcus wrote: > ntpdate, which causes large jumps, should only be used at > boot time > BEFORE server processes are started, then ntp CLIENT keeps the systems > clock in sync using tiny increments, usually less than a second. > No, ntpd adjusts the clock frequency to keep the system in close sync with a reliable time source. To work properly, ntpd expects to be a long-running process so it can figure out the local clock drift and properly adjust it. Anyway, drifting off topic here. Bottom line is that your server needs stable time, which ntpd can provide. Exceptions are virtual machines, which have their own time tools, and "personal" devices that sleep/resume frequently, AFAIK no reliable solution for these. -- Noel Jones From zubator at gmail.com Fri May 6 16:03:39 2011 From: zubator at gmail.com (Alexey Eropkin) Date: Fri, 6 May 2011 17:03:39 +0400 Subject: [Dovecot] dovecot+shared folders Message-ID: Hi all. I have dovecot 1.2.15 on debian + mysql+shared folders. My config login_process_size = 128 login_processes_count = 10 login_process_per_connection = no login_max_connections = 3000 login_max_processes_count = 1000 mail_process_size = 1024 protocols = imap imaps pop3 pop3s managesieve protocol managesieve { login_executable = /usr/lib/dovecot/managesieve-login mail_executable = /usr/lib/dovecot/managesieve } disable_plaintext_auth = no log_timestamp = "%Y-%m-%d %H:%M:%S " mail_location = maildir:~ namespace private { separator = / prefix = inbox = yes hidden = no subscriptions = yes } namespace shared { separator = / prefix = shared/%%u/ location = maildir:%%h:INDEX=~/shared/%%u:CONTROL=~/shared/%%u inbox = no hidden = no subscriptions = no list = children } mail_privileged_group = vmail first_valid_uid = 500 last_valid_uid = 50000 first_valid_gid = 500 last_valid_gid = 50000 protocol imap { imap_client_workarounds = outlook-idle mail_plugins = acl imap_acl } protocol pop3 { pop3_uidl_format = %08Xu%08Xv } protocol managesieve { mail_location = mbox:~/ } protocol lda { postmaster_address = postmasterk at chronopay.ru mail_plugin_dir = /usr/lib/dovecot/modules/lda auth_socket_path = /var/run/dovecot/auth-master mail_plugins = acl sieve } auth default { mechanisms = plain login #digest-md5 cram-md5 passdb ldap { args = /etc/dovecot/dovecot-ldap.conf } passdb sql { args = /etc/dovecot/dovecot-sql.conf } #userdb ldap { # args = /etc/dovecot/dovecot-ldap.conf # } userdb static { args = uid=5000 gid=5000 home=/.mail/%d/%n } user = root socket listen { master { path = /var/run/dovecot/auth-master mode = 0660 user = vmail # User running Dovecot LDA group = vmail # Or alternatively mode 0660 + LDA user in this group } client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } } plugin { sieve = ~/.dovecot.sieve sieve_dir=~/sieve acl = vfile acl_shared_dict = file:/.mail/%d/shared-mailboxes.db } And all seems ok, but I cannot understand how to make delet flag per user. If I permit t and e in ACL, users delet message forever for all. -- Software is like sex, it is better when it's free From upendra.gandhi at gmail.com Fri May 6 16:31:44 2011 From: upendra.gandhi at gmail.com (upen) Date: Fri, 6 May 2011 08:31:44 -0500 Subject: [Dovecot] alpine + Maildir In-Reply-To: <4DC39617.2050103@wit.edu.pl> References: <4DC39617.2050103@wit.edu.pl> Message-ID: > on my alpine in pine.conf we have settings: > inbox-path=#md//var/spool/mail/$USER > > and alpine is: > oceanic:~# rpm -qa alpine > alpine-2.02-1.fc14.x86_64 > > and it works. Thanks for helping out. Just want to confirm. Is /var/spool/mail/$USER maildir format or mbox I have read that mailbox location generally used for mbox format. If it is maildir format, then one more question, are you able to see all folders in the maildir or just INBOX using that setting? Thanks, UG 2011/5/6 Bart?omiej Solarz-Nies?uchowski : > W dniu 2011-05-05 23:43, upen pisze: >> >> Hello, >> >> I am trying to configure pine.conf for all users and running into an >> issue. In this setup, Mailbox format is Maildir and Maildir location >> is /Mail/Username/{new,cur,..etc} >> >> First thing required in alpine was patch for maildir and this has >> already been done. After that I have tried setting up >> folder-collection Mail ?#md ../../Mail/username and also tried using >> #mc (not sure which one is correct #md or #mc). Nothing worked. >> >> If maildir support in alpine does not work like it does for mbox then >> I'll have to configure IMAP setings in pine.conf for alpine users. I >> must say that alpine is installed on mail server :). Although IMAP >> setting may work fine, it will prompt user for password initially when >> checking email and while sending first email. I'd like to avoid this >> by using #md or #mc. >> >> If anyone has any useful inputs please let me know. > > on my alpine in pine.conf we have settings: > inbox-path=#md//var/spool/mail/$USER > > and alpine is: > oceanic:~# rpm -qa alpine > alpine-2.02-1.fc14.x86_64 > > and it works. >> >> Thank you! >> UG. > > > -- > Bart?omiej Solarz-Nies?uchowski, Administrator WSISiZ > e-mail: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl > tel. 223486547, fax 223486501 > JID: solarz at jabber.wit.edu.pl > 01-447 Warszawa, ul. Newelska 6, pok?j 404, pon.-pt. 8-16 > Motto - Jak sobie po?cielisz tak sie wy?pisz > > > -- upen, emerge -uD life (Upgrade Life with dependencies) From upendra.gandhi at gmail.com Fri May 6 16:35:40 2011 From: upendra.gandhi at gmail.com (upen) Date: Fri, 6 May 2011 08:35:40 -0500 Subject: [Dovecot] alpine + Maildir In-Reply-To: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> Message-ID: > You can configure Alpine to execute Dovecot's imap binary and talk to it. That makes it work nicely with Dovecot and won't prompt >the user for a password. If you're using v1.x you can run "dovecot --exec-mail imap" and with v2.0 you just need to run "imap". I don't >know specifically what this setting in Alpine is called. I am running dovecot 2.0-0.10.beta6.20100630.el6.x86_64. Now this is new to me that you can call a dovecot-imap binary from alpine but how and where does this setting go is a question for me now. I will try going through pine.conf. Thanks for your advice. ~UG On Fri, May 6, 2011 at 2:11 AM, Timo Sirainen wrote: > On 5.5.2011, at 23.43, upen wrote: > >> If maildir support in alpine does not work like it does for mbox then >> I'll have to configure IMAP setings in pine.conf for alpine users. I >> must say that alpine is installed on mail server :). Although IMAP >> setting may work fine, it will prompt user for password initially when >> checking email and while sending first email. I'd like to avoid this >> by using #md or #mc. > > You can configure Alpine to execute Dovecot's imap binary and talk to it. That makes it work nicely with Dovecot and won't prompt the user for a password. If you're using v1.x you can run "dovecot --exec-mail imap" and with v2.0 you just need to run "imap". I don't know specifically what this setting in Alpine is called. > > -- upen, emerge -uD life (Upgrade Life with dependencies) From Bartlomiej.Solarz-Niesluchowski at wit.edu.pl Fri May 6 16:45:31 2011 From: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl (=?ISO-8859-2?Q?Bart=B3omiej_Solarz-Nies=B3uchowski?=) Date: Fri, 06 May 2011 15:45:31 +0200 Subject: [Dovecot] alpine + Maildir In-Reply-To: References: <4DC39617.2050103@wit.edu.pl> Message-ID: <4DC3FB7B.3010003@wit.edu.pl> W dniu 2011-05-06 15:31, upen pisze: >> on my alpine in pine.conf we have settings: >> inbox-path=#md//var/spool/mail/$USER >> >> and alpine is: >> oceanic:~# rpm -qa alpine >> alpine-2.02-1.fc14.x86_64 >> >> and it works. > Thanks for helping out. Just want to confirm. > > Is /var/spool/mail/$USER maildir format or mbox I have read that > mailbox location generally used for mbox format. maildir > If it is maildir format, then one more question, are you able to see > all folders in the maildir or just INBOX using that setting? folder-collections=Mail #md/Maildir/.mail.[] > Thanks, > UG > > 2011/5/6 Bart?omiej Solarz-Nies?uchowski > : >> W dniu 2011-05-05 23:43, upen pisze: >>> Hello, >>> >>> I am trying to configure pine.conf for all users and running into an >>> issue. In this setup, Mailbox format is Maildir and Maildir location >>> is /Mail/Username/{new,cur,..etc} >>> >>> First thing required in alpine was patch for maildir and this has >>> already been done. After that I have tried setting up >>> folder-collection Mail #md ../../Mail/username and also tried using >>> #mc (not sure which one is correct #md or #mc). Nothing worked. >>> >>> If maildir support in alpine does not work like it does for mbox then >>> I'll have to configure IMAP setings in pine.conf for alpine users. I >>> must say that alpine is installed on mail server :). Although IMAP >>> setting may work fine, it will prompt user for password initially when >>> checking email and while sending first email. I'd like to avoid this >>> by using #md or #mc. >>> >>> If anyone has any useful inputs please let me know. >> on my alpine in pine.conf we have settings: >> inbox-path=#md//var/spool/mail/$USER >> >> and alpine is: >> oceanic:~# rpm -qa alpine >> alpine-2.02-1.fc14.x86_64 >> >> and it works. >>> Thank you! >>> UG. >> >> -- >> Bart?omiej Solarz-Nies?uchowski, Administrator WSISiZ >> e-mail: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl >> tel. 223486547, fax 223486501 >> JID: solarz at jabber.wit.edu.pl >> 01-447 Warszawa, ul. Newelska 6, pok?j 404, pon.-pt. 8-16 >> Motto - Jak sobie po?cielisz tak sie wy?pisz >> >> >> > > -- Bart?omiej Solarz-Nies?uchowski, Administrator WSISiZ e-mail: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl tel. 223486547, fax 223486501 JID: solarz at jabber.wit.edu.pl 01-447 Warszawa, ul. Newelska 6, pok?j 404, pon.-pt. 8-16 Motto - Jak sobie po?cielisz tak sie wy?pisz -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6020 bytes Desc: S/MIME Cryptographic Signature URL: From robert at schetterer.org Fri May 6 16:57:23 2011 From: robert at schetterer.org (Robert Schetterer) Date: Fri, 06 May 2011 15:57:23 +0200 Subject: [Dovecot] IMAP push In-Reply-To: <4DC3D74D.2040804@ofd-z.niedersachsen.de> References: <20110505105843.GA25050@laptop-dg.leere.eu> <4DC3D74D.2040804@ofd-z.niedersachsen.de> Message-ID: <4DC3FE43.1020200@schetterer.org> Am 06.05.2011 13:11, schrieb Marc Patermann: > Hi, > > Dennis Guhl schrieb am 05.05.2011 12:58 Uhr: >> On Thu, May 05, 2011 at 03:53:29PM +0530, Janantha Marasinghe wrote: >>> Im running dovecot v2 and want to know if it supports IMAP push >>> capabilities. >> >> Dovecot supports IMAP IDLE as in RFC 2177 >> (http://tools.ietf.org/html/rfc2177). >> >>> I have a few client who has blackberries, iphones and tabs. >> >> Blackberries are using their own proprietary form of push service in >> conjunction a Blackberry Enterprise Server. None the less they are >> able to use IMAP IDLE like iPhones and other smartphones or tablet PCs. > There ist Z-Push, which I haven't tested, yet. > http://z-push.sourceforge.net/soswp/ > There is even a session called "Connecting mobile Devices with Z-Push > and Zarafa/Dovecot" at the "Mailserver-Konferenz", Berlin 26th of May. > :) > http://www.heinlein-support.de/mailserver-konferenz/2011/vortrag/mobile-geraete-mit-z-push-und-zarafa-dovecot > > > Marc imap push means something like imap lemonade http://www.lemonadeformobiles.com/ which is in the roadmap for dovecot , but not urgent unless there not so many clients using it meanwhile z-push is a good alternative, normally install with apache webserver php on the dovecot server on android use k9 mail as best imap solution ( no need for z-push etc ) dont know about good alternative imap clients vor iphone or blackberry -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From upendra.gandhi at gmail.com Fri May 6 17:36:29 2011 From: upendra.gandhi at gmail.com (upen) Date: Fri, 6 May 2011 09:36:29 -0500 Subject: [Dovecot] alpine + Maildir In-Reply-To: <4DC3FB7B.3010003@wit.edu.pl> References: <4DC39617.2050103@wit.edu.pl> <4DC3FB7B.3010003@wit.edu.pl> Message-ID: >> >> Is /var/spool/mail/$USER maildir format or mbox I have read that >> mailbox location generally used for mbox format. > > maildir >> >> If it is maildir format, then one more question, are you able to see >> all folders in the maildir or just INBOX using that setting? > > folder-collections=Mail #md/Maildir/.mail.[] Thank you very much for the quick confirmation. If I use #md in my configuration then alpine would show below error message [Can't open folder #md../../Maildir/mail/username/: no such folder] So I changed settings as below,(Note: maildir location in dovecot is /Maildir/mail/username and mail gets dropped there so there is no ~Maildir in users home directory) inbox-path=../../Maildir/mail/username/ maildir-location=../Maildir/mail/username folder-collections=Mail /Maildir/mail/username/.[] Now pine does not complain and I can read inbox and see folders, however one issue : [/] as a folder after every other actual folder , as below INBOX ABCD[/] Drafts[/] Queue[/] Saved[/] Sent[/] Trash[/] hello[/] I wonder if there is a way to configure such that [/] folder will not appear as this way user will have to hit tab twice to see next folder. If I hit enter key on [/] then there is nothing inside but a note saying it is a maildirfolder. If I select ABCD then it works as expected. Any idea? Thanks, UG From alietsantiesteban at gmail.com Fri May 6 17:38:53 2011 From: alietsantiesteban at gmail.com (Aliet Santiesteban Sifontes) Date: Fri, 6 May 2011 10:38:53 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: <4DC3D251.4050004@Media-Brokers.com> References: <4DC3D251.4050004@Media-Brokers.com> Message-ID: the configs: [root at n02 ~]# dovecot -n # 2.0.12: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.24.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 6.0 (Santiago) auth_cache_size = 15 M auth_default_realm = test.com auth_mechanisms = plain login auth_worker_max_count = 60 disable_plaintext_auth = no login_greeting = Server ready. mail_fsync = never mail_location = sdbox:~/sdbox:INDEX=/vmail/index/%n mail_plugins = quota zlib managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mbox_write_locks = fcntl mmap_disable = yes namespace { inbox = yes location = prefix = separator = / } passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { autocreate = Sent autocreate2 = Trash autocreate3 = Drafts autocreate4 = Junk autocreate5 = Archives autocreate6 = Templates autosubscribe = Sent autosubscribe2 = Trash autosubscribe3 = Drafts autosubscribe4 = Junk autosubscribe5 = Archives autosubscribe6 = Templates quota = dict:User quota::file:%h/sdbox/dovecot-quota quota_rule = *:storage=250M quota_rule2 = Trash:storage=+50M quota_rule3 = Spam:storage=+25M quota_rule4 = Sent:ignore sieve = ~/.dovecot.sieve sieve_before = /var/vmail/sievescripts/before.d sieve_dir = ~/sieve zlib_save = gz zlib_save_level = 6 } postmaster_address = postmaster at test.com protocols = imap pop3 lmtp sieve service auth { unix_listener auth-userdb { group = vmail mode = 0660 user = root } } service imap-login { service_count = 0 } best regards 2011/5/6 Charles Marcus > On 2011-05-05 7:56 PM, Aliet Santiesteban Sifontes wrote: > > We have used sdbox as mailbox format, and all the user data is configured > in > > LDAP Servers > > It might help Timo to provide some suggestions if you also provide > dovecot -n output... ;) > > -- > > Best regards, > > Charles > From dg at dguhl.org Fri May 6 18:02:26 2011 From: dg at dguhl.org (Dennis Guhl) Date: Fri, 6 May 2011 17:02:26 +0200 Subject: [Dovecot] IMAP push In-Reply-To: <4DC3FE43.1020200@schetterer.org> References: <20110505105843.GA25050@laptop-dg.leere.eu> <4DC3D74D.2040804@ofd-z.niedersachsen.de> <4DC3FE43.1020200@schetterer.org> Message-ID: <20110506150226.GB27485@PC211.ikt.de> On Fri, May 06, 2011 at 03:57:23PM +0200, Robert Schetterer wrote: [..] > >> On Thu, May 05, 2011 at 03:53:29PM +0530, Janantha Marasinghe wrote: > >>> Im running dovecot v2 and want to know if it supports IMAP push > >>> capabilities. [..] > imap push means something like imap lemonade No, the LEMONADE profile (RFC 4550) is a set of extensions for IMAP. The focus is on saving bandwith and CPU while working with email on mobile devices and similar limited items. For this it describes how to handle email without the need to completely download it for replying or forwarding. There is nothing about push mail. Howerver IDLE is mentioned as an additionally extension which must be supportet. If you take a look on the website, you will see the push functionality is only a reference to IMAP IDLE as in RFC 2177. [..] > on android use k9 mail as best imap solution ( no need for z-push etc ) > dont know about good alternative imap clients vor iphone or blackberry I don't know about iPhones IMAP client but the default IMAP client for Blackberries is very good -- even better then K9, which I use on my Android. Dennis From CMarcus at Media-Brokers.com Fri May 6 18:04:26 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Fri, 06 May 2011 11:04:26 -0400 Subject: [Dovecot] alpine + Maildir In-Reply-To: References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> Message-ID: <4DC40DFA.8060209@Media-Brokers.com> On 2011-05-06 9:35 AM, upen wrote: > I am running dovecot 2.0-0.10.beta6.20100630.el6.x86_64 A very early beta of 2.0... first thing on our list of action items is (or should be) to update to the latest stable RELEASE version. -- Best regards, Charles From upendra.gandhi at gmail.com Fri May 6 18:10:15 2011 From: upendra.gandhi at gmail.com (upen) Date: Fri, 6 May 2011 10:10:15 -0500 Subject: [Dovecot] alpine + Maildir In-Reply-To: <4DC40DFA.8060209@Media-Brokers.com> References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> <4DC40DFA.8060209@Media-Brokers.com> Message-ID: On Fri, May 6, 2011 at 10:04 AM, Charles Marcus wrote: > On 2011-05-06 9:35 AM, upen wrote: >> I am running dovecot 2.0-0.10.beta6.20100630.el6.x86_64 > > A very early beta of 2.0... first thing on our list of action items is > (or should be) to update to the latest stable RELEASE version. > Well, this is what RHEL 6 's stable repo currently offers and I want to stick with repo assuming this version is stable on RHEL 6 atleast. yum info dovecot Loaded plugins: downloadonly, rhnplugin Installed Packages Name : dovecot Arch : x86_64 Epoch : 1 Version : 2.0 Release : 0.10.beta6.20100630.el6 Any idea on pine ? I guess there not many alpine users on this list..:) From dovecot.fdop at tagged.lorens.org Fri May 6 18:14:45 2011 From: dovecot.fdop at tagged.lorens.org (Lorens Kockum) Date: Fri, 6 May 2011 17:14:45 +0200 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <20110505214325.GA27864@tagged.lorens.org> References: <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> <89819.25453.qm@web27208.mail.ukl.yahoo.com> <20110505214325.GA27864@tagged.lorens.org> <20110506112830.GI22116579@CIS.FU-Berlin.DE> Message-ID: <20110506151445.GA8245@tagged.lorens.org> I did leave a little almost on-purpose dangling hint that got me an off-list query... Since I'm replying, I might as well reply on-list for the record, even if this is getting off-topic. I've just about exhausted my knowledge on the subject, so further questions will probably find a more attentive audience on some NTP list :-) A reader wrote: > You wrote "probably" but isn't it common to sync against a stratum 1 server > having some GPS clock attached? I assume that most computer centers operate > a stratum 1 time server today and stratum of clients should be between > 2 (!) and 5. Most scientific computing centers maybe, but business people probably don't. In my experience most people who run stratum-1 servers impose limitations on their clients, like asking for permission, registering, signing up for their mailing list, running public stratum-2 servers... or being in the same organization as them, which certainly seems to be your case :-) I suppose the most common reason for restrictions like these would be that with more than n clients, the server will start having problems, bandwidth, latency, whatever. Maybe n is a large number, but then again maybe not, after all we're talking about milliseconds. I'm not sure what it would take to run a stratum-1 service with under one hundredth of second of jitter if that service gets used as the default for new Debian or RedHat installs, but I'm quite certain I don't want to pay for the hardware or the bandwidth! Registering for a mailing list is also important when the service is really really important. You don't need to take my word for it: http://support.ntp.org/bin/view/Servers/RulesOfEngagement As for stratum-2 servers, there are lots of public ones with no restrictions other than running a reasonably well-behaved ntp implementation. The difference being synced to a stratum-1 or a stratum-2 is negligeable; and most people who have reasons for milli-second accuracy want it between their own servers. They will run a set of NTP servers, stratum 1, 2 or 3, and sync all of their other servers to them. For many or even most uses it won't matter if they are a several milli-seconds off with respect to some atomic clock as long as they are internally consistent. It is my opinion that someone like the OP, who wants his servers to be on time but who does not seem professionally interested in running an NTP server or in having milli-second accuracy, should not be peering with a stratum-1 server. That is the reason I wrote stratum-3 and not stratum-2 :-) Just to be complete, on the other side of the spectrum, I think we agree that with such a lot of stratum-2 servers to choose from, it seems unnecessary to have a stratum above 5. You'd be at 5 if you sync to your organization's stratum-4 syncing to your ISP's stratum-3 syncing to public stratum-2s... maybe a multi-site organization would run an NTP service for every site, but then they'd probably sync their main servers directly to stratum-2 servers instead of to their ISP, so that'd cancel out. HTH From tss at iki.fi Fri May 6 20:28:04 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 6 May 2011 19:28:04 +0200 Subject: [Dovecot] Delete unused IMAP keywords from permanetflags In-Reply-To: References: Message-ID: On 6.5.2011, at 12.26, Ernesto Revilla Derksen wrote: > I'm using dovecot 2.0.9. Is there already a way to remove unused IMAP > keywords from a folder? I've thought about implementing it, but haven't yet. I thought that maybe it could remove them only when adding a new keyword, or possibly after it hadn't been used for n days (e.g. a month). Also I had thought about adding new IMAP commands to add/remove keywords. From CMarcus at Media-Brokers.com Fri May 6 20:42:45 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Fri, 06 May 2011 13:42:45 -0400 Subject: [Dovecot] alpine + Maildir In-Reply-To: References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> <4DC40DFA.8060209@Media-Brokers.com> Message-ID: <4DC43315.4060708@Media-Brokers.com> On 2011-05-06 11:10 AM, upen wrote: > Well, this is what RHEL 6 's stable repo currently offers Well, if you're not willing to upgrade to at least a reasonably stable RELEASE version, don't be surprised if you get little to no help. I'll never understand this attitude... -- Best regards, Charles From upendra.gandhi at gmail.com Fri May 6 21:08:15 2011 From: upendra.gandhi at gmail.com (upen) Date: Fri, 6 May 2011 13:08:15 -0500 Subject: [Dovecot] alpine + Maildir In-Reply-To: <4DC43315.4060708@Media-Brokers.com> References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> <4DC40DFA.8060209@Media-Brokers.com> <4DC43315.4060708@Media-Brokers.com> Message-ID: On Fri, May 6, 2011 at 12:42 PM, Charles Marcus wrote: > On 2011-05-06 11:10 AM, upen wrote: >> Well, this is what RHEL 6 's stable repo currently offers > > Well, if you're not willing to upgrade to at least a reasonably stable > RELEASE version, don't be surprised if you get little to no help. > > I'll never understand this attitude... All I understand is that the issue I am having is not due to the version of dovecotthat is installed. If I know that this is not working due to beta version then I am willing to upgrade. Thanks for your opinion. From kjonca at o2.pl Fri May 6 23:07:35 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Fri, 06 May 2011 22:07:35 +0200 Subject: [Dovecot] compressed mboxes very slow Message-ID: <87iptnoans.fsf@alfa.kjonca> I have some archive mails in gzipped mboxes. I could use them with dovecot 1.x without problems. But recently I have installed dovecot 2.0.12, and they are slow. very slow. Creating index files takes about 10 minutes for ~20M file with 560 messages for bzipped mbox, for gzipped is little better but still unusable :( Stracing dovecot process shows that every ~ 20 messages it rereads complete mbox file. Am I doing something wrong? KJ -- http://modnebzdury.wordpress.com/2009/10/01/niewiarygodny-list-prof-majewskiej-wprowadzenie/ From pllis at educ.ar Fri May 6 23:14:44 2011 From: pllis at educ.ar (Pablo Luchetti) Date: Fri, 06 May 2011 17:14:44 -0300 Subject: [Dovecot] vacation problem with sieve and sogo Message-ID: <4DC456B4.7000205@educ.ar> Hi, I have a problem with dovecot's sieve and SOGo ( http://www.sogo.nu/ ) I have installed last version of sogo ( 1.3.6) in one virtual machine with ubuntu, lucid. In another virtualmachine with ubuntu jaunty is running dovecot ( 1:1.1.11-0ubuntu4.1 ) When try to activate vacation function, after the "PUTSCRIPT "sogo" command, the manage-sieve answer: NO "Script name 'sogo' is reserved for internal use." And fails. But I found, telneting the mail server on port 2000 that if I change script name, all works fine: SETACTIVE "" OK "No scripts currently active." PUTSCRIPT "prueba" {536+} require ["vacation"]; if allof ( not exists ["list-help", "list-unsubscribe", "list-subscribe", "list-owner", "list-post", "list-archive", "list-id", "Mailing-List"], not header :comparator "i;ascii-casemap" :is "Precedence" ["list", "bulk", "junk"], not header :comparator "i;ascii-casemap" :matches "To" "Multiple recipients of*" ) {vacation :days 1 :addresses ["pluchetti at example.org", "pablo.luchetti at example.org"] text: hoy es 27 de abril de 2011, y estoy probando el nuevo sogo. 10:40 . ; } redirect "pllis at educ.ar"; keep; OK "Putscript completed." SETACTIVE "prueba" OK "Setactive completed." logout OK "Logout completed." Connection closed by foreign host. So, the question is: Why does this happen? How can I fix it ? Any ideas? Here are dovecot's version and config: # dovecot --version 1.1.11 # dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-18-server i686 Ubuntu 9.04 log_path: /var/log/mail/dovecot-msa.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/local/WILD.jil_01+CHAIN.crt ssl_key_file: /etc/ssl/private/WILD.jil_01.key login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_greeting: JIL mail server ready. first_valid_uid: 106 last_valid_uid: 106 first_valid_gid: 112 last_valid_gid: 112 mail_privileged_group: mail mail_uid: vmail mail_gid: vmail mail_location: maildir:~ mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 auth default: mechanisms: plain login user: vmailauth passdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf userdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf socket: type: listen client: path: /var/spool/postfix/private/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: sieve: ~/sieve/s0g0.sieve Thanks!! Pablo. From matt at gr-lakes.com Sat May 7 01:54:05 2011 From: matt at gr-lakes.com (Matt Mc Namara) Date: Fri, 6 May 2011 18:54:05 -0400 (EDT) Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working Message-ID: Hi, I'm trying to get sieve working with dovecot. I seem to have everything enabled but my scripts done seem to work. both sieve-filter (2000) and sieve (4190) are running along with pop3 and imap. I have a simple script which checks the email address and moves it to a folder. I'm at a loss as to what to check next. Thanks in advance, Matt From trish.programmer at gmail.com Sat May 7 05:58:21 2011 From: trish.programmer at gmail.com (Trish) Date: Fri, 06 May 2011 19:58:21 -0700 Subject: [Dovecot] could someone check my conf files for dovecot and postfix In-Reply-To: <4DC4B36D.4090708@gmail.com> References: <4DC4B36D.4090708@gmail.com> Message-ID: <4DC4B54D.3090008@gmail.com> *> dovecot -n* # 1.2.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-31-generic i686 Ubuntu 10.04.2 LTS log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap pop3 imaps pop3s disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login mail_privileged_group: mail mail_location: maildir:~/Maildir mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 auth default: passdb: driver: pam userdb: driver: passwd I get this error in my log May 6 20:33:00 craftboard dovecot: IMAP(support.perlygates.com): mail_location: maildir: Unknown setting: mbox May 6 20:33:00 craftboard dovecot: IMAP(support.perlygates.com): Fatal: Namespace initialization failed I'm not sure what mbox is. But I am using the Maildir/ in conf file Where is mbox set at? From alietsantiesteban at gmail.com Sat May 7 06:01:09 2011 From: alietsantiesteban at gmail.com (Aliet Santiesteban Sifontes) Date: Fri, 6 May 2011 23:01:09 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: References: <4DC3D251.4050004@Media-Brokers.com> Message-ID: New results, now with all plugins disabled: os rhel6 x86_64, GFS2 Lun Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 1- 4514 2189 2250 4514 4264 6163 709 3403 4260 4292 8726 2- 2827 1409 1389 2827 2765 3951 495 2168 2765 2777 5644 3- 2711 1409 1368 2711 2649 3833 512 2145 2647 2662 5396 4- 1799 912 890 1799 1720 2492 360 1370 1719 1735 3592 5- 3817 1869 1896 3760 3717 5313 575 3026 3715 3737 7616 6- 3296 1583 1628 3296 3215 4585 523 2600 3215 3238 6584 2011/5/6 Aliet Santiesteban Sifontes > the configs: > > [root at n02 ~]# dovecot -n > # 2.0.12: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.32-71.24.1.el6.x86_64 x86_64 Red Hat Enterprise Linux > Server release 6.0 (Santiago) > auth_cache_size = 15 M > auth_default_realm = test.com > auth_mechanisms = plain login > auth_worker_max_count = 60 > disable_plaintext_auth = no > login_greeting = Server ready. > mail_fsync = never > mail_location = sdbox:~/sdbox:INDEX=/vmail/index/%n > mail_plugins = quota zlib > managesieve_notify_capability = mailto > managesieve_sieve_capability = fileinto reject envelope encoded-character > vacation subaddress comparator-i;ascii-numeric relational regex imap4flags > copy include variables body enotify environment mailbox date > mbox_write_locks = fcntl > mmap_disable = yes > namespace { > inbox = yes > location = > prefix = > separator = / > } > passdb { > args = /etc/dovecot/dovecot-ldap.conf.ext > driver = ldap > } > plugin { > autocreate = Sent > autocreate2 = Trash > autocreate3 = Drafts > autocreate4 = Junk > autocreate5 = Archives > autocreate6 = Templates > autosubscribe = Sent > autosubscribe2 = Trash > autosubscribe3 = Drafts > autosubscribe4 = Junk > autosubscribe5 = Archives > autosubscribe6 = Templates > quota = dict:User quota::file:%h/sdbox/dovecot-quota > quota_rule = *:storage=250M > quota_rule2 = Trash:storage=+50M > quota_rule3 = Spam:storage=+25M > quota_rule4 = Sent:ignore > sieve = ~/.dovecot.sieve > sieve_before = /var/vmail/sievescripts/before.d > sieve_dir = ~/sieve > zlib_save = gz > zlib_save_level = 6 > } > postmaster_address = postmaster at test.com > protocols = imap pop3 lmtp sieve > service auth { > unix_listener auth-userdb { > group = vmail > mode = 0660 > user = root > } > } > service imap-login { > service_count = 0 > } > > best regards > > > 2011/5/6 Charles Marcus > >> On 2011-05-05 7:56 PM, Aliet Santiesteban Sifontes wrote: >> > We have used sdbox as mailbox format, and all the user data is >> configured in >> > LDAP Servers >> >> It might help Timo to provide some suggestions if you also provide >> dovecot -n output... ;) >> >> -- >> >> Best regards, >> >> Charles >> > > From robert.spam.me.senseless at gmail.com Sat May 7 07:08:07 2011 From: robert.spam.me.senseless at gmail.com (Robert S) Date: Sat, 7 May 2011 14:08:07 +1000 Subject: [Dovecot] Modified dovecot_deleted_to_trash-0.3.ebuild plugin Message-ID: I have just upgraded my gentoo system to dovecot 2.0.11. The ebuild on http://wiki2.dovecot.org/Plugins/deleted-to-trash does not compile. I have modified this to a working version - see below. # cat dovecot_deleted_to_trash-0.3.ebuild EAPI="2" DESCRIPTION="Deleted to trash IMAP plugin for Dovecot" HOMEPAGE="http://wiki2.dovecot.org/Plugins/deleted-to-trash" RESTRICT="nomirror" SRC_URI="http://wiki2.dovecot.org/Plugins/deleted-to-trash?action=AttachFile&do=get&target=deleted-to-trash-plugin_0.3_for_dovecot_2.tar -> ${P}.tar" LICENSE="" KEYWORDS="~amd64 ~x86" SLOT="0" IUSE="" RDEPEND="net-mail/dovecot" src_unpack() { unpack ${A} sed -i "8s|DOVECOT_IMAP_PLUGIN_PATH\ \=\ /usr/lib/dovecot/imap|DOVECOT_IMAP_PLUGIN_PATH\ \=\ /usr/lib/dovecot|" Makefile } src_install() { emake DESTDIR="${D}" install || die } From robert at schetterer.org Sat May 7 09:55:34 2011 From: robert at schetterer.org (Robert Schetterer) Date: Sat, 07 May 2011 08:55:34 +0200 Subject: [Dovecot] IMAP push In-Reply-To: <20110506150226.GB27485@PC211.ikt.de> References: <20110505105843.GA25050@laptop-dg.leere.eu> <4DC3D74D.2040804@ofd-z.niedersachsen.de> <4DC3FE43.1020200@schetterer.org> <20110506150226.GB27485@PC211.ikt.de> Message-ID: <4DC4ECE6.6070607@schetterer.org> Am 06.05.2011 17:02, schrieb Dennis Guhl: > On Fri, May 06, 2011 at 03:57:23PM +0200, Robert Schetterer wrote: > > [..] > >>>> On Thu, May 05, 2011 at 03:53:29PM +0530, Janantha Marasinghe wrote: >>>>> Im running dovecot v2 and want to know if it supports IMAP push >>>>> capabilities. > > [..] > >> imap push means something like imap lemonade > > No, the LEMONADE profile (RFC 4550) is a set of extensions for IMAP. > The focus is on saving bandwith and CPU while working with email on > mobile devices and similar limited items. For this it describes how to > handle email without the need to completely download it for replying > or forwarding. There is nothing about push mail. Howerver IDLE is > mentioned as an additionally extension which must be supportet. > > If you take a look on the website, you will see the push functionality > is only a reference to IMAP IDLE as in RFC 2177. > > [..] > >> on android use k9 mail as best imap solution ( no need for z-push etc ) >> dont know about good alternative imap clients vor iphone or blackberry > > I don't know about iPhones IMAP client but the default IMAP client for > Blackberries is very good -- even better then K9, which I use on my > Android. > > Dennis notice i wrote "like" not "it is" http://www.lemonadeformobiles.com/quick.html --snip 'Push' Email (via IMAP-IDLE) When there is ongoing activity between the client and the server, IMAP will automatically inform the client of the presence of new messages. The IMAP IDLE command, which is a widely implemented standard extension to the core IMAP protocol and contained within the LEMONADE Profile, ensures that the server will inform the client of new messages even when there is no other activity taking place between client and server. IDLE maintains the connection by issuing a 'NOOP' command, usually every 15 minutes, to ensure that the connection isn't disrupted by a timeout. The main types of timeouts that usually occur are: IMAP server timeout: Typically occurs after 30 minutes with no activity. Underlying TCP connection timeout: Usually after a few hours. NAT Gateway timeout: Most mobile devices access the Internet through a device operated by the mobile service provider called a NAT (Network Address Translation) gateway. These will typically time out an idle connection after 15 minutes. NOOP (No Operation) performs no action other than having the server send an 'OK' reply and exchanges a bandwidth efficient few bytes of data. --snip-end -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From stephan at rename-it.nl Sat May 7 10:05:55 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Sat, 07 May 2011 09:05:55 +0200 Subject: [Dovecot] vacation problem with sieve and sogo In-Reply-To: <4DC456B4.7000205@educ.ar> References: <4DC456B4.7000205@educ.ar> Message-ID: <4DC4EF53.2050108@rename-it.nl> On 5/6/2011 10:14 PM, Pablo Luchetti wrote: > Hi, I have a problem with dovecot's sieve and SOGo ( > http://www.sogo.nu/ ) > > I have installed last version of sogo ( 1.3.6) in one virtual machine > with ubuntu, lucid. > In another virtualmachine with ubuntu jaunty is running dovecot ( > 1:1.1.11-0ubuntu4.1 ) > > When try to activate vacation function, after the "PUTSCRIPT "sogo" > command, the manage-sieve answer: > > NO "Script name 'sogo' is reserved for internal use." > plugin: > sieve: ~/sieve/s0g0.sieve > The default for sieve_dir is '~/sieve/', so now you are putting the active script symlink (as configured with sieve=) in the sieve storage. This is never a good idea, because that symlink may be confused with a normal script. To prevent issues, the ManageSieve daemon prevents you from using the symlink as a scriptname. Why did you configure it like that? If you remove the above line, or change it to something sensible, like the default value sieve=~/.dovecot.sieve, it will work normally. Regards, Stephan. From stephan at rename-it.nl Sat May 7 10:31:52 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Sat, 07 May 2011 09:31:52 +0200 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working In-Reply-To: References: Message-ID: <4DC4F568.5070204@rename-it.nl> On 5/7/2011 12:54 AM, Matt Mc Namara wrote: > Hi, > > I'm trying to get sieve working with dovecot. I seem to have > everything enabled but my scripts done seem to work. > both sieve-filter (2000) and sieve (4190) are running > Uh, what do you mean with sieve-filter in this case? Regarding your problem: - Make sure you are using the Dovecot LDA (http://wiki2.dovecot.org/LDA) and/or LMTP (http://wiki2.dovecot.org/LMTP). - Make sure the LDA Sieve plugin is enabled (http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration) - Make sure that the sieve scripts are found. You can obtain more information by enabling mail_debug. If the above does not solve your problem, it is important to post your dovecot -n output here. Regards, Stephan. From dg at dguhl.org Sat May 7 10:47:06 2011 From: dg at dguhl.org (Dennis Guhl) Date: Sat, 7 May 2011 09:47:06 +0200 Subject: [Dovecot] OT: Re: IMAP push In-Reply-To: <4DC4ECE6.6070607@schetterer.org> References: <20110505105843.GA25050@laptop-dg.leere.eu> <4DC3D74D.2040804@ofd-z.niedersachsen.de> <4DC3FE43.1020200@schetterer.org> <20110506150226.GB27485@PC211.ikt.de> <4DC4ECE6.6070607@schetterer.org> Message-ID: <20110507074705.GA4152@laptop-dg.leere.eu> This is going far off topic, let's take it off list. On Sat, May 07, 2011 at 08:55:34AM +0200, Robert Schetterer wrote: > Am 06.05.2011 17:02, schrieb Dennis Guhl: > > On Fri, May 06, 2011 at 03:57:23PM +0200, Robert Schetterer wrote: [..] > >> imap push means something like imap lemonade > > > > No, the LEMONADE profile (RFC 4550) is a set of extensions for IMAP. > > The focus is on saving bandwith and CPU while working with email on > > mobile devices and similar limited items. For this it describes how to > > handle email without the need to completely download it for replying > > or forwarding. There is nothing about push mail. Howerver IDLE is > > mentioned as an additionally extension which must be supportet. > > > > If you take a look on the website, you will see the push functionality > > is only a reference to IMAP IDLE as in RFC 2177. [..] > notice i wrote "like" not "it is" I know what you wrote and it still is not correct. > http://www.lemonadeformobiles.com/quick.html This sounds like my abstract of the LEMONADE profile, just more verbose. [abstract_(peroration)_of_RFC2177] This is the reference to IMAP IDLE I talked about earlier. Dennis From robert at schetterer.org Sat May 7 10:57:25 2011 From: robert at schetterer.org (Robert Schetterer) Date: Sat, 07 May 2011 09:57:25 +0200 Subject: [Dovecot] OT: Re: IMAP push In-Reply-To: <20110507074705.GA4152@laptop-dg.leere.eu> References: <20110505105843.GA25050@laptop-dg.leere.eu> <4DC3D74D.2040804@ofd-z.niedersachsen.de> <4DC3FE43.1020200@schetterer.org> <20110506150226.GB27485@PC211.ikt.de> <4DC4ECE6.6070607@schetterer.org> <20110507074705.GA4152@laptop-dg.leere.eu> Message-ID: <4DC4FB65.3030204@schetterer.org> Am 07.05.2011 09:47, schrieb Dennis Guhl: > This is going far off topic, let's take it off list. > > On Sat, May 07, 2011 at 08:55:34AM +0200, Robert Schetterer wrote: >> Am 06.05.2011 17:02, schrieb Dennis Guhl: >>> On Fri, May 06, 2011 at 03:57:23PM +0200, Robert Schetterer wrote: > > [..] > >>>> imap push means something like imap lemonade >>> >>> No, the LEMONADE profile (RFC 4550) is a set of extensions for IMAP. >>> The focus is on saving bandwith and CPU while working with email on >>> mobile devices and similar limited items. For this it describes how to >>> handle email without the need to completely download it for replying >>> or forwarding. There is nothing about push mail. Howerver IDLE is >>> mentioned as an additionally extension which must be supportet. >>> >>> If you take a look on the website, you will see the push functionality >>> is only a reference to IMAP IDLE as in RFC 2177. > > [..] > >> notice i wrote "like" not "it is" > > I know what you wrote and it still is not correct. > >> http://www.lemonadeformobiles.com/quick.html > > This sounds like my abstract of the LEMONADE profile, just more > verbose. > > [abstract_(peroration)_of_RFC2177] > > This is the reference to IMAP IDLE I talked about earlier. > > Dennis anyway the result should look like push mail to the client , and that might will be the interest thing for the user , no need to flame -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From anfi at onet.eu Sat May 7 15:23:08 2011 From: anfi at onet.eu (Andrzej Adam Filip) Date: Sat, 07 May 2011 14:23:08 +0200 Subject: [Dovecot] Dovecot2 - equivalent of "dovecot --exec-mail imap" with custom configuration file Message-ID: Is it possible in dovecot2 to run "imap via stdin&stdout" *WITH* custom configuration file? http://wiki2.dovecot.org/Upgrading/2.0 * "dovecot --exec-mail imap" has been replaced by simply running "imap" binary. ... -- [pl>en: Andrew] Andrzej Adam Filip : anfi at onet.eu Love is the only game that is not called on account of darkness. -- M. Hirschfield From jcblanco at fi.upm.es Sat May 7 19:32:49 2011 From: jcblanco at fi.upm.es (Juan C. Blanco) Date: Sat, 07 May 2011 18:32:49 +0200 Subject: [Dovecot] Shared mailboxes and acl Message-ID: <4DC57431.1070802@fi.upm.es> Hello, I've finally upgrade to dovecot 2.0.12 and I'm doing some test with shared mailboxes and acl. I've read http://wiki2.dovecot.org/SharedMailboxes/Shared and changed the dovecot config as recommended, I'm using Horde/IMP as imap_acl client Seems that the acl files in user mailbox where updated correctly. I've defined also a shared mailbox dictionary and if I've understood right from the wiki page this file is supposed to be also updated with the imap_acl commands, is this right? In my case this file is never updated, I don't know if this file must have any special format or is a simple text file. Any help will be appreciated Regards Juan C. Blanco From jcblanco at fi.upm.es Sat May 7 20:40:44 2011 From: jcblanco at fi.upm.es (Juan C. Blanco) Date: Sat, 07 May 2011 19:40:44 +0200 Subject: [Dovecot] Shared mailboxes and acl In-Reply-To: <4DC57431.1070802@fi.upm.es> References: <4DC57431.1070802@fi.upm.es> Message-ID: <4DC5841C.1080101@fi.upm.es> On 07/05/2011 18:32, Juan C. Blanco wrote: > Hello, I've finally upgrade to dovecot 2.0.12 and I'm doing some test > with shared mailboxes and acl. > > I've read http://wiki2.dovecot.org/SharedMailboxes/Shared and changed > the dovecot config as recommended, I'm using Horde/IMP as imap_acl client > > Seems that the acl files in user mailbox where updated correctly. > > I've defined also a shared mailbox dictionary and if I've understood > right from the wiki page this file is supposed to be also updated with > the imap_acl commands, is this right? > > In my case this file is never updated, I don't know if this file must > have any special format or is a simple text file. Solved, finally it was a permission problem, I've setup the shared mailbox dict in /var/lib/dovecot/shaed-mailboxes and even I've granted permission to this file to the vamil user there was a problem creating the dotlock when updating the file. I have had to create a directory there and change the owner of it to vmail As I've debug active I was losing the error in the log file. Regards Juan C. Blanco > > Any help will be appreciated > Regards > Juan C. Blanco From dovecot at asheesh.org Sat May 7 21:20:43 2011 From: dovecot at asheesh.org (Asheesh Laroia) Date: Sat, 7 May 2011 14:20:43 -0400 (EDT) Subject: [Dovecot] alpine + Maildir In-Reply-To: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> Message-ID: On Fri, 6 May 2011, Timo Sirainen wrote: > On 5.5.2011, at 23.43, upen wrote: > >> If maildir support in alpine does not work like it does for mbox then >> I'll have to configure IMAP setings in pine.conf for alpine users. I >> must say that alpine is installed on mail server :). Although IMAP >> setting may work fine, it will prompt user for password initially when >> checking email and while sending first email. I'd like to avoid this >> by using #md or #mc. > > You can configure Alpine to execute Dovecot's imap binary and talk to > it. That makes it work nicely with Dovecot and won't prompt the user for > a password. If you're using v1.x you can run "dovecot --exec-mail imap" > and with v2.0 you just need to run "imap". I don't know specifically > what this setting in Alpine is called. This is what I am doing right now. http://www.asheesh.org/note/sysop/passwordless-alpine.html says a little more. I strongly recommend this. In fact, I think I should someday talk to the re-alpine team and figure out how to make this easier to configure. It's already reasonably easy, but it can require some fiddling. -- -- Asheesh. http://asheesh.org/ You're not my type. For that matter, you're not even my species!!! From tss at iki.fi Sat May 7 22:45:57 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 7 May 2011 22:45:57 +0300 Subject: [Dovecot] Dovecot2 - equivalent of "dovecot --exec-mail imap" with custom configuration file In-Reply-To: References: Message-ID: <4C3A74EE-3653-41F8-B0B2-9651D0E63211@iki.fi> On 7.5.2011, at 15.23, Andrzej Adam Filip wrote: > Is it possible in dovecot2 to run "imap via stdin&stdout" *WITH* custom > configuration file? imap -c ~/dovecot.conf From anfi at onet.eu Sun May 8 00:23:31 2011 From: anfi at onet.eu (Andrzej Adam Filip) Date: Sat, 07 May 2011 23:23:31 +0200 Subject: [Dovecot] Dovecot2 - equivalent of "dovecot --exec-mail imap" with custom configuration file In-Reply-To: <4C3A74EE-3653-41F8-B0B2-9651D0E63211@iki.fi> (Timo Sirainen's message of "Sat, 7 May 2011 22:45:57 +0300") References: <4C3A74EE-3653-41F8-B0B2-9651D0E63211@iki.fi> Message-ID: Timo Sirainen wrote: > On 7.5.2011, at 15.23, Andrzej Adam Filip wrote: > >> Is it possible in dovecot2 to run "imap via stdin&stdout" *WITH* custom >> configuration file? > > imap -c ~/dovecot.conf Thank you for promptly filling "the man(page) gap" :-) P.S. Debian testing (whezzy) pushed dovecot-2 on Saturday. I am sure I will praise dovecot-2 a lot next weekend but today I had a lot o small migration glitches to fix :-) [ I have used dovecot in "quite atypical" ways ;-) ] I have a few (non critical) "nuisances" left to fix/ask. -- [pl>en: Andrew] Andrzej Adam Filip : anfi at onet.eu Usually, when a lot of men get together, it's called a war. -- Mel Brooks, "The Listener" From stan at hardwarefreak.com Sun May 8 00:37:53 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Sat, 07 May 2011 16:37:53 -0500 Subject: [Dovecot] compressed mboxes very slow In-Reply-To: <87iptnoans.fsf@alfa.kjonca> References: <87iptnoans.fsf@alfa.kjonca> Message-ID: <4DC5BBB1.1030005@hardwarefreak.com> On 5/6/2011 3:07 PM, Kamil Jo?ca wrote: > > I have some archive mails in gzipped mboxes. I could use them with > dovecot 1.x without problems. > But recently I have installed dovecot 2.0.12, and they are slow. very > slow. > > Creating index files takes about 10 minutes for ~20M file with 560 > messages for bzipped mbox, for gzipped is little better but still > unusable :( What other software, if any, was also upgraded/changed when you upgraded to Dovecot 2.0.12? Libraries? Filesystem? Daemons? What OS/version? Was the OS upgraded? Is this a new machine as well as new software? If so how did you copy the files to the new system? Could they have been mildly corrupted along the way? Did this bad behavior start directly after the upgrade or did 2.0.12 run the zipped mbox files at acceptable speed for a while? Did you add/enable any new Dovecot plugins that you weren't running in 1.2.x? > Stracing dovecot process shows that every ~ 20 messages it rereads > complete mbox file. Can you be a bit more specific here? What do you mean by "rereads complete mbox file"? I'm not a dev, but that sounds suspiciously like an error handling mechanism. I.e. an error occurred while processing, or the file may have changed while processing, so we start over. Could you have a buggy inotify/dnotify or something along those lines? Do you now have something else running say, at the filesystem level, that that is making Dovecot think the file has changed even though it hasn't? Are you zipping these mbox files via a cron job that is running every few seconds instead of every few hours or days? Something is apparently causing Dovecot to reread these files regularly, and I'd guess it's probably not a Dovecot bug. Did you run strace when accessing a non-compressed mbox file for comparison? -- Stan From pllis at educ.ar Sun May 8 02:47:14 2011 From: pllis at educ.ar (Pablo Luchetti) Date: Sat, 07 May 2011 20:47:14 -0300 Subject: [Dovecot] vacation problem with sieve and sogo In-Reply-To: <4DC4EF53.2050108@rename-it.nl> References: <4DC456B4.7000205@educ.ar> <4DC4EF53.2050108@rename-it.nl> Message-ID: <4DC5DA02.5020604@educ.ar> Thanks Stephan, but doesn't work. I try both plugin: sieve: ~/sieve/ and plugin: sieve: ~/.dovecot.sieve But still have message: NO "Script name 'sogo' is reserved for internal use." Regards, Stephan Bosch wrote: > On 5/6/2011 10:14 PM, Pablo Luchetti wrote: >> Hi, I have a problem with dovecot's sieve and SOGo ( >> http://www.sogo.nu/ ) >> >> I have installed last version of sogo ( 1.3.6) in one virtual machine >> with ubuntu, lucid. >> In another virtualmachine with ubuntu jaunty is running dovecot ( >> 1:1.1.11-0ubuntu4.1 ) >> >> When try to activate vacation function, after the "PUTSCRIPT "sogo" >> command, the manage-sieve answer: >> >> NO "Script name 'sogo' is reserved for internal use." > > >> plugin: >> sieve: ~/sieve/s0g0.sieve >> > > The default for sieve_dir is '~/sieve/', so now you are putting the > active script symlink (as configured with sieve=) in the sieve > storage. This is never a good idea, because that symlink may be > confused with a normal script. To prevent issues, the ManageSieve > daemon prevents you from using the symlink as a scriptname. > > Why did you configure it like that? If you remove the above line, or > change it to something sensible, like the default value > sieve=~/.dovecot.sieve, it will work normally. > > Regards, > > Stephan. > From voytek at sbt.net.au Sun May 8 04:03:21 2011 From: voytek at sbt.net.au (Voytek Eymont) Date: Sun, 08 May 2011 11:03:21 +1000 Subject: [Dovecot] exceeded mail_max_userip_connections Message-ID: <54080-SnapperMsg4C0B0CBDC9EB9C5D@[192.168.0.3]> Dumb Q I just got this in my Snapper client log I can't acces server log at this point dovecot 1.x I can access another account OK what it means, what I need do? (is this as I have K-9 client access same mail?) ---------- START MANUAL: 8/5/11 10:55 am RECEIVE: ACCOUNT: voytek SSL: Connection secure. IMAP Server: Maximum number of connections from user+IP exceeded (mail_max_userip_connections) Invalid login. Check username and password. DURATION: 3 END: 8/5/11 10:55 am Voytek Eymont ___ Sent from my iPalm/A with SnapperMail ?? www.snappermail.com From peter at bellfamily.org.uk Sun May 8 04:39:02 2011 From: peter at bellfamily.org.uk (Peter Bell) Date: Sun, 08 May 2011 09:39:02 +0800 Subject: [Dovecot] Building Pigeonhole Message-ID: <4DC5F436.9020001@bellfamily.org.uk> I'm attempting to build Pigeonhole 0.2.3 for use with my Dovecot 2.0.12 installation on Slackware. I've downloaded the sources and unzipped into a folder which sits alongside the folder in which I built Dovecot. When I ./configure, the configuration appears to complete without error. However, when I make, the compiler throws lots of errors all stemming, I believe from its failure to find a set of include files: cmd-vacation.c:4:17: error: lib.h: No such file or directory cmd-vacation.c:5:17: error: str.h: No such file or directory cmd-vacation.c:6:22: error: strfuncs.h: No such file or directory cmd-vacation.c:7:17: error: md5.h: No such file or directory cmd-vacation.c:8:21: error: hostpid.h: No such file or directory cmd-vacation.c:9:26: error: str-sanitize.h: No such file or directory cmd-vacation.c:10:29: error: message-address.h: No such file or directory cmd-vacation.c:11:26: error: message-date.h: No such file or directory cmd-vacation.c:12:20: error: ioloop.h: No such file or directory I believe that these files are all part of the main Dovecot - what am I meant to be doing so that the Pigeonhole build process can find them? Peter. -- ------------------------------------------------------------------- Peter Bell Mob: +63 (0) 9287 340 343 Tagum City, Philippines. Tel: +63 (0) 84 400 5085 email/msn: peter at bellfamily.org.uk Tel: +44 (0) 118 331 0000 From voytek at sbt.net.au Sun May 8 09:09:03 2011 From: voytek at sbt.net.au (Voytek Eymont) Date: Sun, 8 May 2011 17:09:03 +1100 Subject: [Dovecot] exceeded mail_max_userip_connections In-Reply-To: <54080-SnapperMsg4C0B0CBDC9EB9C5D@[192.168.0.3]> References: <54080-SnapperMsg4C0B0CBDC9EB9C5D@[192.168.0.3]> Message-ID: On Sun, May 8, 2011 12:03 pm, Voytek Eymont wrote: > SSL: Connection secure. > IMAP Server: Maximum number of connections from user+IP exceeded > (mail_max_userip_connections) so if I have Squirell logged in all the time, plus K-9 running, plus occasionally use IMAP client on my Palm, how many connections should I allow ? -- Voytek From f.bonnet at esiee.fr Sun May 8 10:25:18 2011 From: f.bonnet at esiee.fr (Frank Bonnet) Date: Sun, 08 May 2011 09:25:18 +0200 Subject: [Dovecot] Building Pigeonhole In-Reply-To: <4DC5F436.9020001@bellfamily.org.uk> References: <4DC5F436.9020001@bellfamily.org.uk> Message-ID: <4DC6455E.7040709@esiee.fr> hello You might include ( -I /usr/.../somewhere/include/dovecot ) Dovecot2 include files at compilation Le 08/05/2011 03:39, Peter Bell a ?crit : > I'm attempting to build Pigeonhole 0.2.3 for use with my Dovecot 2.0.12 > installation on Slackware. > > I've downloaded the sources and unzipped into a folder which sits > alongside the folder in which I built Dovecot. > > When I ./configure, the configuration appears to complete without error. > However, when I make, the compiler throws lots of errors all stemming, I > believe from its failure to find a set of include files: > > cmd-vacation.c:4:17: error: lib.h: No such file or directory > cmd-vacation.c:5:17: error: str.h: No such file or directory > cmd-vacation.c:6:22: error: strfuncs.h: No such file or directory > cmd-vacation.c:7:17: error: md5.h: No such file or directory > cmd-vacation.c:8:21: error: hostpid.h: No such file or directory > cmd-vacation.c:9:26: error: str-sanitize.h: No such file or directory > cmd-vacation.c:10:29: error: message-address.h: No such file or directory > cmd-vacation.c:11:26: error: message-date.h: No such file or directory > cmd-vacation.c:12:20: error: ioloop.h: No such file or directory > > I believe that these files are all part of the main Dovecot - what am I > meant to be doing so that the Pigeonhole build process can find them? > > Peter. > From cb at lim.nl Sun May 8 12:56:17 2011 From: cb at lim.nl (Colin Brace) Date: Sun, 8 May 2011 02:56:17 -0700 (PDT) Subject: [Dovecot] sieve filters not being invoked Message-ID: <31569757.post@talk.nabble.com> Hi all, Similar to someone who posted here yesterday, I am having trouble getting sieve filters working. I have installed pigeonhole. I can create, edit, and save scripts from both the Thunderbird sieve extension as well as the Roundcube sieve plugin via managesieve running on port 4190. The .sieve file is properly saved in ~/sieve with a symlink from ~/.dovecot.sieve. But the filters are not being invoked on incoming mail. I have mail_debug enabled, but I don't see anything useful in /var/log/dovecot. Anyone have any ideas? Thanks $ dovecot -n # 2.0.11: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 8.1-RELEASE amd64 ufs auth_verbose = yes base_dir = /var/run/dovecot/ disable_plaintext_auth = no first_valid_gid = 0 info_log_path = /var/log/dovecot log_path = /var/log/dovecot mail_access_groups = mail mail_debug = yes mail_location = maildir:/home/colin/vmail/%d/%n managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date passdb { args = /usr/local/etc/dovecot-passwd driver = passwd-file } plugin/sieve = ~/.dovecot.sieve plugin/sieve_dir = ~/sieve plugin/sieve_global_dir = /var/lib/dovecot/sieve/global/ plugin/sieve_global_path = /var/lib/dovecot/sieve/default.sieve protocols = imap sieve service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-master { group = mail mode = 0660 user = vmail } user = root } service imap-login { executable = /usr/local/libexec/dovecot/imap-login vsz_limit = 64 M } service managesieve-login { inet_listener sieve { port = 4190 } } service pop3-login { executable = /usr/local/libexec/dovecot/imap-login vsz_limit = 64 M } ssl_cert = OK, So what you people say is : 1. Run "ntpdate" during startup only once 2. After that, keep time with ntpd Right ? Regards, spyros ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From kjonca at o2.pl Sun May 8 13:21:27 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Sun, 08 May 2011 12:21:27 +0200 Subject: [Dovecot] compressed mboxes very slow References: <87iptnoans.fsf@alfa.kjonca> <4DC5BBB1.1030005@hardwarefreak.com> Message-ID: <87vcxla3x4.fsf@alfa.kjonca> Stan Hoeppner writes: > On 5/6/2011 3:07 PM, Kamil Jo?ca wrote: >> >> I have some archive mails in gzipped mboxes. I could use them with >> dovecot 1.x without problems. >> But recently I have installed dovecot 2.0.12, and they are slow. very >> slow. >> >> Creating index files takes about 10 minutes for ~20M file with 560 >> messages for bzipped mbox, for gzipped is little better but still >> unusable :( > > What other software, if any, was also upgraded/changed when you > upgraded to Dovecot 2.0.12? Libraries? Filesystem? Daemons? What IIRC only dovecot - I simply upgrade debian package via aptitude. > they have been mildly corrupted along the way? Did this bad behavior > start directly after the upgrade or did 2.0.12 run the zipped mbox Yes, immediately after upgrade. > files at acceptable speed for a while? Did you add/enable any new > Dovecot plugins that you weren't running in 1.2.x? > No, the only thing was converting old config to dovecot-2 config. >> Stracing dovecot process shows that every ~ 20 messages it rereads >> complete mbox file. > > Can you be a bit more specific here? What do you mean by "rereads > complete mbox file"? I'm not a dev, but that sounds suspiciously like Sorry, my fault, more correctly is to say: "regularly". > an error handling mechanism. I.e. an error occurred while processing, > or the file may have changed while processing, so we start over. I'm almost sure that file is not changed. > Could you have a buggy inotify/dnotify or something along those lines? How to check it? > Do you now have something else running say, at the filesystem level, > that that is making Dovecot think the file has changed even though it > hasn't? Are you zipping these mbox files via a cron job that is > running every few seconds instead of every few hours or days? No. These files were compressed once by mutt, and then only read as archive via dovecot. > > Something is apparently causing Dovecot to reread these files > regularly, and I'd guess it's probably not a Dovecot bug. Did you run > strace when accessing a non-compressed mbox file for comparison? http://strony.aster.pl/kjonca/dovecot.log.gz <- uncompressed mbox http://strony.aster.pl/kjonca/dovecot.gz.log.gz <- gzipped mbox KJ -- http://blogdebart.pl/2009/12/22/mamy-chorych-dzieci/ KRETYNIZM - u?omno?? predysponuj?ca cz?sto do wampiryzmu (J.Collin de Plancy "S?ownik wiedzy tajemnej") From dovecot.user at seibercom.net Sun May 8 13:45:01 2011 From: dovecot.user at seibercom.net (Jerry) Date: Sun, 8 May 2011 06:45:01 -0400 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <710190.16207.qm@web27203.mail.ukl.yahoo.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> Message-ID: <20110508064501.52e96775@scorpio> On Sun, 8 May 2011 11:07:04 +0100 (BST) Spyros Tsiolis articulated: > So what you people say is : > > 1. Run "ntpdate" during startup only once > 2. After that, keep time with ntpd As I posted earlier using the technique I showed, on a FreeBSD system, there would be absolutely no reason to do so; however, I cannot vouch for that on other systems. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From dovecot.fdop at tagged.lorens.org Sun May 8 14:53:12 2011 From: dovecot.fdop at tagged.lorens.org (Lorens Kockum) Date: Sun, 8 May 2011 13:53:12 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <20110508064501.52e96775@scorpio> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <20110508064501.52e96775@scorpio> Message-ID: <20110508115312.GA28585@tagged.lorens.org> On Sun, May 08, 2011 at 06:45:01AM -0400, Jerry wrote: > On Sun, 8 May 2011 11:07:04 +0100 (BST) > Spyros Tsiolis articulated: > > > So what you people say is : > > > > 1. Run "ntpdate" during startup only once > > 2. After that, keep time with ntpd > > As I posted earlier using the technique I showed, on a FreeBSD system, > there would be absolutely no reason to do so; however, I cannot vouch > for that on other systems. Right. As for running ntpdate, the years have passed and the debian manual now says: -g Normally, ntpd exits with a message to the system log if the offset exceeds the panic threshold, which is 1000 s by default. This option allows the time to be set to any value without restriction; however, this can happen only once. If the threshold is exceeded after that, ntpd will exit with a message to the system log. This option can be used with the -q and -x options. -q Exit the ntpd just after the first time the clock is set. This behavior mimics that of the ntpdate program, which is to be retired. So, ntpdate is to be retired. In boot scripts either simply run ntpd -g or, probably better: ntpd -gqx ntpd In FreeBSD, AFAICS, setting ntpd_enable="YES" # Start time server ntpd_sync_on_start="YES" # Synchronize on start in /etc/rc.d corresponds to the second of the two, at least as of FreeBSD 6.4, since before 6.4 the -x was apparently missing, which would not correct big offsets, see: http://lists.freebsd.org/pipermail/freebsd-bugs/2009-March/034439.html From japc at co.sapo.pt Sun May 8 15:36:46 2011 From: japc at co.sapo.pt (Jose Celestino) Date: Sun, 08 May 2011 13:36:46 +0100 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <710190.16207.qm@web27203.mail.ukl.yahoo.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> Message-ID: <1304858206.3374.7.camel@morgoth> On Dom, 2011-05-08 at 11:07 +0100, Spyros Tsiolis wrote: > OK, > > So what you people say is : > > 1. Run "ntpdate" during startup only once > 2. After that, keep time with ntpd > > Right ? > Right, that ensures that time is correct (ntpdate run at startup) and that it is kept correct without the clock going back (ntp running as daemon). -- Jose Celestino | http://japc.uncovering.org/files/japc-pgpkey.asc ---------------------------------------------------------------- "Assumption is the Mother of Screw-Up" -- Mr. John Elwood Hale From nebano at gmail.com Sun May 8 16:17:46 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Sun, 8 May 2011 15:17:46 +0200 Subject: [Dovecot] mail_max_lock_timeout setup Message-ID: hi all in wich section most mail_max_lock_timeout be set up? Thanks. From matt at gr-lakes.com Sun May 8 16:50:24 2011 From: matt at gr-lakes.com (Matt Mc Namara) Date: Sun, 8 May 2011 09:50:24 -0400 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working References: <4DC4F568.5070204@rename-it.nl> Message-ID: <2895CA51FD8B45F0B15340E98A94FE23@HPDC7600> Thanks for your response. Regarding the ports, I was referring to the services. Which I verified they are running. What would cause the scripts to run but do nothing? service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } the LDA is enabled and the changes have been made to sendmail. I created a new sendmail.cf file and the added lines are in there. When I receive an email the .dovecot.sieve is executed but does nothing. I've attached the output of dovecot -n. # 2.0.12: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.35.12-88.fc14.i686 i686 Fedora release 14 (Laughlin) auth_mechanisms = plain login disable_plaintext_auth = no listen = * mail_location = mbox:~/mail:INBOX=/var/mail/%u mail_privileged_group = mail maildir_very_dirty_syncs = yes mbox_write_locks = fcntl passdb { driver = pam } service imap-login { inet_listener imap { port = 143 } } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { ssl = no } } ssl_cert = To: Sent: Saturday, May 07, 2011 3:31 AM Subject: Re: [Dovecot] DOVECOT v2.0.11 using SIEVE not working > On 5/7/2011 12:54 AM, Matt Mc Namara wrote: >> Hi, >> >> I'm trying to get sieve working with dovecot. I seem to have everything >> enabled but my scripts done seem to work. > > >> both sieve-filter (2000) and sieve (4190) are running >> > Uh, what do you mean with sieve-filter in this case? > > Regarding your problem: > - Make sure you are using the Dovecot LDA > (http://wiki2.dovecot.org/LDA) and/or LMTP > (http://wiki2.dovecot.org/LMTP). > - Make sure the LDA Sieve plugin is enabled > (http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration) > - Make sure that the sieve scripts are found. You can obtain more > information by enabling mail_debug. > > If the above does not solve your problem, it is important to post your > dovecot -n output here. > > Regards, > > Stephan. From mark at msapiro.net Sun May 8 18:09:10 2011 From: mark at msapiro.net (Mark Sapiro) Date: Sun, 08 May 2011 08:09:10 -0700 Subject: [Dovecot] exceeded mail_max_userip_connections In-Reply-To: References: <54080-SnapperMsg4C0B0CBDC9EB9C5D@[192.168.0.3]> Message-ID: <4DC6B216.6080900@msapiro.net> On 11:59 AM, Voytek Eymont wrote: > > On Sun, May 8, 2011 12:03 pm, Voytek Eymont wrote: > >> SSL: Connection secure. >> IMAP Server: Maximum number of connections from user+IP exceeded >> (mail_max_userip_connections) > > so if I have Squirell logged in all the time, plus K-9 running, plus > occasionally use IMAP client on my Palm, how many connections should I > allow ? As many as one per client per subscribed folder, but ... Possibly Squirell is using a different IP (localhost, 127.0.0.1) and doesn't count. I suspect the issue is with K-9. I had similar issues with older versions of K-9. They went away at some point. I'm currently using K-9 3.604. If you are using an older version of K-9, particularly a 2.xxx version, I suggest you upgrade. -- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan From noeldude at gmail.com Sun May 8 18:20:08 2011 From: noeldude at gmail.com (Noel) Date: Sun, 08 May 2011 10:20:08 -0500 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <710190.16207.qm@web27203.mail.ukl.yahoo.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> Message-ID: <4DC6B4A8.7050602@gmail.com> On 5/8/2011 5:07 AM, Spyros Tsiolis wrote: > OK, > > So what you people say is : > > 1. Run "ntpdate" during startup only once > 2. After that, keep time with ntpd > > Right ? Yes, or run ntpd with the -g option. You don't want to use the -x option (as some might have suggested) as that can cause ntpd to take up to 2 weeks to synchronize the time. Detailed ntp setup is OT for this list, but make sure your ntp.conf lists at least three servers. Typically the ntp.org pool servers will work fine, eg. server 0.uk.pool.ntp.org server 1.uk.pool.ntp.org server 2.uk.pool.ntp.org server 3.uk.pool.ntp.org Then once in a while make sure ntp is running and syncronised. I like "ntpq -p" which will show the peerlist with a "*" next to the current master. ntpd works best on a long-running server, and typically shouldn't be used on a virtual server. Virtual environments have their own time service. -- Noel Jones From stan at hardwarefreak.com Sun May 8 20:25:11 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Sun, 08 May 2011 12:25:11 -0500 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <710190.16207.qm@web27203.mail.ukl.yahoo.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> Message-ID: <4DC6D1F7.7050103@hardwarefreak.com> On 5/8/2011 5:07 AM, Spyros Tsiolis wrote: > > OK, > > So what you people say is : > > 1. Run "ntpdate" during startup only once > 2. After that, keep time with ntpd > > Right ? When running ntpd don't run ntpdate at startup, or any time. Use one or the other, not both (if you incorrectly use both, ntpdate will throw off drift calculations in ntpd). This is the proper setup for bare metal hosts. I didn't pay attention to earlier posts in this thread. So, if you're talking about a guest running inside a virtual machine then the setup is entirely different, and may vary depending on your underlying hypervisor and other factors. -- Stan From kevingoodsell.lists at gmail.com Sun May 8 20:30:33 2011 From: kevingoodsell.lists at gmail.com (Kevin Goodsell) Date: Sun, 8 May 2011 10:30:33 -0700 Subject: [Dovecot] Issues with authentication failure delays Message-ID: There are two rather clear issues with the state of authentication failure delays. First, the delay length isn't what was (presumably) intended. Second, there is a new way of doing failure delays in Dovecot 2 which was added *in addition to* the old method, rather than replacing it. As a result delays may not be the expected length and settings don't have the expected effect. First, the length of the failure delays. Based on auth/auth-penalty.c and auth/auth-penalty.h, it seems rather clear that the delay time (for the newer type of failure delay) was intended to start at 2 seconds and double for each failure (see auth_penalty_to_secs), but be capped at 15 seconds. However, a simple test which tries to log in 5 times with a random password and times each attempt shows something different: $ cat authtest.py import imaplib import time import random conn = imaplib.IMAP4('localhost') for i in range(5): try: start = time.time() conn.login('testusers', str(random.random())) except Exception, e: print e print time.time() - start $ python authtest.py [AUTHENTICATIONFAILED] Authentication failed. 0.502058982849 [AUTHENTICATIONFAILED] Authentication failed. 4.50464391708 [AUTHENTICATIONFAILED] Authentication failed. 8.50679802895 [AUTHENTICATIONFAILED] Authentication failed. 15.5040819645 [AUTHENTICATIONFAILED] Authentication failed. 15.5039038658 (Note that these results are with auth_failure_delay set to 0, more on that in a bit.) Aside from the extra half second on each attempt (which I have no clue about), there is no delay on the first attempt. Subsequent delays seem to have the correct timing. I *think* this is because auth_penalty_lookup is called from auth_request_handler_auth_begin, that is, at the *beginning* of an authentication attempt, therefore not affecting the first failed attempt. This may be too minor an issue to worry much about, but it certainly looks to me like it's not doing quite what was intended. Moving on to the second issue. Revision fbff8ca77d2e added a new style of authentication failure delay, but left the existing failure delay mechanism in place. The old failure delay uses the auth_failure_delay setting, and could be disabled by using a value of 0 for that setting. Its remnants are in auth/auth-request-handler.c in the function auth_request_handler_flush_failures. It looks like much of the code in that file could be removed or simplified by eliminating this older failure delay system. Better still, I would like to see the auth_failure_delay setting retained and used in the new system. The value of the setting could be used in place of AUTH_PENALTY_INIT_SECS, allowing similar configurability to what the old system offered. -Kevin From stan at hardwarefreak.com Sun May 8 20:39:28 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Sun, 08 May 2011 12:39:28 -0500 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <1304858206.3374.7.camel@morgoth> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> Message-ID: <4DC6D550.7000406@hardwarefreak.com> On 5/8/2011 7:36 AM, Jose Celestino wrote: > On Dom, 2011-05-08 at 11:07 +0100, Spyros Tsiolis wrote: >> OK, >> >> So what you people say is : >> >> 1. Run "ntpdate" during startup only once >> 2. After that, keep time with ntpd >> >> Right ? >> > > Right, that ensures that time is correct (ntpdate run at startup) and > that it is kept correct without the clock going back (ntp running as > daemon). This is not correct. You're assuming that ntpd doesn't perform sanity checks on the system time when the daemon starts, which is not the case. Again, use ntpd or ntpdate, not both. Preferably, today, in 2011, and for many years now, only use ntpd, except in guests sitting atop a hypervisor. In the virtual environment case you run ntpd in the hypervisor and configure the guest kernels appropriately. There is a plethora of platform specific documentation out there covering the VM time keeping case so I won't attempt to repeat it all here, except to say that with Linux the first/best step is running a tickless kernel, which is now the default on many distros, as it helps both laptops/netbooks when in sleep mode and VM guests when they get time sliced into what is in essence a sleep state as far as the kernel sees system clock ticks. -- Stan From smt at vgersoft.com Sun May 8 20:41:45 2011 From: smt at vgersoft.com (Steve Thompson) Date: Sun, 8 May 2011 13:41:45 -0400 (EDT) Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <4DC6D1F7.7050103@hardwarefreak.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <4DC6D1F7.7050103@hardwarefreak.com> Message-ID: On Sun, 8 May 2011, Stan Hoeppner wrote: > On 5/8/2011 5:07 AM, Spyros Tsiolis wrote: > So, if you're talking about a guest running inside a virtual machine > then the setup is entirely different, and may vary depending on your > underlying hypervisor and other factors. Certainly I run ntpd on all my KVM-based virtual machines, since KVM provides each guest with a virtualized hardware clock. With Xen, this can also be done if using a Xen-enabled kernel in the guest, using the Xen independent wallclock. Otherwise you usually have to run ntpdate periodically through cron. Steve From stan at hardwarefreak.com Sun May 8 21:57:05 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Sun, 08 May 2011 13:57:05 -0500 Subject: [Dovecot] compressed mboxes very slow In-Reply-To: <87vcxla3x4.fsf@alfa.kjonca> References: <87iptnoans.fsf@alfa.kjonca> <4DC5BBB1.1030005@hardwarefreak.com> <87vcxla3x4.fsf@alfa.kjonca> Message-ID: <4DC6E781.60503@hardwarefreak.com> On 5/8/2011 5:21 AM, Kamil Jo?ca wrote: > Stan Hoeppner writes: > >> On 5/6/2011 3:07 PM, Kamil Jo?ca wrote: >>> >>> I have some archive mails in gzipped mboxes. I could use them with >>> dovecot 1.x without problems. >>> But recently I have installed dovecot 2.0.12, and they are slow. very >>> slow. >>> >>> Creating index files takes about 10 minutes for ~20M file with 560 >>> messages for bzipped mbox, for gzipped is little better but still >>> unusable :( >> >> What other software, if any, was also upgraded/changed when you >> upgraded to Dovecot 2.0.12? Libraries? Filesystem? Daemons? What > > IIRC only dovecot - I simply upgrade debian package via aptitude. The latest Debian stable dovecot package is 1.2.15-4. If 'aptitude upgrade' pulled 2.0.12 then you are running either testing or unstable, or you're using non-official mirrors. Either way, you can expect to have some problems. Also, you probably need to be asking on debian-user or asking the maintainers directly. And you need to be able to give them an actual bug report. I'm guessing the problem is Debian specific and not vanilla Dovecot 2.0.12 specific. Timo hasn't responded to you yet, which may be a good indication of this. >> they have been mildly corrupted along the way? Did this bad behavior >> start directly after the upgrade or did 2.0.12 run the zipped mbox > Yes, immediately after upgrade. Look at your aptitude and/or dkpg logs to see what other packages, if any, got upgraded/replaced when you installed dovecot. >> files at acceptable speed for a while? Did you add/enable any new >> Dovecot plugins that you weren't running in 1.2.x? >> > No, the only thing was converting old config to dovecot-2 config. > >>> Stracing dovecot process shows that every ~ 20 messages it rereads >>> complete mbox file. >> >> Can you be a bit more specific here? What do you mean by "rereads >> complete mbox file"? I'm not a dev, but that sounds suspiciously like > > Sorry, my fault, more correctly is to say: "regularly". > >> an error handling mechanism. I.e. an error occurred while processing, >> or the file may have changed while processing, so we start over. > > I'm almost sure that file is not changed. It probably didn't, given the fact that Dovecot won't write to zipped mbox files, period. But if you have a broken inotify/dnotify setup it may appear to Dovecot that the file has changed. Such things are common with testing/unstable distros. Changes to the kernel, APIs, and apps occur rapidly. Such distros are meant for developers and end users with the knowledge and ability to file concise bug reports after identifying problems. Inotify may not be the problem at all, but it seems a possibility given that Dovecot is apparently stopping decompression and rereading the file multiple times until finished. I've not looked at the Dovecot source, but this seems a likely cause of the reread. >> Could you have a buggy inotify/dnotify or something along those lines? > How to check it? If you're running testing/unstable you should already know how to check this. Inotify is a kernel API. For Debian Dovecot to use inotify it must be compiled with the build option 'notify=inotify'. You'll need to see the package maintainer's build script. You'll also need to look at the kernel .config used to build your kernel as inotify must be built into your kernel. >> Do you now have something else running say, at the filesystem level, >> that that is making Dovecot think the file has changed even though it >> hasn't? Are you zipping these mbox files via a cron job that is >> running every few seconds instead of every few hours or days? > No. These files were compressed once by mutt, and then only read as > archive via dovecot. Was mutt upgraded along with dovecot when you ran 'aptitude --safe upgrade'? Have you tested any other IMAP client such as Thunderbird to eliminate mutt as the cause of the problem? >> Something is apparently causing Dovecot to reread these files >> regularly, and I'd guess it's probably not a Dovecot bug. Did you run >> strace when accessing a non-compressed mbox file for comparison? > > http://strony.aster.pl/kjonca/dovecot.log.gz<- uncompressed mbox > http://strony.aster.pl/kjonca/dovecot.gz.log.gz<- gzipped mbox I didn't ask for the files but the results of your analysis. This is your system and it's your job to troubleshoot it. I'm simply trying to assist you in your efforts. If this is a production system I suggest you downgrade to your previous Dovecot version that was working properly, then build a test rig to troubleshoot this. If that's not in your cards, I suggest sticking with Debian Stable and newer Dovecot backports as they become available. -- Stan From Harlan.Stenn at pfcs.com Sun May 8 22:58:30 2011 From: Harlan.Stenn at pfcs.com (Harlan Stenn) Date: Sun, 08 May 2011 15:58:30 -0400 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <710190.16207.qm@web27203.mail.ukl.yahoo.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> Message-ID: <20110508195830.600732844C@gwc.pfcs.com> Spyros wrote > OK, > > So what you people say is : > > 1. Run "ntpdate" during startup only once > 2. After that, keep time with ntpd > > Right ? https://support.ntp.org/bin/view/Support/StartingNTP4 says: - Start ntd as early as possible - - "ntpd -g ..." is better than "ntpdate ... ; ntpd ..." - Wait before starting time-sensitive services - - As last as possible in the boot sequence, run 'ntp-wait -v', and start time-sensitive services after it successfully returns. I'm fairly certain the above is excellent advice, and BCP. H From voytek at sbt.net.au Mon May 9 06:16:49 2011 From: voytek at sbt.net.au (Voytek Eymont) Date: Mon, 9 May 2011 14:16:49 +1100 Subject: [Dovecot] exceeded mail_max_userip_connections In-Reply-To: References: Message-ID: <8bb7ea15b730bbbd456b06aa8606203f.squirrel@sbt.net.au> On Mon, May 9, 2011 11:51 am, Mark Sapiro wrote: > Voytek Eymont wrote: >> I thought it was 3.6x, I installed off market abt one week ago > If you got it a week ago from the market, it's probably 3.604. thanks, 3.605 -- Voytek From per at computer.org Mon May 9 09:28:38 2011 From: per at computer.org (Per Jessen) Date: Mon, 09 May 2011 08:28:38 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <4DC6D1F7.7050103@hardwarefreak.com> Message-ID: Stan Hoeppner wrote: > On 5/8/2011 5:07 AM, Spyros Tsiolis wrote: >> >> OK, >> >> So what you people say is : >> >> 1. Run "ntpdate" during startup only once >> 2. After that, keep time with ntpd >> >> Right ? > > When running ntpd don't run ntpdate at startup, or any time. Use one > or the other, not both (if you incorrectly use both, ntpdate will > throw off drift calculations in ntpd). This is the proper setup for > bare metal hosts. The usual setup is to do exactly that though - ntpdate (now sntp) at startup to make sure the initial setting is reasonable, then ntpd to keep it in sync. /Per Jessen, Z?rich From per at computer.org Mon May 9 09:31:17 2011 From: per at computer.org (Per Jessen) Date: Mon, 09 May 2011 08:31:17 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> Message-ID: Stan Hoeppner wrote: > On 5/8/2011 7:36 AM, Jose Celestino wrote: >> On Dom, 2011-05-08 at 11:07 +0100, Spyros Tsiolis wrote: >>> OK, >>> >>> So what you people say is : >>> >>> 1. Run "ntpdate" during startup only once >>> 2. After that, keep time with ntpd >>> >>> Right ? >>> >> >> Right, that ensures that time is correct (ntpdate run at startup) and >> that it is kept correct without the clock going back (ntp running as >> daemon). > > This is not correct. You're assuming that ntpd doesn't perform sanity > checks on the system time when the daemon starts, which is not the > case. The sanity check may be disabled with -g in which case using ntpdate/sntp/ntpd -q at start up becomes pointless. /Per Jessen, Z?rich From lists at luigirosa.com Mon May 9 09:36:24 2011 From: lists at luigirosa.com (Luigi Rosa) Date: Mon, 09 May 2011 08:36:24 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <20110508195830.600732844C@gwc.pfcs.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <20110508195830.600732844C@gwc.pfcs.com> Message-ID: <4DC78B68.60704@luigirosa.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Harlan Stenn said the following on 08/05/11 21:58: > - Start ntd as early as possible > - - "ntpd -g ..." is better than "ntpdate ... ; ntpd ..." > - Wait before starting time-sensitive services > - - As last as possible in the boot sequence, run 'ntp-wait -v', and > start time-sensitive services after it successfully returns. What happens if the server starts with a date very far in the past due to hardware clock reset or something like that? I mean: if a Linux starts with the hardware clock set to 1/1/2000 how much does it take to get the real date? I'm asking for curiosity, never tried this scenario. Ciao, luigi - -- / +--[Luigi Rosa]-- \ All in all it's just another brick in the wall... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3Hi2UACgkQ3kWu7Tfl6ZSCvwCfVP1yO2lI+QANxqwhrYry1ipW vjYAni8rivcpirUCy63k6IIts2K4Hdls =2Ob0 -----END PGP SIGNATURE----- From stsiol at yahoo.co.uk Mon May 9 10:31:18 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Mon, 9 May 2011 08:31:18 +0100 (BST) Subject: [Dovecot] dovecot user lost entire folder Message-ID: <918853.10927.qm@web27203.mail.ukl.yahoo.com> Hello kind people, OK, today is a bad day for me. A user from a clients' site called early in the morning to inform me that she lost an entire folder on thunderbird with (naturally) important stuff in it. I am trying to find the lost folder, but there is nowhere to be found. Any ideas would greatly appreciated. Regards, Spyros "dovecot -n" : ------------------------------------------------- # 1.2.16: /etc/dovecot/dovecot.conf # OS: Linux 2.6.18-194.17.4.el5 i686 CentOS release 5.5 (Final) ext3 base_dir: /var/run/dovecot/ log_path: /var/log/dovecot/dovecot.log info_log_path: /var/log/dovecot/dovecot-info.log ssl_parameters_regenerate: 48 verbose_ssl: yes login_dir: /var/run/dovecot//login login_executable: /usr/local/dovecot/libexec/dovecot/imap-login login_greeting: * Dovecot ready * login_max_processes_count: 64 mail_location: maildir:/var/MailRoot/domains/%d/%n/Maildir mail_plugins: zlib auth default: verbose: yes debug: yes debug_passwords: yes passdb: driver: passwd-file args: /etc/dovecot/passwd passdb: driver: pam userdb: driver: static args: uid=vmail gid=vmail home=/home/vmail/%u userdb: driver: passwd ------------------------------------------------- ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From helge at monsternett.no Mon May 9 10:44:58 2011 From: helge at monsternett.no (Helge Milde) Date: Mon, 9 May 2011 09:44:58 +0200 Subject: [Dovecot] Renaming maildir files, UIDs and mail clients Message-ID: <20110509074458.GA31982@monsternett.no> Hi! First a little background: I'm thinking of compressing my Maildir's using dovecot's zlib support, and have run into a couple of problems. First of all, my files use the following formats: 1. 1260386673.000002.mbox:2,S 2. 1304920966.M241434P17342.mail,W=3152:2,S As you can see, both lack the S= "basename flag", but the latter does have W=. Reading http://wiki.dovecot.org/Plugins/Zlib, I get the impression that I really need S= in the filenames (".. otherwise there will be problems with quota calculation as well as other potential random failures."). I have made a script that compresses my files, adds S= if it's missing (using wc -c before gzip), and appends the Z flag. As I understand it, adding S= will change the UID of the email, while appending Z won't. Now for my questions: 1. How crucial is it to have the S= in the basename when using zlib? The wiki page mentions quota problems, which we're not using, but also "random failures"... 2. Would W= suffice in this regard? I.e. would I be able to compress files of the latter format safely, without adding S= (only appending the Z flag)? 3. If S= *is* needed, is there a way to minimize the effect from the mail client's perspective? From my testruns, it seems Mutt have no problems after I rename the basename, but Thunderbird will refetch the emails, and not delete the old ones, showing duplicate emails. Refetching emails is not a big problem, I think, but only if the email clients understand that the old ones doesn't exist anymore. And if anyone has ideas on how to convert to using zlib without the users knowing, I would be glad to hear it! -- Helge Milde www.monsternett.no From p.heinlein at heinlein-support.de Mon May 9 10:55:41 2011 From: p.heinlein at heinlein-support.de (Peer Heinlein) Date: Mon, 9 May 2011 09:55:41 +0200 Subject: [Dovecot] Fwd: Saving mails to +detail failed: Namespace error Message-ID: <201105090955.41353.p.heinlein@heinlein-support.de> Hi! Since our mails aren't saved correctly since we updated to 2.xx I'd really appreciate some help. What's going wrong? My mistake? Bug? Peer ---------- Weitergeleitete Nachricht ---------- Betreff: [Dovecot] Saving mails to +detail failed: Namespace error Datum: Dienstag, 3. Mai 2011, 12:50:20 Von: Peer Heinlein An: dovecot at dovecot.org We have the following namespace: namespace { inbox = yes list = yes location = prefix = INBOX/ separator = / subscriptions = yes type = private } namespace { list = children location = maildir:%%h:INDEX=%h/shared/%%u:CONTROL=%h/shared/%%u prefix = shared/%%u/ separator = / subscriptions = yes type = shared } and we set: lmtp_save_to_detail_mailbox = yes recipient_delimiter = + But sending Mails to user+detail is failing: May 3 12:40:06 dobby2 postfix/cleanup[8245]: 12E787756C: message- id=<201105031239.40804.p.heinlein at heinlein-support.de> May 3 12:40:06 dobby2 postfix/qmgr[23304]: 12E787756C: from=, size=1963, nrcpt=1 (queue active) May 3 12:40:06 dobby2 dovecot: lmtp(6537): Debug: auth input: p.heinlein at jpberlin.de home=/mail/jpberlin.de/p.heinlein/Maildir/ uid=10000 gid=10000 May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Effective uid=10000, gid=10000, home=/mail/jpberlin.de/p.heinlein/Maildir/ May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Namespace : type=private, prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~:INDEX=/cache/jpberlin.de/p.heinlein May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: maildir++: root=/mail/jpberlin.de/p.heinlein/Maildir/, index=/cache/jpberlin.de/p.heinlein, control=, inbox=/mail/jpberlin.de/p.heinlein/Maildir/ May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Namespace : type=shared, prefix=shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=maildir: %h:INDEX=/mail/jpberlin.de/p.heinlein/Maildir//shared/%u:CONTROL=/mail/jpberlin.de/p.heinlein/Maildir//shared/%u May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: shared: root=/var/run/dovecot/, index=, control=, inbox= May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Pg/fKrHav02JGQAAir+T1Q: sieve: user's script path /mail/jpberlin.de/p.heinlein/Maildir//../.dovecot.sieve doesn't exist (using global script path in stead) May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Pg/fKrHav02JGQAAir+T1Q: sieve: user has no valid personal script May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Pg/fKrHav02JGQAAir+T1Q: sieve: no scripts to execute: reverting to default delivery. May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Pg/fKrHav02JGQAAir+T1Q: msgid=<201105031239.40804.p.heinlein at heinlein- support.de>: save failed to Cong: Unknown namespace May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Pg/fKrHav02JGQAAir+T1Q: msgid=<201105031239.40804.p.heinlein at heinlein- support.de>: saved mail to INBOX May 3 12:40:06 dobby2 postfix/lmtp[8338]: 12E787756C: to=, relay=dobby.heinlein- support.de[private/lmtp-dovecot], delay=0.1, delays=0.06/0.02/0/0.02, dsn=2.0.0, status=sent (250 2.0.0 Pg/fKrHav02JGQAAir+T1Q Saved) But a folder named "Cong" exists: # ls -la .Cong -d drwx------ 5 vmail vmail 4096 30. Apr 04:46 .Cong # What's going wrong? My mistake or is it a bug? peer -- Heinlein Professional Linux Support GmbH Linux: Akademie - Support - Hosting http://www.heinlein-support.de Tel: 030/405051-42 Fax: 030/405051-19 Zwangsangaben lt. ?35a GmbHG: HRB 93818 B / Amtsgericht Berlin-Charlottenburg, Gesch?ftsf?hrer: Peer Heinlein -- Sitz: Berlin From stan at hardwarefreak.com Mon May 9 10:57:46 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Mon, 09 May 2011 02:57:46 -0500 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> Message-ID: <4DC79E7A.5080700@hardwarefreak.com> On 5/9/2011 1:31 AM, Per Jessen wrote: > Stan Hoeppner wrote: >> This is not correct. You're assuming that ntpd doesn't perform sanity >> checks on the system time when the daemon starts, which is not the >> case. > > The sanity check may be disabled with -g in which case using > ntpdate/sntp/ntpd -q at start up becomes pointless. 'ntpdate -q' has always been 'pointless', unless you just want to look at the offset without modifying the clock. I do so on occasion to see how accurately my local ntp server is keeping time. For instance: /$ ntpdate -q tick.wustl.edu ntp.okstate.edu tick.uh.edu server 128.252.19.1, stratum 1, offset -0.003486, delay 0.09729 server 139.78.135.14, stratum 1, offset 0.003479, delay 0.11545 server 129.7.1.66, stratum 1, offset -0.003950, delay 0.13434 9 May 02:39:55 ntpdate[31040]: adjust time server 128.252.19.1 offset -0.003486 sec Mt nptd server is Debian Squeeze atop kernel 2.6.34.1, running ntp 4.2.6.p2+dfsg-1+b1. The machine is home grown w/ an 11 year old Abit main board. 0.003 seconds offset, not too shabby. ;) I've seen offset with 4 leading zeros (after the decimal) in the past. I've never seen less than two leading zeros. For most applications on my network, time this accurate is overkill, but it's nice to have. I acquired 'special' permission many years ago to use a few stratum 1 USNO servers mostly because at that time I lived in a city where one of them is located, and because I only have one client querying infrequently. USNO is the official time keeper for the US Military and the US Government, including ships at sea via GPS. USNO has the most accurate timekeeping devices on the planet--atomic clocks. Most (if not all) of the stratum 2 servers in the US query the USNO stratum 1 servers. -- Stan From tlx at leuxner.net Mon May 9 11:03:36 2011 From: tlx at leuxner.net (Thomas Leuxner) Date: Mon, 9 May 2011 10:03:36 +0200 Subject: [Dovecot] dovecot user lost entire folder In-Reply-To: <918853.10927.qm@web27203.mail.ukl.yahoo.com> References: <918853.10927.qm@web27203.mail.ukl.yahoo.com> Message-ID: <20110509080336.GA30236@nihlus.leuxner.net> On Mon, May 09, 2011 at 08:31:18AM +0100, Spyros Tsiolis wrote: > mail_location: maildir:/var/MailRoot/domains/%d/%n/Maildir Did you verify in the Maildir structure for that user? Maildir/.folder Maildir/.folder.subfolder http://wiki.dovecot.org/MailLocation/Maildir Regards Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From per at computer.org Mon May 9 11:25:35 2011 From: per at computer.org (Per Jessen) Date: Mon, 09 May 2011 10:25:35 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> <4DC79E7A.5080700@hardwarefreak.com> Message-ID: Stan Hoeppner wrote: > On 5/9/2011 1:31 AM, Per Jessen wrote: >> Stan Hoeppner wrote: > >>> This is not correct. You're assuming that ntpd doesn't perform >>> sanity checks on the system time when the daemon starts, which is >>> not the case. >> >> The sanity check may be disabled with -g in which case using >> ntpdate/sntp/ntpd -q at start up becomes pointless. > > 'ntpdate -q' has always been 'pointless', unless you just want to look > at the offset without modifying the clock. Sure, I meant 'ntpd -q'. > Mt nptd server is Debian Squeeze atop kernel 2.6.34.1, running ntp > 4.2.6.p2+dfsg-1+b1. The machine is home grown w/ an 11 year old Abit > main board. 0.003 seconds offset, not too shabby. ;) I've seen > offset with 4 leading zeros (after the decimal) in the past. I've > never seen less than two leading zeros. For most applications on my > network, time this accurate is overkill, but it's nice to have. For me, it's more important that all machines (local & remote) are running the same time. Locally I sync to DCF77, externally I use the datacentre-provided NTP source. Anyway, we're way OT. /Per Jessen, Z?rich From per at computer.org Mon May 9 11:29:12 2011 From: per at computer.org (Per Jessen) Date: Mon, 09 May 2011 10:29:12 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <20110508195830.600732844C@gwc.pfcs.com> <4DC78B68.60704@luigirosa.com> Message-ID: Luigi Rosa wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Harlan Stenn said the following on 08/05/11 21:58: > >> - Start ntd as early as possible >> - - "ntpd -g ..." is better than "ntpdate ... ; ntpd ..." >> - Wait before starting time-sensitive services >> - - As last as possible in the boot sequence, run 'ntp-wait -v', and >> start time-sensitive services after it successfully returns. > > What happens if the server starts with a date very far in the past due > to hardware clock reset or something like that? > > I mean: if a Linux starts with the hardware clock set to 1/1/2000 how > much does it take to get the real date? ntpd -g will set it immediately. /Per Jessen, Z?rich From stsiol at yahoo.co.uk Mon May 9 11:44:46 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Mon, 9 May 2011 09:44:46 +0100 (BST) Subject: [Dovecot] dovecot user lost entire folder In-Reply-To: <20110509080336.GA30236@nihlus.leuxner.net> Message-ID: <226239.8774.qm@web27205.mail.ukl.yahoo.com> --- On Mon, 9/5/11, Thomas Leuxner wrote: > From: Thomas Leuxner > Subject: Re: [Dovecot] dovecot user lost entire folder > To: dovecot at dovecot.org > Date: Monday, 9 May, 2011, 11:03 > On Mon, May 09, 2011 at 08:31:18AM > +0100, Spyros Tsiolis wrote: > > > mail_location: > maildir:/var/MailRoot/domains/%d/%n/Maildir > > Did you verify in the Maildir structure for that user? > > Maildir/.folder > Maildir/.folder.subfolder > > http://wiki.dovecot.org/MailLocation/Maildir > > Regards > Thomas Thomas, Thank you kindly. I checked all the hidden files underneath maildir:/var/MailRoot/domains/%d/%n/Maildir and coudn't find this specific folder. Thank you again, spyros ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From Harlan.Stenn at pfcs.com Mon May 9 11:46:16 2011 From: Harlan.Stenn at pfcs.com (Harlan Stenn) Date: Mon, 09 May 2011 04:46:16 -0400 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> <4DC79E7A.5080700@hardwarefreak.com> Message-ID: <20110509084616.6334B2844C@gwc.pfcs.com> Per wrote: > Sure, I meant 'ntpd -q'. What benefit do you see in running something to set the time and exit before starting ntpd instead of just starting ntpd with -g? H From Harlan.Stenn at pfcs.com Mon May 9 11:49:51 2011 From: Harlan.Stenn at pfcs.com (Harlan Stenn) Date: Mon, 09 May 2011 04:49:51 -0400 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <20110508195830.600732844C@gwc.pfcs.com> <4DC78B68.60704@luigirosa.com> Message-ID: <20110509084951.6C4222844F@gwc.pfcs.com> Per wrote: > Luigi Rosa wrote: > > > Harlan Stenn said the following on 08/05/11 21:58: > > > >> - Start ntd as early as possible > >> - - "ntpd -g ..." is better than "ntpdate ... ; ntpd ..." > >> - Wait before starting time-sensitive services > >> - - As last as possible in the boot sequence, run 'ntp-wait -v', and > >> start time-sensitive services after it successfully returns. > > > > What happens if the server starts with a date very far in the past due > > to hardware clock reset or something like that? > > > > I mean: if a Linux starts with the hardware clock set to 1/1/2000 how > > much does it take to get the real date? > > ntpd -g will set it immediately. Put another way, ntpd needs the system time to be correct to within 68 years. Assuming that is true, with a good drift file and good servers/peers and the use of the 'iburst' flag, ntpd will set the clock and your (real) machine will be accurate and stable in about 11 seconds' time. H From per at computer.org Mon May 9 11:52:25 2011 From: per at computer.org (Per Jessen) Date: Mon, 09 May 2011 10:52:25 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> <4DC79E7A.5080700@hardwarefreak.com> <20110509084616.6334B2844C@gwc.pfcs.com> Message-ID: Harlan Stenn wrote: > Per wrote: >> Sure, I meant 'ntpd -q'. > > What benefit do you see in running something to set the time and exit > before starting ntpd instead of just starting ntpd with -g? > > H None, it is just what is in the standard init-script in openSUSE. /Per Jessen, Z?rich From tlx at leuxner.net Mon May 9 11:55:23 2011 From: tlx at leuxner.net (Thomas Leuxner) Date: Mon, 9 May 2011 10:55:23 +0200 Subject: [Dovecot] dovecot user lost entire folder In-Reply-To: <226239.8774.qm@web27205.mail.ukl.yahoo.com> References: <20110509080336.GA30236@nihlus.leuxner.net> <226239.8774.qm@web27205.mail.ukl.yahoo.com> Message-ID: <20110509085523.GB30236@nihlus.leuxner.net> On Mon, May 09, 2011 at 09:44:46AM +0100, Spyros Tsiolis wrote: > I checked all the hidden files underneath > maildir:/var/MailRoot/domains/%d/%n/Maildir > and coudn't find this specific folder. Hi Spyros, do you happen to have a backup of the Maildir structure? You could simply restore the folder in that case to "minimize" damage. It would not tell you why/how it was deleted although. An ACL placed on the folder may be a feasible solution for that particular user going forward... Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From mcbdovecot at robuust.nl Mon May 9 11:55:49 2011 From: mcbdovecot at robuust.nl (Maarten Bezemer) Date: Mon, 9 May 2011 10:55:49 +0200 (CEST) Subject: [Dovecot] dovecot user lost entire folder In-Reply-To: <226239.8774.qm@web27205.mail.ukl.yahoo.com> References: <226239.8774.qm@web27205.mail.ukl.yahoo.com> Message-ID: Hi, On Mon, 9 May 2011, Spyros Tsiolis wrote: > I checked all the hidden files underneath > maildir:/var/MailRoot/domains/%d/%n/Maildir > and coudn't find this specific folder. Checking for specific emails could help. On the other hand, having backups handy would be nice. That would not only be helpful if the user simply deleted a folder (instead of a single email, seen that happen more than once with Outlook users), but it would also give you an idea of file names which might have accidentally be moved to another folder. HTH... Maarten From stsiol at yahoo.co.uk Mon May 9 11:59:53 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Mon, 9 May 2011 09:59:53 +0100 (BST) Subject: [Dovecot] dovecot user lost entire folder In-Reply-To: Message-ID: <689641.48808.qm@web27204.mail.ukl.yahoo.com> --- On Mon, 9/5/11, Maarten Bezemer wrote: > From: Maarten Bezemer > Subject: Re: [Dovecot] dovecot user lost entire folder > To: "Spyros Tsiolis" > Cc: "Thomas Leuxner" , "Dovecot" > Date: Monday, 9 May, 2011, 11:55 > Hi, > > On Mon, 9 May 2011, Spyros Tsiolis wrote: > > > I checked all the hidden files underneath > maildir:/var/MailRoot/domains/%d/%n/Maildir > > and coudn't find this specific folder. > > Checking for specific emails could help. > On the other hand, having backups handy would be nice. That > would not only be helpful if the user simply deleted a > folder (instead of a single email, seen that happen more > than once with Outlook users), but it would also give you an > idea of file names which might have accidentally be moved to > another folder. > > HTH... > > Maarten > Hi Maarten, that is actually what I suspect. The user is using thunderbird v1.3.10. However, I suspect that she accidentally deleted the whole folder. I cannot deduct anything else. I ran through all possible paranoid scenarios. It doesn't make any sense. Thank you kindly, Spyros ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From stsiol at yahoo.co.uk Mon May 9 12:02:06 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Mon, 9 May 2011 10:02:06 +0100 (BST) Subject: [Dovecot] dovecot user lost entire folder In-Reply-To: <20110509085523.GB30236@nihlus.leuxner.net> Message-ID: <159036.92931.qm@web27202.mail.ukl.yahoo.com> --- On Mon, 9/5/11, Thomas Leuxner wrote: > From: Thomas Leuxner > Subject: Re: [Dovecot] dovecot user lost entire folder > To: dovecot at dovecot.org > Date: Monday, 9 May, 2011, 11:55 > On Mon, May 09, 2011 at 09:44:46AM > +0100, Spyros Tsiolis wrote: > > > I checked all the hidden files underneath > > maildir:/var/MailRoot/domains/%d/%n/Maildir > > and coudn't find this specific folder. > > Hi Spyros, > > do you happen to have a backup of the Maildir structure? > You could > simply restore the folder in that case to "minimize" > damage. It would > not tell you why/how it was deleted although. > > An ACL placed on the folder may be a feasible solution for > that > particular user going forward... > > Thomas Hi again, How exactly would I place an ACL ? Should I check the dovecot docs for this ? thanks again, s. ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From sarder.kamal at parlicentre.org Mon May 9 12:13:44 2011 From: sarder.kamal at parlicentre.org (Sarder Kamal) Date: Mon, 09 May 2011 10:13:44 +0100 Subject: [Dovecot] how to cat / grep from dbox files In-Reply-To: References: <4DC2CAD0.60601@parlicentre.org> Message-ID: <4DC7B048.1080100@parlicentre.org> Dear Timo On 05/05/2011 17:18, Timo Sirainen wrote: > On 5.5.2011, at 18.05, Sarder Kamal wrote:man doveadm-fetch > man doveadm-search-query > > example: doveadm fetch -u user 'uid text' mailbox INBOX body "hello world" > Thanks for the pointers. As I mentioned earlier, too new into dovecot and still trying to find my way. The only thing I know about this setup is it has the latest dovecot. However, my next question is, could anyone please tell me which configuration settings do I need to change to make the storage non-compressed -- i.e., old style Maildir format? Thanks Sarder ______________________________________________________________________ Centre for Parliamentary Studies This email and its attachments are intended only for disclosure to the recipients to whom they are addressed. Should you have received it in error, we regret any inconvenience and would request that you notify postmaster at parlicentre.org. Any opinions presented are solely those of its author and do not necessarily represent those of the company. Recipients are advised to check for the presence of malware as the company accepts no liability for the accidental transmission thereof. Centre for Parliamentary Studies is a trading name of CPS Framework Ltd. Registered Office: Unit N0002, Westminster Business Square, 1-45 Durham Street, London, SE11 5JH Registered in England & Wales, No. 6926090 From stephan at rename-it.nl Mon May 9 12:14:44 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Mon, 09 May 2011 11:14:44 +0200 Subject: [Dovecot] sieve filters not being invoked In-Reply-To: <31569757.post@talk.nabble.com> References: <31569757.post@talk.nabble.com> Message-ID: <4DC7B084.2010703@rename-it.nl> Op 8-5-2011 11:56, Colin Brace schreef: > Hi all, > > Similar to someone who posted here yesterday, I am having trouble getting > sieve filters working. > > I have installed pigeonhole. I can create, edit, and save scripts from both > the Thunderbird sieve extension as well as the Roundcube sieve plugin via > managesieve running on port 4190. The .sieve file is properly saved in > ~/sieve with a symlink from ~/.dovecot.sieve. > > But the filters are not being invoked on incoming mail. I have mail_debug > enabled, but I don't see anything useful in /var/log/dovecot. > > Anyone have any ideas? Is your MTA storing messages using the Dovecot LDA (http://wiki2.dovecot.org/LDA) ? Check that thoroughly. Enable mail_debug to get more verbose logs. To definitively check whether Sieve is working or not, you can invoke dovecot-lda manually. If it works then, the problem most likely lies with your MTA. At my end, the logs look as follows (manual invocation, mail_debug=yes): May 9 11:08:34 host dovecot: lda: Debug: Loading modules from directory: /usr/lib/dovecot/modules May 9 11:08:34 host dovecot: lda: Debug: Module loaded: /usr/lib/dovecot/modules/lib90_sieve_plugin.so May 9 11:08:34 host dovecot: lda(stephan): Debug: Effective uid=1011, gid=1011, home=/home/stephan May 9 11:08:34 host dovecot: lda(stephan): Debug: maildir: root exists (/home/stephan/Maildir) May 9 11:08:34 host dovecot: lda(stephan): Debug: maildir++: root=/home/stephan/Maildir, index=, control=, inbox=/home/stephan/Maildir May 9 11:08:34 host dovecot: lda(stephan): Debug: userdb lookup skipped, username taken from USER environment May 9 11:08:34 host dovecot: lda(stephan): Debug: none: root=, index=, control=, inbox= May 9 11:08:34 host dovecot: lda(stephan): Debug: sieve: using sieve path for user's script: /home/stephan/.dovecot.sieve May 9 11:08:34 host dovecot: lda(stephan): Debug: sieve: opening script /home/stephan/.dovecot.sieve May 9 11:08:34 host dovecot: lda(stephan): Debug: sieve: script binary /home/stephan/.dovecot.svbin successfully loaded May 9 11:08:34 host dovecot: lda(stephan): Debug: sieve: binary save: not saving binary /home/stephan/.dovecot.svbin, because it is already stored May 9 11:08:34 host dovecot: lda(stephan): Debug: sieve: executing script from /home/stephan/.dovecot.svbin May 9 11:08:34 host dovecot: lda(stephan): sieve: msgid=<20090729182144.4c9baf96 at example.com>: stored mail into mailbox 'INBOX' Regards, Stephan. From erevilla at yaco.es Mon May 9 12:15:48 2011 From: erevilla at yaco.es (Ernesto Revilla Derksen) Date: Mon, 9 May 2011 11:15:48 +0200 Subject: [Dovecot] Delete unused IMAP keywords from permanetflags In-Reply-To: References: Message-ID: Hi 2011/5/6 Timo Sirainen > On 6.5.2011, at 12.26, Ernesto Revilla Derksen wrote: > > > I'm using dovecot 2.0.9. Is there already a way to remove unused IMAP > > keywords from a folder? > > I've thought about implementing it, but haven't yet. I thought that maybe > it could remove them only when adding a new keyword, or possibly after it > hadn't been used for n days (e.g. a month). Also I had thought about adding > new IMAP commands to add/remove keywords. > > Well, I think it's not that important, as we would use another front-end to define labels (keywords). Will we have problems if more than 26 keywords are defined in a folder but only a subset is used? (maildir++) Renaming keywords would also be a nice feature. Thanks. Erny From tlx at leuxner.net Mon May 9 12:25:31 2011 From: tlx at leuxner.net (Thomas Leuxner) Date: Mon, 9 May 2011 11:25:31 +0200 Subject: [Dovecot] dovecot user lost entire folder In-Reply-To: <159036.92931.qm@web27202.mail.ukl.yahoo.com> References: <20110509085523.GB30236@nihlus.leuxner.net> <159036.92931.qm@web27202.mail.ukl.yahoo.com> Message-ID: <20110509092531.GC30236@nihlus.leuxner.net> On Mon, May 09, 2011 at 10:02:06AM +0100, Spyros Tsiolis wrote: > How exactly would I place an ACL ? > Should I check the dovecot docs for this ? Following ACL should do the trick when placed in the folder: --- [Maildir/.folder/dovecot-acl] --- owner lrwspi This will allow adding new messages to the folder ONLY. Please be advised that you need to configure general use of ACLs first: http://wiki.dovecot.org/ACL Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From maria_arrea at gmx.com Mon May 9 13:19:57 2011 From: maria_arrea at gmx.com (Maria Arrea) Date: Mon, 09 May 2011 10:19:57 +0000 Subject: [Dovecot] Sieve & auto_create mail_home Message-ID: <20110509101958.45750@gmx.com> Hello In my setup I have the following in dovecot.conf (dovecot 2.0.12) mail_home = /buzones/mydomain/%2.26Hn/%2.200Hn/%n/home_usuario/ mail_location = mdbox:/buzones/my_domain/%2.26Hn/%2.200Hn/%n:INDEX=/indices_dovecot/indices/%2.26Hn/%2.200Hn/%n My problem is with the autocreation of mail_home. We are using roundcube+sieve plugin and the first time a user tries to use sieve fails with this: May 9 12:13:52 buzon dovecot: managesieve(a_poor_user at mydomain): Error: sieve-storage: open(/buzones/my_domain/0a/94/javierdemiguel/home_usuario/sieve//tmp/roundcube-1304936032.M335644P23819.mydomain.sieve) failed: No such file or directory In the second attempt works without problems, the folder "home_usuario" is created after failing the first. How can I fix this? Regards Maria From cb at lim.nl Mon May 9 14:00:45 2011 From: cb at lim.nl (Colin Brace) Date: Mon, 09 May 2011 13:00:45 +0200 Subject: [Dovecot] sieve filters not being invoked In-Reply-To: <4DC7B084.2010703@rename-it.nl> References: <31569757.post@talk.nabble.com> <4DC7B084.2010703@rename-it.nl> Message-ID: <8ee991440d2c142bc4079d3bb26a4a0d@localhost> On Mon, 09 May 2011 11:14:44 +0200, Stephan Bosch wrote: > Is your MTA storing messages using the Dovecot LDA > (http://wiki2.dovecot.org/LDA [1]) ? Check that thoroughly. Enable > mail_debug to get more verbose logs. To definitively check whether > Sieve > is working or not, you can invoke dovecot-lda manually. If it works > then, the problem most likely lies with your MTA. Thanks, I am almost there. It turns out I was missing this line from Postfix master.cf: dovecot unix - n n - - pipe flags=DRhu user=vmail:mail argv=/usr/local/libexec/dovecot/deliver -d ${recipient} In the dovecot-lda log, I am now seeing some action, but there is a permissions problem somewhere: May 09 12:43:13 lda: Debug: Loading modules from directory: /usr/local/lib/dovecot May 09 12:43:13 lda: Debug: Module loaded: /usr/local/lib/dovecot/lib90_sieve_plugin.so May 09 12:43:13 lda: Error: userdb lookup: connect(/var/run/dovecot//auth-userdb) failed: Permission denied (euid=200(vmail) egid=6(mail) missing +w perm: /var/run/dovecot//auth-userdb, euid is not dir owner) May 09 12:43:13 lda: Fatal: Internal error occurred. Refer to server log for more information. Any idea where the problem is? -- Colin Brace Amsterdam http://lim.nl Links: ------ [1] http://wiki2.dovecot.org/LDA [2] mailto:20090729182144.4c9baf96 at example.com From fakessh at fakessh.eu Mon May 9 15:52:50 2011 From: fakessh at fakessh.eu (fakessh) Date: Mon, 9 May 2011 14:52:50 +0200 Subject: [Dovecot] Sieve & auto_create mail_home In-Reply-To: <20110509101958.45750@gmx.com> References: <20110509101958.45750@gmx.com> Message-ID: <201105091452.56859.fakessh@fakessh.eu> Le lundi 9 mai 2011 12:19, Maria Arrea a ?crit?: > Hello > > In my setup I have the following in dovecot.conf (dovecot 2.0.12) > > > mail_home = /buzones/mydomain/%2.26Hn/%2.200Hn/%n/home_usuario/ > mail_location = > mdbox:/buzones/my_domain/%2.26Hn/%2.200Hn/%n:INDEX=/indices_dovecot/indices >/%2.26Hn/%2.200Hn/%n > > > My problem is with the autocreation of mail_home. We are using > roundcube+sieve plugin and the first time a user tries to use sieve fails > with this: > > > May 9 12:13:52 buzon dovecot: managesieve(a_poor_user at mydomain): Error: > sieve-storage: > open(/buzones/my_domain/0a/94/javierdemiguel/home_usuario/sieve//tmp/roundc >ube-1304936032.M335644P23819.mydomain.sieve) failed: No such file or > directory > > > In the second attempt works without problems, the folder "home_usuario" is > created after failing the first. How can I fix this? > > > Regards > > Maria this setting work well on a simple config with /home/user/Maildir sieve + autocreate -- http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7 gpg --keyserver pgp.mit.edu --recv-key 092164A7 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From mark.zealey at webfusion.com Mon May 9 16:19:23 2011 From: mark.zealey at webfusion.com (Mark Zealey) Date: Mon, 09 May 2011 16:19:23 +0300 Subject: [Dovecot] Post-login scripting with mail_drop_priv_before_exec in dovecot2 Message-ID: <4DC7E9DB.1090400@webfusion.com> Hi, I'm in the process of upgrading from dovecot v1.1 to dovecot 2. We fetch uid/gid user information from a database and also use post-login scripting with mail_drop_priv_before_exec = yes which means the postlogin script is executed with the permissions of the user we have found in the database. According to the dovecot2 wiki page, to get this behaviour in version 2 we have to set the post-login script to run as root and then su to the user. This seems a bit of a strange (and insecure as you might forget) way of doing this. Are there any other options, such as fetching a certain column name from the database to set the value of service imap-postlogin { user } or setting something like user = $user in the configuration? (or is the configuration only read at startup so such dynamic configuration can't be done in the service section?) Cheers, Mark From y11 at ikevinjp.com Mon May 9 17:16:24 2011 From: y11 at ikevinjp.com (ikevinjp) Date: Mon, 9 May 2011 07:16:24 -0700 (PDT) Subject: [Dovecot] Dovecot Maildir ownership/permission problem Message-ID: <31573368.post@talk.nabble.com> Hi, I have successfully configured Dovecot+Postfix+SSL/TSL and it seems that everything is working except that I have a permission problem with the items under Maildir. When a mail is first delivered into a user, Postfix automatically creates the Maildir using the user's account and group. It is readable only by the user. This seems to be the correct setting for me, as only the user could read his/her own mails. However, Dovecot gave an error saying the Maildir is inaccessible and shows that is a permission problem. I changed the chmod to 777 and Dovecot worked (temporarily solution). And, it created additional items under that folder under a "mailman" user (which I specified in the configuration using mail_uid and mail_gid) - Note: it does not work if I do not set these "mail_uid" and "mail_gid" settings. I think what I would like is to make Dovecot access each individual's mailbox using the user's own account and group. How do I do this? I am using Passwd-file scheme. --- My dovecot.conf: mail_uid = vmail mail_gid = vmail listen = 192.168.1.2 protocols = imap pop3 ssl = yes ssl_cert = References: Message-ID: <1304954316.10421.86.camel@hurina> On Mon, 2011-04-25 at 19:02 +0200, Osvaldo Alvarez Pozo wrote: > hi all > > We have an ocfs2 cluster compose of 4 Debian lenny serveurs wich have > access to an ISCSI LUN we have create a partition on this Lun and > formated this partition as OCFS2. > 2 serveurs does mail delivery (SMTP) and the two other are pop/imap > servers. The smtp servers use dovecot LDA to deliver to mailboxes. La > version de dovecot is 1.2.13, ldirectord balance conexion to the > servers(pop/pops/imap/imaps to the two imap/pop serveurs) (smtp to the > two smtp servers). With v2.0 I'd suggest using http://wiki2.dovecot.org/Director > mail_location = maildir:/var/vmail/%d/%u/Maildir Cluster filesystems don't seem to like Maildir much. With v2.0 you could use mdbox. > We are having severals problems from "cpu stuck for 61 seconds" to > "too many connexion". I don't know what either of those errors mean. In any case you should switch to high-performance login processes: http://wiki.dovecot.org/LoginProcess http://wiki.dovecot.org/PerformanceTuning has more stuff From upendra.gandhi at gmail.com Mon May 9 18:19:14 2011 From: upendra.gandhi at gmail.com (upen) Date: Mon, 9 May 2011 10:19:14 -0500 Subject: [Dovecot] alpine + Maildir In-Reply-To: References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> Message-ID: On Mon, May 9, 2011 at 10:01 AM, upen wrote: >> >> This is what I am doing right now. >> >> http://www.asheesh.org/note/sysop/passwordless-alpine.html says a little >> more. I strongly recommend this. >> >> In fact, I think I should someday talk to the re-alpine team and figure out >> how to make this easier to configure. It's already reasonably easy, but it >> can require some fiddling. > Hi Asheesh, Excellent, that is a very very useful information. I am going to try and use this method if #md doesn't work at all. Thanks very much for helping me out. Thanks, UG From upendra.gandhi at gmail.com Mon May 9 18:20:18 2011 From: upendra.gandhi at gmail.com (upen) Date: Mon, 9 May 2011 10:20:18 -0500 Subject: [Dovecot] alpine + Maildir In-Reply-To: References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> <4DC40DFA.8060209@Media-Brokers.com> <4DC43315.4060708@Media-Brokers.com> Message-ID: On Mon, May 9, 2011 at 10:16 AM, upen wrote: >>> >> What you are probably looking for is in the alpine configuration (setup -> >> configure) the 'Hide Empty Directories' option which you have to turn on. >> >> It corresponds to the 'quell-empty-directory' in pinerc >> >> Hope it helps. >> Hi Wolfgang, You are right, that option should have taken care of [/] directory after each folder , however for some reason it doesn't and I don't understand why. One update however with #md implementation is that I just tried one more thing in my alpine configuration and [/] has vanished after that so probably I don't have to configure for password-less alpine on the email server. Here is the specific configuration from my /etc/pine.conf or .pinerc 1. maildir-location=../../Mail/${LOGNAME} #folder-collections=Mail {localhost/novalidate-cert/ssl/user=${LOGNAME}}[] <---- Commented. 2. folder-collections=Mail #md/../../Mail/${LOGNAME}/.[] With this configuration, all folders appear fine. Folders : INBOX sent-mail saved-messages ABC PINE_FOLDER Queue Sent Trash sent-mail-apr-2011 In addition, I am going to change sent messages and saved messages setting as below so that when users are migrated from ~/mail to /Mail/user/ (maildir) format then their newly sent emails and saved messages also continue to go into /Mail/user/.sent-mail and /Mail/user/.saved-messages folder respectively. default-fcc=sent-mail default-saved-msg-folder=saved-messages Thank you everyone for their inputs. Appreciate it. UG From tss at iki.fi Mon May 9 18:23:40 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 18:23:40 +0300 Subject: [Dovecot] NONEXISTENT handling In-Reply-To: <20110422104428.Horde.RwsVHIF5lbhNsbBsPM8V6vA@bigworm.curecanti.org> References: <20110422104428.Horde.RwsVHIF5lbhNsbBsPM8V6vA@bigworm.curecanti.org> Message-ID: <1304954620.10421.87.camel@hurina> On Fri, 2011-04-22 at 10:44 -0600, Michael M Slusarz wrote: > As of 2.0.12, looks like NONEXISTENT response code isn't working > properly again. Fixed: http://hg.dovecot.org/dovecot-2.0/rev/6790433a1e77 From tss at iki.fi Mon May 9 18:34:16 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 18:34:16 +0300 Subject: [Dovecot] doveadm mailbox status 2.0.12 crashes In-Reply-To: References: Message-ID: <1304955256.10421.89.camel@hurina> On Sat, 2011-04-16 at 02:49 -0700, Joseph Tam wrote: > My gdb won't cooperate and produce a backtrace so I hope this dbx stack > trace gives sufficient clues as to why it crashed. It happended when > I was testing a doveadm command for a user which a large collection > of mboxs: .. > # dbx doveadm > (dbx) run mailbox status -u user messages \* > ... long list ... > igel messages=1 > INBOX messages=231 > doveadm(user): Panic: Trying to deinit storage before freeing its objects A backtrace can't really show why it crashed with this. Something wasn't freed for some reason. Can you still reproduce this? I'd like to know of a way to reproduce this. Maybe you can copy this problematic user's mailboxes to a test user and keep deleting stuff until you see what triggers it? From tss at iki.fi Mon May 9 18:36:39 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 18:36:39 +0300 Subject: [Dovecot] Corrupted index cache file In-Reply-To: <4DA7E69A.7000205@esiee.fr> References: <4DA7E69A.7000205@esiee.fr> Message-ID: <1304955399.10421.91.camel@hurina> On Fri, 2011-04-15 at 08:32 +0200, Frank Bonnet wrote: > Apr 14 19:24:37 imap(xxxxxxx): Error: FETCH [] for mailbox Drafts > (Hugues at ESIEE) UID 17836 got too little data: 16384 vs 18012 > Apr 14 19:24:37 imap(xxxxxxx): Error: Corrupted index cache file > /var/cache/dovecot/index/xxxxxxx/.imap/Drafts (Hugues at > ESIEE)/dovecot.index.cache: Broken virtual size for mail UID 17836 mboxes are a bit annoying things. I guess there's a bug somewhere in Dovecot code, but unless you can show me how to reproduce it I don't think I can do anything about it. (I've earlier spent days looking at the mbox code without seeing any bugs in it.) Maybe once everything else is working perfectly I'll just try once more to rewrite the mbox code to be simpler to understand and become perfect. :) From svacinap at compsys.cz Mon May 9 18:37:56 2011 From: svacinap at compsys.cz (Petr Svacina) Date: Mon, 9 May 2011 17:37:56 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk Message-ID: Hi, Please I have a question: If my server is out of space (disk full) and the postfix is LDA, the new messages a deffered or refused,so postfix send 450 to sender ... But When I use dovecot (1.2.16) like LDA, postfix accept message (even there is no space), forward to dovecot, dovecot REFUSE the message and message is lost ! How can I solve this ? I don't want tu use quota and the disk was full, because of the other problem .... thanks. Peter -- Tato zprava byla prohledana na vyskyt viru a nebezpecneho obsahu antivirovym systemem MailScanner a zda se byt cista. From mcbdovecot at robuust.nl Mon May 9 18:47:28 2011 From: mcbdovecot at robuust.nl (Maarten Bezemer) Date: Mon, 9 May 2011 17:47:28 +0200 (CEST) Subject: [Dovecot] Corrupted index cache file In-Reply-To: <1304955399.10421.91.camel@hurina> References: <4DA7E69A.7000205@esiee.fr> <1304955399.10421.91.camel@hurina> Message-ID: For what it's worth.. I've seen the FETCH error with "got too little data" also with Maildir setup. So, not only limited to mbox. This was quite some time ago with (I think) 1.0.15. Back then, I just removed the dovecot.index and cache files (leaving only the uidlist file) for that maildir folder. Worked fine after that (except I had to convince Outlook to resync.. Mail bodies in Outlook cache sometimes didn't match with mail headers...) Currently running 1.2.15, no further corruption seen. -- Maarten On Mon, 9 May 2011, Timo Sirainen wrote: > On Fri, 2011-04-15 at 08:32 +0200, Frank Bonnet wrote: > >> Apr 14 19:24:37 imap(xxxxxxx): Error: FETCH [] for mailbox Drafts >> (Hugues at ESIEE) UID 17836 got too little data: 16384 vs 18012 >> Apr 14 19:24:37 imap(xxxxxxx): Error: Corrupted index cache file >> /var/cache/dovecot/index/xxxxxxx/.imap/Drafts (Hugues at >> ESIEE)/dovecot.index.cache: Broken virtual size for mail UID 17836 > > mboxes are a bit annoying things. I guess there's a bug somewhere in > Dovecot code, but unless you can show me how to reproduce it I don't > think I can do anything about it. (I've earlier spent days looking at > the mbox code without seeing any bugs in it.) > > Maybe once everything else is working perfectly I'll just try once more > to rewrite the mbox code to be simpler to understand and become > perfect. :) > > > From tss at iki.fi Mon May 9 18:47:31 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 18:47:31 +0300 Subject: [Dovecot] example-config mail_log plugin options In-Reply-To: References: Message-ID: <1304956051.10421.94.camel@hurina> On Fri, 2011-04-29 at 15:33 +0200, Lutz Pre?ler wrote: > "mail_log_group_events" seems to be gone (when and why?). And it's now > "save" instead of "append", with "mailbox_create" also available. I remember answering to this mail, but I don't see the mail anywhere.. So maybe I didn't? Anyway: That setting was removed mostly because that part of the code was rewritten and preserving that setting was kind of annoying. I also thought that few people actually wanted to use it, since the only detail it could show about mails was a list of UIDs. I've removed it from example-config: http://hg.dovecot.org/dovecot-2.0/rev/46aed30670bb From cb at lim.nl Mon May 9 18:56:05 2011 From: cb at lim.nl (Colin Brace) Date: Mon, 09 May 2011 17:56:05 +0200 Subject: [Dovecot] sieve filters not being invoked Message-ID: <7cf419ddb72927c72622c4e30a337747@localhost> On Mon, 09 May 2011 13:00:45 +0200, Colin Brace wrote: > In the dovecot-lda log, I am now seeing some action, but there is a > > permissions problem somewhere: > > May 09 12:43:13 lda: Debug: Loading modules from directory: > /usr/local/lib/dovecot > May 09 12:43:13 lda: Debug: Module loaded: > /usr/local/lib/dovecot/lib90_sieve_plugin.so > May 09 12:43:13 lda: Error: userdb lookup: > connect(/var/run/dovecot//auth-userdb) failed: Permission denied > (euid=200(vmail) egid=6(mail) missing +w perm: > /var/run/dovecot//auth-userdb, euid is not dir owner) > May 09 12:43:13 lda: Fatal: Internal error occurred. Refer to server > log for more information. Following up my earlier mail, perhaps I am being obtuse here; I've changed the permissions of auth-userdb to 666, although I have no idea what these files in /var/run/dovecot are. These appears to solve the problem above. Renabling dovecot lda in Postfix, I try sending myself a message; however it gets bounced: "user unknown" (/var/log/maillog): [...] May 9 17:33:08 venus postfix/pipe[73445]: 8BCF629F3F: to=, relay=dovecot, delay=0.34, delays=0.3/0/0/0.03, dsn=5.1.1, status=bounced (user unknown) May 9 17:33:08 venus postfix/cleanup[73442]: C61332A0AB: message-id= May 9 17:33:08 venus postfix/bounce[73447]: 8BCF629F3F: sender non-delivery notification: C61332A0AB May 9 17:33:08 venus postfix/qmgr[73435]: C61332A0AB: from=, size=3183, nrcpt=1 (queue active) May 9 17:33:08 venus postfix/qmgr[73435]: 8BCF629F3F: removed May 9 17:33:08 venus postfix/smtpd[73444]: disconnect from localhost[127.0.0.1] May 9 17:33:08 venus postfix/lmtp[73443]: C5E4729ED5: to=, relay=venus[/var/run/dspam.sock], delay=1.1, delays=0.45/0/0/0.61, dsn=2.6.0, status=sent (250 2.6.0 Message accepted for delivery) May 9 17:33:08 venus postfix/qmgr[73435]: C5E4729ED5: removed If I comment out this line in main.cf, and restart Postfix, things work again: # virtual_transport = dovecot Any ideas on what is going wrong here? I feel I am almost there. -- Colin Brace Amsterdam http://lim.nl -- Colin Brace Amsterdam http://lim.nl From tss at iki.fi Mon May 9 19:19:33 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:19:33 +0300 Subject: [Dovecot] possible bug leading to lmtp crashes In-Reply-To: <4DBC3F3F.4030605@gmail.com> References: <4DAECAAC.3060903@gmail.com> <4DB58F67.4090600@gmail.com> <4DB6FCF7.9070905@gmail.com> <5D19A866-381B-4CA6-B8FF-0F7BCDA36799@iki.fi> <4DBC3F3F.4030605@gmail.com> Message-ID: <1304957973.10421.101.camel@hurina> On Sat, 2011-04-30 at 10:56 -0600, Trever L. Adams wrote: > On 04/26/2011 05:00 PM, Timo Sirainen wrote: > > On 26.4.2011, at 20.12, Trever L. Adams wrote: > > > >> I am finding it interested that abrt seems to say that environment is > >> empty/corrupted. I am attaching more backtraces to the Fedora bug > >> (https://bugzilla.redhat.com/show_bug.cgi?id=697325). > > I think this is a generic bug in LDAP code when using SASL authentication. It just shouldn't be crashing here: > > > >> #6 db_ldap_request_queue_next (conn=0x1c6ed90) at db-ldap.c:343 > > That code around it looks a bit weird.. I'll look at it closer tomorrow. > > By chance were you able to isolate and fix this bug? I wonder if it crashes earlier with this patch? http://hg.dovecot.org/dovecot-2.0/rev/3ada82147977 From tss at iki.fi Mon May 9 19:27:22 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:27:22 +0300 Subject: [Dovecot] Restricting IMAP In-Reply-To: References: Message-ID: <1304958442.10421.102.camel@hurina> On Mon, 2011-05-02 at 10:11 -0500, Matt wrote: > I want to restrict IMAP use too 127.0.0.1 and to only certain > usernames. Such as fred at my777domain.com would be allowed to use IMAP. > How would I do that with Dovecot or can I? Basically I want webmail > to work with IMAP regardless of username but I only want certain > usernames allowed to use IMAP remotely. http://wiki.dovecot.org/Authentication/RestrictAccess lists a bunch of different ways. From tss at iki.fi Mon May 9 19:28:00 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:28:00 +0300 Subject: [Dovecot] Saving mails to +detail failed: Namespace error In-Reply-To: <201105031250.20947.p.heinlein@heinlein-support.de> References: <201105031250.20947.p.heinlein@heinlein-support.de> Message-ID: <1304958480.10421.103.camel@hurina> On Tue, 2011-05-03 at 12:50 +0200, Peer Heinlein wrote: > lmtp_save_to_detail_mailbox = yes .. > May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): > Pg/fKrHav02JGQAAir+T1Q: msgid=<201105031239.40804.p.heinlein at heinlein- > support.de>: save failed to Cong: Unknown namespace For everyone else too: Fixed now by http://hg.dovecot.org/dovecot-2.0/rev/622d42376fe0 From tss at iki.fi Mon May 9 19:28:56 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:28:56 +0300 Subject: [Dovecot] Spelling error in #define ? In-Reply-To: <4DC000DA.4060407@one.com> References: <4DC000DA.4060407@one.com> Message-ID: <1304958536.10421.104.camel@hurina> On Tue, 2011-05-03 at 15:19 +0200, Peter Mogensen wrote: > Hi, > I stumbled over this define in lazy-expunge-plugin.h: > > #ifndef LAZY_EXPUNGE_PLUGIN_H > #define TLAZY_EXPUNGE_PLUGIN_H > > Isn't there a "T" too much? Yep, thanks :) It didn't really matter here though. Fixed anyway now in hg. From tss at iki.fi Mon May 9 19:34:02 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:34:02 +0300 Subject: [Dovecot] mbox/maildir mixed setup with system/virtual mixed users In-Reply-To: References: Message-ID: <1304958842.10421.108.camel@hurina> On Tue, 2011-05-03 at 15:40 +0300, Victor TARHON-ONU wrote: > ...And mailbox and folder location settings: > > userdb static { > args = uid=mail gid=mail home=/var/spool/vmail/%d/mail/%n mail=mbox:/var/spool/vmail/%d/imap/%n:INBOX=mbox:/var/spool/vmail/%d/mail/%n There's no "mbox:" after INBOX=. I wonder how it works at all if you've it like that. > Now, what I'm trying to accomplish is to reconfigure dovecot to > create and handle the secondary mail folders (/home/user/mail for system > users and /var/spool/vmail/domainname/imap/user/imap for virtual users) in > maildir format. > > I tried to define some name spaces to make this happen, but > whatever I to do make one work (either the virtual users or the system > users) would make the other non-functional. You need to configure system users in dovecot.conf and for virtual users override the namespace location. I think something like this works: userdb static { args = .. namespace_2_location=maildir:/var/spool/vmail/%d/imap/%n The "2" there means the second listed namespace. From tss at iki.fi Mon May 9 19:36:35 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:36:35 +0300 Subject: [Dovecot] sieve filters not being invoked In-Reply-To: <8ee991440d2c142bc4079d3bb26a4a0d@localhost> References: <31569757.post@talk.nabble.com> <4DC7B084.2010703@rename-it.nl> <8ee991440d2c142bc4079d3bb26a4a0d@localhost> Message-ID: <1304958995.10421.109.camel@hurina> On Mon, 2011-05-09 at 13:00 +0200, Colin Brace wrote: > dovecot unix - n n - - pipe > flags=DRhu user=vmail:mail argv=/usr/local/libexec/dovecot/deliver -d > ${recipient} You're running deliver as vmail user. > May 09 12:43:13 lda: Error: userdb lookup: > connect(/var/run/dovecot//auth-userdb) failed: Permission denied > (euid=200(vmail) egid=6(mail) missing +w perm: > /var/run/dovecot//auth-userdb, euid is not dir owner) So make auth-userdb owned by vmail user: service auth { unix_listener auth-userdb { user = vmail } } From tss at iki.fi Mon May 9 19:37:34 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:37:34 +0300 Subject: [Dovecot] sieve filters not being invoked In-Reply-To: <7cf419ddb72927c72622c4e30a337747@localhost> References: <7cf419ddb72927c72622c4e30a337747@localhost> Message-ID: <1304959054.10421.110.camel@hurina> On Mon, 2011-05-09 at 17:56 +0200, Colin Brace wrote: > sending myself a message; however it gets bounced: "user unknown" > (/var/log/maillog): Set auth_debug=yes and see what Dovecot's logs say then. From tss at iki.fi Mon May 9 19:41:22 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:41:22 +0300 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: References: Message-ID: <1304959282.10421.112.camel@hurina> On Mon, 2011-05-09 at 17:37 +0200, Petr Svacina wrote: > If my server is out of space (disk full) and the postfix is LDA, the > new messages a deffered or refused,so postfix send 450 to sender ... > But When I use dovecot (1.2.16) like LDA, postfix accept message (even > there is no space), forward to dovecot, dovecot REFUSE the message and > message is lost ! Dovecot deliver should fail with tempfail, which Postfix should notice and forward to the original sender. If deliver doesn't return tempfail, it's a bug. I'd like to see Postfix logs of when this problem happens. From tss at iki.fi Mon May 9 19:45:56 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:45:56 +0300 Subject: [Dovecot] Post-login scripting with mail_drop_priv_before_exec in dovecot2 In-Reply-To: <4DC7E9DB.1090400@webfusion.com> References: <4DC7E9DB.1090400@webfusion.com> Message-ID: <1304959556.10421.116.camel@hurina> On Mon, 2011-05-09 at 16:19 +0300, Mark Zealey wrote: > I'm in the process of upgrading from dovecot v1.1 to dovecot 2. We fetch > uid/gid user information from a database and also use post-login > scripting with mail_drop_priv_before_exec = yes which means the > postlogin script is executed with the permissions of the user we have > found in the database. > > According to the dovecot2 wiki page, to get this behaviour in version 2 > we have to set the post-login script to run as root and then su to the > user. This seems a bit of a strange (and insecure as you might forget) > way of doing this. Are there any other options, such as fetching a > certain column name from the database to set the value of service > imap-postlogin { user } or setting something like user = $user in the > configuration? (or is the configuration only read at startup so such > dynamic configuration can't be done in the service section?) There is no good way to do this. Maybe you should replace your post-login script with a Dovecot plugin that runs on mail_user_created hook and then calls your script with system(). From tss at iki.fi Mon May 9 20:02:55 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 20:02:55 +0300 Subject: [Dovecot] Post-login scripting with mail_drop_priv_before_exec in dovecot2 In-Reply-To: <1304959556.10421.116.camel@hurina> References: <4DC7E9DB.1090400@webfusion.com> <1304959556.10421.116.camel@hurina> Message-ID: <1304960575.10421.117.camel@hurina> On Mon, 2011-05-09 at 19:45 +0300, Timo Sirainen wrote: > On Mon, 2011-05-09 at 16:19 +0300, Mark Zealey wrote: > > > I'm in the process of upgrading from dovecot v1.1 to dovecot 2. We fetch > > uid/gid user information from a database and also use post-login > > scripting with mail_drop_priv_before_exec = yes which means the > > postlogin script is executed with the permissions of the user we have > > found in the database. > > > > According to the dovecot2 wiki page, to get this behaviour in version 2 > > we have to set the post-login script to run as root and then su to the > > user. This seems a bit of a strange (and insecure as you might forget) > > way of doing this. Are there any other options, such as fetching a > > certain column name from the database to set the value of service > > imap-postlogin { user } or setting something like user = $user in the > > configuration? (or is the configuration only read at startup so such > > dynamic configuration can't be done in the service section?) > > There is no good way to do this. Maybe you should replace your > post-login script with a Dovecot plugin that runs on mail_user_created > hook and then calls your script with system(). Oh, actually I think you can simply give -d parameter to script-login.. From matt at gr-lakes.com Mon May 9 20:28:17 2011 From: matt at gr-lakes.com (Matt Mc Namara) Date: Mon, 9 May 2011 13:28:17 -0400 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working References: <4DC4F568.5070204@rename-it.nl> <2895CA51FD8B45F0B15340E98A94FE23@HPDC7600> Message-ID: <6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> Does anyone have any ideas? I've checked my sendmail.cf file which has the entry for dovecot-lda, I've even run it manually and it still does not move the email to the designated file. The logfile for debugging "says" it is running the dovecot-sieve script file. I'm trying to determine where to check next. > Thanks for your response. > > Regarding the ports, I was referring to the services. Which I verified > they > are running. What would cause the scripts to run but do nothing? > > service managesieve-login { > inet_listener sieve { > port = 4190 > } > > inet_listener sieve_deprecated { > port = 2000 > } > > the LDA is enabled and the changes have been made to sendmail. I created a > new sendmail.cf file and the added lines are in there. When I receive an > email the .dovecot.sieve is executed but does nothing. I've attached the > output of dovecot -n. > > # 2.0.12: /usr/local/etc/dovecot/dovecot.conf > # OS: Linux 2.6.35.12-88.fc14.i686 i686 Fedora release 14 (Laughlin) > auth_mechanisms = plain login > disable_plaintext_auth = no > listen = * > mail_location = mbox:~/mail:INBOX=/var/mail/%u > mail_privileged_group = mail > maildir_very_dirty_syncs = yes > mbox_write_locks = fcntl > passdb { > driver = pam > } > service imap-login { > inet_listener imap { > port = 143 > } > } > service pop3-login { > inet_listener pop3 { > port = 110 > } > inet_listener pop3s { > ssl = no > } > } > ssl_cert = ssl_key = userdb { > driver = passwd > } > > > ----- Original Message ----- > From: "Stephan Bosch" > To: > Sent: Saturday, May 07, 2011 3:31 AM > Subject: Re: [Dovecot] DOVECOT v2.0.11 using SIEVE not working > > >> On 5/7/2011 12:54 AM, Matt Mc Namara wrote: >>> Hi, >>> >>> I'm trying to get sieve working with dovecot. I seem to have everything >>> enabled but my scripts done seem to work. >> >> >>> both sieve-filter (2000) and sieve (4190) are running >>> >> Uh, what do you mean with sieve-filter in this case? >> >> Regarding your problem: >> - Make sure you are using the Dovecot LDA >> (http://wiki2.dovecot.org/LDA) and/or LMTP >> (http://wiki2.dovecot.org/LMTP). >> - Make sure the LDA Sieve plugin is enabled >> (http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration) >> - Make sure that the sieve scripts are found. You can obtain more >> information by enabling mail_debug. >> >> If the above does not solve your problem, it is important to post your >> dovecot -n output here. >> >> Regards, >> >> Stephan. From tss at iki.fi Mon May 9 20:41:12 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 20:41:12 +0300 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working In-Reply-To: <6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> References: <4DC4F568.5070204@rename-it.nl> <2895CA51FD8B45F0B15340E98A94FE23@HPDC7600> <6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> Message-ID: <1304962872.10421.119.camel@hurina> On Mon, 2011-05-09 at 13:28 -0400, Matt Mc Namara wrote: > Does anyone have any ideas? I've checked my sendmail.cf file which has the > entry for dovecot-lda, I've even run it manually and it still does not move > the email to the designated file. The logfile for debugging "says" it is > running the dovecot-sieve script file. I'm trying to determine where to > check next. So you've set mail_debug=yes? Show the full log file contents of the delivery, and show the script contents that it says it's running. From tss at iki.fi Mon May 9 20:42:06 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 20:42:06 +0300 Subject: [Dovecot] mail_max_lock_timeout setup In-Reply-To: References: Message-ID: <1304962926.10421.120.camel@hurina> On Sun, 2011-05-08 at 15:17 +0200, Osvaldo Alvarez Pozo wrote: > in wich section most mail_max_lock_timeout be set up? If you set it globally, it applies to all Dovecot services. If you put it inside some protocol {} section, it only applies to that specific service. So, depends on what you want to do.. Some examples only set it to lmtp/lda because tempfailing them isn't as bad as failing IMAP/POP3 command. From ssilva at sgvwater.com Mon May 9 20:43:04 2011 From: ssilva at sgvwater.com (Scott Silva) Date: Mon, 09 May 2011 10:43:04 -0700 Subject: [Dovecot] how to cat / grep from dbox files In-Reply-To: <4DC7B048.1080100@parlicentre.org> References: <4DC2CAD0.60601@parlicentre.org> <4DC7B048.1080100@parlicentre.org> Message-ID: on 5/9/2011 2:13 AM Sarder Kamal spake the following: > Dear Timo > > On 05/05/2011 17:18, Timo Sirainen wrote: >> On 5.5.2011, at 18.05, Sarder Kamal wrote:man doveadm-fetch >> man doveadm-search-query >> >> example: doveadm fetch -u user 'uid text' mailbox INBOX body "hello world" >> > Thanks for the pointers. As I mentioned earlier, too new into dovecot and > still trying to find my way. The only thing I know about this setup is it has > the latest dovecot. However, my next question is, could anyone please tell me > which configuration settings do I need to change to make the storage > non-compressed -- i.e., old style Maildir format? > http://wiki2.dovecot.org/Migration/MailFormat I you actually have the latest version, and not just what your distro says is the latest... From tss at iki.fi Mon May 9 20:49:38 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 20:49:38 +0300 Subject: [Dovecot] Renaming maildir files, UIDs and mail clients In-Reply-To: <20110509074458.GA31982@monsternett.no> References: <20110509074458.GA31982@monsternett.no> Message-ID: <1304963378.10421.123.camel@hurina> On Mon, 2011-05-09 at 09:44 +0200, Helge Milde wrote: > Now for my questions: > 1. How crucial is it to have the S= in the basename when using zlib? > The wiki page mentions quota problems, which we're not using, but also "random failures"... I'm not entirely sure if there is something in the code that relies on it being correct. > 2. Would W= suffice in this regard? No. > 3. If S= *is* needed, is there a way to minimize the effect from the mail client's perspective? Yes. Add the ,S= to the dovecot-uidlist files as well, so the UID doesn't change. If you're using POP3 with UIDLs based on filename you can also add POP3 UIDLs to dovecot-uidlist with new enough Dovecot versions. From tss at iki.fi Mon May 9 20:50:34 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 20:50:34 +0300 Subject: [Dovecot] how to cat / grep from dbox files In-Reply-To: <4DC7B048.1080100@parlicentre.org> References: <4DC2CAD0.60601@parlicentre.org> <4DC7B048.1080100@parlicentre.org> Message-ID: <1304963434.10421.124.camel@hurina> On Mon, 2011-05-09 at 10:13 +0100, Sarder Kamal wrote: > please tell me which configuration settings do I need to change to make > the storage non-compressed -- i.e., old style Maildir format? For new mails there is plugin { zlib_save } setting. For old mails you'd need to uncompress them manually. From matt at gr-lakes.com Mon May 9 20:51:53 2011 From: matt at gr-lakes.com (Matt Mc Namara) Date: Mon, 9 May 2011 13:51:53 -0400 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working References: <4DC4F568.5070204@rename-it.nl><2895CA51FD8B45F0B15340E98A94FE23@HPDC7600><6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> <1304962872.10421.119.camel@hurina> Message-ID: <6D315D76B7314A138A9676C10578E8AB@HPDC7600> This is what I see via the debug.log file. May 09 08:27:48 managesieve(mmcnamar): Debug: Effective uid=500, gid=500, home=/home/mmcnamar May 09 08:27:48 managesieve(mmcnamar): Debug: fs: root=/home/mmcnamar/mail, index=, control=, inbox=/var/mail/mmcnamar May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using active sieve script path: /home/mmcnamar/.dovecot.sieve May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using sieve script storage directory: /home/mmcnamar/sieve May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using permissions from /home/mmcnamar/sieve: mode=0755 gid=-1 May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: relative path to sieve storage in active link: sieve/ May 09 13:04:58 lda: Debug: Module loaded: /usr/lib/dovecot/lib90_sieve_plugin.so May 09 13:05:16 lda: Debug: Module loaded: /usr/lib/dovecot/lib90_sieve_plugin.so May 09 13:05:30 lda: Debug: Module loaded: /usr/lib/dovecot/lib90_sieve_plugin.so ----- Original Message ----- From: "Timo Sirainen" To: "Matt Mc Namara" Cc: Sent: Monday, May 09, 2011 1:41 PM Subject: Re: [Dovecot] DOVECOT v2.0.11 using SIEVE not working > On Mon, 2011-05-09 at 13:28 -0400, Matt Mc Namara wrote: >> Does anyone have any ideas? I've checked my sendmail.cf file which has >> the >> entry for dovecot-lda, I've even run it manually and it still does not >> move >> the email to the designated file. The logfile for debugging "says" it is >> running the dovecot-sieve script file. I'm trying to determine where to >> check next. > > So you've set mail_debug=yes? Show the full log file contents of the > delivery, and show the script contents that it says it's running. > From stan at hardwarefreak.com Mon May 9 21:46:36 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Mon, 09 May 2011 13:46:36 -0500 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: References: Message-ID: <4DC8368C.6030505@hardwarefreak.com> On 5/9/2011 10:37 AM, Petr Svacina wrote: > Hi, > > Please I have a question: > > If my server is out of space (disk full) and the postfix is LDA, the new messages a deffered or refused,so postfix send 450 to sender ... > But When I use dovecot (1.2.16) like LDA, postfix accept message (even there is no space), forward to dovecot, dovecot REFUSE the message and message is lost ! > > How can I solve this ? I don't want tu use quota and the disk was full, because of the other problem .... This is more of a mail server admin 101 issue than a Dovecot issue. Putting your log, mail spool, and user mail directories on separate partitions, physical disks, or SAN LUNs will prevent such a problem from occurring 99% of the time, assuming you have planned and sized your storage appropriately for your environment. At minimum you should have your spool and user mail storage on different partitions. To avoid this issue the other 1% of the time, use monitoring or log summary tools to notify you of disk space usage so you know when you're close to running out of space. For instance, I receive the following as part of my daily logwatch summary on my personal domain MX: Filesystem Size Used Avail Use% Mounted on /dev/sda2 33G 4.2G 28G 14% / /dev/sda1 92M 8.4M 79M 10% /boot /dev/sda6 94G 1.2G 92G 2% /home /dev/sda7 94G 25G 70G 26% /samba Note that I have both system logs and the mail spool on / but user mail directories in /home. This setup is acceptable for a low volume server. For a high volume server the mail spool should be on a dedicated partition, as well as user mail dirs. If you already know all of this and an unforeseen issue caused your problem, accept my apologies for preaching to the choir. -- Stan From stephan at rename-it.nl Mon May 9 22:40:08 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Mon, 09 May 2011 21:40:08 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: References: Message-ID: <4DC84318.908@rename-it.nl> On 05/09/2011 05:37 PM, Petr Svacina wrote: > Hi, > > Please I have a question: > > If my server is out of space (disk full) and the postfix is LDA, the new messages a deffered or refused,so postfix send 450 to sender ... > But When I use dovecot (1.2.16) like LDA, postfix accept message (even there is no space), forward to dovecot, dovecot REFUSE the message and message is lost ! > > How can I solve this ? I don't want tu use quota and the disk was full, because of the other problem .... > Are you using any plugins, like Sieve? Regards, Stephan. From kjonca at o2.pl Tue May 10 02:20:19 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Tue, 10 May 2011 01:20:19 +0200 Subject: [Dovecot] compressed mboxes very slow References: <87iptnoans.fsf@alfa.kjonca> <4DC5BBB1.1030005@hardwarefreak.com> <87vcxla3x4.fsf@alfa.kjonca> <4DC6E781.60503@hardwarefreak.com> Message-ID: <87vcxj8nrg.fsf@alfa.kjonca> Stan Hoeppner writes: > On 5/8/2011 5:21 AM, Kamil Jo?ca wrote: >> Stan Hoeppner writes: >> >>> On 5/6/2011 3:07 PM, Kamil Jo?ca wrote: >>>> >>>> I have some archive mails in gzipped mboxes. I could use them with >>>> dovecot 1.x without problems. >>>> But recently I have installed dovecot 2.0.12, and they are slow. very >>>> slow. >>>> >>>> Creating index files takes about 10 minutes for ~20M file with 560 >>>> messages for bzipped mbox, for gzipped is little better but still >>>> unusable :( >>> >>> What other software, if any, was also upgraded/changed when you >>> upgraded to Dovecot 2.0.12? Libraries? Filesystem? Daemons? What >> >> IIRC only dovecot - I simply upgrade debian package via aptitude. > > The latest Debian stable dovecot package is 1.2.15-4. If 'aptitude > upgrade' pulled 2.0.12 then you are running either testing or Yes, its testing (sid) dist. [...] > > If you're running testing/unstable you should already know how to > check this. Inotify is a kernel API. For Debian Dovecot to use I know what is inotify, but I haven't to test it so far. :| > inotify it must be compiled with the build option 'notify=inotify'. > You'll need to see the package maintainer's build script. You'll > also need to look at the kernel .config used to build your kernel as > inotify must be built into your kernel. > 1. I have uninstalled debian's package 2. got http://www.dovecot.org/nightly/dovecot-20110506.tar.gz, 3. configure with --notify=inotify, and it looks that inotify exists and is used[1], make make install 4. then run with --8<---------------cut here---------------start------------->8--- #strace -o ~/tmp/dovecot/log -ff dovecot -c /etc/dovecot/dovecot.conf --8<---------------cut here---------------end--------------->8--- 5. connect with mutt and select one of gzipped folders 6. connect with fetchmail and select another gzipped folder (with the same contents as in 5) grepping strace logs shows that in both cases mboxes are reread regularly :( moreover there's no inotify_init (...) call by any dovecot process. Any ideas? [1] moreover inotifywatch works as expected. KJ -- http://modnebzdury.wordpress.com/2009/10/01/niewiarygodny-list-prof-majewskiej-wprowadzenie/ "S?k w tym, ?e cz?owiek rozumny jest statystycznie g?upi" - Stanis?aw Lem. From nebano at gmail.com Tue May 10 03:03:43 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Tue, 10 May 2011 02:03:43 +0200 Subject: [Dovecot] mail_max_lock_timeout setup In-Reply-To: <1304962926.10421.120.camel@hurina> References: <1304962926.10421.120.camel@hurina> Message-ID: Hi. Ok. I intend to use it with OCFS2 storage. So, that would do the trick: protocol lmtp { mail_max_lock_timeout = 50 postmaster_address = admin at example.com } thank a lot 2011/5/9 Timo Sirainen : > On Sun, 2011-05-08 at 15:17 +0200, Osvaldo Alvarez Pozo wrote: > >> in wich section most mail_max_lock_timeout be set up? > > If you set it globally, it applies to all Dovecot services. If you put > it inside some protocol {} section, it only applies to that specific > service. So, depends on what you want to do.. Some examples only set it > to lmtp/lda because tempfailing them isn't as bad as failing IMAP/POP3 > command. > > > From jtam.home at gmail.com Tue May 10 03:11:12 2011 From: jtam.home at gmail.com (Joseph Tam) Date: Mon, 9 May 2011 17:11:12 -0700 (PDT) Subject: [Dovecot] doveadm mailbox status 2.0.12 crashes In-Reply-To: References: Message-ID: On Mon, 9 May 2011, Timo Sirainen wrote: >> # dbx doveadm >> (dbx) run mailbox status -u user messages \* >> ... long list ... >> igel messages=1 >> INBOX messages=231 >> doveadm(user): Panic: Trying to deinit storage before freeing its objects > > A backtrace can't really show why it crashed with this. Something wasn't > freed for some reason. Can you still reproduce this? I'd like to know of > a way to reproduce this. Maybe you can copy this problematic user's > mailboxes to a test user and keep deleting stuff until you see what > triggers it? I started removing files as you've suggested and the minimal condition that triggers a crash is at least one non-mbox file. $ rm /var/mail/user $ rm -rf ~user/mail/* $ echo x >~user/mail/x $ doveadm mailbox status -u user messages \* doveadm(user): Error: Syncing mailbox x failed: Mailbox isn't a valid mbox file doveadm(user): Panic: Trying to deinit storage before freeing its objects doveadm(user): Error: Raw backtrace: 0xff1c296c -> 0xff2a4e20 -> 0xff29e5cc -> 0xff2a8784 -> 0xff2a89fc -> 0x168d4 -> 0x169e0 -> 0x16ef4 -> 0x1745c -> 0x1cafc -> 0x1629c Joseph Tam From stan at hardwarefreak.com Tue May 10 08:06:54 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Tue, 10 May 2011 00:06:54 -0500 Subject: [Dovecot] compressed mboxes very slow In-Reply-To: <87vcxj8nrg.fsf@alfa.kjonca> References: <87iptnoans.fsf@alfa.kjonca> <4DC5BBB1.1030005@hardwarefreak.com> <87vcxla3x4.fsf@alfa.kjonca> <4DC6E781.60503@hardwarefreak.com> <87vcxj8nrg.fsf@alfa.kjonca> Message-ID: <4DC8C7EE.5060208@hardwarefreak.com> On 5/9/2011 6:20 PM, Kamil Jo?ca wrote: > 5. connect with mutt and select one of gzipped folders > 6. connect with fetchmail and select another gzipped folder (with the > same contents as in 5) Does the problem occur with only one client, or are two or more clients required to reproduce the problem? If the former, you're simply unnecessarily confusing things by mentioning two clients in the problem reproduction case here. > grepping strace logs shows that in both cases mboxes are reread > regularly :( moreover there's no inotify_init (...) call by any dovecot > process. > Any ideas? The first time the mbox file is read its filesystem blocks will be cached. The actual file read will take 1 second max on 10 year old hardware, 0.2 seconds on modern hardware. Thus, each subsequent time Dovecot 're-reads' the file, it will occur at RAM speed, something between 3.2 and 12.8GB/s depending on system age. Thus, if it's taking 10 minutes to build the indexes for this gzipped mbox file, the cause of that elapsed 10 minutes isn't going to be the re-reading of the file, as this operation will be completing in microseconds. If you go back to 1.2.15 and strace Dovecot, do you see the same re-reading of the mbox files after each 20 or so messages? This behavior may be normal. I'm not familiar with the code or I'd have told you if this is the case. Regardless, I doubt re-reading is the cause of the slowness. There's got to be something else in the loop besides the file read eating up the CPU time. Given it's 10 minutes for a 20MB file it would seem logical that a large wait is being inserted or Dovecot is waiting for a lock to expire--something along these lines. I'd doubt Dovecot is actually doing anything most of this 10 minutes. I think you need to find out what Dovecot 2.x is waiting on that 1.2.15 wasn't. -- Stan From tomas at tuxteam.de Tue May 10 09:32:48 2011 From: tomas at tuxteam.de (tomas at tuxteam.de) Date: Tue, 10 May 2011 08:32:48 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <4DC6D1F7.7050103@hardwarefreak.com> Message-ID: <20110510063248.GA6437@tomas> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, May 09, 2011 at 08:28:38AM +0200, Per Jessen wrote: [...] > The usual setup is to do exactly that though - ntpdate (now sntp) at > startup to make sure the initial setting is reasonable, then ntpd to > keep it in sync. To be fair, that (especially the ntpdate part) seems to be a SuSE-ism. Here's a nice reading: Regards - -- tom?s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFNyNwQBcgs9XrR2kYRAtPSAJ0bDpfEkzHMxgiaKEZ2izooR8VkWgCdFQ4c 2brHiLfOIy9Jlqj5Gmp4i0U= =H3mN -----END PGP SIGNATURE----- From ronny.becker at bioscientia.de Tue May 10 09:15:45 2011 From: ronny.becker at bioscientia.de (Becker, Ronny) Date: Tue, 10 May 2011 08:15:45 +0200 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: References: <4DC25A26.3000808@bioscientia.de> Message-ID: <4DC8D811.7060005@bioscientia.de> Am 05.05.2011 22:24, schrieb Scott Silva: > on 5/5/2011 1:04 AM Becker, Ronny spake the following: >> Hello, >> I am using Dovecot 1.2.9 on a 32bit on Ubuntu 10.04.2 LTS. >> >> We got one user who uses folders in an "exessive" way. He has got 704 >> subscribed folders. That means about nearly 3000 folders on the filesystem. >> Since ~ a week the user couldn't work because of timeouts when connecting to >> Dovecot (IMAP). Thunderbird doesn't show any folders - timeout - the webmail >> System (Groupoffice) only presents the INBOX. >> >> I did some debugging and found that a lsub "" "*" that is used by Thunderbird >> takes> 5 minutes. Thunderbird disconnects after ~1 Minute showing the >> timeout. I entered the command directly via port communication. So this is no >> clientside problem. But there is no error message or something else in any logs. >> >> I did some debugging with strace, too. It's about 22MB only for running the >> lsub command !? The Mailbox size is about ~2.2GB, so this should be no >> problem. The maximum subfolder level is about 13 - could this be a problem? >> You can find the structure (simply shown) attached. >> >> >> Thanks for any help!! >> >> >> Best regards >> Ronny Becker >> >> > What is the underlying filesystem, and if its ext3, is dir_index set on? > The underlying Filesystem is ext3 with dir_index enabled. As Timo Sirainen explained the problem seems to be the ACL plugin. With ACL enabled every folder is scanned for a dovecot-acl file and that needs a lot of time. In this case there are >700 subscribed folders using >3600 folders on the filesystem. Gesellschaft mit beschr?nkter Haftung mit Sitz in 55218 Ingelheim am Rhein, eingetragen im Handelsregister des Amtsgerichts Mainz unter HRB 21166. Gesch?ftsf?hrer: PD. Dr. med. Markus Nauck und Dipl.-Vw. Johannes Brill. Vorsitzender des Aufsichtsrates: Prof. Dr. med. Bernd Heicke. Diese E-Mail kann vertrauliche oder auf andere Weise gesch?tzte Informationen enthalten. Sollten Sie diese E-Mail irrt?mlich erhalten haben, l?schen Sie diese bitte von Ihrem System und setzen Sie uns unverz?glich von dem Vorfall in Kenntnis. USt-ID-Nr. DE 811138229 ___ Limited liability company with registered office in 55218 Ingelheim am Rhein, registered with the commercial register of the local court of Mainz under HRB 21166. Managing directors: PD Dr. med. Markus Nauck and Dipl.-Vw. Johannes Brill. Chairman of the supervisory board: Prof. Dr. med. Bernd Heicke. This e-mail may contain confidential or otherwise privileged information. If you are not the intended recipient, please inform us immediately and delete the e-mail from your system. VAT-ID-Nr. DE 811138229 From ronny.becker at bioscientia.de Tue May 10 09:19:32 2011 From: ronny.becker at bioscientia.de (Becker, Ronny) Date: Tue, 10 May 2011 08:19:32 +0200 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: References: <4DC25A26.3000808@bioscientia.de> <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> Message-ID: <4DC8D8F4.5040504@bioscientia.de> Am 05.05.2011 10:44, schrieb Timo Sirainen: > On 5.5.2011, at 10.19, Timo Sirainen wrote: > >>> I did some debugging with strace, too. It's about 22MB only for running the lsub command !? >> Run it with strace -tt and send me the output compressed? > Ah, you have ACLs enabled. With ACLs it's looking up dovecot-acl file from each folder before returning it. This shouldn't be necessary with LSUB I think. I suppose some kind of an ACL cache could be a good idea some day too. And maybe a setting not to bother looking up ACLs for mailboxes in private namespaces. > > I'll try to do something about those within a few days.. > Someone told me, that this problem should not happen when acl_shared_dict is used. But this was enabled in our setup. Is there any other workaround to use ACLs with such a large number of folders?! From maria_arrea at gmx.com Tue May 10 09:33:31 2011 From: maria_arrea at gmx.com (Maria Arrea) Date: Tue, 10 May 2011 06:33:31 +0000 Subject: [Dovecot] Sieve & auto_create mail_home Message-ID: <20110510063331.35600@gmx.com> Hello I am still struggling with this, any idea? Regards Maria ----- Original Message ----- From: Maria Arrea Sent: 05/09/11 12:19 PM To: Dovecot Mailing List Subject: [Dovecot] Sieve & auto_create mail_home Hello In my setup I have the following in dovecot.conf (dovecot 2.0.12) mail_home = /buzones/mydomain/%2.26Hn/%2.200Hn/%n/home_usuario/ mail_location = mdbox:/buzones/my_domain/%2.26Hn/%2.200Hn/%n:INDEX=/indices_dovecot/indices/%2.26Hn/%2.200Hn/%n My problem is with the autocreation of mail_home. We are using roundcube+sieve plugin and the first time a user tries to use sieve fails with this: May 9 12:13:52 buzon dovecot: managesieve(a_poor_user at mydomain): Error: sieve-storage: open(/buzones/my_domain/0a/94/javierdemiguel/home_usuario/sieve//tmp/roundcube-1304936032.M335644P23819.mydomain.sieve) failed: No such file or directory In the second attempt works without problems, the folder "home_usuario" is created after failing the first. How can I fix this? Regards Maria From kjonca at o2.pl Tue May 10 09:32:33 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Tue, 10 May 2011 08:32:33 +0200 Subject: [Dovecot] compressed mboxes very slow References: <87iptnoans.fsf@alfa.kjonca> <4DC5BBB1.1030005@hardwarefreak.com> <87vcxla3x4.fsf@alfa.kjonca> <4DC6E781.60503@hardwarefreak.com> <87vcxj8nrg.fsf@alfa.kjonca> <4DC8C7EE.5060208@hardwarefreak.com> Message-ID: <87oc3b83r2.fsf@alfa.kjonca> Stan Hoeppner writes: > On 5/9/2011 6:20 PM, Kamil Jo?ca wrote: > >> 5. connect with mutt and select one of gzipped folders >> 6. connect with fetchmail and select another gzipped folder (with the >> same contents as in 5) > > Does the problem occur with only one client, or are two or more > clients required to reproduce the problem? If the former, you're > simply unnecessarily confusing things by mentioning two clients in the > problem reproduction case here. >From one of your mail: --8<---------------cut here---------------start------------->8--- Have you tested any other IMAP client such as Thunderbird to eliminate mutt as the cause of the problem? --8<---------------cut here---------------end--------------->8--- So now I can say, this problem is not only with mutt > If you go back to 1.2.15 and strace Dovecot, do you see the same > re-reading of the mbox files after each 20 or so messages? This > behavior may be normal. I'm not familiar with the code or I'd have I will try. KJ -- http://modnebzdury.wordpress.com/2009/10/01/niewiarygodny-list-prof-majewskiej-wprowadzenie/ Zuzanka najwyra?niej pe?ni obowi?zki Albina Siwaka w tej ekipie... (C) Slawek Kotynski w dyskusj nt. pl.whatewer.SETI at home... From stan at hardwarefreak.com Tue May 10 12:30:16 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Tue, 10 May 2011 04:30:16 -0500 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: <4DC8D8F4.5040504@bioscientia.de> References: <4DC25A26.3000808@bioscientia.de> <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> <4DC8D8F4.5040504@bioscientia.de> Message-ID: <4DC905A8.9040501@hardwarefreak.com> On 5/10/2011 1:19 AM, Becker, Ronny wrote: > Am 05.05.2011 10:44, schrieb Timo Sirainen: >> On 5.5.2011, at 10.19, Timo Sirainen wrote: >> >>>> I did some debugging with strace, too. It's about 22MB only for >>>> running the lsub command !? >>> Run it with strace -tt and send me the output compressed? >> Ah, you have ACLs enabled. With ACLs it's looking up dovecot-acl file >> from each folder before returning it. This shouldn't be necessary with >> LSUB I think. I suppose some kind of an ACL cache could be a good idea >> some day too. And maybe a setting not to bother looking up ACLs for >> mailboxes in private namespaces. >> >> I'll try to do something about those within a few days.. >> > Someone told me, that this problem should not happen when > acl_shared_dict is used. But this was enabled in our setup. Is there any > other workaround to use ACLs with such a large number of folders?! In the absence of Timo producing the patches he mentioned in short order... Install this 3.5" Vertex2 120GB SATA II SSD for less than $250 USD incl/shipping: http://www.newegg.com/Product/Product.aspx?Item=N82E16820227590 (If you're shy of using a 'consumer' marketed unit, buy the 64GB Intel SLC for ~$700) This Vertex2 will give you 50,000 random write IOPS (~same for read) with 0.1ms seek latency, approximately 3x the IOPS of a $75k 60x15k SAS drive Nexsan e60 FC SAN array and 50x lower seek latency--but with only 1/300th the capacity. Format with EXT3/4, and simply move your problem user's entire mail directory to the SSD and change his mail location setting. Problem solved instantly, with authority. As you should have ~100GB of space left on the SSD after moving him/her over, move all user indexes to the SSD as well. This will yield an incredible speed boost for all users, and prevent any 'jealously' politics when word spreads of 'Bob' getting his own super-duper fast drive in the server. -- Stan From lists at wildgooses.com Tue May 10 14:47:32 2011 From: lists at wildgooses.com (Ed W) Date: Tue, 10 May 2011 12:47:32 +0100 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: References: <4DC25A26.3000808@bioscientia.de> <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> Message-ID: <4DC925D4.7080106@wildgooses.com> On 05/05/2011 09:44, Timo Sirainen wrote: > On 5.5.2011, at 10.19, Timo Sirainen wrote: > >>> I did some debugging with strace, too. It's about 22MB only for running the lsub command !? >> >> Run it with strace -tt and send me the output compressed? > > Ah, you have ACLs enabled. With ACLs it's looking up dovecot-acl file from each folder before returning it. This shouldn't be necessary with LSUB I think. I suppose some kind of an ACL cache could be a good idea some day too. And maybe a setting not to bother looking up ACLs for mailboxes in private namespaces. Silly question, but I presume there is effectively no "negative caching" from the OS for missing files, but presumably the OS would cache a zero length file? Would it be faster then to create 700 zero length acl files so that these lookups will at least be returned from the OS cache instead of causing IO seeks? First open will be slow, but faster thereafter? Just an idea? Ed W From svacinap at compsys.cz Tue May 10 15:44:17 2011 From: svacinap at compsys.cz (Petr Svacina) Date: Tue, 10 May 2011 14:44:17 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: References: Message-ID: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> Here is the logs: May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: save failed to INBOX: Not enough disk space May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: rejected: Not enough disk space May 8 06:00:36 mailserver postfix/pickup[27640]: D8B242F9E1: uid=150 from=<> May 8 06:00:36 mailserver postfix/pipe[27978]: 4B3A72F8C0: to=, relay=dovecot, delay=11, delays=11/0.02/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot service) May 8 06:00:36 mailserver postfix/qmgr[18807]: 4B3A72F8C0: removed Problem is, that: 1. spool HAVE ENOUGH space (so postfix has no problem keeps the message in the spool) 2. postfix forward message to dovecot 3. dovecot accept message, but can not deliver to /home/vmail, because there is no space :-) 4. so dovecot lost/delete/refuse message and tells postfix - everything is Ok ? 5. postfix cleans qmgr (bacause message has been forward to LDA succesfully I suppose :-) ) Thanks Peter > > On Mon, 2011-05-09 at 17:37 +0200, Petr Svacina wrote: > >> If my server is out of space (disk full) and the postfix is LDA, the >> new messages a deffered or refused,so postfix send 450 to sender ... >> But When I use dovecot (1.2.16) like LDA, postfix accept message (even >> there is no space), forward to dovecot, dovecot REFUSE the message and >> message is lost ! > > Dovecot deliver should fail with tempfail, which Postfix should notice > and forward to the original sender. If deliver doesn't return tempfail, > it's a bug. I'd like to see Postfix logs of when this problem happens. > > -- Tato zprava byla prohledana na vyskyt viru a nebezpecneho obsahu antivirovym systemem MailScanner a zda se byt cista. From mailing at securitylabs.it Tue May 10 15:50:43 2011 From: mailing at securitylabs.it (mailing at securitylabs.it) Date: Tue, 10 May 2011 14:50:43 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> References: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> Message-ID: <4DC934A3.6080902@securitylabs.it> On 10/05/2011 14:44, Petr Svacina wrote: > Here is the logs: > > May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: save failed to INBOX: Not enough disk space > May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: rejected: Not enough disk space > May 8 06:00:36 mailserver postfix/pickup[27640]: D8B242F9E1: uid=150 from=<> > May 8 06:00:36 mailserver postfix/pipe[27978]: 4B3A72F8C0: to=, relay=dovecot, delay=11, delays=11/0.02/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot service) > May 8 06:00:36 mailserver postfix/qmgr[18807]: 4B3A72F8C0: removed > To me message ID : D8B242F9E1 seems a bounce to the sender, if that's correct I don't see troubles with that. From svacinap at compsys.cz Tue May 10 16:04:52 2011 From: svacinap at compsys.cz (Petr Svacina) Date: Tue, 10 May 2011 15:04:52 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: References: Message-ID: <15A3DDDB-AB3D-4560-B342-18C2DF87DE10@compsys.cz> Hi, Yes know, I know, that ANY OUT of SPACE problem is SPECIALLY administrator's problem and please check my previous answer ... Out of space on the disk is my problem, but I want to know, why postfix receive message to it's spool (another partition - lot of space) and when postfix uses dovecot to deliver message to the inbox, where is NO space, why message is lost and removed from qmgr. thanks a lot :-) Peter > > On 5/9/2011 10:37 AM, Petr Svacina wrote: >> Hi, >> >> Please I have a question: >> >> If my server is out of space (disk full) and the postfix is LDA, the new messages a deffered or refused,so postfix send 450 to sender ... >> But When I use dovecot (1.2.16) like LDA, postfix accept message (even there is no space), forward to dovecot, dovecot REFUSE the message and message is lost ! >> >> How can I solve this ? I don't want tu use quota and the disk was full, because of the other problem .... > > This is more of a mail server admin 101 issue than a Dovecot issue. > Putting your log, mail spool, and user mail directories on separate > partitions, physical disks, or SAN LUNs will prevent such a problem from > occurring 99% of the time, assuming you have planned and sized your > storage appropriately for your environment. At minimum you should have > your spool and user mail storage on different partitions. To avoid this > issue the other 1% of the time, use monitoring or log summary tools to > notify you of disk space usage so you know when you're close to running > out of space. For instance, I receive the following as part of my daily > logwatch summary on my personal domain MX: > > Filesystem Size Used Avail Use% Mounted on > /dev/sda2 33G 4.2G 28G 14% / > /dev/sda1 92M 8.4M 79M 10% /boot > /dev/sda6 94G 1.2G 92G 2% /home > /dev/sda7 94G 25G 70G 26% /samba > > Note that I have both system logs and the mail spool on / but user mail > directories in /home. This setup is acceptable for a low volume server. > For a high volume server the mail spool should be on a dedicated > partition, as well as user mail dirs. > > If you already know all of this and an unforeseen issue caused your > problem, accept my apologies for preaching to the choir. > > -- > Stan > -- Tato zprava byla prohledana na vyskyt viru a nebezpecneho obsahu antivirovym systemem MailScanner a zda se byt cista. From svacinap at compsys.cz Tue May 10 16:06:35 2011 From: svacinap at compsys.cz (Petr Svacina) Date: Tue, 10 May 2011 15:06:35 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: References: Message-ID: <7D030741-2C7F-4260-BCA2-063DD0909A64@compsys.cz> Hi, No. No any version of the sieve us used .... > On 05/09/2011 05:37 PM, Petr Svacina wrote: >> Hi, >> >> Please I have a question: >> >> If my server is out of space (disk full) and the postfix is LDA, the new messages a deffered or refused,so postfix send 450 to sender ... >> But When I use dovecot (1.2.16) like LDA, postfix accept message (even there is no space), forward to dovecot, dovecot REFUSE the message and message is lost ! >> >> How can I solve this ? I don't want tu use quota and the disk was full, because of the other problem .... >> > > Are you using any plugins, like Sieve? > > Regards, > > Stephan. > -- Tato zprava byla prohledana na vyskyt viru a nebezpecneho obsahu antivirovym systemem MailScanner a zda se byt cista. From lists at wildgooses.com Tue May 10 16:50:41 2011 From: lists at wildgooses.com (Ed W) Date: Tue, 10 May 2011 14:50:41 +0100 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <4DC79E7A.5080700@hardwarefreak.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> <4DC79E7A.5080700@hardwarefreak.com> Message-ID: <4DC942B1.7020502@wildgooses.com> On 09/05/2011 08:57, Stan Hoeppner wrote: > On 5/9/2011 1:31 AM, Per Jessen wrote: >> Stan Hoeppner wrote: > >>> This is not correct. You're assuming that ntpd doesn't perform sanity >>> checks on the system time when the daemon starts, which is not the >>> case. >> >> The sanity check may be disabled with -g in which case using >> ntpdate/sntp/ntpd -q at start up becomes pointless. > > 'ntpdate -q' has always been 'pointless', unless you just want to look > at the offset without modifying the clock. I do so on occasion to see > how accurately my local ntp server is keeping time. For instance: Can I suggest that the OP also consider Chrony for timekeeping needs? Chrony will generally sync faster than ntp and additionally will manage the setting of the clock at startup. Even nicer it will condition the RTC clock and so for example if your RTC is drifting (it will) then chrony tries to maintain a drift estimate and set the initial time to a sensible offset from the RTC (nice!) Chrony just made a new release a few days ago and it has a bunch of neat features for those who want to get excited about excessively accurate clocks > I acquired 'special' permission many years ago to use a few stratum 1 > USNO servers mostly because at that time I lived in a city where one of > them is located, and because I only have one client querying > infrequently. USNO is the official time keeper for the US Military and > the US Government, including ships at sea via GPS. USNO has the most > accurate timekeeping devices on the planet--atomic clocks. Most (if not > all) of the stratum 2 servers in the US query the USNO stratum 1 servers. Querying an NTP stratum 1 server over the internet will likely leave you with less than millisec accuracy. ie the original is accurate, but the limitations of syncing over the internet are significant Compared with a cheap GPS attached to your machine which should get below ms accuracy and perhaps even below the 100us mark So, in practice it's fairly irrelevant to be hooked to a stratum 1 for most purposes and if you really want to get obsessed about accurate time (I'm going through this obsession phase right now...) then just get a local GPS attached to your machine... I saw some analysis from the current lead Chrony developer comparing time offsets of a bunch of public timeservers and the resulting analysis seems to be that there is quite some significant skew, even on stratum 1 machines... ie you can easily do better at home with a GPS than using a public stratume 1... Curious huh Good luck Ed W From tss at iki.fi Tue May 10 17:02:18 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 17:02:18 +0300 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> References: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> Message-ID: <7638EBDA-9290-4CEB-A940-E2E47B938821@iki.fi> On 10.5.2011, at 15.44, Petr Svacina wrote: > May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: save failed to INBOX: Not enough disk space > May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: rejected: Not enough disk space Oh, it's a rejection.. I guess it's because it's handled the same way as "out of quota". Two things you can do: a) give -e parameter to deliver, so it exits with the proper code instead of sending a new "rejected" message via sendmail. (I think I should have made this the default in v2.0.. Maybe I could change it in v2.1.) b) quota_full_tempfail = yes to have it exit with tempfail rather than a permanent failure From tss at iki.fi Tue May 10 17:47:12 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 17:47:12 +0300 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: References: <4DC25A26.3000808@bioscientia.de> <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> Message-ID: <1305038832.10421.125.camel@hurina> On Thu, 2011-05-05 at 10:44 +0200, Timo Sirainen wrote: > Ah, you have ACLs enabled. With ACLs it's looking up dovecot-acl file from each folder before returning it. This shouldn't be necessary with LSUB I think. I suppose some kind of an ACL cache could be a good idea some day too. And maybe a setting not to bother looking up ACLs for mailboxes in private namespaces. http://hg.dovecot.org/dovecot-2.0/rev/a7f1980d250c should help for your specific problem. From tss at iki.fi Tue May 10 17:52:15 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 17:52:15 +0300 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working In-Reply-To: <6D315D76B7314A138A9676C10578E8AB@HPDC7600> References: <4DC4F568.5070204@rename-it.nl><2895CA51FD8B45F0B15340E98A94FE23@HPDC7600> <6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> <1304962872.10421.119.camel@hurina> <6D315D76B7314A138A9676C10578E8AB@HPDC7600> Message-ID: <1305039135.10421.127.camel@hurina> Those are logs from ManageSieve. ManageSieve has nothing to do with actual mail delivery, only with getting Sieve scripts uploaded to the server. The mail delivery must be done via Dovecot LDA: http://wiki2.dovecot.org/LDA On Mon, 2011-05-09 at 13:51 -0400, Matt Mc Namara wrote: > This is what I see via the debug.log file. > > May 09 08:27:48 managesieve(mmcnamar): Debug: Effective uid=500, gid=500, > home=/home/mmcnamar > May 09 08:27:48 managesieve(mmcnamar): Debug: fs: root=/home/mmcnamar/mail, > index=, control=, inbox=/var/mail/mmcnamar > May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using active > sieve script path: /home/mmcnamar/.dovecot.sieve > May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using sieve > script storage directory: /home/mmcnamar/sieve > May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using > permissions from /home/mmcnamar/sieve: mode=0755 gid=-1 > May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: relative path > to sieve storage in active link: sieve/ > May 09 13:04:58 lda: Debug: Module loaded: > /usr/lib/dovecot/lib90_sieve_plugin.so > May 09 13:05:16 lda: Debug: Module loaded: > /usr/lib/dovecot/lib90_sieve_plugin.so > May 09 13:05:30 lda: Debug: Module loaded: > /usr/lib/dovecot/lib90_sieve_plugin.so > > ----- Original Message ----- > From: "Timo Sirainen" > To: "Matt Mc Namara" > Cc: > Sent: Monday, May 09, 2011 1:41 PM > Subject: Re: [Dovecot] DOVECOT v2.0.11 using SIEVE not working > > > > On Mon, 2011-05-09 at 13:28 -0400, Matt Mc Namara wrote: > >> Does anyone have any ideas? I've checked my sendmail.cf file which has > >> the > >> entry for dovecot-lda, I've even run it manually and it still does not > >> move > >> the email to the designated file. The logfile for debugging "says" it is > >> running the dovecot-sieve script file. I'm trying to determine where to > >> check next. > > > > So you've set mail_debug=yes? Show the full log file contents of the > > delivery, and show the script contents that it says it's running. > > > From tss at iki.fi Tue May 10 17:55:56 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 17:55:56 +0300 Subject: [Dovecot] doveadm mailbox status 2.0.12 crashes In-Reply-To: References: Message-ID: <1305039356.10421.128.camel@hurina> On Mon, 2011-05-09 at 17:11 -0700, Joseph Tam wrote: > >> doveadm(user): Panic: Trying to deinit storage before freeing its objects > > > I started removing files as you've suggested and the minimal > condition that triggers a crash is at least one non-mbox file. Thanks, fixed: http://hg.dovecot.org/dovecot-2.0/rev/b74dfa49692b From tss at iki.fi Tue May 10 17:58:58 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 17:58:58 +0300 Subject: [Dovecot] Dovecot Maildir ownership/permission problem In-Reply-To: <31573368.post@talk.nabble.com> References: <31573368.post@talk.nabble.com> Message-ID: <1305039538.10421.130.camel@hurina> On Mon, 2011-05-09 at 07:16 -0700, ikevinjp wrote: > I think what I would like is to make Dovecot access each individual's > mailbox using the user's own account and group. How do I do this? I am using > Passwd-file scheme. .. > --- Some entries on my passwd-file would be: > > username:{CRAM-MD5}efaa8bbe8fb0d28a55f7595c3420791990f25cc536f0e23c46cb392cb2b058e2:1001:1001::/home/username:: > peter:{CRAM-MD5}512b3e383d95a191d9481e1914cc4caad70cd57029706ec5c3db8ef3039ef405:2001:2001::/home/peter:: Looks like you're almost there since you have uid/gid also specified in the file. So the only thing you need to add is: userdb { driver = passwd-file args = username_format=%n /usr/local/etc/dovecot/dovecot.users } From tss at iki.fi Tue May 10 18:25:04 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 18:25:04 +0300 Subject: [Dovecot] compressed mboxes very slow In-Reply-To: <87iptnoans.fsf@alfa.kjonca> References: <87iptnoans.fsf@alfa.kjonca> Message-ID: <1305041104.10421.131.camel@hurina> Here are some fixes: http://hg.dovecot.org/dovecot-2.0/rev/15a0687ec9d0 http://hg.dovecot.org/dovecot-2.0/rev/66ec075a49d3 From tss at iki.fi Tue May 10 18:46:13 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 18:46:13 +0300 Subject: [Dovecot] Delete unused IMAP keywords from permanetflags In-Reply-To: References: Message-ID: <1305042373.10421.136.camel@hurina> On Mon, 2011-05-09 at 11:15 +0200, Ernesto Revilla Derksen wrote: > Will we have problems if more than 26 keywords are defined in a folder but > only a subset is used? (maildir++) Only the first 26 keywords (used or not) are kept in the Maildir filenames. The rest still exist in index files though. From tss at iki.fi Tue May 10 18:54:07 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 18:54:07 +0300 Subject: [Dovecot] Sieve & auto_create mail_home In-Reply-To: <20110509101958.45750@gmx.com> References: <20110509101958.45750@gmx.com> Message-ID: <1305042847.10421.138.camel@hurina> On Mon, 2011-05-09 at 10:19 +0000, Maria Arrea wrote: > mail_home = /buzones/mydomain/%2.26Hn/%2.200Hn/%n/home_usuario/ > mail_location = mdbox:/buzones/my_domain/%2.26Hn/%2.200Hn/%n:INDEX=/indices_dovecot/indices/%2.26Hn/%2.200Hn/%n > > May 9 12:13:52 buzon dovecot: managesieve(a_poor_user at mydomain): Error: sieve-storage: open(/buzones/my_domain/0a/94/javierdemiguel/home_usuario/sieve//tmp/roundcube-1304936032.M335644P23819.mydomain.sieve) failed: No such file or directory I guess normally this won't show up because normally mail directory is under home dir, not vice versa. But I couldn't reproduce this myself anyway. The sieve/tmp/ dir is created at startup and I can't really think of where that open() error is coming from if it's done earlier. Stephan? From tss at iki.fi Tue May 10 18:57:57 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 18:57:57 +0300 Subject: [Dovecot] could someone check my conf files for dovecot and postfix In-Reply-To: <4DC4B54D.3090008@gmail.com> References: <4DC4B36D.4090708@gmail.com> <4DC4B54D.3090008@gmail.com> Message-ID: <1305043077.10421.139.camel@hurina> On Fri, 2011-05-06 at 19:58 -0700, Trish wrote: > *> dovecot -n* > # 1.2.9: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.32-31-generic i686 Ubuntu 10.04.2 LTS .. > mail_location: maildir:~/Maildir This looks ok. > May 6 20:33:00 craftboard dovecot: IMAP(support.perlygates.com): mail_location: maildir: Unknown setting: mbox There's no reason this error could come from that above config file. So I bet your problem is that you installed dovecot-postfix package, and Ubuntu is actually using /etc/dovecot/dovecot-postfix.conf (or something like that) and that config file is broken. From tss at iki.fi Tue May 10 19:05:28 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 19:05:28 +0300 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: References: <4DC3D251.4050004@Media-Brokers.com> Message-ID: <1305043528.10421.143.camel@hurina> I don't think those results look too bad, even the original ones. imaptest doesn't measure real world performance anyway. Some ideas: - Try mdbox instead of sdbox. Cluster filesystems apparently like a few bigger files better than many small ones. - Try imaptest with logout=0 (or =1 or something). Now you're measuring way too much the login performance. - autocreate plugin sucks, especially with logout=100 because it has to check that all of the mailboxes exist. In v2.1 autocreate plugin is redesigned to not do any disk I/O. On Fri, 2011-05-06 at 23:01 -0400, Aliet Santiesteban Sifontes wrote: > New results, now with all plugins disabled: > > os rhel6 x86_64, GFS2 Lun > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 1- 4514 2189 2250 4514 4264 6163 709 3403 4260 4292 8726 > 2- 2827 1409 1389 2827 2765 3951 495 2168 2765 2777 5644 > 3- 2711 1409 1368 2711 2649 3833 512 2145 2647 2662 5396 > 4- 1799 912 890 1799 1720 2492 360 1370 1719 1735 3592 > 5- 3817 1869 1896 3760 3717 5313 575 3026 3715 3737 7616 > 6- 3296 1583 1628 3296 3215 4585 523 2600 3215 3238 6584 > > 2011/5/6 Aliet Santiesteban Sifontes > > > the configs: > > > > [root at n02 ~]# dovecot -n > > # 2.0.12: /etc/dovecot/dovecot.conf > > # OS: Linux 2.6.32-71.24.1.el6.x86_64 x86_64 Red Hat Enterprise Linux > > Server release 6.0 (Santiago) > > auth_cache_size = 15 M > > auth_default_realm = test.com > > auth_mechanisms = plain login > > auth_worker_max_count = 60 > > disable_plaintext_auth = no > > login_greeting = Server ready. > > mail_fsync = never > > mail_location = sdbox:~/sdbox:INDEX=/vmail/index/%n > > mail_plugins = quota zlib > > managesieve_notify_capability = mailto > > managesieve_sieve_capability = fileinto reject envelope encoded-character > > vacation subaddress comparator-i;ascii-numeric relational regex imap4flags > > copy include variables body enotify environment mailbox date > > mbox_write_locks = fcntl > > mmap_disable = yes > > namespace { > > inbox = yes > > location = > > prefix = > > separator = / > > } > > passdb { > > args = /etc/dovecot/dovecot-ldap.conf.ext > > driver = ldap > > } > > plugin { > > autocreate = Sent > > autocreate2 = Trash > > autocreate3 = Drafts > > autocreate4 = Junk > > autocreate5 = Archives > > autocreate6 = Templates > > autosubscribe = Sent > > autosubscribe2 = Trash > > autosubscribe3 = Drafts > > autosubscribe4 = Junk > > autosubscribe5 = Archives > > autosubscribe6 = Templates > > quota = dict:User quota::file:%h/sdbox/dovecot-quota > > quota_rule = *:storage=250M > > quota_rule2 = Trash:storage=+50M > > quota_rule3 = Spam:storage=+25M > > quota_rule4 = Sent:ignore > > sieve = ~/.dovecot.sieve > > sieve_before = /var/vmail/sievescripts/before.d > > sieve_dir = ~/sieve > > zlib_save = gz > > zlib_save_level = 6 > > } > > postmaster_address = postmaster at test.com > > protocols = imap pop3 lmtp sieve > > service auth { > > unix_listener auth-userdb { > > group = vmail > > mode = 0660 > > user = root > > } > > } > > service imap-login { > > service_count = 0 > > } > > > > best regards > > > > > > 2011/5/6 Charles Marcus > > > >> On 2011-05-05 7:56 PM, Aliet Santiesteban Sifontes wrote: > >> > We have used sdbox as mailbox format, and all the user data is > >> configured in > >> > LDAP Servers > >> > >> It might help Timo to provide some suggestions if you also provide > >> dovecot -n output... ;) > >> > >> -- > >> > >> Best regards, > >> > >> Charles > >> > > > > From matt at gr-lakes.com Tue May 10 19:46:13 2011 From: matt at gr-lakes.com (Matt Mc Namara) Date: Tue, 10 May 2011 12:46:13 -0400 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working References: <4DC4F568.5070204@rename-it.nl><2895CA51FD8B45F0B15340E98A94FE23@HPDC7600><6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> <1304962872.10421.119.camel@hurina> Message-ID: <0E815C7A028A4130BF0B1971E7FBD260@HPDC7600> Hi All, I seem to be getting nowhere on this problem. 1. Does anyone have a working configuration using sendmail, dovecot and sieve for filters? 2. Dovecot 2.0.11 currently is running and working both with imap and pop3. 3. Sendmail version 8.14.4 is being used and the .mc file has been modifed to use dovecot as the LDA. A new .cf file has been created and is currently running. 4. A simple rule has been created and called .dovecot-sieve and has been tested. However, it never seems to be involked. I have checked the wiki2.dovecot.org site long before posting on here. I have searched to make sure configurations are correct. I have already looked at and verified my entries regarding the wiki2.dovecot.org/LDA reference. I'm still not seeing my scripts being executed. Where is the next logical place to look? Thanks in advance From tss at iki.fi Tue May 10 20:11:32 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 20:11:32 +0300 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working In-Reply-To: <0E815C7A028A4130BF0B1971E7FBD260@HPDC7600> References: <4DC4F568.5070204@rename-it.nl><2895CA51FD8B45F0B15340E98A94FE23@HPDC7600> <6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> <1304962872.10421.119.camel@hurina> <0E815C7A028A4130BF0B1971E7FBD260@HPDC7600> Message-ID: <1305047492.10421.178.camel@hurina> On Tue, 2011-05-10 at 12:46 -0400, Matt Mc Namara wrote: > 3. Sendmail version 8.14.4 is being used and the .mc file has been modifed > to use dovecot as > the LDA. A new .cf file has been created and is currently running. This is very likely where the problem is. My guess is that Sendmail isn't calling Dovecot LDA at all. If it is, there should be lines in Dovecot logs about "lda(..): .." If you don't see such lines, Sendmail isn't calling LDA. In that case show Sendmail logs about a new mail delivery, maybe someone can figure out what's wrong. From rdjebrouni at orangetango.com Thu May 5 21:45:47 2011 From: rdjebrouni at orangetango.com (Riadh Djebrouni) Date: Thu, 5 May 2011 18:45:47 +0000 (UTC) Subject: [Dovecot] =?utf-8?q?dovecot-lda_2=2E0=2E8_Panic=3A_stream_doesn?= =?utf-8?q?=27t_support_seeking=09backwards?= References: <4CFEFEF2.1050204@jesstech.com> Message-ID: Hi, I'm facing the exact same problem. Did you find a workaround? From Dave at Yost.com Fri May 6 04:25:11 2011 From: Dave at Yost.com (Dave Yost) Date: Thu, 5 May 2011 18:25:11 -0700 Subject: [Dovecot] when the user has no home directory Message-ID: A user on our server for some reason didn't have a home directory. As a result, the pop3 server was complaining. Apple's Mail app reported that the server said: The attempt to send data to the server "(null)" failed. It would be nice if the server would say something to the effect that the connection failed because the user account has no home directory. Thanks From tom-dovecot at tomonica.net Sat May 7 18:24:57 2011 From: tom-dovecot at tomonica.net (Tom Wright) Date: Sat, 7 May 2011 16:24:57 +0100 Subject: [Dovecot] Problem with sieve after upgrade to 2.0 Message-ID: <201105071624.58117.tom-dovecot@tomonica.net> Hi, I've just upgraded from 1.2 to 2.0.12 via debian sid packages. I think I've moved all my config over to the new directory-based structure and most things are working, but the subaddress extension in sieve doesn't seem to do anything anymore. It doesn't report an error, but any rules which use it are just ignored. Other sieve rules which don't use subaddress seem to work ok. Here's my config: # 2.0.12: /etc/dovecot/dovecot.conf # OS: Linux 2.6.38-2-amd64 x86_64 Debian wheezy/sid lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date passdb { args = scheme=cram-md5 /etc/dovecot/passwd.dovecot driver = passwd-file } plugin { recipient_delimiter = - sieve = ~/.dovecot.sieve sieve_dir = ~/.sieve } postmaster_address = postmaster at tomonica.net protocols = " imap sieve" recipient_delimiter = - service imap-login { inet_listener imap { port = 0 } } ssl_cert = References: <4DC456B4.7000205@educ.ar> <4DC4EF53.2050108@rename-it.nl> Message-ID: <4DC5B919.3060309@educ.ar> Thanks Stephan, but doesn't work. I try both plugin: sieve: ~/sieve/ and plugin: sieve: ~/.dovecot.sieve But still have message: NO "Script name 'sogo' is reserved for internal use." Regards, Stephan Bosch wrote: > On 5/6/2011 10:14 PM, Pablo Luchetti wrote: >> Hi, I have a problem with dovecot's sieve and SOGo ( >> http://www.sogo.nu/ ) >> >> I have installed last version of sogo ( 1.3.6) in one virtual machine >> with ubuntu, lucid. >> In another virtualmachine with ubuntu jaunty is running dovecot ( >> 1:1.1.11-0ubuntu4.1 ) >> >> When try to activate vacation function, after the "PUTSCRIPT "sogo" >> command, the manage-sieve answer: >> >> NO "Script name 'sogo' is reserved for internal use." > > >> plugin: >> sieve: ~/sieve/s0g0.sieve >> > > The default for sieve_dir is '~/sieve/', so now you are putting the > active script symlink (as configured with sieve=) in the sieve > storage. This is never a good idea, because that symlink may be > confused with a normal script. To prevent issues, the ManageSieve > daemon prevents you from using the symlink as a scriptname. > > Why did you configure it like that? If you remove the above line, or > change it to something sensible, like the default value > sieve=~/.dovecot.sieve, it will work normally. > > Regards, > > Stephan. > From friebel at ifh.de Sun May 8 13:55:46 2011 From: friebel at ifh.de (Wolfgang Friebel) Date: Sun, 8 May 2011 12:55:46 +0200 (CEST) Subject: [Dovecot] alpine + Maildir In-Reply-To: References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> <4DC40DFA.8060209@Media-Brokers.com> <4DC43315.4060708@Media-Brokers.com> Message-ID: On Fri, 6 May 2011, upen wrote: > On Fri, May 6, 2011 at 12:42 PM, Charles Marcus > wrote: >> On 2011-05-06 11:10 AM, upen wrote: >>> Well, this is what RHEL 6 's stable repo currently offers >> >> Well, if you're not willing to upgrade to at least a reasonably stable >> RELEASE version, don't be surprised if you get little to no help. >> >> I'll never understand this attitude... > > All I understand is that the issue I am having is not due to the > version of dovecotthat is installed. If I know that this is not > working due to beta version then I am willing to upgrade. Thanks for > your opinion. > What you are probably looking for is in the alpine configuration (setup -> configure) the 'Hide Empty Directories' option which you have to turn on. It corresponds to the 'quell-empty-directory' in pinerc Hope it helps. Wolfgang Friebel From playedalive at gmail.com Sat May 7 23:44:06 2011 From: playedalive at gmail.com (duonut) Date: Sat, 7 May 2011 13:44:06 -0700 (PDT) Subject: [Dovecot] Dovecot using FTS solr or Squat when searching multiple fields. Message-ID: <31567683.post@talk.nabble.com> Hi Im using dovecot 1.2.16 with Solr setup for FTS. When searching a single field such as subject Dovecot will use the solr index. When searching multiple fields such as subject and body it does not use the index and uses the standard built in search which takes much longer. Is there any way to get Dovecot to use the solr or squat index when searching multiple fields? -- View this message in context: http://old.nabble.com/Dovecot-using-FTS-solr-or-Squat-when-searching-multiple-fields.-tp31567683p31567683.html Sent from the Dovecot mailing list archive at Nabble.com. From hmoreno at gmv.com Tue May 10 19:21:02 2011 From: hmoreno at gmv.com (=?iso-8859-1?Q?H=E9ctor_Moreno_Blanco?=) Date: Tue, 10 May 2011 18:21:02 +0200 Subject: [Dovecot] LDAP Authentication ok but errors Message-ID: Hello Timo, We have installed dovecot 2.0.10. With LDAP authentication. Users authenticate successfully but in the authentication process there are errors that I don't understand because it's everything all right: May 10 18:00:49 carpe3 dovecot: auth: Error: ldap_unbind May 10 18:00:49 carpe3 dovecot: auth: Error: ldap_free_connection 1 1 May 10 18:00:49 carpe3 dovecot: auth: Error: ldap_send_unbind May 10 18:00:49 carpe3 dovecot: auth: Error: ldap_free_connection: actually freed May 10 18:02:02 carpe3 dovecot: master: Dovecot v2.0.10 starting up (core dumps disabled) May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_bind May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_simple_bind May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_sasl_bind May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_send_initial_request May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_new_connection 1 1 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_int_open_connection May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_connect_to_host: TCP ldap_server:389 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_new_socket: 16 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_prepare_socket: 16 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_connect_to_host: Trying xxx.xxx.xxx.xxx:389 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_connect_timeout: fd: 16 tm: -1 async: 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_open_defconn: successful May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_send_server_request May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:02 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:02 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:02 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:02 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:02 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:02 2011 May 10 18:02:02 carpe3 dovecot: auth: Error: May 10 18:02:02 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:02 carpe3 dovecot: auth: Error: * msgid 1, origid 1, status InProgress May 10 18:02:02 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:02 carpe3 dovecot: auth: Error: Empty May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:02 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:02 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid 1 message type bind May 10 18:02:02 carpe3 dovecot: auth: Error: new result: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:02 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 0 new referrals May 10 18:02:02 carpe3 dovecot: auth: Error: read1msg: mark request completed, ld 0x1c8e6df0 msgid 1 May 10 18:02:02 carpe3 dovecot: auth: Error: request done: ld 0x1c8e6df0 msgid 1 May 10 18:02:02 carpe3 dovecot: auth: Error: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_free_request (origid 1, msgid 1) May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_free_connection 0 1 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_free_connection: refcnt 1 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_parse_result May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_msgfree May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:02 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:02 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:02 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:02 carpe3 dovecot: auth: Error: refcnt: 1 status: Connected May 10 18:02:02 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:02 2011 May 10 18:02:02 carpe3 dovecot: auth: Error: May 10 18:02:02 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:02 carpe3 dovecot: auth: Error: Empty May 10 18:02:02 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:02 carpe3 dovecot: auth: Error: Empty May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_search May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(&(objectClass=qmailUser)(uid=USERID)(accountActive=TRUE))" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: AND May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter_list "(objectClass=qmailUser)(uid=USERID)(accountActive=TRUE)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(objectClass=qmailUser)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "objectClass=qmailUser" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(uid=USERID)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "uid= USERID " May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(accountActive=TRUE)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "accountActive=TRUE" May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_build_search_req ATTRS: May 10 18:02:13 carpe3 dovecot: auth: Error: uid May 10 18:02:13 carpe3 dovecot: auth: Error: mailMessageStore May 10 18:02:13 carpe3 dovecot: auth: Error: mailQuotaSize May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_initial_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_server_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 2, origid 2, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid 2 message type search-entry May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_first_attribute May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_get_values May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_next_attribute May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_get_values May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_next_attribute May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_get_values May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_next_attribute May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_get_dn May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_msgfree May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 2, origid 2, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid 2 message type search-result May 10 18:02:13 carpe3 dovecot: auth: Error: new result: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 0 new referrals May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: mark request completed, ld 0x1c8e6df0 msgid 2 May 10 18:02:13 carpe3 dovecot: auth: Error: request done: ld 0x1c8e6df0 msgid 2 May 10 18:02:13 carpe3 dovecot: auth: Error: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_request (origid 2, msgid 2) May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection 0 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection: refcnt 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_parse_result May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_bind May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_simple_bind May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_sasl_bind May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_initial_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_server_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_msgfree May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 3, origid 3, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 3, origid 3, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid 3 message type bind May 10 18:02:13 carpe3 dovecot: auth: Error: new result: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 0 new referrals May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: mark request completed, ld 0x1c8e6df0 msgid 3 May 10 18:02:13 carpe3 dovecot: auth: Error: request done: ld 0x1c8e6df0 msgid 3 May 10 18:02:13 carpe3 dovecot: auth: Error: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_request (origid 3, msgid 3) May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection 0 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection: refcnt 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_parse_result May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_parse_result May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_msgfree May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 1 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_bind May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_simple_bind May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_sasl_bind May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_initial_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_server_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 4, origid 4, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid 4 message type bind May 10 18:02:13 carpe3 dovecot: auth: Error: new result: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 0 new referrals May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: mark request completed, ld 0x1c8e6df0 msgid 4 May 10 18:02:13 carpe3 dovecot: auth: Error: request done: ld 0x1c8e6df0 msgid 4 May 10 18:02:13 carpe3 dovecot: auth: Error: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_request (origid 4, msgid 4) May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection 0 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection: refcnt 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_parse_result May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_search May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(&(objectClass=qmailUser)(|(mailAlternateAddress= USERID)(mail= USERID)(uid= USERID))(accountActive=TRUE))" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: AND May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter_list "(objectClass=qmailUser)(|(mailAlternateAddress= USERID)(mail= USERID)(uid= USERID))(accountActive=TRUE)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(objectClass=qmailUser)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "objectClass=qmailUser" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(|(mailAlternateAddress= USERID)(mail= USERID)(uid= USERID))" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: OR May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter_list "(mailAlternateAddress= USERID)(mail= USERID)(uid= USERID)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(mailAlternateAddress= USERID)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "mailAlternateAddress= USERID " May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(mail= USERID)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "mail= USERID " May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(uid= USERID)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "uid= USERID " May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(accountActive=TRUE)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "accountActive=TRUE" May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_build_search_req ATTRS: May 10 18:02:13 carpe3 dovecot: auth: Error: mailMessageStore May 10 18:02:13 carpe3 dovecot: auth: Error: mailQuotaSize May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_initial_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_server_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_msgfree May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 5, origid 5, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 5, origid 5, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid 5 message type search-entry May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_first_attribute May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_get_values May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_next_attribute May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_get_values May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_next_attribute May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_msgfree May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 5, origid 5, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid 5 message type search-result May 10 18:02:13 carpe3 dovecot: auth: Error: new result: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 0 new referrals May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: mark request completed, ld 0x1c8e6df0 msgid 5 May 10 18:02:13 carpe3 dovecot: auth: Error: request done: ld 0x1c8e6df0 msgid 5 May 10 18:02:13 carpe3 dovecot: auth: Error: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_request (origid 5, msgid 5) May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection 0 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection: refcnt 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_parse_result May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_msgfree May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 1 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: imap-login: Login: user=< USERID >, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11362, secured May 10 18:02:25 carpe3 dovecot: imap(USERID): Disconnected: Logged out bytes=29/655 Here is my dovecot -n output: # OS: Linux 2.6.18-128.1.1.el5 x86_64 Scientific Linux SL release 5.2 (Boron) auth_cache_size = 500 k auth_cache_ttl = 1000 secs disable_plaintext_auth = no first_valid_uid = 501 lock_method = dotlock mail_fsync = always mail_gid = vmail mail_location = maildir:%h/Maildir mail_nfs_index = yes mail_nfs_storage = yes mail_uid = vmail mmap_disable = yes namespace { inbox = yes location = prefix = INBOX. type = private } passdb { args = /etc/dovecot/dovecot-ldap.conf driver = ldap } plugin/quota = maildir plugin/quota_warning = storage=75%% /usr/local/dovecot/bin/quota-warning.sh 75 plugin/quota_warning2 = storage=90%% /usr/local/dovecot/bin/quota-warning.sh 90 protocols = imap pop3 service auth { unix_listener auth-master { group = vmail mode = 0700 user = vmail } user = root vsz_limit = 4 G } service imap-login { executable = /usr/local/dovecot/libexec/dovecot/imap-login inet_listener imap { address = * port = 143 } inet_listener imaps { address = * port = 993 } process_limit = 2048 process_min_avail = 20 user = dovecot } service imap { executable = /usr/local/dovecot/libexec/dovecot/imap process_limit = 2048 } service pop3-login { executable = /usr/local/dovecot/libexec/dovecot/pop3-login inet_listener pop3 { address = * port = 110 } inet_listener pop3s { address = * port = 995 } process_limit = 2048 process_min_avail = 20 user = dovecot } service pop3 { executable = /usr/local/dovecot/libexec/dovecot/pop3 process_limit = 2048 } ssl_cert = fue rechazado automaticamente por nuestro sistema :%n%r rejection_subject = Rechazado: %s sendmail_path = /usr/sbin/exim } An here is my dovecot-ldap.conf: # INFORMACI?N DE CONEXI?N AL LDAP hosts = virt_ldap auth_bind = yes ldap_version = 3 dnpass = passwd dn = cn=XXXXXXXX,dc=domain,dc=es debug_level = -1 base = dc=domain,dc=es deref = never scope = subtree ## CONSULTA AL LDAP PARA AUTENTICACION pass_filter = (&(objectClass=qmailUser)(uid=%u)(accountActive=TRUE)) pass_attrs = uid=user, mailMessageStore=home, userPassword=password, mailQuotaSize=quota_rule=*:bytes=%$ ## CONSULTA AL LDAP COMO BBDD user_attrs = mailMessageStore=home, mailQuotaSize=quota_rule=*:bytes=%$ user_filter = (&(objectClass=qmailUser)(|(mailAlternateAddress=%u)(mail=%u)(uid=%u))(accountActive=TRUE)) Thank you very much in advanced Best regards, H?ctor Moreno Blanco. ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ From nebano at gmail.com Tue May 10 20:17:13 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Tue, 10 May 2011 19:17:13 +0200 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working In-Reply-To: <0E815C7A028A4130BF0B1971E7FBD260@HPDC7600> References: <4DC4F568.5070204@rename-it.nl> <2895CA51FD8B45F0B15340E98A94FE23@HPDC7600> <6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> <1304962872.10421.119.camel@hurina> <0E815C7A028A4130BF0B1971E7FBD260@HPDC7600> Message-ID: Hi I do not see your lda configuration in dovecot, I should look like: protocol lda { mail_plugins = sieve postmaster_address =postmaster at example.com } Thanks 2011/5/10 Matt Mc Namara : > Hi All, > > I seem to be getting nowhere on this problem. > > 1. Does anyone have a working configuration using sendmail, dovecot and > sieve for filters? > 2. Dovecot 2.0.11 currently is running and working both with imap and pop3. > 3. Sendmail version 8.14.4 is being used and the .mc file has been modifed > to use dovecot as > ? the LDA. A new .cf file has been created and is currently running. > 4. A simple rule has been created and called .dovecot-sieve and has been > tested. However, it > ? never seems to be involked. > > I have checked the wiki2.dovecot.org site long before posting on here. I > have searched to make sure configurations are correct. I have already looked > at and verified my entries regarding the wiki2.dovecot.org/LDA reference. > I'm still not seeing my scripts being executed. > > Where is the next logical place to look? > > Thanks in advance > From fakessh at fakessh.eu Tue May 10 20:21:42 2011 From: fakessh at fakessh.eu (fakessh) Date: Tue, 10 May 2011 19:21:42 +0200 Subject: [Dovecot] =?iso-8859-1?q?dovecot-lda_2=2E0=2E8_Panic=3A_stream_do?= =?iso-8859-1?q?esn=27t_support_seeking=09backwards?= In-Reply-To: References: <4CFEFEF2.1050204@jesstech.com> Message-ID: <201105101921.48933.fakessh@fakessh.eu> Le jeudi 5 mai 2011 20:45, Riadh Djebrouni a ?crit?: > Hi, I'm facing the exact same problem. > Did you find a workaround? ? un ragazzino di breve -- http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7 gpg --keyserver pgp.mit.edu --recv-key 092164A7 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From mark at msapiro.net Tue May 10 20:29:39 2011 From: mark at msapiro.net (Mark Sapiro) Date: Tue, 10 May 2011 10:29:39 -0700 Subject: [Dovecot] when the user has no home directory In-Reply-To: References: Message-ID: <4DC97603.9080801@msapiro.net> On 11:59 AM, Dave Yost wrote: > A user on our server for some reason didn't have a home directory. As a > result, the pop3 server was complaining. Apple's Mail app reported that > the server said: > > The attempt to send data to the server "(null)" failed. Mail is sent via SMTP, not POP3. A client MUA delivers mail to a server via SMTP and presumably it is the MTA on the server, not Dovecot, that issued whatever failure resulted in the above. It is possible that Dovecot is involved, e.g. in processing SASL authentication, but Apple Mail would have been talking to the MTA on the server. -- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan From tss at iki.fi Tue May 10 20:31:59 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 20:31:59 +0300 Subject: [Dovecot] Dovecot using FTS solr or Squat when searching multiple fields. In-Reply-To: <31567683.post@talk.nabble.com> References: <31567683.post@talk.nabble.com> Message-ID: <1305048719.10421.181.camel@hurina> On Sat, 2011-05-07 at 13:44 -0700, duonut wrote: > Hi > Im using dovecot 1.2.16 with Solr setup for FTS. When searching a single > field such as subject Dovecot will use the solr index. When searching > multiple fields such as subject and body it does not use the index and uses > the standard built in search which takes much longer. > > Is there any way to get Dovecot to use the solr or squat index when > searching multiple fields? The problem is that Dovecot FTS plugin doesn't currently support the search "OR" parameter. So you're probably searching for "foo OR bar" fields, which doesn't work. There's no reason why it couldn't work, other than that fixing it isn't a high priority for me currently.. It could become though. :) From anfi at onet.eu Tue May 10 21:32:21 2011 From: anfi at onet.eu (Andrzej Adam Filip) Date: Tue, 10 May 2011 20:32:21 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: <7638EBDA-9290-4CEB-A940-E2E47B938821@iki.fi> (Timo Sirainen's message of "Tue, 10 May 2011 17:02:18 +0300") References: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> <7638EBDA-9290-4CEB-A940-E2E47B938821@iki.fi> Message-ID: Timo Sirainen wrote: > On 10.5.2011, at 15.44, Petr Svacina wrote: > >> May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: save failed to INBOX: Not enough disk space >> May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: rejected: Not enough disk space > > Oh, it's a rejection.. I guess it's because it's handled the same way > as "out of quota". Two things you can do: > > a) give -e parameter to deliver, so it exits with the proper code > instead of sending a new "rejected" message via sendmail. (I think I > should have made this the default in v2.0.. Maybe I could change it in > v2.1.) > > b) quota_full_tempfail = yes to have it exit with tempfail rather than > a permanent failure Do you intent any time soon to provide some hook to alow MTA reject in reply to "RCPT TO:" (in SMTP session) messages to over quota mailboxes? Exit code of "deliver -e" can only be used to reject message in reply to "the final dot" *for single recipient messages*. -- [pl>en: Andrew] Andrzej Adam Filip : anfi at onet.eu Nachman's Rule: When it comes to foreign food, the less authentic the better. -- Gerald Nachman From tss at iki.fi Tue May 10 21:37:20 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 21:37:20 +0300 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: References: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> <7638EBDA-9290-4CEB-A940-E2E47B938821@iki.fi> Message-ID: <4AC9F690-85E4-4EF6-998A-29697CCBF3A1@iki.fi> On 10.5.2011, at 21.32, Andrzej Adam Filip wrote: > Do you intent any time soon to provide some hook to alow MTA reject > in reply to "RCPT TO:" (in SMTP session) messages to over quota > mailboxes? Can you give specifics of what I'd need to do for that? I remember there is some sendmail protocol that is also supported by Postfix (I think), but I can't remember specifics (and a bit lazy to google for it). v2.0 would finally allow easily implementing such service. Hmm. I guess such service would both have to check if the user exists and also the quota value, and give errors about both of them. From slusarz at curecanti.org Tue May 10 21:44:58 2011 From: slusarz at curecanti.org (Michael M Slusarz) Date: Tue, 10 May 2011 12:44:58 -0600 Subject: [Dovecot] BUG(?): Incorrect responses for ACL prohibited actions Message-ID: <20110510124458.Horde.LnlpeIF5lbhNyYeqlCXUIdA@bigworm.curecanti.org> In a mailbox that has ACL restrictions on both DELETE and EXPUNGE (i.e. no 'e' or 't' rights), I see the following: 3 UID STORE 3173 (UNCHANGEDSINCE 353) +FLAGS \deleted 3 OK Store completed. (UID 3173 is not flagged \deleted) [...] 6 UID EXPUNGE 1:* 6 OK Expunge completed. (At least 1 UID is flagged \deleted in mailbox) Shouldn't these commands be returning "NO" instead of "OK"? RFC 3501 [6.4.6] for STORE: NO - store error: can't store that data and RFC RFC 3501 [6.4.3] for EXPUNGE: NO - expunge failure: can't expunge (e.g., permission denied) Additionally, RFC 5530 [3] provides the NOPERM response code: NOPERM The access control system (e.g., Access Control List (ACL), see [RFC 4314]) does not permit this user to carry out an operation, such as selecting or creating a mailbox. C: f select "/archive/projects/experiment-iv" S: f NO [NOPERM] Access denied My reading of this is that NOPERM should be returned for ANY ACL prohibited action, not just for selecting or creating a mailbox. Dovecot 2.0.12 does not return NOPERM for DELETE/EXPUNGE actions (at a minimum) that are prohibited. Thoughts? michael From tss at iki.fi Tue May 10 22:13:27 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 22:13:27 +0300 Subject: [Dovecot] BUG(?): Incorrect responses for ACL prohibited actions In-Reply-To: <20110510124458.Horde.LnlpeIF5lbhNyYeqlCXUIdA@bigworm.curecanti.org> References: <20110510124458.Horde.LnlpeIF5lbhNyYeqlCXUIdA@bigworm.curecanti.org> Message-ID: On 10.5.2011, at 21.44, Michael M Slusarz wrote: > In a mailbox that has ACL restrictions on both DELETE and EXPUNGE (i.e. no 'e' or 't' rights), I see the following: > > 3 UID STORE 3173 (UNCHANGEDSINCE 353) +FLAGS \deleted > 3 OK Store completed. > > (UID 3173 is not flagged \deleted) > > [...] > > 6 UID EXPUNGE 1:* > 6 OK Expunge completed. > > (At least 1 UID is flagged \deleted in mailbox) > > Shouldn't these commands be returning "NO" instead of "OK"? RFC 3501 [6.4.6] for STORE: Clients aren't very happy about seeing NO. Also Dovecot didn't say anything changed with either of the above commands, so nothing really failed either. A "STORE +FLAGS.SILENT \Deleted" is more controversial though. Maybe that should return NO.. > and RFC RFC 3501 [6.4.3] for EXPUNGE: > > NO - expunge failure: can't expunge (e.g., permission denied) > > Additionally, RFC 5530 [3] provides the NOPERM response code: > > NOPERM > The access control system (e.g., Access Control List (ACL), see > [RFC 4314]) does not permit this user to carry out an operation, > such as selecting or creating a mailbox. > > C: f select "/archive/projects/experiment-iv" > S: f NO [NOPERM] Access denied > > My reading of this is that NOPERM should be returned for ANY ACL prohibited action, not just for selecting or creating a mailbox. Dovecot 2.0.12 does not return NOPERM for DELETE/EXPUNGE actions (at a minimum) that are prohibited. I'm not really sure. Maybe for EXPUNGE a NO would be okay. For flag changes it's just annoying to see clients popup pointless error messages when trying to set a \Seen flag (or \Answered flag when replying). Also I'm not sure if Dovecot's behavior is entirely correct either here. It might be more correct that all flag changes succeed, but those flags would be session-only flag changes rather than permanent flag changes. It's a slightly difficult subject :) From dovecot at tlinx.org Tue May 10 22:45:08 2011 From: dovecot at tlinx.org (Linda Walsh) Date: Tue, 10 May 2011 12:45:08 -0700 Subject: [Dovecot] performance problems with IMAPS Message-ID: <4DC995C4.1060401@tlinx.org> I've noticed this before and wasn't sure of the problem -- sending large files from FF. I tracked it down, and the problem is in dovecot when it is saving the mail to my 'Record' (Outbox)... It's saving the file in tiny chunks.... Looking at a few, I see: 4148 bytes 2116 bytes 1604 bytes 692 bytes The latency is killing it. I see the TCP window size being as high as 17069 with 7678 being common. The sendmail latency isn't spectacular, but at least uses ~64K packets. So wazzup with dovecot? I don't recall this being so much an issue with the old uwash imaps, but then it's been a while since I've used it and maybe my files weren't as large. But it can take several minutes to save a file to a record file that takes <1 second over network CIFS. Anyway to up the size of minimum packet size to 128K or more? Ideal packet size on my network is about 16MB under CIFS...with benefits seen even using 256MB packet sizes.... Is there a place to tune this that I don't know about? Thanks.... From tss at iki.fi Tue May 10 22:55:21 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 22:55:21 +0300 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DC995C4.1060401@tlinx.org> References: <4DC995C4.1060401@tlinx.org> Message-ID: <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> On 10.5.2011, at 22.45, Linda Walsh wrote: > I've noticed this before and wasn't sure of the problem -- sending large files from FF. What is FF? > I tracked it down, and the problem is in dovecot when it is saving the mail to my 'Record' (Outbox)... So when IMAP client is sending a message to Dovecot? > It's saving the file in tiny chunks.... > > Looking at a few, I see: > 4148 bytes > 2116 bytes > 1604 bytes > 692 bytes Isn't that the client that is sending it in small pieces then? How did you measure those bytes? > The latency is killing it. I see the TCP window size being as high as 17069 with 7678 being common. > The sendmail latency isn't spectacular, but at least uses ~64K packets. So wazzup with dovecot? Whatever it is, it's not a common problem. From Dave at Yost.com Tue May 10 23:15:46 2011 From: Dave at Yost.com (Dave Yost) Date: Tue, 10 May 2011 13:15:46 -0700 Subject: [Dovecot] when the user has no home directory In-Reply-To: <4DC97603.9080801@msapiro.net> References: <4DC97603.9080801@msapiro.net> Message-ID: At 10:29 AM -0700 2011-05-10, Mark Sapiro wrote: >On 11:59 AM, Dave Yost wrote: >> A user on our server for some reason didn't have a home directory. As a >> result, the pop3 server was complaining. Apple's Mail app reported that >> the server said: >> >> The attempt to send data to the server "(null)" failed. > >Mail is sent via SMTP, not POP3. Yes. I know. That error message was reported by Mail as a result of trying to connect to the POP3 server. >A client MUA delivers mail to a server >via SMTP and presumably it is the MTA on the server, not Dovecot, that >issued whatever failure resulted in the above. > >It is possible that Dovecot is involved, e.g. in processing SASL >authentication, but Apple Mail would have been talking to the MTA on the >server. > >-- >Mark Sapiro The highway is for gamblers, >San Francisco Bay Area, California better use your sense - B. Dylan From kjonca at o2.pl Tue May 10 23:32:31 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Tue, 10 May 2011 22:32:31 +0200 Subject: [Dovecot] compressed mboxes very slow References: <87iptnoans.fsf@alfa.kjonca> <1305041104.10421.131.camel@hurina> Message-ID: <87ipti8ffk.fsf@alfa.kjonca> Timo Sirainen writes: > Here are some fixes: > > http://hg.dovecot.org/dovecot-2.0/rev/15a0687ec9d0 > http://hg.dovecot.org/dovecot-2.0/rev/66ec075a49d3 Hard to say, but I can't see any significant improvement after applying them :| KJ -- http://blogdebart.pl/2010/03/17/dalsze-przygody-swinki-w-new-jersey/ From tss at iki.fi Tue May 10 23:45:51 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 23:45:51 +0300 Subject: [Dovecot] when the user has no home directory In-Reply-To: References: Message-ID: <81B248CC-75F9-4449-9618-A712259C4A6B@iki.fi> On 6.5.2011, at 4.25, Dave Yost wrote: > A user on our server for some reason didn't have a home directory. As a result, the pop3 server was complaining. Apple's Mail app reported that the server said: > > The attempt to send data to the server "(null)" failed. > > It would be nice if the server would say something to the effect that the connection failed because the user account has no home directory. I'm pretty sure Dovecot said something different. I don't know why Apple Mail would only say (null). Dovecot also should have logged something in its error log. You could try reproducing it. But instead of connecting with Apple Mail, connect directly with telnet and see what Dovecot really says: telnet pop3.example.com 110 user foobar pass secret http://wiki2.dovecot.org/TestPop3Installation has more possibilities From stan at hardwarefreak.com Wed May 11 00:36:35 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Tue, 10 May 2011 16:36:35 -0500 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <4DC942B1.7020502@wildgooses.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> <4DC79E7A.5080700@hardwarefreak.com> <4DC942B1.7020502@wildgooses.com> Message-ID: <4DC9AFE3.7060804@hardwarefreak.com> On 5/10/2011 8:50 AM, Ed W wrote: > So, in practice it's fairly irrelevant to be hooked to a stratum 1 for > most purposes and if you really want to get obsessed about accurate time > (I'm going through this obsession phase right now...) then just get a > local GPS attached to your machine... NTP is free and the accuracy, when properly configured, is better than that required by any network application. If your goal is sub millisecond accuracy, it's not due to any actual network application requirement. -- Stan From tss at iki.fi Wed May 11 00:42:05 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 00:42:05 +0300 Subject: [Dovecot] compressed mboxes very slow In-Reply-To: <87ipti8ffk.fsf@alfa.kjonca> References: <87iptnoans.fsf@alfa.kjonca> <1305041104.10421.131.camel@hurina> <87ipti8ffk.fsf@alfa.kjonca> Message-ID: <9DE1215A-F41F-4397-B24B-2282E54F523D@iki.fi> On 10.5.2011, at 23.32, Kamil Jo?ca wrote: > Timo Sirainen writes: > >> Here are some fixes: >> >> http://hg.dovecot.org/dovecot-2.0/rev/15a0687ec9d0 >> http://hg.dovecot.org/dovecot-2.0/rev/66ec075a49d3 > > Hard to say, but I can't see any significant improvement after applying > them :| Get strace -tt output of such slowness and send them to me. From dovecot at tlinx.org Wed May 11 00:58:59 2011 From: dovecot at tlinx.org (Linda Walsh) Date: Tue, 10 May 2011 14:58:59 -0700 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> Message-ID: <4DC9B523.1010503@tlinx.org> Timo Sirainen wrote: > On 10.5.2011, at 22.45, Linda Walsh wrote: > >> I've noticed this before and wasn't sure of the problem -- sending large files from FF. > > What is FF? Sorry, meant TB (Thunderbird, 2.x), FF=Firefox, BTW, braino-confusion..... > >> I tracked it down, and the problem is in dovecot when it is saving the mail to my 'Record' (Outbox)... > > So when IMAP client is sending a message to Dovecot? > >> It's saving the file in tiny chunks.... >> >> Looking at a few, I see: >> 4148 bytes >> 2116 bytes >> 1604 bytes >> 692 bytes > > Isn't that the client that is sending it in small pieces then? How did you measure those bytes? Using wireshark. It **could** be the client, but it's hard to see the client doing anything other sending doing a large scale 'save message' to the mailbox, but you're right, it could be a fault of the client, considering how poorly TB is written. It's gotten worse with TB 3.x though with performance there really bogging down my machine in terms of local disk-space consumed. As you may be aware, TB3.x ignores the entire premise of IMAP in storing messages on the server, trying to make copies of all messages, locally. With my users running with roaming profiles, this easily adds over 1GB of locally cached mail to each profile that needs to be copied to and from a server each time a user logs in or out (creating huge lag times for login/logout). From Harlan.Stenn at pfcs.com Wed May 11 00:59:17 2011 From: Harlan.Stenn at pfcs.com (Harlan Stenn) Date: Tue, 10 May 2011 17:59:17 -0400 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <4DC9AFE3.7060804@hardwarefreak.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> <4DC79E7A.5080700@hardwarefreak.com> <4DC942B1.7020502@wildgooses.com> <4DC9AFE3.7060804@hardwarefreak.com> Message-ID: <20110510215917.896A728448@gwc.pfcs.com> > On 5/10/2011 8:50 AM, Ed W wrote: > > > So, in practice it's fairly irrelevant to be hooked to a stratum 1 for > > most purposes ... Actually, an excellent argument can be made for hooking up to some S2 servers instead of S1 servers.. H From tss at iki.fi Wed May 11 01:05:24 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 01:05:24 +0300 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DC9B523.1010503@tlinx.org> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> Message-ID: <15CDBB33-2B77-48D9-9DE8-4D466AB9E77E@iki.fi> On 11.5.2011, at 0.58, Linda Walsh wrote: > Using wireshark. It **could** be the client, but it's hard to see the client doing > anything other sending doing a large scale 'save message' to the mailbox, but you're > right, it could be a fault of the client, considering how poorly TB is written. Difficult to say, but my guess: something else than Dovecot or TB. On the client side there are antivirus and firewall things that can make thing suck. In general Dovecot and TB can talk to each others several MB/sec. Is your problem only with large attachments, or also with a lot of new small mails? (Meaning: the latency or the bandwidth?) From tss at iki.fi Wed May 11 01:07:09 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 01:07:09 +0300 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <15CDBB33-2B77-48D9-9DE8-4D466AB9E77E@iki.fi> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> <15CDBB33-2B77-48D9-9DE8-4D466AB9E77E@iki.fi> Message-ID: <1D69412B-2647-4FF8-A516-3CB9631E1BC2@iki.fi> On 11.5.2011, at 1.05, Timo Sirainen wrote: > On 11.5.2011, at 0.58, Linda Walsh wrote: > >> Using wireshark. It **could** be the client, but it's hard to see the client doing >> anything other sending doing a large scale 'save message' to the mailbox, but you're >> right, it could be a fault of the client, considering how poorly TB is written. > > Difficult to say, but my guess: something else than Dovecot or TB. On the client side there are antivirus and firewall things that can make thing suck. In general Dovecot and TB can talk to each others several MB/sec. > > Is your problem only with large attachments, or also with a lot of new small mails? (Meaning: the latency or the bandwidth?) Also: your subject is about "imaps". DId you try without SSL? Does that make a difference? From sking at kingrst.com Wed May 11 01:07:36 2011 From: sking at kingrst.com (Steven King) Date: Tue, 10 May 2011 18:07:36 -0400 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM Message-ID: <4DC9B728.4040105@kingrst.com> I'm trying to get authentication to work without PAM and just use the standard shadow and passwd files. auth default { userdb passwd { } passdb shadow { } } This seems to be valid code to use /etc/passwd and /etc/shadow. My linux distro is using Salted MD5. Though Dovecot keeps telling me that authentication failed. It doesn't give me any error messages regarding the config. Any ideas? -- Steve King Senior Linux Engineer - Advance Internet, Inc. Cisco Certified Network Associate CompTIA Linux+ Certified Professional CompTIA A+ Certified Professional From sking at kingrst.com Wed May 11 01:10:33 2011 From: sking at kingrst.com (Steven King) Date: Tue, 10 May 2011 18:10:33 -0400 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <4DC9B728.4040105@kingrst.com> References: <4DC9B728.4040105@kingrst.com> Message-ID: <4DC9B7D9.6090204@kingrst.com> Turning on auth debugging May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): lookup May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): unknown user These messages suggest that the auth mechanisms can't find the user. Though the user clearly exists in both /etc/passwd and /etc/shadow. On 5/10/11 6:07 PM, Steven King wrote: > I'm trying to get authentication to work without PAM and just use the > standard shadow and passwd files. > > auth default { > > userdb passwd { > } > > passdb shadow { > } > > } > > This seems to be valid code to use /etc/passwd and /etc/shadow. > > My linux distro is using Salted MD5. Though Dovecot keeps telling me > that authentication failed. It doesn't give me any error messages > regarding the config. > > Any ideas? > -- Steve King Senior Linux Engineer - Advance Internet, Inc. Cisco Certified Network Associate CompTIA Linux+ Certified Professional CompTIA A+ Certified Professional From tss at iki.fi Wed May 11 01:10:54 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 01:10:54 +0300 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <4DC9B728.4040105@kingrst.com> References: <4DC9B728.4040105@kingrst.com> Message-ID: <793C424A-C880-4141-95DC-544ECAC0165F@iki.fi> On 11.5.2011, at 1.07, Steven King wrote: > I'm trying to get authentication to work without PAM and just use the standard shadow and passwd files. > > auth default { > > userdb passwd { > } > > passdb shadow { > } > > } That's not dovecot -n output. > This seems to be valid code to use /etc/passwd and /etc/shadow. Maybe.. > My linux distro is using Salted MD5. Though Dovecot keeps telling me that authentication failed. It doesn't give me any error messages regarding the config. Set auth_debug_passwords=yes. And show the exact log messages. And exact dovecot -n output. From tss at iki.fi Wed May 11 01:13:47 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 01:13:47 +0300 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <4DC9B7D9.6090204@kingrst.com> References: <4DC9B728.4040105@kingrst.com> <4DC9B7D9.6090204@kingrst.com> Message-ID: <5B7C5F6C-A9BE-4614-A284-661167F9F0CD@iki.fi> On 11.5.2011, at 1.10, Steven King wrote: > Turning on auth debugging > > May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): lookup > May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): unknown user > > These messages suggest that the auth mechanisms can't find the user. Though the user clearly exists in both /etc/passwd and /etc/shadow. getspnam() doesn't see the user existing. There are 3 possibilies that I can think of: 1) the user truely doesn't exist in there 2) the file can't be opened due to auth process being run without root privileges (default in v2.0) - dovecot -n output would show this 3) SELinux or similar preventing Dovecot from accessing /etc/shdadow From sking at kingrst.com Wed May 11 01:14:16 2011 From: sking at kingrst.com (Steven King) Date: Tue, 10 May 2011 18:14:16 -0400 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <793C424A-C880-4141-95DC-544ECAC0165F@iki.fi> References: <4DC9B728.4040105@kingrst.com> <793C424A-C880-4141-95DC-544ECAC0165F@iki.fi> Message-ID: <4DC9B8B8.80907@kingrst.com> dovecot -n output root at slacky:/usr/doc/dovecot-1.2.16/wiki# dovecot -n # 1.2.16: /etc/dovecot.conf # OS: Linux 2.6.33.4 x86_64 Slackware 13.1.0 log_path: /var/log/dovecot.log info_log_path: /var/log/dovecot.log protocols: imap pop3 ssl: no disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_trusted_networks: 127.0.0.1 first_valid_gid: 500 mail_location: ~/mail mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib64/dovecot/imap mail_plugin_dir(imap): /usr/lib64/dovecot/imap mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3 pop3_uidl_format(default): %08Xu%08Xv pop3_uidl_format(imap): %08Xu%08Xv pop3_uidl_format(pop3): %v.%u lda: auth_socket_path: /var/run/dovecot/auth-master auth default: user: nobody debug: yes debug_passwords: yes passdb: driver: shadow userdb: driver: passwd socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix On 5/10/11 6:10 PM, Timo Sirainen wrote: > On 11.5.2011, at 1.07, Steven King wrote: > >> I'm trying to get authentication to work without PAM and just use the standard shadow and passwd files. >> >> auth default { >> >> userdb passwd { >> } >> >> passdb shadow { >> } >> >> } > That's not dovecot -n output. > >> This seems to be valid code to use /etc/passwd and /etc/shadow. > Maybe.. > >> My linux distro is using Salted MD5. Though Dovecot keeps telling me that authentication failed. It doesn't give me any error messages regarding the config. > Set auth_debug_passwords=yes. And show the exact log messages. And exact dovecot -n output. -- Steve King Senior Linux Engineer - Advance Internet, Inc. Cisco Certified Network Associate CompTIA Linux+ Certified Professional CompTIA A+ Certified Professional From sking at kingrst.com Wed May 11 01:17:18 2011 From: sking at kingrst.com (Steven King) Date: Tue, 10 May 2011 18:17:18 -0400 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <5B7C5F6C-A9BE-4614-A284-661167F9F0CD@iki.fi> References: <4DC9B728.4040105@kingrst.com> <4DC9B7D9.6090204@kingrst.com> <5B7C5F6C-A9BE-4614-A284-661167F9F0CD@iki.fi> Message-ID: <4DC9B96E.9080506@kingrst.com> Interesting... #2 corrected it. Set the auth process to run as root... Is that safe? On 5/10/11 6:13 PM, Timo Sirainen wrote: > On 11.5.2011, at 1.10, Steven King wrote: > >> Turning on auth debugging >> >> May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): lookup >> May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): unknown user >> >> These messages suggest that the auth mechanisms can't find the user. Though the user clearly exists in both /etc/passwd and /etc/shadow. > getspnam() doesn't see the user existing. There are 3 possibilies that I can think of: > > 1) the user truely doesn't exist in there > > 2) the file can't be opened due to auth process being run without root privileges (default in v2.0) - dovecot -n output would show this > > 3) SELinux or similar preventing Dovecot from accessing /etc/shdadow > -- Steve King Senior Linux Engineer - Advance Internet, Inc. Cisco Certified Network Associate CompTIA Linux+ Certified Professional CompTIA A+ Certified Professional From tss at iki.fi Wed May 11 01:17:35 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 01:17:35 +0300 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <4DC9B8B8.80907@kingrst.com> References: <4DC9B728.4040105@kingrst.com> <793C424A-C880-4141-95DC-544ECAC0165F@iki.fi> <4DC9B8B8.80907@kingrst.com> Message-ID: <172B8800-E788-40CE-B4E8-3194DBB969F7@iki.fi> On 11.5.2011, at 1.14, Steven King wrote: > auth default: > user: nobody > passdb: > driver: shadow nobody doesn't have permissions to read /etc/shadow From tss at iki.fi Wed May 11 01:18:58 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 01:18:58 +0300 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <4DC9B96E.9080506@kingrst.com> References: <4DC9B728.4040105@kingrst.com> <4DC9B7D9.6090204@kingrst.com> <5B7C5F6C-A9BE-4614-A284-661167F9F0CD@iki.fi> <4DC9B96E.9080506@kingrst.com> Message-ID: You could set it to be run as a user that has group=shadow privileges. On 11.5.2011, at 1.17, Steven King wrote: > Interesting... #2 corrected it. Set the auth process to run as root... > > Is that safe? > > On 5/10/11 6:13 PM, Timo Sirainen wrote: >> On 11.5.2011, at 1.10, Steven King wrote: >> >>> Turning on auth debugging >>> >>> May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): lookup >>> May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): unknown user >>> >>> These messages suggest that the auth mechanisms can't find the user. Though the user clearly exists in both /etc/passwd and /etc/shadow. >> getspnam() doesn't see the user existing. There are 3 possibilies that I can think of: >> >> 1) the user truely doesn't exist in there >> >> 2) the file can't be opened due to auth process being run without root privileges (default in v2.0) - dovecot -n output would show this >> >> 3) SELinux or similar preventing Dovecot from accessing /etc/shdadow >> > > -- > Steve King > > Senior Linux Engineer - Advance Internet, Inc. > Cisco Certified Network Associate > CompTIA Linux+ Certified Professional > CompTIA A+ Certified Professional > From sking at kingrst.com Wed May 11 01:19:39 2011 From: sking at kingrst.com (Steven King) Date: Tue, 10 May 2011 18:19:39 -0400 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <172B8800-E788-40CE-B4E8-3194DBB969F7@iki.fi> References: <4DC9B728.4040105@kingrst.com> <793C424A-C880-4141-95DC-544ECAC0165F@iki.fi> <4DC9B8B8.80907@kingrst.com> <172B8800-E788-40CE-B4E8-3194DBB969F7@iki.fi> Message-ID: <4DC9B9FB.6060203@kingrst.com> Fair enough... thanks for your help. On 5/10/11 6:17 PM, Timo Sirainen wrote: > On 11.5.2011, at 1.14, Steven King wrote: > >> auth default: >> user: nobody >> passdb: >> driver: shadow > nobody doesn't have permissions to read /etc/shadow > -- Steve King Senior Linux Engineer - Advance Internet, Inc. Cisco Certified Network Associate CompTIA Linux+ Certified Professional CompTIA A+ Certified Professional From matt at inter7.com Wed May 11 01:20:34 2011 From: matt at inter7.com (Matt Brookings) Date: Tue, 10 May 2011 17:20:34 -0500 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DC9B523.1010503@tlinx.org> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> Message-ID: <4DC9BA32.20808@inter7.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/10/2011 04:58 PM, Linda Walsh wrote: >>> Looking at a few, I see: >>> 4148 bytes >>> 2116 bytes >>> 1604 bytes >>> 692 bytes >> >> Isn't that the client that is sending it in small pieces then? How did >> you measure those bytes? > Using wireshark. It **could** be the client, but it's hard to see the Linda, packets are limited to the MTU of the underlying physical connection. Packet sniffing will not give you a glimpse into how files are being written. Many packets may be sent and received before any data is passed on to the application to be read by a system call. You state above that you saw a packet on the wire that was 4148 bytes, one that was 2116, and one that was 1604. These packets are too large to be transmitted over Ethernet. What type of physical connection were you sniffing these packets on? - -- /* Matt Brookings GnuPG Key FAE0672C Software developer Systems technician Inter7 Internet Technologies, Inc. (815)776-9465 */ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3Jui8ACgkQIwet2/rgZyyinwCePyLZiC7HtCxllsJBBn3V+HLQ cWAAnioX086LiBO5rdvX1xjjSN73/mDy =jajB -----END PGP SIGNATURE----- From alietsantiesteban at gmail.com Wed May 11 02:00:19 2011 From: alietsantiesteban at gmail.com (Aliet Santiesteban Sifontes) Date: Tue, 10 May 2011 19:00:19 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: <1305043528.10421.143.camel@hurina> References: <4DC3D251.4050004@Media-Brokers.com> <1305043528.10421.143.camel@hurina> Message-ID: Timo, thank's for your answer, we finally found the problem, it was cluster related. We have a rhel6-x86_64 cluster using Redhat Cluster Suite and GFS2, the third node was located in an external location for Disaster Recovery, the ethernet links and fiber channel links of that facility are experimenting high latency, this was affecting cluster intercomunicate, many packets were retransmited, after we removed the third node from that facility results improved a lot. Righ now we have all the node in the same place, two shared FC luns using GFS2, one for indexes and the other for mailbox data, here the new results: Using local storage(local hard driver ext4 filesystems) Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 7798 3868 3889 7706 7566 10713 1080 6089 7559 7688 15562 7806 3879 3874 7716 7585 10873 1114 6018 7578 7696 15572 7866 3910 3855 7773 7748 11053 1076 6253 7747 7761 15710 7893 3978 3931 7802 7772 10988 1117 6197 7767 7789 15760 7775 3853 3809 7683 7654 10897 1081 6142 7651 7675 15534 7877 3919 3872 7789 7758 10986 1085 6218 7755 7773 15720 GFS2-mdbox, (no plugins) Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 7547 3739 3749 7455 7421 10605 1053 5931 7417 7443 15074 7480 3702 3724 7387 7367 10558 1064 5874 7366 7378 14946 7523 3759 3711 7428 7394 10560 1126 5898 7390 7412 15014 7455 3736 3621 7364 7326 10561 1088 5854 7324 7349 14880 7431 3712 3686 7337 7312 10406 1017 5882 7311 7328 14844 7426 3704 3671 7334 7296 10364 1076 5791 7296 7325 14834 7517 3673 3782 7425 7406 10554 1103 5913 7404 7414 15008 GFS2-mdbox( using plugins) Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 5464 2713 2697 5371 5201 7503 733 4152 5201 5361 10910 5649 2757 2781 5555 5500 7814 810 4397 5500 5549 11286 5303 2589 2583 5211 5147 7398 783 4067 5147 5201 10590 5446 2633 2721 5353 5280 7465 799 4272 5278 5336 10860 5628 2781 2865 5536 5467 7867 792 4317 5466 5520 11224 5699 2837 2797 5605 5543 7771 809 4416 5542 5599 11382 GFS2-sdbox(using plugins) Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 6102 3008 3018 6008 5885 8395 851 4705 5882 5999 12186 6140 2963 3085 6045 6013 8534 845 4798 6011 6035 12260 6063 2997 3021 5970 5929 8568 894 4719 5926 5955 12100 5747 2805 2890 5651 5599 7956 799 4434 5598 5638 11470 6025 3000 3014 5931 5901 8476 869 4697 5898 5917 12022 5899 2863 2890 5807 5762 8249 839 4610 5761 5802 11792 We will continue the tests with your suggestions. Best regards and thank you all for a great work!! Aliet 2011/5/10 Timo Sirainen > I don't think those results look too bad, even the original ones. > imaptest doesn't measure real world performance anyway. Some ideas: > > - Try mdbox instead of sdbox. Cluster filesystems apparently like a few > bigger files better than many small ones. > > - Try imaptest with logout=0 (or =1 or something). Now you're measuring > way too much the login performance. > > - autocreate plugin sucks, especially with logout=100 because it has to > check that all of the mailboxes exist. In v2.1 autocreate plugin is > redesigned to not do any disk I/O. > > On Fri, 2011-05-06 at 23:01 -0400, Aliet Santiesteban Sifontes wrote: > > New results, now with all plugins disabled: > > > > os rhel6 x86_64, GFS2 Lun > > > > Totals: > > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > > 30% 5% > > 1- 4514 2189 2250 4514 4264 6163 709 3403 4260 4292 8726 > > 2- 2827 1409 1389 2827 2765 3951 495 2168 2765 2777 5644 > > 3- 2711 1409 1368 2711 2649 3833 512 2145 2647 2662 5396 > > 4- 1799 912 890 1799 1720 2492 360 1370 1719 1735 3592 > > 5- 3817 1869 1896 3760 3717 5313 575 3026 3715 3737 7616 > > 6- 3296 1583 1628 3296 3215 4585 523 2600 3215 3238 6584 > > > > 2011/5/6 Aliet Santiesteban Sifontes > > > > > the configs: > > > > > > [root at n02 ~]# dovecot -n > > > # 2.0.12: /etc/dovecot/dovecot.conf > > > # OS: Linux 2.6.32-71.24.1.el6.x86_64 x86_64 Red Hat Enterprise Linux > > > Server release 6.0 (Santiago) > > > auth_cache_size = 15 M > > > auth_default_realm = test.com > > > auth_mechanisms = plain login > > > auth_worker_max_count = 60 > > > disable_plaintext_auth = no > > > login_greeting = Server ready. > > > mail_fsync = never > > > mail_location = sdbox:~/sdbox:INDEX=/vmail/index/%n > > > mail_plugins = quota zlib > > > managesieve_notify_capability = mailto > > > managesieve_sieve_capability = fileinto reject envelope > encoded-character > > > vacation subaddress comparator-i;ascii-numeric relational regex > imap4flags > > > copy include variables body enotify environment mailbox date > > > mbox_write_locks = fcntl > > > mmap_disable = yes > > > namespace { > > > inbox = yes > > > location = > > > prefix = > > > separator = / > > > } > > > passdb { > > > args = /etc/dovecot/dovecot-ldap.conf.ext > > > driver = ldap > > > } > > > plugin { > > > autocreate = Sent > > > autocreate2 = Trash > > > autocreate3 = Drafts > > > autocreate4 = Junk > > > autocreate5 = Archives > > > autocreate6 = Templates > > > autosubscribe = Sent > > > autosubscribe2 = Trash > > > autosubscribe3 = Drafts > > > autosubscribe4 = Junk > > > autosubscribe5 = Archives > > > autosubscribe6 = Templates > > > quota = dict:User quota::file:%h/sdbox/dovecot-quota > > > quota_rule = *:storage=250M > > > quota_rule2 = Trash:storage=+50M > > > quota_rule3 = Spam:storage=+25M > > > quota_rule4 = Sent:ignore > > > sieve = ~/.dovecot.sieve > > > sieve_before = /var/vmail/sievescripts/before.d > > > sieve_dir = ~/sieve > > > zlib_save = gz > > > zlib_save_level = 6 > > > } > > > postmaster_address = postmaster at test.com > > > protocols = imap pop3 lmtp sieve > > > service auth { > > > unix_listener auth-userdb { > > > group = vmail > > > mode = 0660 > > > user = root > > > } > > > } > > > service imap-login { > > > service_count = 0 > > > } > > > > > > best regards > > > > > > > > > 2011/5/6 Charles Marcus > > > > > >> On 2011-05-05 7:56 PM, Aliet Santiesteban Sifontes wrote: > > >> > We have used sdbox as mailbox format, and all the user data is > > >> configured in > > >> > LDAP Servers > > >> > > >> It might help Timo to provide some suggestions if you also provide > > >> dovecot -n output... ;) > > >> > > >> -- > > >> > > >> Best regards, > > >> > > >> Charles > > >> > > > > > > > > > From stan at hardwarefreak.com Wed May 11 02:28:42 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Tue, 10 May 2011 18:28:42 -0500 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DC9B523.1010503@tlinx.org> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> Message-ID: <4DC9CA2A.4020101@hardwarefreak.com> On 5/10/2011 4:58 PM, Linda Walsh wrote: > As you may be aware, TB3.x ignores the entire > premise of > IMAP in storing messages on the server, trying to make copies of all > messages, locally. Yes, this is the default as 95%+ of Thunderbird seats are home/mobile broadband users. For corporate use see: http://wpkg.org/Thunderbird#Prefs > With my users running with roaming profiles, this easily adds over 1GB > of locally cached > mail to each profile that needs to be copied to and from a server each > time a user logs in > or out (creating huge lag times for login/logout). Linda you should be shot for not fixing this already. 1GB roaming profiles? (gasp) Bet the switch, server, and storage vendors just love you. ;) If you've got some basic script writing ability, or can find something already written, simply walk the profile directory on the server and add the necessary lines to each user's prefs.js. Assuming your workstations are already configured to delete locally cached roaming profiles at logoff the problem is now solved for existing users. For new user profile creation simply create a custom default profile template. -- Stan From fakessh at fakessh.eu Wed May 11 04:55:58 2011 From: fakessh at fakessh.eu (fakessh) Date: Wed, 11 May 2011 03:55:58 +0200 Subject: [Dovecot] sieve problem Message-ID: <201105110356.05524.fakessh@fakessh.eu> hi dovecot network hi timo hi sieve writer I know one thing sieve scripts must be simple and follow the manual, knowing what he must do the thing well must wear a kind of precise name envellope sorry I'm not going to school I use sieve scripts for some time are published on my blog I just created an address partuculiere a subdomain. I have created in order to receive mailings on this address. how to write a script that would include the script in the early detection of the parameter "this email address" it is necessary to manage the delivery of mail in a subfolder such mailling and how after all conditions to evaluate the knowledge that a stop sign while stopped thank you -- http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7 gpg --keyserver pgp.mit.edu --recv-key 092164A7 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From peter at bellfamily.org.uk Wed May 11 06:35:37 2011 From: peter at bellfamily.org.uk (Peter Bell) Date: Wed, 11 May 2011 11:35:37 +0800 Subject: [Dovecot] Error messages in log Message-ID: <4DCA0409.4030702@bellfamily.org.uk> Hi, I would like to eliminate some of the error messages which appear in my dovecot logfile. I already understand that the message: doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection is fixed in the current development code. However, I also get a lot of: lda(peter): Error: User peter doesn't have home dir set, disabling duplicate database Is there a way to eliminate/supress these messages? I'm operating with virtual users, so checking for a home directory doesn't make a lot of sense. Is there a setting in the .conf file which can control this? Possibly more concerning is this message: May 10 23:31:23 imap(peter): Error: link(/mnt/user/Maildir/peter/dovecot.index.log, /mnt/user/Maildir/peter/dovecot.index.log.2) failed: Function not implemented I'm not sure exactly what I was doing at the time - probably experimenting with Sieve filters. Has this compromised my maildir? I have already disabled copy with hard links - is there another 'hardlink' setting available? Thank you for any advice! root at Tower:~# doveconf -n # 2.0.12: /usr/local/etc/dovecot/dovecot.conf doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection # OS: Linux 2.6.36.2-unRAID i686 Slackware 13.1.0 fuse.shfs disable_plaintext_auth = no listen = * log_path = /var/log/mail.log mail_location = maildir:/mnt/user/Maildir/%u maildir_copy_with_hardlinks = no managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date passdb { args = /etc/passwd.dovecot driver = passwd-file } plugin { sieve = /mnt/user/Maildir/%u/.dovecot.sieve sieve_dir = /mnt/user/Maildir/%u/ sieve_global_path = /var/lib/dovecot/default.sieve } postmaster_address = postmaster at bellfamily.org.uk protocols = imap sieve service auth { user = root } service imap-login { inet_listener imap { port = 143 } } ssl = no userdb { args = /etc/passwd.dovecot driver = passwd-file } protocol lda { mail_plugins = sieve } root at Tower:~# -- ------------------------------------------------------------------- Peter Bell Mob: +63 (0) 9287 340 343 Tagum City, Philippines. Tel: +63 (0) 84 400 5085 email/msn: peter at bellfamily.org.uk Tel: +44 (0) 118 331 0000 From peter at bellfamily.org.uk Wed May 11 07:14:43 2011 From: peter at bellfamily.org.uk (Peter Bell) Date: Wed, 11 May 2011 12:14:43 +0800 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DC9B523.1010503@tlinx.org> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> Message-ID: <4DCA0D33.4020400@bellfamily.org.uk> On Wednesday, 11 May, 2011 05:58 AM, Linda Walsh wrote: > As you may be aware, TB3.x ignores the entire premise of > IMAP in storing messages on the server, trying to make copies of all > messages, locally. Really? I'm using TB 3.1 and, to the best of my knowledge, it's not making local copies. You have tried going into settings for the account, 'Synchronization & Storage', and turning off the 'Keep messages for this account on this computer' setting? -- ------------------------------------------------------------------- Peter Bell Mob: +63 (0) 9287 340 343 Tagum City, Philippines. Tel: +63 (0) 84 400 5085 email/msn: peter at bellfamily.org.uk Tel: +44 (0) 118 331 0000 From stan at hardwarefreak.com Wed May 11 07:29:24 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Tue, 10 May 2011 23:29:24 -0500 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DCA0D33.4020400@bellfamily.org.uk> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> <4DCA0D33.4020400@bellfamily.org.uk> Message-ID: <4DCA10A4.9080504@hardwarefreak.com> On 5/10/2011 11:14 PM, Peter Bell wrote: > > > On Wednesday, 11 May, 2011 05:58 AM, Linda Walsh wrote: >> As you may be aware, TB3.x ignores the entire premise of >> IMAP in storing messages on the server, trying to make copies of all >> messages, locally. > > Really? > > I'm using TB 3.1 and, to the best of my knowledge, it's not making local > copies. > > You have tried going into settings for the account, 'Synchronization & > Storage', and turning off the 'Keep messages for this account on this > computer' setting? I would assume Linda knows how to disable it manually Peter. I'm guessing she was simply lacking automation tools/methods for disabling this feature automatically each time a user's TB profile is created. TB doesn't use the Windows registry, so the Microsoft admin tools such as the Group Policy Editor can't be used to change these TB settings, or, if it can be done with MS tools, many hoops are likely involved. -- Stan From peter at bellfamily.org.uk Wed May 11 07:46:10 2011 From: peter at bellfamily.org.uk (Peter Bell) Date: Wed, 11 May 2011 12:46:10 +0800 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DCA10A4.9080504@hardwarefreak.com> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> <4DCA0D33.4020400@bellfamily.org.uk> <4DCA10A4.9080504@hardwarefreak.com> Message-ID: <4DCA1492.6050501@bellfamily.org.uk> On Wednesday, 11 May, 2011 12:29 PM, Stan Hoeppner wrote: > On 5/10/2011 11:14 PM, Peter Bell wrote: >> >> >> On Wednesday, 11 May, 2011 05:58 AM, Linda Walsh wrote: >>> As you may be aware, TB3.x ignores the entire premise of >>> IMAP in storing messages on the server, trying to make copies of all >>> messages, locally. >> >> Really? >> >> I'm using TB 3.1 and, to the best of my knowledge, it's not making local >> copies. >> >> You have tried going into settings for the account, 'Synchronization & >> Storage', and turning off the 'Keep messages for this account on this >> computer' setting? > > I would assume Linda knows how to disable it manually Peter. Okay. It's difficult to make assumptions about someone you don't know and when you know nothing of their technical capabilities. Her post made it sound as though she was unable to escape the 'local storage' so I thought it might be helpful to show how I believe it can be turned off. > I'm > guessing she was simply lacking automation tools/methods for disabling > this feature automatically each time a user's TB profile is created. TB > doesn't use the Windows registry, so the Microsoft admin tools such as > the Group Policy Editor can't be used to change these TB settings, or, > if it can be done with MS tools, many hoops are likely involved. Ooops, yes! I've just looked at her headers and see that she is posting from a Windows box! Is the Windows version of TB significantly different to the Linux version? -- ------------------------------------------------------------------- Peter Bell Mob: +63 (0) 9287 340 343 Tagum City, Philippines. Tel: +63 (0) 84 400 5085 email/msn: peter at bellfamily.org.uk Tel: +44 (0) 118 331 0000 From slusarz at curecanti.org Wed May 11 07:46:07 2011 From: slusarz at curecanti.org (Michael M Slusarz) Date: Tue, 10 May 2011 22:46:07 -0600 Subject: [Dovecot] BUG(?): Incorrect responses for ACL prohibited actions In-Reply-To: References: <20110510124458.Horde.LnlpeIF5lbhNyYeqlCXUIdA@bigworm.curecanti.org> Message-ID: <20110510224607.Horde.k4LCS4F5lbhNyhSPSJokIdA@bigworm.curecanti.org> Quoting Timo Sirainen : > On 10.5.2011, at 21.44, Michael M Slusarz wrote: > >> In a mailbox that has ACL restrictions on both DELETE and EXPUNGE >> (i.e. no 'e' or 't' rights), I see the following: >> >> 3 UID STORE 3173 (UNCHANGEDSINCE 353) +FLAGS \deleted >> 3 OK Store completed. >> >> (UID 3173 is not flagged \deleted) >> >> [...] >> >> 6 UID EXPUNGE 1:* >> 6 OK Expunge completed. >> >> (At least 1 UID is flagged \deleted in mailbox) >> >> Shouldn't these commands be returning "NO" instead of "OK"? RFC >> 3501 [6.4.6] for STORE: > > Clients aren't very happy about seeing NO. Also Dovecot didn't say > anything changed with either of the above commands, so nothing > really failed either. A "STORE +FLAGS.SILENT \Deleted" is more > controversial though. Maybe that should return NO.. I personally don't care about +FLAGS.SILENT, since ideally people should be using CONDSTORE/QRESYNC :) - in which case FLAGS.SILENT is irrelevant. But as far as the NO for a non-silent STORE, it seems that RFC 4314 [4] disagrees with you: STORE operation SHOULD NOT fail if the user has rights to modify at least one flag specified in the STORE, as the tagged NO response to a STORE command is not handled very well by deployed clients. To me, the negative inference from this statement would be: "STORE operation SHOULD fail if the user has no rights to modify at least one flag specified in the STORE." So I would agree with your statement that there should not be a NO response if at least one flag is settable, but I disagree (and RFC 4314 seems to back me up) and believe that there should be a NO if none of the flags given can be set. At a minimum, a NOPERM response should be thrown, or else there is no feedback at all why the flag was not set (without parsing ACLs). Ideally a client should disable all features not available to the user in the UI - something I am presently working on - but that should not eliminate the need for useful error responses in order to determine if the action was successful. >> and RFC RFC 3501 [6.4.3] for EXPUNGE: >> >> NO - expunge failure: can't expunge (e.g., permission denied) >> >> Additionally, RFC 5530 [3] provides the NOPERM response code: >> >> NOPERM >> The access control system (e.g., Access Control List (ACL), see >> [RFC 4314]) does not permit this user to carry out an operation, >> such as selecting or creating a mailbox. >> >> C: f select "/archive/projects/experiment-iv" >> S: f NO [NOPERM] Access denied >> >> My reading of this is that NOPERM should be returned for ANY ACL >> prohibited action, not just for selecting or creating a mailbox. >> Dovecot 2.0.12 does not return NOPERM for DELETE/EXPUNGE actions >> (at a minimum) that are prohibited. > > I'm not really sure. Maybe for EXPUNGE a NO would be okay. For flag > changes it's just annoying to see clients popup pointless error > messages when trying to set a \Seen flag (or \Answered flag when > replying). That may be true, but if a user can't do something in a mailbox I would rather have them be told of their limitations rather than have them scratch their head while trying to figure out why things aren't happening that they are explicitly (and, if failing, most likely repeatedly) trying to do. Alternatively, there doesn't seem to be any limitation to use NOPERM with a NO response. Theoretically, you could issue an OK with NOPERM. Clients are required to ignore response codes they don't recognize, and those that do can make the determination whether any NOPERM, regardless of status response, should be something they might be interested in dealing with. > Also I'm not sure if Dovecot's behavior is entirely correct either > here. It might be more correct that all flag changes succeed, but > those flags would be session-only flag changes rather than permanent > flag changes. > > It's a slightly difficult subject :) Discussion of session-only flags is all laid out in RFC 3501, so I can vouch that *my* client software handles them correctly :) I can not comment on the potential work needed on the server end. michael From emailbuilder88 at yahoo.com Wed May 11 10:21:13 2011 From: emailbuilder88 at yahoo.com (email builder) Date: Wed, 11 May 2011 00:21:13 -0700 (PDT) Subject: [Dovecot] Running 1.x and 2. x on same machine Message-ID: <446514.80943.qm@web39307.mail.mud.yahoo.com> Hello, When building from source, is it possible to use "make install" to switch between version 1.x and 2.x on the same machine (just for testing)? Do both versions install the same binaries? Is configuration from 2.x backward compatible with 1.x? (so we can have the newest configuration files on our system without bothering to have a second set of 1.x config files) Or instead should we be changing something like the installation and config directorie for one of the versions when we install it (how?). Thanks for advice!!!! From stan at hardwarefreak.com Wed May 11 10:32:22 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Wed, 11 May 2011 02:32:22 -0500 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DCA1492.6050501@bellfamily.org.uk> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> <4DCA0D33.4020400@bellfamily.org.uk> <4DCA10A4.9080504@hardwarefreak.com> <4DCA1492.6050501@bellfamily.org.uk> Message-ID: <4DCA3B86.9040301@hardwarefreak.com> On 5/10/2011 11:46 PM, Peter Bell wrote: > On Wednesday, 11 May, 2011 12:29 PM, Stan Hoeppner wrote: >> On 5/10/2011 11:14 PM, Peter Bell wrote: >>> >>> >>> On Wednesday, 11 May, 2011 05:58 AM, Linda Walsh wrote: >>>> As you may be aware, TB3.x ignores the entire premise of >>>> IMAP in storing messages on the server, trying to make copies of all >>>> messages, locally. >>> >>> Really? >>> >>> I'm using TB 3.1 and, to the best of my knowledge, it's not making local >>> copies. >>> >>> You have tried going into settings for the account, 'Synchronization & >>> Storage', and turning off the 'Keep messages for this account on this >>> computer' setting? >> >> I would assume Linda knows how to disable it manually Peter. > > Okay. It's difficult to make assumptions about someone you don't know > and when you know nothing of their technical capabilities. Her post made I agree, obviously. > it sound as though she was unable to escape the 'local storage' so I > thought it might be helpful to show how I believe it can be turned off. I know of Linda from the XFS and Samba lists. I get the impression she's not new to the system administration game. In fact I get the impression she's probably been in IT longer than I have (a little less than 2 decades here). Thus the reason for my playful condescending tone in my previous mail when she mentioned 1GB+ roaming profiles. > Ooops, yes! I've just looked at her headers and see that she is posting > from a Windows box! Her mention of 1GB+ roaming profiles should have been a clue. That only happens in the Windows world. :) > Is the Windows version of TB significantly different > to the Linux version? I'm not an authority as I've little experience with the Linux version. From what I've read they are very similar, with minimal platform specific code, most of the unique code being GUI management and system API calls. WRT the user configurable stuff, it's identical across platforms AFAIK. Much like Linda, and much of the corporate world, I have Windows on the desktop and Linux in the data center. -- Stan From tlx at leuxner.net Wed May 11 11:02:50 2011 From: tlx at leuxner.net (Thomas Leuxner) Date: Wed, 11 May 2011 10:02:50 +0200 Subject: [Dovecot] Error messages in log In-Reply-To: <4DCA0409.4030702@bellfamily.org.uk> References: <4DCA0409.4030702@bellfamily.org.uk> Message-ID: <20110511080250.GB2885@nihlus.leuxner.net> On Wed, May 11, 2011 at 11:35:37AM +0800, Peter Bell wrote: > Possibly more concerning is this message: > May 10 23:31:23 imap(peter): Error: > link(/mnt/user/Maildir/peter/dovecot.index.log, > /mnt/user/Maildir/peter/dovecot.index.log.2) failed: Function not > implemented Basically you are nesting homedir/meta data inside the Maildir root. This is where the errors stem from. Sieve scripts and index data should not reside within same. > mail_location = maildir:/mnt/user/Maildir/%u This is a bit overcomplicated. Try using a construct like: mail_location = maildir:~/Maildir http://wiki2.dovecot.org/MailLocation/Maildir This however requires home directories to be set accordingly in the User Database: > userdb { > args = /etc/passwd.dovecot > driver = passwd-file http://wiki2.dovecot.org/AuthDatabase/Passwd With the changes in place the nesting can be avoided by simplifying: > plugin { > sieve = /mnt/user/Maildir/%u/.dovecot.sieve > sieve_dir = /mnt/user/Maildir/%u/ sieve = ~/.dovecot.sieve sieve_dir = ~/sieve Regards Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From tss at iki.fi Wed May 11 12:42:02 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 12:42:02 +0300 Subject: [Dovecot] Error messages in log In-Reply-To: <4DCA0409.4030702@bellfamily.org.uk> References: <4DCA0409.4030702@bellfamily.org.uk> Message-ID: <2D2123E9-1CDC-4563-95B8-4575771DEC00@iki.fi> On 11.5.2011, at 6.35, Peter Bell wrote: > However, I also get a lot of: > lda(peter): Error: User peter doesn't have home dir set, disabling duplicate database > Is there a way to eliminate/supress these messages? I'm operating with virtual users, so checking for a home directory doesn't make a lot of sense. Is there a setting in the .conf file which can control this? http://wiki2.dovecot.org/VirtualUsers/Home > Possibly more concerning is this message: > May 10 23:31:23 imap(peter): Error: link(/mnt/user/Maildir/peter/dovecot.index.log, /mnt/user/Maildir/peter/dovecot.index.log.2) failed: Function not implemented So apparently your fuse filesystem doesn't support link(). > I'm not sure exactly what I was doing at the time - probably experimenting with Sieve filters. Has this compromised my maildir? I have already disabled copy with hard links - is there another 'hardlink' setting available? Nope. I don't remember what all places uses link(), but looks like at least copying .log to .log.2 file. It doesn't really matter if it fails though. From CMarcus at Media-Brokers.com Wed May 11 14:02:45 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Wed, 11 May 2011 07:02:45 -0400 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DC9B523.1010503@tlinx.org> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> Message-ID: <4DCA6CD5.5000005@Media-Brokers.com> On 2011-05-10 5:58 PM, Linda Walsh wrote: > It's gotten worse with TB 3.x though with performance there really > bogging down my machine in terms of local disk-space consumed. As you > may be aware, TB3.x ignores the entire premise of IMAP in storing > messages on the server, trying to make copies of all messages, > locally. Please don't blame incorrect/poor configuration practices on the program itself. Properly configured, 3.1.x is miles beyond 2.x... but yes, I agree, the defaults do not play well in a corporate/roaming profile environment. > With my users running with roaming profiles, this easily adds over > 1GB of locally cached mail to each profile that needs to be copied to > and from a server each time a user logs in or out (creating huge lag > times for login/logout). Either use redirected folders, or disable the local store and GLODA. -- Best regards, Charles From tss at iki.fi Wed May 11 14:20:48 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 14:20:48 +0300 Subject: [Dovecot] Running 1.x and 2. x on same machine In-Reply-To: <446514.80943.qm@web39307.mail.mud.yahoo.com> References: <446514.80943.qm@web39307.mail.mud.yahoo.com> Message-ID: <1305112848.10421.183.camel@hurina> On Wed, 2011-05-11 at 00:21 -0700, email builder wrote: > Hello, > > When building from source, is it possible to use "make install" to switch > between version 1.x and 2.x on the same machine (just for testing)? I do that all the time. > Do both versions install the same binaries? No, but as long as you don't use the other one's extra binaries it doesn't matter. > Is configuration from 2.x backward > compatible with 1.x? (so we can have the newest configuration files on our > system without bothering to have a second set of 1.x config files) v2.0 can read most v1.x config files, but it'll give a lot of warnings about it. Their default configs are anyway in different locations. I just keep them both: v1.x: /usr/local/etc/dovecot.conf v2.x: /usr/local/etc/dovecot/dovecot.conf > Or instead should we be changing something like the installation and config > directorie for one of the versions when we install it (how?). ./configure --prefix=/usr/local/dovecot-2.0 From tss at iki.fi Wed May 11 14:26:16 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 14:26:16 +0300 Subject: [Dovecot] LDAP Authentication ok but errors In-Reply-To: References: Message-ID: <1305113176.10421.184.camel@hurina> On Tue, 2011-05-10 at 18:21 +0200, H?ctor Moreno Blanco wrote: > We have installed dovecot 2.0.10. With LDAP authentication. Users authenticate successfully but in the authentication process there are errors that I don't understand because it's everything all right: > > May 10 18:00:49 carpe3 dovecot: auth: Error: ldap_unbind > May 10 18:00:49 carpe3 dovecot: auth: Error: ldap_free_connection 1 1 > May 10 18:00:49 carpe3 dovecot: auth: Error: ldap_send_unbind .. These are not errors, they are debug messages. They simply show up as errors, because libldap writes them to stderr, and Dovecot treats all such extra stderr input as errors. > An here is my dovecot-ldap.conf: > > # INFORMACI?N DE CONEXI?N AL LDAP > debug_level = -1 Set debug_level = 0 and those debug messages go away. From tss at iki.fi Wed May 11 14:28:16 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 14:28:16 +0300 Subject: [Dovecot] Problem with sieve after upgrade to 2.0 In-Reply-To: <201105071624.58117.tom-dovecot@tomonica.net> References: <201105071624.58117.tom-dovecot@tomonica.net> Message-ID: <1305113296.10421.185.camel@hurina> On Sat, 2011-05-07 at 16:24 +0100, Tom Wright wrote: > I've just upgraded from 1.2 to 2.0.12 via debian sid packages. I think I've > moved all my config over to the new directory-based structure and most things > are working, but the subaddress extension in sieve doesn't seem to do anything > anymore. It doesn't report an error, but any rules which use it are just > ignored. Other sieve rules which don't use subaddress seem to work ok. What parameters are you giving to deliver? What does it log with mail_debug=yes? From tss at iki.fi Wed May 11 14:36:30 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 14:36:30 +0300 Subject: [Dovecot] dovecot+shared folders In-Reply-To: References: Message-ID: <1305113790.10421.186.camel@hurina> On Fri, 2011-05-06 at 17:03 +0400, Alexey Eropkin wrote: > And all seems ok, but I cannot understand how to make delet flag per user. > If I permit t and e in ACL, users delet message forever for all. Not possible currently. Although you could easily modify the source code to do that. From peter at bellfamily.org.uk Wed May 11 15:02:10 2011 From: peter at bellfamily.org.uk (Peter Bell) Date: Wed, 11 May 2011 20:02:10 +0800 Subject: [Dovecot] Error messages in log In-Reply-To: <2D2123E9-1CDC-4563-95B8-4575771DEC00@iki.fi> References: <4DCA0409.4030702@bellfamily.org.uk> <2D2123E9-1CDC-4563-95B8-4575771DEC00@iki.fi> Message-ID: <4DCA7AC2.7010801@bellfamily.org.uk> Thank you to you, Timo, and to Thomas, for you helpful replies! On Wednesday, 11 May, 2011 05:42 PM, Timo Sirainen wrote: > On 11.5.2011, at 6.35, Peter Bell wrote: > >> However, I also get a lot of: >> lda(peter): Error: User peter doesn't have home dir set, disabling duplicate database >> Is there a way to eliminate/supress these messages? I'm operating with virtual users, so checking for a home directory doesn't make a lot of sense. Is there a setting in the .conf file which can control this? > > http://wiki2.dovecot.org/VirtualUsers/Home Ah, thanks for that pointer - I seem to have missed that page in my enthusiasm to get Dovecot up and running in my Slackware environment. Perhaps I simply ignored mention of 'home' directories in my belief that they didn't apply to a virtual user situation. I will have a go at restructuring things. >> Possibly more concerning is this message: >> May 10 23:31:23 imap(peter): Error: link(/mnt/user/Maildir/peter/dovecot.index.log, /mnt/user/Maildir/peter/dovecot.index.log.2) failed: Function not implemented > > So apparently your fuse filesystem doesn't support link(). That is correct. This system is, essentially, a parity-protected file server, with logical file space which spans physical devices. However, the big benefit of the system is that, unlike most RAID configurations, each physical drive can be mounted individually and the filesystem (ReiserFS) written/read in isolation. I suspect that, technically, it would be possible to add link(), but I guess that the conflation of stand-alone drive/logical spanning makes it a little complex. I will try starting a discussion on this topic over on the 'other' forum. Anyway, having been badly bitten by a RAID system which fell over and failed to respond to any of the prescribed recovery procedures, some years ago, I feel more comfortable with this solution. The system will recover from any single drive failure and,even if more than one drive fails simultaneously, I can still recover all files on the remaining drives. >> I'm not sure exactly what I was doing at the time - probably experimenting with Sieve filters. Has this compromised my maildir? I have already disabled copy with hard links - is there another 'hardlink' setting available? > > Nope. I don't remember what all places uses link(), but looks like at least copying .log to .log.2 file. It doesn't really matter if it fails though. Okay, so I'm guessing that this is simply a rollover log file - one file, reaching a certain size is renamed [linked], and a new log file started? When I have a little spare time I may try grepping the Dovecot code. -- ------------------------------------------------------------------- Peter Bell Mob: +63 (0) 9287 340 343 Tagum City, Philippines. Tel: +63 (0) 84 400 5085 email/msn: peter at bellfamily.org.uk Tel: +44 (0) 118 331 0000 From trever.adams at gmail.com Wed May 11 15:09:19 2011 From: trever.adams at gmail.com (Trever L. Adams) Date: Wed, 11 May 2011 06:09:19 -0600 Subject: [Dovecot] possible bug leading to lmtp crashes In-Reply-To: <1304957973.10421.101.camel@hurina> References: <4DAECAAC.3060903@gmail.com> <4DB58F67.4090600@gmail.com> <4DB6FCF7.9070905@gmail.com> <5D19A866-381B-4CA6-B8FF-0F7BCDA36799@iki.fi> <4DBC3F3F.4030605@gmail.com> <1304957973.10421.101.camel@hurina> Message-ID: <4DCA7C6F.40902@gmail.com> On 05/09/2011 10:19 AM, Timo Sirainen wrote: > > I wonder if it crashes earlier with this patch? > http://hg.dovecot.org/dovecot-2.0/rev/3ada82147977 > Thank you, Timo. I think this may have indeed fixed it. I would like to wait a day or two more before saying definitively, but so far it looks like it has fixed the problem. It also seems to have solved another crash you asked me to duplicate and provide a backtrace for (which I was unable to do). Trever -- "If a revolution destroys a systematic government, but the systematic patterns of thought that produced that government are left intact, then those patterns will repeat themselves in the succeeding government." -- Robert M. Pirsig -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From tss at iki.fi Wed May 11 15:21:06 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 15:21:06 +0300 Subject: [Dovecot] Backtrace:dovecot/imap with 2.0.9 hg checkout from 1st of Febrauary In-Reply-To: <20110505092649.GD23316@charite.de> References: <20110202085907.GD2120@charite.de> <1296685692.18488.322.camel@hurina> <20110203090827.GC12879@charite.de> <20110505092649.GD23316@charite.de> Message-ID: <1305116466.10421.187.camel@hurina> Fixed: http://hg.dovecot.org/dovecot-2.0/rev/cef76cf2cec9 http://hg.dovecot.org/dovecot-2.0/rev/c392158f374d On Thu, 2011-05-05 at 11:26 +0200, Ralf Hildebrandt wrote: > * Ralf Hildebrandt : > > > Maybe it's a accidentially doubly gzipped mail :( > > It is! > > > > There's anyway a bug since it shouldn't be crashing even with garbage > > > input. > > > > Yes, indeed. > > > > > Do you still have this message available? You can probably find it with: > > > > > > doveadm fetch -u username 'mailbox size.virtual' uid 37 > > > > > > And seeing if that's a >130k message somewhere in the list. If that's a > > > spam or otherwise a message you can send me, it would help fixing this. > > Can dovecot changed in a way that it doesn't crash when it encounters > a accidentially doubly gzipped mail? > > From tss at iki.fi Wed May 11 15:23:03 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 15:23:03 +0300 Subject: [Dovecot] Importing emails from mounted NFS to dovecot using doveadm In-Reply-To: References: Message-ID: <1305116583.10421.188.camel@hurina> On Wed, 2011-05-04 at 14:05 -0300, Alex Baule wrote: > > userdb { > driver = static > args = uid=mail gid=mail home=/storage/gss/emexis/messages/%d/%n > allow_all_users=yes > } > > > but my emails to import in NFS i cant change the UID-GID to mail:mail, > because is in use by another IMAP (in one machine uid X is different from > another machine) > > There is a way to import emails with doveadm without change the owner from > my emails to import ? Dovecot would then have to read mails using one UID and write them using another UID. It would have to run as root to do that.. So, nope, no good way to do this. You could cp the mails to /tmp first and chown there. From tss at iki.fi Wed May 11 15:26:32 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 15:26:32 +0300 Subject: [Dovecot] Error messages in log In-Reply-To: <4DCA7AC2.7010801@bellfamily.org.uk> References: <4DCA0409.4030702@bellfamily.org.uk> <2D2123E9-1CDC-4563-95B8-4575771DEC00@iki.fi> <4DCA7AC2.7010801@bellfamily.org.uk> Message-ID: <1305116792.10421.191.camel@hurina> On Wed, 2011-05-11 at 20:02 +0800, Peter Bell wrote: > >> Possibly more concerning is this message: > >> May 10 23:31:23 imap(peter): Error: link(/mnt/user/Maildir/peter/dovecot.index.log, /mnt/user/Maildir/peter/dovecot.index.log.2) failed: Function not implemented > > > > So apparently your fuse filesystem doesn't support link(). > > That is correct. This system is, essentially, a parity-protected file > server, with logical file space which spans physical devices. However, > the big benefit of the system is that, unlike most RAID configurations, > each physical drive can be mounted individually and the filesystem > (ReiserFS) written/read in isolation. I suspect that, technically, it > would be possible to add link(), but I guess that the conflation of > stand-alone drive/logical spanning makes it a little complex. I will > try starting a discussion on this topic over on the 'other' forum. One directory's all files are probably in one filesystem, so link() within a single directory should be simple to implement I think? That's all Dovecot needs. > >> I'm not sure exactly what I was doing at the time - probably experimenting with Sieve filters. Has this compromised my maildir? I have already disabled copy with hard links - is there another 'hardlink' setting available? > > > > Nope. I don't remember what all places uses link(), but looks like at least copying .log to .log.2 file. It doesn't really matter if it fails though. > > Okay, so I'm guessing that this is simply a rollover log file - one > file, reaching a certain size is renamed [linked], and a new log file > started? Right. Not having a .log.2 mainly affects things like dsync and QRESYNC extension. > When I have a little spare time I may try grepping the Dovecot code. there are link() and nfs_safe_link() calls. From tss at iki.fi Wed May 11 15:27:29 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 15:27:29 +0300 Subject: [Dovecot] possible bug leading to lmtp crashes In-Reply-To: <4DCA7C6F.40902@gmail.com> References: <4DAECAAC.3060903@gmail.com> <4DB58F67.4090600@gmail.com> <4DB6FCF7.9070905@gmail.com> <5D19A866-381B-4CA6-B8FF-0F7BCDA36799@iki.fi> <4DBC3F3F.4030605@gmail.com> <1304957973.10421.101.camel@hurina> <4DCA7C6F.40902@gmail.com> Message-ID: <1305116849.10421.192.camel@hurina> On Wed, 2011-05-11 at 06:09 -0600, Trever L. Adams wrote: > On 05/09/2011 10:19 AM, Timo Sirainen wrote: > > > > I wonder if it crashes earlier with this patch? > > http://hg.dovecot.org/dovecot-2.0/rev/3ada82147977 > > > Thank you, Timo. I think this may have indeed fixed it. That patch only was supposed to make it crash elsewhere, not actually fix anything. :) From peter at bellfamily.org.uk Wed May 11 15:36:57 2011 From: peter at bellfamily.org.uk (Peter Bell) Date: Wed, 11 May 2011 20:36:57 +0800 Subject: [Dovecot] Error messages in log In-Reply-To: <1305116792.10421.191.camel@hurina> References: <4DCA0409.4030702@bellfamily.org.uk> <2D2123E9-1CDC-4563-95B8-4575771DEC00@iki.fi> <4DCA7AC2.7010801@bellfamily.org.uk> <1305116792.10421.191.camel@hurina> Message-ID: <4DCA82E9.70701@bellfamily.org.uk> On Wednesday, 11 May, 2011 08:26 PM, Timo Sirainen wrote: > On Wed, 2011-05-11 at 20:02 +0800, Peter Bell wrote: >> I suspect that, technically, it >> would be possible to add link(), but I guess that the conflation of >> stand-alone drive/logical spanning makes it a little complex. I will >> try starting a discussion on this topic over on the 'other' forum. > > One directory's all files are probably in one filesystem, so link() > within a single directory should be simple to implement I think? That's > all Dovecot needs. Yes, sure. I think that it might be a little more complicated to find a generalised solution which will meet all requirements for the implementation of link(). >> When I have a little spare time I may try grepping the Dovecot code. > > there are link() and nfs_safe_link() calls. Thanks for that info! -- ------------------------------------------------------------------- Peter Bell Mob: +63 (0) 9287 340 343 Tagum City, Philippines. Tel: +63 (0) 84 400 5085 email/msn: peter at bellfamily.org.uk Tel: +44 (0) 118 331 0000 From tom-dovecot at tomonica.net Wed May 11 15:41:34 2011 From: tom-dovecot at tomonica.net (Tom Wright) Date: Wed, 11 May 2011 13:41:34 +0100 Subject: [Dovecot] Problem with sieve after upgrade to 2.0 In-Reply-To: <1305113296.10421.185.camel@hurina> Message-ID: <632d4dff9465edfc0b537c2e38ef2482@secure.tomonica.net> > On Sat, 2011-05-07 at 16:24 +0100, Tom Wright wrote: >> I've just upgraded from 1.2 to 2.0.12 via debian sid packages. I think I've >> moved all my config over to the new directory-based structure and most things >> >> are working, but the subaddress extension in sieve doesn't seem to do >> anything >> anymore. It doesn't report an error, but any rules which use it are just >> ignored. Other sieve rules which don't use subaddress seem to work ok. From: "Timo Sirainen" tss at iki.fi > What parameters are you giving to deliver? What does it log with > mail_debug=yes? Thanks, that pointed me in the right direction and it's now fixed. I changed /etc/exim4/conf.d/transport/20_dovecot as follows: - command = /usr/lib/dovecot/deliver + command = /usr/lib/dovecot/deliver -e -k -f "$sender_address" -a "$original_local_part@$original_domain" + use_shell + environment = USER=$local_part@$domain + umask = 002 Based on the instructions at http://wiki.dovecot.org/LDA/Exim All working now, thanks very much! Tom From trever.adams at gmail.com Wed May 11 16:12:47 2011 From: trever.adams at gmail.com (Trever L. Adams) Date: Wed, 11 May 2011 07:12:47 -0600 Subject: [Dovecot] possible bug leading to lmtp crashes In-Reply-To: <1305116849.10421.192.camel@hurina> References: <4DAECAAC.3060903@gmail.com> <4DB58F67.4090600@gmail.com> <4DB6FCF7.9070905@gmail.com> <5D19A866-381B-4CA6-B8FF-0F7BCDA36799@iki.fi> <4DBC3F3F.4030605@gmail.com> <1304957973.10421.101.camel@hurina> <4DCA7C6F.40902@gmail.com> <1305116849.10421.192.camel@hurina> Message-ID: <4DCA8B4F.8060400@gmail.com> On 05/11/2011 06:27 AM, Timo Sirainen wrote: > > That patch only was supposed to make it crash elsewhere, not actually > fix anything. :) Yes, that is what I thought. Funny thing is, in 24 hours, it used to crash a dozen times or more, on two of the three machines (the other was much slower). I do not have any asserts in /var/log/maillog that aren't "normal" also, no new crashes. I will keep letting it run. Thank you, Trever -- "Science helps a lot, but people built perfectly good brick walls long before they knew why cement works." -- Alan Cox -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From nebano at gmail.com Wed May 11 18:38:24 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Wed, 11 May 2011 17:38:24 +0200 Subject: [Dovecot] Dovecot 2.0 vs Dovecot 1.2 Message-ID: Hi all I have beyng testing Dovecot 2.0.12. But I have a question. Wath are de advantages of Dovecot 2.0 appart Lmtp? Will dovecot 1.2 desapear? Thanks From jester at arcor.de Wed May 11 18:49:10 2011 From: jester at arcor.de (Oliver Eales) Date: Wed, 11 May 2011 17:49:10 +0200 Subject: [Dovecot] Different pass_dbs and auth_mechanisms on different ports Message-ID: <4DCAAFF6.2070507@arcor.de> Hello, is it possible to have dovecot imap listening on two different ports, while providing different auth_mechamisms and different pass_db/user_dbs ? Or is it better to simply have two running dovecot instances on the same machine ? Regards, Oliver From tss at iki.fi Wed May 11 18:52:21 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 18:52:21 +0300 Subject: [Dovecot] v2.0.13 released Message-ID: <1305129141.10421.213.camel@hurina> http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz.sig I've almost managed to read my email backlog, but there are still some unanswered mails. Feel free to resend if you think I should have answered some of your mails. The most important changes since v2.0.12: + Added "doveadm index" command to add unindexed messages into index/cache. If full text search is enabled, it also adds unindexed messages to the fts database. + added "doveadm director dump" command. + pop3: Added support for showing messages in "POP3 order", which can be different from IMAP message order. This can be useful for migrations from other servers. Implemented it for Maildir as 'O' field in dovecot-uidlist. - doveconf: Fixed a wrong "subsection has ssl=yes" warning. - mdbox purge: Fixed wrong warning about corrupted extrefs. - sdbox: INBOX GUID changed when INBOX was autocreated, leading to trouble with dsync. - script-login binary wasn't actually dropping privileges to the user/group/chroot specified by its service settings. - Fixed potential crashes and other problems when parsing header names that contained NUL characters. From tss at iki.fi Wed May 11 18:52:33 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 18:52:33 +0300 Subject: [Dovecot] v1.2.17 released Message-ID: <1305129153.10421.214.camel@hurina> http://dovecot.org/releases/1.2/dovecot-1.2.17.tar.gz http://dovecot.org/releases/1.2/dovecot-1.2.17.tar.gz.sig The important changes since v1.2.16: - Fixed potential crashes and other problems when parsing header names that contained NUL characters. - IMAP: Fixed a memory leak with ESEARCH command handling - Quota warnings could have been executed at incorrect times with some configs. From lists at wildgooses.com Wed May 11 19:00:45 2011 From: lists at wildgooses.com (Ed W) Date: Wed, 11 May 2011 17:00:45 +0100 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <4DC9AFE3.7060804@hardwarefreak.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> <4DC79E7A.5080700@hardwarefreak.com> <4DC942B1.7020502@wildgooses.com> <4DC9AFE3.7060804@hardwarefreak.com> Message-ID: <4DCAB2AD.10804@wildgooses.com> On 10/05/2011 22:36, Stan Hoeppner wrote: > On 5/10/2011 8:50 AM, Ed W wrote: > >> So, in practice it's fairly irrelevant to be hooked to a stratum 1 for >> most purposes and if you really want to get obsessed about accurate time >> (I'm going through this obsession phase right now...) then just get a >> local GPS attached to your machine... > > NTP is free and the accuracy, when properly configured, is better than > that required by any network application. If your goal is sub > millisecond accuracy, it's not due to any actual network application > requirement. I'm not sure if I understand your point? My point was that some Stratum 1 servers are less than 1ms accurate. You were making excited noises about being given access to a Stratum 1 server via an internet connection and I was simply pointing out that such a setup does not necessarily give super accurate time at your side (especially compared with adding a $50 GPS to a local machine - which of course makes that machine a stratum 1) Also, I don't understand your point about NTP being free? Chrony is GPL? Finally you say that NTP is "better than required", but in fact NTP can often take quite a long time to converge to fairly accurate time? If the machine is rebooted (less common for a server, but more common for desktop machines), and the RTC is inaccurate, then it can take quite a long time each boot before the clock is decent. One citation here: http://lists.ntp.org/pipermail/questions/2011-April/029223.html Chrony converges much more rapidly in general NTP is clearly "good enough", I was just trying to bring other ideas to the attention of the OP (and now you). Chrony is a very good solution and solves a number of problems with timekeeping that perhaps you were not even aware that you had? Kind regards Ed W From Dave at Yost.com Wed May 11 10:26:20 2011 From: Dave at Yost.com (Dave Yost) Date: Wed, 11 May 2011 00:26:20 -0700 Subject: [Dovecot] when the user has no home directory In-Reply-To: <81B248CC-75F9-4449-9618-A712259C4A6B@iki.fi> References: <81B248CC-75F9-4449-9618-A712259C4A6B@iki.fi> Message-ID: At 11:45 PM +0300 2011-05-10, Timo Sirainen wrote: >On 6.5.2011, at 4.25, Dave Yost wrote: > >> A user on our server for some reason didn't have a home directory. >>As a result, the pop3 server was complaining. Apple's Mail app >>reported that the server said: >> >> The attempt to send data to the server "(null)" failed. >> >> It would be nice if the server would say something to the effect >>that the connection failed because the user account has no home >>directory. > >I'm pretty sure Dovecot said something different. I don't know why >Apple Mail would only say (null). Dovecot also should have logged >something in its error log. > >You could try reproducing it. But instead of connecting with Apple >Mail, connect directly with telnet and see what Dovecot really says: > >telnet pop3.example.com 110 >user foobar >pass secret > >http://wiki2.dovecot.org/TestPop3Installation has more possibilities I tried again just now with a user whose home dir doesn't exist. Apparently I get no error message back. The connection just closes. Perhaps Apple Mail's "(null)" is the result of the summary closing of the connection. Wed 0:16:39 0 222 Z% telnet localhost 110 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK Dovecot ready. user xxxxx +OK pass xxxxx Connection closed by foreign host. Wed 0:17:05 1 223 Z% /var/log/maillog says May 11 00:17:05 xx dovecot: pop3-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured May 11 00:17:05 xx dovecot: POP3(xxxxx): mail_location: mbox: mkdir(/home/xxxxx/mail) failed: Permission denied (euid=11111(xxxxx) egid=1111(ootbc) missing +w perm: /home) May 11 00:17:05 xx ovecot: POP3(xxxxx): Fatal: Namespace initialization failed Thanks From stephan at rename-it.nl Wed May 11 20:41:45 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Wed, 11 May 2011 19:41:45 +0200 Subject: [Dovecot] Sieve & auto_create mail_home In-Reply-To: <1305042847.10421.138.camel@hurina> References: <20110509101958.45750@gmx.com> <1305042847.10421.138.camel@hurina> Message-ID: <4DCACA59.3000701@rename-it.nl> Op 10-5-2011 17:54, Timo Sirainen schreef: > On Mon, 2011-05-09 at 10:19 +0000, Maria Arrea wrote: > >> mail_home = /buzones/mydomain/%2.26Hn/%2.200Hn/%n/home_usuario/ >> mail_location = mdbox:/buzones/my_domain/%2.26Hn/%2.200Hn/%n:INDEX=/indices_dovecot/indices/%2.26Hn/%2.200Hn/%n >> >> May 9 12:13:52 buzon dovecot: managesieve(a_poor_user at mydomain): Error: sieve-storage: open(/buzones/my_domain/0a/94/javierdemiguel/home_usuario/sieve//tmp/roundcube-1304936032.M335644P23819.mydomain.sieve) failed: No such file or directory > I guess normally this won't show up because normally mail directory is > under home dir, not vice versa. > > But I couldn't reproduce this myself anyway. The sieve/tmp/ dir is > created at startup and I can't really think of where that open() error > is coming from if it's done earlier. Stephan? Strange, it looks as though auto-creation is skipped for some reason. Could you enable mail_debug and show the (debug) log lines preceding the error? Regards, Stephan. From stephan at rename-it.nl Wed May 11 20:52:49 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Wed, 11 May 2011 19:52:49 +0200 Subject: [Dovecot] vacation problem with sieve and sogo In-Reply-To: <4DC5DA02.5020604@educ.ar> References: <4DC456B4.7000205@educ.ar> <4DC4EF53.2050108@rename-it.nl> <4DC5DA02.5020604@educ.ar> Message-ID: <4DCACCF1.1070803@rename-it.nl> Op 8-5-2011 1:47, Pablo Luchetti schreef: > Thanks Stephan, but doesn't work. > I try both > > plugin: > sieve: ~/sieve/ > > and > > plugin: > sieve: ~/.dovecot.sieve Could you enable mail_debug and show me any relevant log lines? Regards, Stephan. From emailbuilder88 at yahoo.com Wed May 11 21:58:21 2011 From: emailbuilder88 at yahoo.com (email builder) Date: Wed, 11 May 2011 11:58:21 -0700 (PDT) Subject: [Dovecot] Running 1.x and 2. x on same machine In-Reply-To: <1305112848.10421.183.camel@hurina> References: <446514.80943.qm@web39307.mail.mud.yahoo.com> <1305112848.10421.183.camel@hurina> Message-ID: <368435.96433.qm@web39308.mail.mud.yahoo.com> > > When building from source, is it possible to use "make install" to switch > > between version 1.x and 2.x on the same machine (just for testing)? > > I do that all the time. > > > Do both versions install the same binaries? > > No, but as long as you don't use the other one's extra binaries it > doesn't matter. OK, great. I assume you mean as long as I only use /usr/local/sbin/dovecot to start the IMAP server, it will start whatever version I last installed with "make install" right? If it does that, I'm good. > > Is configuration from 2.x backward > > compatible with 1.x? (so we can have the newest configuration files on our > > system without bothering to have a second set of 1.x config files) > > v2.0 can read most v1.x config files, but it'll give a lot of warnings > about it. Their default configs are anyway in different locations. I > just keep them both: What about the other way around? If I already have 2.0 configuration files done, can I point 1.x to them? Will 1.x choke on 2.0 config files? > v1.x: /usr/local/etc/dovecot.conf > v2.x: /usr/local/etc/dovecot/dovecot.conf If it's best to keep the two sets of configuration files, I'd rather separate them better than that. Is there a configure option that can move the location of the config directory only? I guess if I install the binaries to a separate place using the --prefix option, the config files also get moved? > > Or instead should we be changing something like the installation and config > > directorie for one of the versions when we install it (how?). > > ./configure --prefix=/usr/local/dovecot-2.0 OK, but according to your answer at the top of this message, this isn't necessary unless I want to have the binaries installed at the same time (which isn't a bad idea I suppose) From frank at moltke28.B.Shuttle.DE Wed May 11 22:03:07 2011 From: frank at moltke28.B.Shuttle.DE (Frank Elsner) Date: Wed, 11 May 2011 21:03:07 +0200 Subject: [Dovecot] v2.0.13 released In-Reply-To: <1305129141.10421.213.camel@hurina> References: <1305129141.10421.213.camel@hurina> Message-ID: On Wed, 11 May 2011 18:52:21 +0300 Timo Sirainen wrote: [ ... ] > - script-login binary wasn't actually dropping privileges to the > user/group/chroot specified by its service settings. This version gives problems with my post-login script to track last usage, which works perfect with 2.0.12. Error messages: May 11 20:38:53 seymour dovecot: master: Dovecot v2.0.13 starting up (core dumps disabled) May 11 20:39:01 seymour dovecot: imap-login: Login: frank, 192.168.28.53, TLS May 11 20:39:01 seymour dovecot: imap-postlogin: Error: script-login: Error: user frank: Error reading configuration: net_connect_unix(/var/run/dovecot/config) failed: Permission denied May 11 20:39:01 seymour dovecot: imap-postlogin: Error: script-login: Fatal: Internal error occurred. Refer to server log for more information. May 11 20:39:01 seymour dovecot: log: Error: service(imap-postlogin): child 8651 returned error 89 (Fatal failure) May 11 20:39:01 seymour dovecot: imap(frank): Post-login script denied access to user frank # 2.0.12: /usr/local/dovecot/etc/dovecot/dovecot.conf # OS: Linux 2.6.35.13-91.fc14.i686.PAE i686 Fedora release 14 (Laughlin) ext3 disable_plaintext_auth = no first_valid_uid = 200 last_valid_uid = 65534 listen = * login_greeting = c64.shuttle.de - IMAPs Service ready. login_log_format_elements = %u %r %c mail_location = maildir:/var/spool/mail/%u:INDEX=MEMORY mail_log_prefix = "%Us(%u,%r): " mail_plugins = " notify quota" passdb { args = dovecot driver = pam } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename flag_change append mail_log_fields = uid box from subject msgid size flags mail_log_group_events = yes quota = maildir:User quota quota_rule = *:storage=2G quota_rule2 = Trash:storage=+100M } protocols = imap service auth { unix_listener auth-client { group = exim mode = 0660 user = exim } } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } process_min_avail = 3 } service imap-postlogin { executable = script-login /usr/dovecot/bin/imap-post-login user = dovecot } service imap { executable = imap imap-postlogin } ssl_cert = References: <1305129141.10421.213.camel@hurina> Message-ID: <56F2DF29-FEF0-48F9-8093-64801D577396@iki.fi> On 11.5.2011, at 22.03, Frank Elsner wrote: > This version gives problems with my post-login script to track last usage, > which works perfect with 2.0.12. That would be because of this change: - script-login binary wasn't actually dropping privileges to the user/group/chroot specified by its service settings. > May 11 20:39:01 seymour dovecot: imap-postlogin: Error: script-login: Error: user frank: Error reading configuration: net_connect_unix(/var/run/dovecot/config) failed: Permission denied Hmm. I suppose it drops the privileges a bit too early now.. Well, you can switch back to v2.0.12 behavior by removing the user=dovecot: > service imap-postlogin { > user = dovecot I'll fix it properly for v2.0.14 then. Another alternative would be to change config socket's permissions to allow dovecot user to read/write it. From tss at iki.fi Wed May 11 22:20:06 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 22:20:06 +0300 Subject: [Dovecot] Running 1.x and 2. x on same machine In-Reply-To: <368435.96433.qm@web39308.mail.mud.yahoo.com> References: <446514.80943.qm@web39307.mail.mud.yahoo.com> <1305112848.10421.183.camel@hurina> <368435.96433.qm@web39308.mail.mud.yahoo.com> Message-ID: <8BA56166-02E4-4549-BBC8-C48D384C81E9@iki.fi> On 11.5.2011, at 21.58, email builder wrote: >>> Do both versions install the same binaries? >> >> No, but as long as you don't use the other one's extra binaries it >> doesn't matter. > > OK, great. I assume you mean as long as I only use /usr/local/sbin/dovecot to > start the IMAP server, it will start whatever version I last installed with > "make install" right? If it does that, I'm good. Yep. >>> Is configuration from 2.x backward >>> compatible with 1.x? (so we can have the newest configuration files on our >>> system without bothering to have a second set of 1.x config files) >> >> v2.0 can read most v1.x config files, but it'll give a lot of warnings >> about it. Their default configs are anyway in different locations. I >> just keep them both: > > What about the other way around? If I already have 2.0 configuration files > done, can I point 1.x to them? Will 1.x choke on 2.0 config files? v1.x definitely won't like any service {} blocks, and probably fails in other places too. >> v1.x: /usr/local/etc/dovecot.conf >> v2.x: /usr/local/etc/dovecot/dovecot.conf > > If it's best to keep the two sets of configuration files, I'd rather separate > them better than that. Is there a configure option that can move the location of > the config directory only? configure --sysconfdir=/etc/dovecot2 > I guess if I install the binaries to a separate > place using the --prefix option, the config files also get moved? Yes, that too. >>> Or instead should we be changing something like the installation and config > >>> directorie for one of the versions when we install it (how?). >> >> ./configure --prefix=/usr/local/dovecot-2.0 > > OK, but according to your answer at the top of this message, this isn't > necessary unless I want to have the binaries installed at the same time (which > isn't a bad idea I suppose) If it's only a testing machine, it doesn't really matter what you do. For a production server I wouldn't recommend installing v1.x and v2.x to same prefix. From frank at moltke28.B.Shuttle.DE Wed May 11 22:34:26 2011 From: frank at moltke28.B.Shuttle.DE (Frank Elsner) Date: Wed, 11 May 2011 21:34:26 +0200 Subject: [Dovecot] v2.0.13 released In-Reply-To: <56F2DF29-FEF0-48F9-8093-64801D577396@iki.fi> References: <1305129141.10421.213.camel@hurina> <56F2DF29-FEF0-48F9-8093-64801D577396@iki.fi> Message-ID: On Wed, 11 May 2011 22:17:28 +0300 Timo Sirainen wrote: > On 11.5.2011, at 22.03, Frank Elsner wrote: > > > This version gives problems with my post-login script to track last usage, > > which works perfect with 2.0.12. > > That would be because of this change: > > - script-login binary wasn't actually dropping privileges to the > user/group/chroot specified by its service settings. > > > May 11 20:39:01 seymour dovecot: imap-postlogin: Error: script-login: Error: user frank: Error reading configuration: net_connect_unix(/var/run/dovecot/config) failed: Permission denied > > Hmm. I suppose it drops the privileges a bit too early now.. Well, you can switch back to v2.0.12 behavior by removing the user=dovecot: > > > service imap-postlogin { > > user = dovecot Thanks, works. > I'll fix it properly for v2.0.14 then. Another alternative would be to change config socket's permissions to allow dovecot user to read/write it. How to do that? PS: I'd like to have the lastlogin file to be owned by user dovecot. Currently it is owned bx the user. --Frank Elsner From tss at iki.fi Wed May 11 22:37:22 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 22:37:22 +0300 Subject: [Dovecot] v2.0.13 released In-Reply-To: References: <1305129141.10421.213.camel@hurina> <56F2DF29-FEF0-48F9-8093-64801D577396@iki.fi> Message-ID: <5627630B-B2C9-4214-90F6-AB6D8EEBE3C9@iki.fi> On 11.5.2011, at 22.34, Frank Elsner wrote: >> I'll fix it properly for v2.0.14 then. Another alternative would be to change config socket's permissions to allow dovecot user to read/write it. > > How to do that? For example: service config { unix_listener config { group = dovecot mode = 0660 } } (or just user=dovecot) > PS: I'd like to have the lastlogin file to be owned by user dovecot. > Currently it is owned bx the user. Not root?.. From tss at iki.fi Wed May 11 22:38:50 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 22:38:50 +0300 Subject: [Dovecot] Different pass_dbs and auth_mechanisms on different ports In-Reply-To: <4DCAAFF6.2070507@arcor.de> References: <4DCAAFF6.2070507@arcor.de> Message-ID: <6DF7F43F-D1AA-43F4-A584-58CD1152E2AE@iki.fi> On 11.5.2011, at 18.49, Oliver Eales wrote: > is it possible to have dovecot imap listening on two different ports, while providing different auth_mechamisms and different pass_db/user_dbs ? Not currently. > Or is it better to simply have two running dovecot instances on the same machine ? For now, yes. In future you could put auth settings inside local {} blocks. Although even that only supports different IPs, not ports. But maybe ports could be added also some day.. From frank at moltke28.B.Shuttle.DE Wed May 11 22:39:32 2011 From: frank at moltke28.B.Shuttle.DE (Frank Elsner) Date: Wed, 11 May 2011 21:39:32 +0200 Subject: [Dovecot] v2.0.13 released In-Reply-To: <5627630B-B2C9-4214-90F6-AB6D8EEBE3C9@iki.fi> References: <1305129141.10421.213.camel@hurina> <56F2DF29-FEF0-48F9-8093-64801D577396@iki.fi> <5627630B-B2C9-4214-90F6-AB6D8EEBE3C9@iki.fi> Message-ID: On Wed, 11 May 2011 22:37:22 +0300 Timo Sirainen wrote: > On 11.5.2011, at 22.34, Frank Elsner wrote: > > >> I'll fix it properly for v2.0.14 then. Another alternative would be to change config socket's permissions to allow dovecot user to read/write it. > > > > How to do that? > > For example: > > service config { > unix_listener config { > group = dovecot > mode = 0660 > } > } > > (or just user=dovecot) > > > PS: I'd like to have the lastlogin file to be owned by user dovecot. > > Currently it is owned bx the user. > > Not root?.. No. -rw------- 1 frank elsner 31 May 11 20:54 lastlogin --Frank Elsner From tss at iki.fi Wed May 11 22:41:11 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 22:41:11 +0300 Subject: [Dovecot] Dovecot 2.0 vs Dovecot 1.2 In-Reply-To: References: Message-ID: On 11.5.2011, at 18.38, Osvaldo Alvarez Pozo wrote: > I have beyng testing Dovecot 2.0.12. But I have a question. > Wath are de advantages of Dovecot 2.0 appart Lmtp? See v2.0.0 entry in http://dovecot.org/doc/NEWS > Will dovecot 1.2 desapear? It's in bugfixes-only mode. And some day (soon) it will be in "security fixes only" mode like v1.0 and v1.1 is now. From pllis at educ.ar Thu May 12 00:07:33 2011 From: pllis at educ.ar (Pablo Luchetti) Date: Wed, 11 May 2011 18:07:33 -0300 Subject: [Dovecot] vacation problem with sieve and sogo In-Reply-To: <4DCACCF1.1070803@rename-it.nl> References: <4DC456B4.7000205@educ.ar> <4DC4EF53.2050108@rename-it.nl> <4DC5DA02.5020604@educ.ar> <4DCACCF1.1070803@rename-it.nl> Message-ID: <4DCAFA95.8070206@educ.ar> Hello Stephan: Here are 4 distinct tests with all data requested. In all of them, dovecot answer is: NO "Script name 'sogo' is reserved for internal use." I don't understand why. Remember that I captured the traffic with tcpflow, and then, when telneting to port 2000, if I change PUTSCRIPT "sogo" {448+} with PUTSCRIPT "prueba" {448+} I receive a successful answer. I think the word "sogo" is anywhere in the config, but I don't find it. Here are the tests: ________________________________________________________________________ Test 1 With plugin { sieve = ~/sieve/ } in dovecot.conf shows in dovecot-lda.log when arrive mail: ---------------------------------------------------------- deliver(pluchetti): 2011-05-11 19:29:49 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda deliver(pluchetti): 2011-05-11 19:29:49 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so deliver(pluchetti): 2011-05-11 19:29:49 Info: auth input: home=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:29:49 Info: maildir: data=~ deliver(pluchetti): 2011-05-11 19:29:49 Info: maildir++: root=/data/vmail/jil/pluchetti, index=, control=, inbox=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:29:49 Info: cmusieve: Using sieve path: /data/vmail/jil/pluchetti/sieve/ deliver(pluchetti): 2011-05-11 19:29:49 Error: /data/vmail/jil/pluchetti/sieve/ should be a file, not a directory deliver(pluchetti): 2011-05-11 19:29:49 Info: msgid=<4DCAE395.9090600 at educ.ar>|from=pllis at educ.ar|subject=prueba|saved mail to INBOX ---- And in dovecot-msa-notls.log when trying to set vacation: --------------------------------------------------------- dovecot: 2011-05-11 17:24:43 Info: managesieve-login: Login: user=, method=PLAIN, rip=10.3.14.31, lip=10.3.14.18 dovecot: 2011-05-11 17:24:43 Info: MANAGESIEVE(pluchetti): Connection closed bytes=510/136 ---- # dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-18-server i686 Ubuntu 9.04 log_path: /var/log/mail/dovecot-msa.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/local/WILD.jil_01+CHAIN.crt ssl_key_file: /etc/ssl/private/WILD.jil_01.key login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_greeting: JIL mail server ready. first_valid_uid: 106 last_valid_uid: 106 first_valid_gid: 112 last_valid_gid: 112 mail_privileged_group: mail mail_uid: vmail mail_gid: vmail mail_location: maildir:~ mail_debug: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 auth default: mechanisms: plain login user: vmailauth passdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf userdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf socket: type: listen client: path: /var/spool/postfix/private/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: sieve: ~/sieve/ ________________________________________________________________________________________________ Test 2 With plugin { sieve = ~/.dovecot.sieve } in dovecot.conf shows in dovecot-lda.log when arrive mail: ---------------------------------------------------------- deliver(pluchetti): 2011-05-11 19:41:12 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda deliver(pluchetti): 2011-05-11 19:41:12 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so deliver(pluchetti): 2011-05-11 19:41:12 Info: auth input: home=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:41:12 Info: maildir: data=~ deliver(pluchetti): 2011-05-11 19:41:12 Info: maildir++: root=/data/vmail/jil/pluchetti, index=, control=, inbox=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:41:12 Info: cmusieve: /data/vmail/jil/pluchetti/.dovecot.sieve doesn't exist deliver(pluchetti): 2011-05-11 19:41:12 Info: msgid=<4DCAE652.2020608 at educ.ar>|from=pllis at educ.ar|subject=Re: prueba|saved mail to INBOX ---- And in dovecot-msa-notls.log when trying to set vacation: --------------------------------------------------------- dovecot: 2011-05-11 17:21:45 Info: managesieve-login: Login: user=, method=PLAIN, rip=10.3.14.31, lip=10.3.14.18 dovecot: 2011-05-11 17:21:45 Info: MANAGESIEVE(pluchetti): Connection closed bytes=510/136 ---- # dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-18-server i686 Ubuntu 9.04 log_path: /var/log/mail/dovecot-msa.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/local/WILD.jil_01+CHAIN.crt ssl_key_file: /etc/ssl/private/WILD.jil_01.key login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_greeting: JIL mail server ready. first_valid_uid: 106 last_valid_uid: 106 first_valid_gid: 112 last_valid_gid: 112 mail_privileged_group: mail mail_uid: vmail mail_gid: vmail mail_location: maildir:~ mail_debug: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 auth default: mechanisms: plain login user: vmailauth passdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf userdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf socket: type: listen client: path: /var/spool/postfix/private/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: sieve: ~/.dovecot.sieve ________________________________________________________________________________________________ Test 3 With plugin { } in dovecot.conf shows in dovecot-lda.log when arrive mail: ---------------------------------------------------------- deliver(pluchetti): 2011-05-11 19:53:55 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda deliver(pluchetti): 2011-05-11 19:53:55 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so deliver(pluchetti): 2011-05-11 19:53:55 Info: auth input: home=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:53:55 Info: maildir: data=~ deliver(pluchetti): 2011-05-11 19:53:55 Info: maildir++: root=/data/vmail/jil/pluchetti, index=, control=, inbox=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:53:55 Info: cmusieve: /data/vmail/jil/pluchetti/.dovecot.sieve doesn't exist deliver(pluchetti): 2011-05-11 19:53:55 Info: msgid=<4DCAE94D.60003 at educ.ar>|from=pllis at educ.ar|subject=Re: prueba|saved mail to INBOX ---- And in dovecot-msa-notls.log when trying to set vacation: --------------------------------------------------------- dovecot: 2011-05-11 17:14:22 Info: managesieve-login: Login: user=, method=PLAIN, rip=10.3.14.31, lip=10.3.14.18 dovecot: 2011-05-11 17:14:22 Info: MANAGESIEVE(pluchetti): Connection closed bytes=510/136 ---- # dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-18-server i686 Ubuntu 9.04 log_path: /var/log/mail/dovecot-msa.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/local/WILD.jil_01+CHAIN.crt ssl_key_file: /etc/ssl/private/WILD.jil_01.key login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_greeting: JIL mail server ready. first_valid_uid: 106 last_valid_uid: 106 first_valid_gid: 112 last_valid_gid: 112 mail_privileged_group: mail mail_uid: vmail mail_gid: vmail mail_location: maildir:~ mail_debug: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 auth default: mechanisms: plain login user: vmailauth passdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf userdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf socket: type: listen client: path: /var/spool/postfix/private/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail ________________________________________________________________________________________________ Test 4 With plugin { sieve = ~/sieve/sogo.sieve } in dovecot.conf shows in dovecot-lda.log when arrive mail: ---------------------------------------------------------- deliver(pluchetti): 2011-05-11 19:59:48 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda deliver(pluchetti): 2011-05-11 19:59:48 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so deliver(pluchetti): 2011-05-11 19:59:48 Info: auth input: home=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:59:48 Info: maildir: data=~ deliver(pluchetti): 2011-05-11 19:59:48 Info: maildir++: root=/data/vmail/jil/pluchetti, index=, control=, inbox=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:59:48 Info: cmusieve: /data/vmail/jil/pluchetti/sieve/sogo.sieve doesn't exist deliver(pluchetti): 2011-05-11 19:59:48 Info: msgid=<4DCAEAAE.9090601 at educ.ar>|from=pllis at educ.ar|subject=Re: prueba|saved mail to INBOX ---- And in dovecot-msa-notls.log when trying to set vacation: --------------------------------------------------------- dovecot: 2011-05-11 17:08:16 Info: managesieve-login: Login: user=, method=PLAIN, rip=10.3.14.31, lip=10.3.14.18 dovecot: 2011-05-11 17:08:16 Info: MANAGESIEVE(pluchetti): Connection closed bytes=510/136 ---- # dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-18-server i686 Ubuntu 9.04 log_path: /var/log/mail/dovecot-msa.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/local/WILD.jil_01+CHAIN.crt ssl_key_file: /etc/ssl/private/WILD.jil_01.key login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_greeting: JIL mail server ready. first_valid_uid: 106 last_valid_uid: 106 first_valid_gid: 112 last_valid_gid: 112 mail_privileged_group: mail mail_uid: vmail mail_gid: vmail mail_location: maildir:~ mail_debug: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 auth default: mechanisms: plain login user: vmailauth passdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf userdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf socket: type: listen client: path: /var/spool/postfix/private/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: sieve: ~/sieve/sogo.sieve ________________________________________________________________________________________________ Here is a result of a "find ." of /data/vmail/jil/pluchetti directory: . ./new ./new/1305143988.M679460P7888.mail0.i.example.org,W=1386 ./dovecot.index.cache ./dovecot-uidvalidity.4dc9f475 ./dovecot.index ./dovecot-uidlist ./cur ./cur/1305081118.M221149P31051.mail0.i.example.org,W=1099:2,S ./cur/1305143635.M619342P7707.mail0.i.example.org,W=1381:2,S ./cur/1305142872.M409688P7312.mail0.i.example.org,W=1385:2,S ./cur/1305142189.M834057P6974.mail0.i.example.org,W=1087:2,RS ./dovecot.index.log ./sieve ./sieve/tmp ./tmp ./dovecot-uidvalidity ./.Sent ./.Sent/new ./.Sent/dovecot.index.cache ./.Sent/maildirfolder ./.Sent/dovecot-uidlist ./.Sent/cur ./.Sent/cur/1305142324.M371529P7045.mail0.i.example.org,W=533:2,S ./.Sent/dovecot.index.log ./.Sent/tmp ________________________________________________________________________________________________ Thank you for your effort and patience! Regards, Pablo. Stephan Bosch wrote: > Op 8-5-2011 1:47, Pablo Luchetti schreef: >> Thanks Stephan, but doesn't work. >> I try both >> >> plugin: >> sieve: ~/sieve/ >> >> and >> >> plugin: >> sieve: ~/.dovecot.sieve > > Could you enable mail_debug and show me any relevant log lines? > > Regards, > > Stephan. > From michael.abbott at apple.com Thu May 12 01:01:54 2011 From: michael.abbott at apple.com (Mike Abbott) Date: Wed, 11 May 2011 17:01:54 -0500 Subject: [Dovecot] [Dovecot-news] v2.0.13 released In-Reply-To: <1305129141.10421.213.camel@hurina> References: <1305129141.10421.213.camel@hurina> Message-ID: <4DEADAD3-8E3E-4FE9-BB75-3F88805A30EB@apple.com> Compiling dovecot-2.0.13 on OS X emits these warnings: user-directory.c: In function user_directory_add: user-directory.c:79: warning: comparison between signed and unsigned user-directory.c:84: warning: comparison between signed and unsigned Casting the left hand sides of the comparisons to time_t, as you do in other places, silences them: --- a/src/director/user-directory.c 2011-05-11 09:35:21.000000000 -0500 +++ b/src/director/user-directory.c 2011-05-11 16:55:45.000000000 -0500 @@ -76,12 +76,12 @@ user->host->user_count++; user->timestamp = timestamp; - if (dir->tail == NULL || dir->tail->timestamp <= timestamp) + if (dir->tail == NULL || (time_t) dir->tail->timestamp <= timestamp) DLLIST2_APPEND(&dir->head, &dir->tail, user); else { /* need to insert to correct position */ for (pos = dir->tail; pos != NULL; pos = pos->prev) { - if (pos->timestamp <= timestamp) + if ((time_t) pos->timestamp <= timestamp) break; } if (pos == NULL) From a.smith at ukgrid.net Thu May 12 02:57:39 2011 From: a.smith at ukgrid.net (a.smith at ukgrid.net) Date: Thu, 12 May 2011 00:57:39 +0100 Subject: [Dovecot] IMAP message ID bad for very old message Message-ID: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> Hi, I just noticed that the ordering by message ID when accessing my email via IMAP is messed up. I'm looking in the INBOX that contains 11757 emails. For some reason a load of emails from 2009 and 2010 are being listed near the top, for example I have a message with ID 11441 from 2009 where it definitely shouldn't be, its all mixed in with emails from 2011 there. Info from LDAP is: * 11441 FETCH (FLAGS (\Answered \Seen) INTERNALDATE "27-Mar-2009 09:14:10 +0000" RFC822.SIZE 5772 ENVELOPE ("Fri, 27 Mar 2009 09:15:09 -0000" "MyC IP on CBL" (("Patrick XXXXXXXX- XXXXXXXX" NIL "patrick" "XXXXXXXX.co.uk")) (("Patrick XXXXXX- XXXXXXXX" NIL "patrick" "XXXXXXX.co.uk")) (("Patrick xxxxxx - xxxxxxx" NIL "patrick" "XXXXXXXX.co.uk")) (("Andy Smith" NIL "a.smith" "ukgrid.net")) (("Frank XXXXXXX" NIL "frank" "XXXXXXXXXXX.co.uk")(NIL NIL "Tim.XXXXXXXX" "XXXXXX.org")) NIL NIL "<6937D025FA924E73B8C839858C27AEBF at PatrickDesktop>")) I'm using maildir format, and the actual file date looks fine too: -rw-rw---- 1 vmail vmail 5627 Mar 27 2009 1238145250.H86871P67126.mx1.ukgrid.net:2,RS I am testing IMAP via telnet (originally noticed the problem viewing mail via HORDE/IMP). My system is FreeBSD 8.2, Dovecot 2.0.11. What might cause this behaviour? thanks Andy. From bar at jungo.com Thu May 12 10:15:12 2011 From: bar at jungo.com (Bar Ziony) Date: Thu, 12 May 2011 10:15:12 +0300 Subject: [Dovecot] Expunge deleted messages older than X days for all users ? Message-ID: <4DCB8900.90209@jungo.com> Hi, I'm currently migrating to Dovecot-based IMAP server for a ~200 users environment. Clients are Outlook 2003/2007, Thunderbird 3.x and various mobile clients. 1) What I want to accomplish is to allow the users to delete a message (then the message is moved to "Trash"), then when they empty/delete that message from Trash, it will be kept somewhere on the server for X days, and the user could recover that message in some way. Is that at all possible with Dovecot? 2) Also, how can I automatically expunge the emails that the user deleted from their deleted items folder ? What if users don't EXPUNGE by themselves ? What do you do in that case? Thanks, Bar. From robert at schetterer.org Thu May 12 11:37:49 2011 From: robert at schetterer.org (Robert Schetterer) Date: Thu, 12 May 2011 10:37:49 +0200 Subject: [Dovecot] Expunge deleted messages older than X days for all users ? In-Reply-To: <4DCB8900.90209@jungo.com> References: <4DCB8900.90209@jungo.com> Message-ID: <4DCB9C5D.8070306@schetterer.org> Am 12.05.2011 09:15, schrieb Bar Ziony: > Hi, > > I'm currently migrating to Dovecot-based IMAP server for a ~200 users > environment. Clients are Outlook 2003/2007, Thunderbird 3.x and various > mobile clients. > > 1) What I want to accomplish is to allow the users to delete a message > (then the message is moved to "Trash"), then when they empty/delete that > message from Trash, it will be kept somewhere on the server for X days, > and the user could recover that message in some way. > > Is that at all possible with Dovecot? > > 2) Also, how can I automatically expunge the emails that the user > deleted from their deleted items folder ? What if users don't EXPUNGE by > themselves ? What do you do in that case? > > Thanks, > Bar. look here , it might be what you search, if not ask again http://wiki2.dovecot.org/Plugins/Lazyexpunge http://wiki2.dovecot.org/Plugins/Expire -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From bar at jungo.com Thu May 12 12:08:41 2011 From: bar at jungo.com (Bar Ziony) Date: Thu, 12 May 2011 12:08:41 +0300 Subject: [Dovecot] Expunge deleted messages older than X days for all users ? In-Reply-To: <4DCB9C5D.8070306@schetterer.org> References: <4DCB9C5D.8070306@schetterer.org> Message-ID: <4DCBA399.5000908@jungo.com> Thanks for the answer. What I'm looking for is auto-expunging messages that are marked for deletion. Lets say a user deletes a message. It gets moved to his Trash and marked for deletion (flagged as such). Is there any way to search all "marked for deletion" messages in all the users mailboxes, and delete the messages older than X days? Thanks, Bar. From a.smith at ukgrid.net Thu May 12 21:26:38 2011 From: a.smith at ukgrid.net (a.smith at ukgrid.net) Date: Thu, 12 May 2011 19:26:38 +0100 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> Message-ID: <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> Quoting a.smith at ukgrid.net: > Hi, > > I just noticed that the ordering by message ID when accessing my > email via IMAP is messed up. I'm looking in the INBOX that contains > 11757 emails. For some reason a load of emails from 2009 and 2010 > are being listed near the top, for example I have a message with ID > 11441 from 2009 where it definitely shouldn't be, its all mixed in > with emails from 2011 there. > Info from LDAP is: > > * 11441 FETCH (FLAGS (\Answered \Seen) INTERNALDATE "27-Mar-2009 > 09:14:10 +0000" RFC822.SIZE 5772 ENVELOPE ("Fri, 27 Mar 2009 > 09:15:09 -0000" "MyC IP on CBL" (("Patrick XXXXXXXX- XXXXXXXX" NIL > "patrick" "XXXXXXXX.co.uk")) (("Patrick XXXXXX- XXXXXXXX" NIL > "patrick" "XXXXXXX.co.uk")) (("Patrick xxxxxx - xxxxxxx" NIL > "patrick" "XXXXXXXX.co.uk")) (("Andy Smith" NIL "a.smith" > "ukgrid.net")) (("Frank XXXXXXX" NIL "frank" > "XXXXXXXXXXX.co.uk")(NIL NIL "Tim.XXXXXXXX" "XXXXXX.org")) NIL NIL > "<6937D025FA924E73B8C839858C27AEBF at PatrickDesktop>")) > > > I'm using maildir format, and the actual file date looks fine too: > > -rw-rw---- 1 vmail vmail 5627 Mar 27 2009 > 1238145250.H86871P67126.mx1.ukgrid.net:2,RS > > I am testing IMAP via telnet (originally noticed the problem viewing > mail via HORDE/IMP). My system is FreeBSD 8.2, Dovecot 2.0.11. > What might cause this behaviour? > > thanks Andy. > Ok, I just deleted the dovecot index files etc from the mailbox, when it recreated them all is now looking normal... ta Andy. From franco.rizzo at netrics.ch Fri May 13 00:02:53 2011 From: franco.rizzo at netrics.ch (Franco Rizzo) Date: Thu, 12 May 2011 21:02:53 +0000 Subject: [Dovecot] dovecot proxy with nopassword and postfix sasl Message-ID: HI All I have setup a dovecot proxy with remote auth, value nopassword in the passdb to make the auth remotely. With pop3 and imap the authentication is made on the remote server and this work perfectly. I have tested with wrong and correct password. Then I have added the postfix sasl and this also works fine, the request is made to dovecot. My problem is that with this method I can give any password to postfix and mail is sent. In the debug it seams that a request is made to the remote server for auth. The smtp sasl auth is only refused when I put no password. Is it allowed to use postfix sasl auth with dovecot proxy auth on remote server ? Thank you Franco Rizzo -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2186 bytes Desc: not available URL: From nebano at gmail.com Fri May 13 02:00:11 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Fri, 13 May 2011 01:00:11 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: <1304954316.10421.86.camel@hurina> References: <1304954316.10421.86.camel@hurina> Message-ID: Hi all I migrated from dovecot 1.2 to dovecot 2.0 Next step" migrate from maildir to mdbox" I have being reading about migrating to mdbox as Timo pointed me out. But I have douths with namespace. I tried to use dsync and I got a error: dsync(root): Fatal: Mail locations must use the same virtual mailbox hierarchy separator (specify separator for the default namespace) I think It could be solved adding: namespace { inbox = yes separator = / subscriptions = yes } Actually I have no namespace definition. If i add namespace definition for start migrating, waht about my clients? will they be able to find there mail & mailboxes while I am migrating from maildir to mdbox? Thanks. 2011/5/9 Timo Sirainen : > On Mon, 2011-04-25 at 19:02 +0200, Osvaldo Alvarez Pozo wrote: >> hi all >> >> We have an ocfs2 cluster compose of 4 Debian lenny serveurs wich have >> access to an ISCSI LUN we have create a partition on this Lun and >> formated this partition as OCFS2. >> 2 serveurs does mail delivery (SMTP) and the two other are pop/imap >> servers. The smtp servers use dovecot LDA to deliver to mailboxes. La >> version de dovecot is 1.2.13, ldirectord balance conexion to the >> servers(pop/pops/imap/imaps to the two imap/pop serveurs) (smtp to the >> two smtp servers). > > With v2.0 I'd suggest using http://wiki2.dovecot.org/Director > >> mail_location = maildir:/var/vmail/%d/%u/Maildir > > Cluster filesystems don't seem to like Maildir much. With v2.0 you could > use mdbox. > >> We are having severals ?problems from "cpu stuck for 61 seconds" ? to >> "too many connexion". > > I don't know what either of those errors mean. In any case you should > switch to high-performance login processes: > http://wiki.dovecot.org/LoginProcess > > http://wiki.dovecot.org/PerformanceTuning has more stuff > > > From stan at hardwarefreak.com Fri May 13 02:21:38 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Thu, 12 May 2011 18:21:38 -0500 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: References: <1304954316.10421.86.camel@hurina> Message-ID: <4DCC6B82.9000704@hardwarefreak.com> On 5/12/2011 6:00 PM, Osvaldo Alvarez Pozo wrote: > Hi all > > I migrated from dovecot 1.2 to dovecot 2.0 > > Next step" migrate from maildir to mdbox" > > I have being reading about migrating to mdbox as Timo pointed me out. > But I have douths with namespace. I tried to use dsync and I got a > error: > > dsync(root): Fatal: Mail locations must use the same virtual mailbox > hierarchy separator (specify separator for the default namespace) Please provide the exact command line that resulted in this error. > I think It could be solved adding: > > namespace { > inbox = yes > separator = / > subscriptions = yes > } > > Actually I have no namespace definition. If i add namespace definition > for start migrating, waht about my clients? will they be able to find > there mail& mailboxes while I am migrating from maildir to mdbox? Is this http://wiki2.dovecot.org/Tools/Dsync the documentation you read? -- Stan From tss at iki.fi Fri May 13 03:30:40 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 13 May 2011 02:30:40 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: References: <1304954316.10421.86.camel@hurina> Message-ID: <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> On 13.5.2011, at 1.00, Osvaldo Alvarez Pozo wrote: > Actually I have no namespace definition. If i add namespace definition > for start migrating, waht about my clients? will they be able to find > there mail & mailboxes while I am migrating from maildir to mdbox? Your clients see the default namespace if it's not explicitly specified. That namespace has prefix="" and the separator depends on what mailbox format you're using. With Maildir that would be "." character. If you keep that there shouldn't be even any potential problems. From noel.butler at ausics.net Fri May 13 03:39:15 2011 From: noel.butler at ausics.net (Noel Butler) Date: Fri, 13 May 2011 10:39:15 +1000 Subject: [Dovecot] [Dovecot-news] v2.0.13 released In-Reply-To: <1305129141.10421.213.camel@hurina> References: <1305129141.10421.213.camel@hurina> Message-ID: <1305247155.7735.4.camel@tardis> rsync not active? or now protected to mirrors? On Wed, 2011-05-11 at 18:52 +0300, Timo Sirainen wrote: > http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz > http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz.sig > > I've almost managed to read my email backlog, but there are still some > unanswered mails. Feel free to resend if you think I should have > answered some of your mails. > > The most important changes since v2.0.12: > > + Added "doveadm index" command to add unindexed messages into > index/cache. If full text search is enabled, it also adds unindexed > messages to the fts database. > + added "doveadm director dump" command. > + pop3: Added support for showing messages in "POP3 order", which can > be different from IMAP message order. This can be useful for > migrations from other servers. Implemented it for Maildir as 'O' > field in dovecot-uidlist. > - doveconf: Fixed a wrong "subsection has ssl=yes" warning. > - mdbox purge: Fixed wrong warning about corrupted extrefs. > - sdbox: INBOX GUID changed when INBOX was autocreated, leading to > trouble with dsync. > - script-login binary wasn't actually dropping privileges to the > user/group/chroot specified by its service settings. > - Fixed potential crashes and other problems when parsing header names > that contained NUL characters. > > > _______________________________________________ > Dovecot-news mailing list > Dovecot-news at dovecot.org > http://dovecot.org/cgi-bin/mailman/listinfo/dovecot-news -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 490 bytes Desc: This is a digitally signed message part URL: From tss at iki.fi Fri May 13 03:43:29 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 13 May 2011 02:43:29 +0200 Subject: [Dovecot] [Dovecot-news] v2.0.13 released In-Reply-To: <1305247155.7735.4.camel@tardis> References: <1305129141.10421.213.camel@hurina> <1305247155.7735.4.camel@tardis> Message-ID: Specifics of what you're talking about? (Yeah, I may have screwed up something, but currently I'm a bit too busy/lazy to find out what.) On 13.5.2011, at 2.39, Noel Butler wrote: > rsync not active? or now protected to mirrors? > > > > On Wed, 2011-05-11 at 18:52 +0300, Timo Sirainen wrote: > >> http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz >> http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz.sig >> >> I've almost managed to read my email backlog, but there are still some >> unanswered mails. Feel free to resend if you think I should have >> answered some of your mails. >> >> The most important changes since v2.0.12: >> >> + Added "doveadm index" command to add unindexed messages into >> index/cache. If full text search is enabled, it also adds unindexed >> messages to the fts database. >> + added "doveadm director dump" command. >> + pop3: Added support for showing messages in "POP3 order", which can >> be different from IMAP message order. This can be useful for >> migrations from other servers. Implemented it for Maildir as 'O' >> field in dovecot-uidlist. >> - doveconf: Fixed a wrong "subsection has ssl=yes" warning. >> - mdbox purge: Fixed wrong warning about corrupted extrefs. >> - sdbox: INBOX GUID changed when INBOX was autocreated, leading to >> trouble with dsync. >> - script-login binary wasn't actually dropping privileges to the >> user/group/chroot specified by its service settings. >> - Fixed potential crashes and other problems when parsing header names >> that contained NUL characters. >> >> >> _______________________________________________ >> Dovecot-news mailing list >> Dovecot-news at dovecot.org >> http://dovecot.org/cgi-bin/mailman/listinfo/dovecot-news > > From nebano at gmail.com Fri May 13 09:46:04 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Fri, 13 May 2011 08:46:04 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> Message-ID: Ok I want to do migration without downtime Yes i have red that the separator depends on mailbox format and that for maildir it is '.' So in my dovecot.conf I have no namespace definition and my mail-location is: mail_location = maildir:/var/vmail/%d/%u/Maildir But when I execute the dsync command: /usr/local/dovecot/bin/dsync -v -f -u example at example.org mirror mdbox:/var1/vmail/example.org/example/mdbox i get dsync(root): Fatal: Mail locations must use the same virtual mailbox hierarchy separator (specify separator for the default namespace) So i have to add to my dovecot.conf namespace { inbox = yes separator = . subscriptions = yes } And after finishig dsync for all mailboxes to a new location I change separator to: separator = / as a final step I have to return the new mdbox mail location for each user using userdb and my dsync command would change: /usr/local/dovecot/bin/dsync -v -f -u example at example.org mirror maildir:/var/vmail/example.org/example/Maildir Am I rigth? Thanks you all 2011/5/13 Timo Sirainen : > On 13.5.2011, at 1.00, Osvaldo Alvarez Pozo wrote: > >> Actually I have no namespace definition. If i add namespace definition >> for start migrating, ?waht about my clients? will they be able to find >> there mail & mailboxes while I am migrating from maildir to mdbox? > > Your clients see the default namespace if it's not explicitly specified. That namespace has prefix="" and the separator depends on what mailbox format you're using. With Maildir that would be "." character. If you keep that there shouldn't be even any potential problems. > > > From robert at schetterer.org Fri May 13 10:36:32 2011 From: robert at schetterer.org (Robert Schetterer) Date: Fri, 13 May 2011 09:36:32 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> Message-ID: <4DCCDF80.1060609@schetterer.org> Am 13.05.2011 08:46, schrieb Osvaldo Alvarez Pozo: > Ok I want to do migration without downtime > > Yes i have red that the separator depends on mailbox format and that > for maildir it is '.' > > So in my dovecot.conf I have no namespace definition and my mail-location is: > > mail_location = maildir:/var/vmail/%d/%u/Maildir > > But when I execute the dsync command: > > /usr/local/dovecot/bin/dsync -v -f -u example at example.org mirror > mdbox:/var1/vmail/example.org/example/mdbox > > i get > > dsync(root): Fatal: Mail locations must use the same virtual mailbox > hierarchy separator (specify separator for the default namespace) > > > So i have to add to my dovecot.conf > namespace { > inbox = yes > separator = . > subscriptions = yes > } > > And after finishig dsync for all mailboxes to a new location > I change separator to: > > separator = / > > as a final step I have to return the new mdbox mail location for > each user using userdb > > and my dsync command would change: > > /usr/local/dovecot/bin/dsync -v -f -u example at example.org mirror > maildir:/var/vmail/example.org/example/Maildir > > Am I rigth? > > Thanks you all that doesnt look bad, but i am not sure wait for others comments ( like Timo ) > > > 2011/5/13 Timo Sirainen : >> On 13.5.2011, at 1.00, Osvaldo Alvarez Pozo wrote: >> >>> Actually I have no namespace definition. If i add namespace definition >>> for start migrating, waht about my clients? will they be able to find >>> there mail & mailboxes while I am migrating from maildir to mdbox? >> >> Your clients see the default namespace if it's not explicitly specified. That namespace has prefix="" and the separator depends on what mailbox format you're using. With Maildir that would be "." character. If you keep that there shouldn't be even any potential problems. >> >> >> however , i am thinking about migrate to mdbox too, on ocfs2, looks like the store is getting slow with thousends of maildirs, there may other reason for that too, depending hardware ( raid etc ), but current i only see the migrate option to speed up, so i am interested in the results of your migration ,please report -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From a.smith at ukgrid.net Fri May 13 11:35:39 2011 From: a.smith at ukgrid.net (a.smith at ukgrid.net) Date: Fri, 13 May 2011 09:35:39 +0100 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> Message-ID: <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> Quoting a.smith at ukgrid.net: > > Ok, I just deleted the dovecot index files etc from the mailbox, > when it recreated them all is now looking normal... > When I logged into my mail today this problem has come back :S Can anyone suggest a cause or anything else I should do? I am correct in thinking that Dovecot normally orders emails by date right???? thanks Andy. From tss at iki.fi Fri May 13 15:09:10 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 13 May 2011 14:09:10 +0200 Subject: [Dovecot] Dovecot Solutions company Message-ID: I recently created Dovecot Solutions Oy (Ltd) company with two other guys. We sell Dovecot support, development, etc. I was planning on announcing this only after we get an actual web site, but since I already told about it in Linuxtag today, I might as well tell everyone. The upcoming web site should have some more details, but if you already know you want to buy something, let me know. :) From robert at schetterer.org Fri May 13 15:16:55 2011 From: robert at schetterer.org (Robert Schetterer) Date: Fri, 13 May 2011 14:16:55 +0200 Subject: [Dovecot] Dovecot Solutions company In-Reply-To: References: Message-ID: <4DCD2137.4000605@schetterer.org> Am 13.05.2011 14:09, schrieb Timo Sirainen: > I recently created Dovecot Solutions Oy (Ltd) company with two other guys. We sell Dovecot support, development, etc. > > I was planning on announcing this only after we get an actual web site, but since I already told about it in Linuxtag today, I might as well tell everyone. The upcoming web site should have some more details, but if you already know you want to buy something, let me know. :) > Hi Timo ,that sounds great -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From info at simonecaruso.com Fri May 13 15:24:27 2011 From: info at simonecaruso.com (Simone Caruso) Date: Fri, 13 May 2011 14:24:27 +0200 Subject: [Dovecot] dovecot proxy with nopassword and postfix sasl In-Reply-To: References: Message-ID: <4DCD22FB.1090003@simonecaruso.com> You should explain better your environment and post your configurations... but this seems more a 'postfix' problem than a dovecot one. Regards -- Simone Caruso IT Consultant p.iva: 03045250838 From joseba.torre at ehu.es Fri May 13 15:27:28 2011 From: joseba.torre at ehu.es (Joseba Torre) Date: Fri, 13 May 2011 14:27:28 +0200 Subject: [Dovecot] Dovecot Solutions company In-Reply-To: References: Message-ID: <201105131427.28417.joseba.torre@ehu.es> On Viernes 13 Mayo 2011 14:09:10 Timo Sirainen escribi?: > I recently created Dovecot Solutions Oy (Ltd) company with two other guys. > We sell Dovecot support, development, etc. > > I was planning on announcing this only after we get an actual web site, but > since I already told about it in Linuxtag today, I might as well tell > everyone. The upcoming web site should have some more details, but if you > already know you want to buy something, let me know. :) Congratulations. Hope you earn tons of money :) -- Joseba Torre. Vicegerencia de TICs, ?rea de Explotaci?n From joseba.torre at ehu.es Fri May 13 15:58:46 2011 From: joseba.torre at ehu.es (Joseba Torre) Date: Fri, 13 May 2011 14:58:46 +0200 Subject: [Dovecot] Fwd: Re: Dovecot Solutions company Message-ID: <201105131458.46276.joseba.torre@ehu.es> I supposse this was directed to the list -- Joseba Torre. Vicegerencia de TICs, ?rea de Explotaci?n -------------- next part -------------- An embedded message was scrubbed... From: "Voytek Eymont" Subject: Re: [Dovecot] Dovecot Solutions company Date: Fri, 13 May 2011 23:41:02 +1100 Size: 3011 URL: From voytek at sbt.net.au Fri May 13 16:04:32 2011 From: voytek at sbt.net.au (Voytek Eymont) Date: Sat, 14 May 2011 00:04:32 +1100 Subject: [Dovecot] Dovecot Solutions company Message-ID: <10863b9b0d4bf6884ed8847f3b6e7547.squirrel@sbt.net.au> On Fri, May 13, 2011 11:27 pm, Joseba Torre wrote: > On Viernes 13 Mayo 2011 14:09:10 Timo Sirainen escribi?: > >> I recently created Dovecot Solutions Oy (Ltd) company with two other >> guys. We sell Dovecot support, development, etc. >> >> >> I was planning on announcing this only after we get an actual web site, >> but since I already told about it in Linuxtag today, I might as well >> tell everyone. The upcoming web site should have some more details, but >> if you already know you want to buy something, let me know. :) > > Congratulations. Hope you earn tons of money :) ditto All the best in your venture! (ooops, meant to send to the list) -- Voytek -- Voytek From franco.rizzo at netrics.ch Fri May 13 16:07:39 2011 From: franco.rizzo at netrics.ch (Franco Rizzo) Date: Fri, 13 May 2011 13:07:39 +0000 Subject: [Dovecot] dovecot proxy with nopassword and postfix sasl In-Reply-To: <4DCD22C2.4060004@simonecaruso.com> References: <4DCD22C2.4060004@simonecaruso.com> Message-ID: Hello thank you for your answer when I have this user in my passdb file franco at ozzir.ch:{plain}password::::::proxy host=xx.xx.xx.xx postfix sasl accept only the password => password When I have this user in my passdb file franco at ozzir.ch:::::::nopassword proxy host=xx.xx.xx.xx postfix sasl accept any password as I said imap and pop3 refuse always a bad password this is my postfix config smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth # and the common settings to enable SASL: smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_recipient_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated, reject_unauth_destination smtpd_sender_login_maps = mysql:/etc/postfix/mysql-smtpd_sender_login_maps.cf #for outlook 2003 and outlook express > v6 broken_sasl_auth_clients = yes Franco Rizzo -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2186 bytes Desc: not available URL: From stsiol at yahoo.co.uk Fri May 13 17:52:40 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Fri, 13 May 2011 15:52:40 +0100 (BST) Subject: [Dovecot] Dovecot Solutions company In-Reply-To: Message-ID: <324343.63170.qm@web27204.mail.ukl.yahoo.com> --- On Fri, 13/5/11, Timo Sirainen wrote: > From: Timo Sirainen > Subject: [Dovecot] Dovecot Solutions company > To: dovecot-news at dovecot.org, "Dovecot Mailing List" > Date: Friday, 13 May, 2011, 15:09 > I recently created Dovecot Solutions > Oy (Ltd) company with two other guys. We sell Dovecot > support, development, etc. > > I was planning on announcing this only after we get an > actual web site, but since I already told about it in > Linuxtag today, I might as well tell everyone. The upcoming > web site should have some more details, but if you already > know you want to buy something, let me know. :) > > Hi, All the Best Timo and wishing you good business ! I would definitely like to contribute. Waiting for the website then . . . Regards, s. ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From dovecot.user at seibercom.net Fri May 13 17:56:16 2011 From: dovecot.user at seibercom.net (Jerry) Date: Fri, 13 May 2011 10:56:16 -0400 Subject: [Dovecot] Dovecot Solutions company In-Reply-To: <201105131427.28417.joseba.torre@ehu.es> References: <201105131427.28417.joseba.torre@ehu.es> Message-ID: <20110513105616.30cee2eb@scorpio> On Fri, 13 May 2011 14:27:28 +0200 Joseba Torre articulated: > On Viernes 13 Mayo 2011 14:09:10 Timo Sirainen escribi?: > > I recently created Dovecot Solutions Oy (Ltd) company with two > > other guys. We sell Dovecot support, development, etc. > > > > I was planning on announcing this only after we get an actual web > > site, but since I already told about it in Linuxtag today, I might > > as well tell everyone. The upcoming web site should have some more > > details, but if you already know you want to buy something, let me > > know. :) > > Congratulations. Hope you earn tons of money :) Seriously, you are venturing into capitalism! What next; going the way of Skype? You could use a few billion couldn't you? Seriously, good luck. I am a true blue believer in capitalism. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From ednitido at gmail.com Fri May 13 20:12:15 2011 From: ednitido at gmail.com (Edward Carraro) Date: Fri, 13 May 2011 13:12:15 -0400 Subject: [Dovecot] Upgraded 2.012 to 2.0.13 postlogin error Message-ID: I've just upgraded to Dovecot 2.0.13 from 2.0.12 When I authenticate via telnet it closes the connection and the logs show: May 13 16:59:16 master: Info: Dovecot v2.0.13 starting up (core dumps disabled) May 13 16:59:40 auth: Debug: Loading modules from directory: /usr/local/lib/dovecot/auth May 13 16:59:40 auth: Debug: passwd-file /usr/local/etc/dovecot/master-users: Read 1 users May 13 16:59:40 auth: Debug: auth client connected (pid=22124) May 13 16:59:46 auth: Debug: client in: AUTH 1 PLAIN service=imap secured lip=127.0.0.1 rip=127.0.0.1 lport=143 rport=37146 resp= May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): pass search: base=dc=domain,dc=com scope=subtree filter=(&(|(uid= edward at dev.domain.com)(mailAlternateAddress=edward at dev.domain.com))(nimPimUserStatus=active)) fields=uid,userPassword May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): result: userPassword(password)= uid(user)=edward at dev.domain.com May 13 16:59:46 auth: Debug: client out: OK 1 user= edward at dev.domain.com May 13 16:59:46 auth: Debug: master in: REQUEST 885784577 22124 1 48936eabc3d31fe740c83dd3339261b7 May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): user search: base=dc=nitido,dc=com scope=subtree filter=(&(|(uid= edward at dev.domain.com)(mailAlternateAddress=edward at dev.domain.com))(nimPimUserStatus=active)) fields=homeDirectory,quotaMailSoft May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): result: homeDirectory(home)=/home/dev.domain.com/edward at dev.domain.comquotaMailSoft(quota_rule=*:storage=%$M)=2 May 13 16:59:46 auth: Debug: master out: USER 885784577 edward at dev.domain.com home=/home/dev.domain.com/edward at dev.domain.comquota_rule=*:storage=2M May 13 16:59:46 imap-postlogin: Error: script-login: Error: user edward at dev.domain.com: Error reading configuration: net_connect_unix(/usr/local/var/run/dovecot/config) failed: Permission denied May 13 16:59:46 imap-postlogin: Error: script-login: Fatal: Internal error occurred. Refer to server log for more information. May 13 16:59:46 log: Error: service(imap-postlogin): child 22134 returned error 89 (Fatal failure) May 13 16:59:46 imap-login: Info: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22133, secured May 13 16:59:46 imap(edward at dev.domain.com): Info: Post-login script denied access to user edward at dev.domain.com The permission on /usr/local/var/run/dovecot/config: srw------- 1 root staff 0 May 13 16:59 config Anyone know the correct permissions? This worked fine in previous versions Thanks! From shopik at inblock.ru Fri May 13 20:43:44 2011 From: shopik at inblock.ru (Nikolay Shopik) Date: Fri, 13 May 2011 21:43:44 +0400 Subject: [Dovecot] ID RFC2971 stored anywhere when client announced it? Message-ID: Does dovecot store RFC2971 information supplied by client, anywhere? From robert at schetterer.org Fri May 13 21:52:39 2011 From: robert at schetterer.org (Robert Schetterer) Date: Fri, 13 May 2011 20:52:39 +0200 Subject: [Dovecot] Upgraded 2.012 to 2.0.13 postlogin error In-Reply-To: References: Message-ID: <4DCD7DF7.3010808@schetterer.org> Am 13.05.2011 19:12, schrieb Edward Carraro: > I've just upgraded to Dovecot 2.0.13 from 2.0.12 > > When I authenticate via telnet it closes the connection and the logs show: > > May 13 16:59:16 master: Info: Dovecot v2.0.13 starting up (core dumps > disabled) > May 13 16:59:40 auth: Debug: Loading modules from directory: > /usr/local/lib/dovecot/auth > May 13 16:59:40 auth: Debug: passwd-file > /usr/local/etc/dovecot/master-users: Read 1 users > May 13 16:59:40 auth: Debug: auth client connected (pid=22124) > May 13 16:59:46 auth: Debug: client in: AUTH 1 PLAIN service=imap > secured lip=127.0.0.1 rip=127.0.0.1 lport=143 rport=37146 > resp= > May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): pass > search: base=dc=domain,dc=com scope=subtree filter=(&(|(uid= > edward at dev.domain.com)(mailAlternateAddress=edward at dev.domain.com))(nimPimUserStatus=active)) > fields=uid,userPassword > May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): result: > userPassword(password)= uid(user)=edward at dev.domain.com > May 13 16:59:46 auth: Debug: client out: OK 1 user= > edward at dev.domain.com > May 13 16:59:46 auth: Debug: master in: REQUEST 885784577 22124 1 > 48936eabc3d31fe740c83dd3339261b7 > May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): user > search: base=dc=nitido,dc=com scope=subtree filter=(&(|(uid= > edward at dev.domain.com)(mailAlternateAddress=edward at dev.domain.com))(nimPimUserStatus=active)) > fields=homeDirectory,quotaMailSoft > May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): result: > homeDirectory(home)=/home/dev.domain.com/edward at dev.domain.comquotaMailSoft(quota_rule=*:storage=%$M)=2 > May 13 16:59:46 auth: Debug: master out: USER 885784577 > edward at dev.domain.com > home=/home/dev.domain.com/edward at dev.domain.comquota_rule=*:storage=2M > May 13 16:59:46 imap-postlogin: Error: script-login: Error: user > edward at dev.domain.com: Error reading configuration: > net_connect_unix(/usr/local/var/run/dovecot/config) failed: Permission > denied > May 13 16:59:46 imap-postlogin: Error: script-login: Fatal: Internal error > occurred. Refer to server log for more information. > May 13 16:59:46 log: Error: service(imap-postlogin): child 22134 returned > error 89 (Fatal failure) > May 13 16:59:46 imap-login: Info: Login: user=, > method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22133, secured > May 13 16:59:46 imap(edward at dev.domain.com): Info: Post-login script denied > access to user edward at dev.domain.com > > The permission on /usr/local/var/run/dovecot/config: > srw------- 1 root staff 0 May 13 16:59 config > > Anyone know the correct permissions? This worked fine in previous versions > > Thanks! > perhaps by redesign, read the list a few mails ago i.e start here http://www.mail-archive.com/dovecot at dovecot.org/msg38349.html -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From ednitido at gmail.com Fri May 13 22:45:25 2011 From: ednitido at gmail.com (Edward Carraro) Date: Fri, 13 May 2011 15:45:25 -0400 Subject: [Dovecot] Upgraded 2.012 to 2.0.13 postlogin error In-Reply-To: <4DCD7DF7.3010808@schetterer.org> References: <4DCD7DF7.3010808@schetterer.org> Message-ID: Thanks! I took out "user" service imap-postlogin { # user = $default_internal_user ... } On Fri, May 13, 2011 at 2:52 PM, Robert Schetterer wrote: > > perhaps by redesign, read the list a few mails ago > i.e start here > http://www.mail-archive.com/dovecot at dovecot.org/msg38349.html > -- > Best Regards > > MfG Robert Schetterer > > Germany/Munich/Bavaria > From stsiol at yahoo.co.uk Sat May 14 00:12:16 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Fri, 13 May 2011 22:12:16 +0100 (BST) Subject: [Dovecot] Dovecot Solutions company In-Reply-To: <20110513105616.30cee2eb@scorpio> Message-ID: <750697.60563.qm@web27202.mail.ukl.yahoo.com> --- On Fri, 13/5/11, Jerry wrote: > From: Jerry > Subject: Re: [Dovecot] Dovecot Solutions company > To: dovecot at dovecot.org > Date: Friday, 13 May, 2011, 17:56 > On Fri, 13 May 2011 14:27:28 +0200 > Joseba Torre > articulated: > > > On Viernes 13 Mayo 2011 14:09:10 Timo Sirainen > escribi?: > > > I recently created Dovecot Solutions Oy (Ltd) > company with two > > > other guys. We sell Dovecot support, development, > etc. > > > > > > I was planning on announcing this only after we > get an actual web > > > site, but since I already told about it in > Linuxtag today, I might > > > as well tell everyone. The upcoming web site > should have some more > > > details, but if you already know you want to buy > something, let me > > > know. :) > > > > Congratulations. Hope you earn tons of money :) > > Seriously, you are venturing into capitalism! What next; > going the way > of Skype? You could use a few billion couldn't you? > > Seriously, good luck. I am a true blue believer in > capitalism. > > -- > Jerry ? > Dovecot.user at seibercom.net > > Disclaimer: off-list followups get on-list replies or get > ignored. > Please do not ignore the Reply-To header. > __________________________________________________________________ > > Oh yeah ! that sorted out our world pretty fine didn't it ? (sorry list, just couldn't resist). s. ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From noel.butler at ausics.net Sat May 14 05:55:50 2011 From: noel.butler at ausics.net (Noel Butler) Date: Sat, 14 May 2011 12:55:50 +1000 Subject: [Dovecot] [Dovecot-news] v2.0.13 released In-Reply-To: References: <1305129141.10421.213.camel@hurina> <1305247155.7735.4.camel@tardis> Message-ID: <1305341750.11530.5.camel@tardis> On Fri, 2011-05-13 at 02:43 +0200, Timo Sirainen wrote: > Specifics of what you're talking about? > > (Yeah, I may have screwed up something, but currently I'm a bit too busy/lazy to find out what.) not to worry then, chmod -x /etc/cron.rsyncs.bi-daily/dovecot.pl has fixed it here > On 13.5.2011, at 2.39, Noel Butler wrote: > > > rsync not active? or now protected to mirrors? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 490 bytes Desc: This is a digitally signed message part URL: From info at simonecaruso.com Sat May 14 13:37:09 2011 From: info at simonecaruso.com (Simone Caruso) Date: Sat, 14 May 2011 12:37:09 +0200 Subject: [Dovecot] Dovecot Solutions company In-Reply-To: References: Message-ID: <4DCE5B55.6000006@simonecaruso.com> Il 13/05/2011 14:09, Timo Sirainen ha scritto: > I recently created Dovecot Solutions Oy (Ltd) company with two other guys. We sell Dovecot support, development, etc. > > I was planning on announcing this only after we get an actual web site, but since I already told about it in Linuxtag today, I might as well tell everyone. The upcoming web site should have some more details, but if you already know you want to buy something, let me know. :) > I made a start-up with other two guys.. building my company was a great choice (very hard, but really great)! So, me and my associates wish you with you the best luck for your business! -- Simone Caruso IT Consultant p.iva: 03045250838 From info at simonecaruso.com Sat May 14 13:54:58 2011 From: info at simonecaruso.com (Simone Caruso) Date: Sat, 14 May 2011 12:54:58 +0200 Subject: [Dovecot] dovecot proxy with nopassword and postfix sasl In-Reply-To: References: <4DCD22C2.4060004@simonecaruso.com> Message-ID: <4DCE5F82.2030803@simonecaruso.com> Il 13/05/2011 15:07, Franco Rizzo ha scritto: > Hello thank you for your answer > > when I have this user in my passdb file > franco at ozzir.ch:{plain}password::::::proxy host=xx.xx.xx.xx > postfix sasl accept only the password => password > > When I have this user in my passdb file > franco at ozzir.ch:::::::nopassword proxy host=xx.xx.xx.xx > postfix sasl accept any password > And i think this is all normal... From: http://wiki2.dovecot.org/PasswordDatabase/ExtraFields/Proxy I don't think it is allowed behaviour for Postfix to authenticate on a dovecot proxy. I think u can solve the issue using the 2nd point of the Proxy tutorial: "Let Dovecot proxy perform the authentication and login to remote server using the proxy's master password" or moving to sql/ldap userbase. -- Simone Caruso IT Consultant p.iva: 03045250838 From dovecot-user at spambox.dk Sat May 14 16:19:29 2011 From: dovecot-user at spambox.dk (Henrik Larsson) Date: Sat, 14 May 2011 15:19:29 +0200 Subject: [Dovecot] Dovecot stops with "Fatal: kevent(): Invalid argument" In-Reply-To: References: <4DC1D95D.3070603@spambox.dk> Message-ID: <4DCE8161.8020109@spambox.dk> >> Dovecot stops with the following logged: >> - master: Fatal: kevent(): Invalid argument >> >> I have found that a diff was created for "src/lib/ioloop-kqueue.c" for a similar issue: >> http://dovecot.org/pipermail/dovecot/2010-November/054855.html >> >> I have patched my system with this and haven't seen the problem since, but I don't know if this is a coincidence. Could you please explain if the diff should actually fix anything or just add some more logging in case it stops again? > > That patch doesn't fix anything. It only changes the error message to be more informative so I could figure out what is causing it. If you haven't seen any more errors, it's just a coincidence. I have for some reason not seen the error since applying the above patch. But wouldn't it make sense to include the patch in the stable release so others can give input in the rare case they experience the same issue? At least until the issue has been resolved. I don't say that this is a Dovecot issue, and I admit that it have to be a rare case, but when two independent people experience the same error, there have to be a problem somewhere. Best regards Henrik Larsson From dave.mehler at gmail.com Sat May 14 23:13:46 2011 From: dave.mehler at gmail.com (David Mehler) Date: Sat, 14 May 2011 16:13:46 -0400 Subject: [Dovecot] dovecot authentication failing Message-ID: Hello, I'm running dovecot 2.0.x on a centos 5.6 machine. This is a new installation, I haven't even opened the firewall to it yet. I was trying to telnet localhost 143 and 110 trying to authenticate a user. I'm getting authentication failure in my maillog but no details. Here's the one line I get in my maillog: May 14 15:33:42 ohio dovecot: pop3-login: Aborted login (auth failed, 1 attempts): user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Here's a doveconf -n: # 2.0.12: /etc/dovecot/dovecot.conf # OS: Linux 2.6.38.3-linode32 i686 CentOS release 5.6 (Final) ext3 auth_default_realm = domain.com auth_mechanisms = plain login base_dir = /var/run/dovecot/ disable_plaintext_auth = no listen = * mail_location = maildir:/var/spool/mail/vhosts/%d/%u maildir_very_dirty_syncs = yes mbox_write_locks = fcntl passdb { args = scheme=CRYPT username_format=%u /etc/dovecot/users driver = passwd-file } protocols = imap pop3 service auth { unix_listener /var/spool/postfix/private/auth { group = postfix user = postfix } } ssl_cert = References: Message-ID: <4DCF8B26.8040200@schetterer.org> Am 14.05.2011 22:13, schrieb David Mehler: > Hello, > I'm running dovecot 2.0.x on a centos 5.6 machine. This is a new > installation, I haven't even opened the firewall to it yet. I was > trying to telnet localhost 143 and 110 trying to authenticate a user. > I'm getting authentication failure in my maillog but no details. > Here's the one line I get in my maillog: > > May 14 15:33:42 ohio dovecot: pop3-login: Aborted login (auth failed, > 1 attempts): user=, method=PLAIN, rip=127.0.0.1, > lip=127.0.0.1, secured > > Here's a doveconf -n: > # 2.0.12: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.38.3-linode32 i686 CentOS release 5.6 (Final) ext3 > auth_default_realm = domain.com > auth_mechanisms = plain login > base_dir = /var/run/dovecot/ > disable_plaintext_auth = no > listen = * > mail_location = maildir:/var/spool/mail/vhosts/%d/%u > maildir_very_dirty_syncs = yes > mbox_write_locks = fcntl > passdb { > args = scheme=CRYPT username_format=%u /etc/dovecot/users > driver = passwd-file > } > protocols = imap pop3 > service auth { > unix_listener /var/spool/postfix/private/auth { > group = postfix > user = postfix > } > } > ssl_cert = ssl_key = > Here's how I constructed my users file: > # > # Passwd-file for use with dovecot authentication > # Used in a virtual setup > # Username:{scheme}HashedPassword:UID:GID:: > user:{SSHA512}hbLu+pCmhmtyKEwyAs3wv3kvHD/ryr0MoXOAq3VdB7X/g8qIE/xE9BG+eI4jhFk9pTyiCltPCjZxv5/+yK1wll2LNcw= > :5000:5000:: > > My goal is to use this with a postfix virtual mailbox setup, the > postfix part is already in place. The mailbox base is > /var/spool/mail/vhosts and under that there's example.com which is the > domain and under that the various users one just called user for this > example. The Uid and Gid 5000 is the same one the postfix vmail user > is running as that's the user who handles the virtual mailbox domains. > > I'm suspecting my issue is in my users file or the definition of it in > passwd-file{ i've been over the wiki for 2.0.x dovecot, this was > definitely worth the upgrade by the way, and thus far have not found > an answer. > > I'd appreciate any help. > Thanks. > Dave. i am definitive not familar with "file auth" but you can switch on more verbose debug logging in dovecot , this should help finding bug reasons http://wiki2.dovecot.org/Logging -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From henri at nerv.fi Sun May 15 02:46:38 2011 From: henri at nerv.fi (Henri Salo) Date: Sun, 15 May 2011 02:46:38 +0300 Subject: [Dovecot] [Dovecot-news] v2.0.13 released In-Reply-To: <1305129141.10421.213.camel@hurina> References: <1305129141.10421.213.camel@hurina> Message-ID: <20110514234638.GB30465@foo.fgeek.fi> On Wed, May 11, 2011 at 06:52:21PM +0300, Timo Sirainen wrote: > http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz > http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz.sig > > I've almost managed to read my email backlog, but there are still some > unanswered mails. Feel free to resend if you think I should have > answered some of your mails. > > The most important changes since v2.0.12: > > + Added "doveadm index" command to add unindexed messages into > index/cache. If full text search is enabled, it also adds unindexed > messages to the fts database. > + added "doveadm director dump" command. > + pop3: Added support for showing messages in "POP3 order", which can > be different from IMAP message order. This can be useful for > migrations from other servers. Implemented it for Maildir as 'O' > field in dovecot-uidlist. > - doveconf: Fixed a wrong "subsection has ssl=yes" warning. > - mdbox purge: Fixed wrong warning about corrupted extrefs. > - sdbox: INBOX GUID changed when INBOX was autocreated, leading to > trouble with dsync. > - script-login binary wasn't actually dropping privileges to the > user/group/chroot specified by its service settings. > - Fixed potential crashes and other problems when parsing header names > that contained NUL characters. Should this get CVE-identifier? I can request it. Best regards, Henri Salo From user+dovecot at localhost.localdomain.org Sun May 15 13:22:48 2011 From: user+dovecot at localhost.localdomain.org (Pascal Volk) Date: Sun, 15 May 2011 12:22:48 +0200 Subject: [Dovecot] dovecot authentication failing In-Reply-To: References: Message-ID: <4DCFA978.6010806@localhost.localdomain.org> On 05/14/2011 10:13 PM David Mehler wrote: > Hello, > I'm running dovecot 2.0.x on a centos 5.6 machine. This is a new > installation, I haven't even opened the firewall to it yet. I was > trying to telnet localhost 143 and 110 trying to authenticate a user. > I'm getting authentication failure in my maillog but no details. > Here's the one line I get in my maillog: > > May 14 15:33:42 ohio dovecot: pop3-login: Aborted login (auth failed, > 1 attempts): user=, method=PLAIN, rip=127.0.0.1, > lip=127.0.0.1, secured > > Here's a doveconf -n: > # 2.0.12: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.38.3-linode32 i686 CentOS release 5.6 (Final) ext3 > auth_default_realm = domain.com > auth_mechanisms = plain login > ? > disable_plaintext_auth = no > ? > passdb { > args = scheme=CRYPT username_format=%u /etc/dovecot/users > driver = passwd-file > } > ? > > Here's how I constructed my users file: > ? > user:{SSHA512}hbLu+pCmhmtyKEwyAs3wv3kvHD/ryr0MoXOAq3VdB7X/g8qIE/xE9BG+eI4jhFk9pTyiCltPCjZxv5/+yK1wll2LNcw= > :5000:5000:: > ? CRYPT (CRYPT|MD5-CRYPT|SHA256-CRYPT|SHA512-CRYPT) != SSHA512 > I'm suspecting my issue is in my users file or the definition of it in > passwd-file{ i've been over the wiki for 2.0.x dovecot, this was > definitely worth the upgrade by the way, and thus far have not found > an answer. > > I'd appreciate any help. Whenever something isn't working you should point your browser to: http://wiki2.dovecot.org/WhyDoesItNotWork Regards, Pascal -- The trapper recommends today: c01dcafe.1113512 at localdomain.org From user+dovecot at localhost.localdomain.org Sun May 15 13:33:34 2011 From: user+dovecot at localhost.localdomain.org (Pascal Volk) Date: Sun, 15 May 2011 12:33:34 +0200 Subject: [Dovecot] Expunge deleted messages older than X days for all users ? In-Reply-To: <4DCBA399.5000908@jungo.com> References: <4DCB9C5D.8070306@schetterer.org> <4DCBA399.5000908@jungo.com> Message-ID: <4DCFABFE.5020605@localhost.localdomain.org> On 05/12/2011 11:08 AM Bar Ziony wrote: > Thanks for the answer. > > > What I'm looking for is auto-expunging messages that are marked for > deletion. Lets say a user deletes a message. It gets moved to his Trash > and marked for deletion (flagged as such). Is there any way to search > all "marked for deletion" messages in all the users mailboxes, and > delete the messages older than X days? doveadm expunge -u a_user mailbox Trash deleted See doveadm-expunge(1) and doveadm-search-query(7) for details. Adjust the options to your requirements and create a cron job. Regards, Pascal -- The trapper recommends today: c01dcafe.1113512 at localdomain.org From dave.mehler at gmail.com Sun May 15 17:38:30 2011 From: dave.mehler at gmail.com (David Mehler) Date: Sun, 15 May 2011 10:38:30 -0400 Subject: [Dovecot] dovecot authentication failing In-Reply-To: <4DCFA978.6010806@localhost.localdomain.org> References: <4DCFA978.6010806@localhost.localdomain.org> Message-ID: Hello, Thanks for all your replies. I reread the sites and made the following change: passdb { driver = passwd-file args = scheme=SHA512-CRYPT username_format=%n /etc/dovecot/passwd } userdb { driver = passwd-file args = username_format=%n /etc/dovecot/users } In passwd I have: user:{SSHA512}hbLu+pCmhmtyKEwyAs3wv3kvHD/ryr0MoXOAq3VdB7X/g8qIE/xE9BG+eI4jhFk9pTyiCltPCjZxv5/+yK1wll2LNcw= That should all be on one line. And in the users file I have: user::uid:gid::HomeDirectory:Shell:: It seems to be working. Can I get an assessment, make sure that all is looking right? Thanks. Dave. On 5/15/11, Pascal Volk wrote: > On 05/14/2011 10:13 PM David Mehler wrote: >> Hello, >> I'm running dovecot 2.0.x on a centos 5.6 machine. This is a new >> installation, I haven't even opened the firewall to it yet. I was >> trying to telnet localhost 143 and 110 trying to authenticate a user. >> I'm getting authentication failure in my maillog but no details. >> Here's the one line I get in my maillog: >> >> May 14 15:33:42 ohio dovecot: pop3-login: Aborted login (auth failed, >> 1 attempts): user=, method=PLAIN, rip=127.0.0.1, >> lip=127.0.0.1, secured >> >> Here's a doveconf -n: >> # 2.0.12: /etc/dovecot/dovecot.conf >> # OS: Linux 2.6.38.3-linode32 i686 CentOS release 5.6 (Final) ext3 >> auth_default_realm = domain.com >> auth_mechanisms = plain login >> ? >> disable_plaintext_auth = no >> ? >> passdb { >> args = scheme=CRYPT username_format=%u /etc/dovecot/users >> driver = passwd-file >> } >> ? >> >> Here's how I constructed my users file: >> ? >> user:{SSHA512}hbLu+pCmhmtyKEwyAs3wv3kvHD/ryr0MoXOAq3VdB7X/g8qIE/xE9BG+eI4jhFk9pTyiCltPCjZxv5/+yK1wll2LNcw= >> :5000:5000:: >> ? > > CRYPT (CRYPT|MD5-CRYPT|SHA256-CRYPT|SHA512-CRYPT) != SSHA512 > >> I'm suspecting my issue is in my users file or the definition of it in >> passwd-file{ i've been over the wiki for 2.0.x dovecot, this was >> definitely worth the upgrade by the way, and thus far have not found >> an answer. >> >> I'd appreciate any help. > > Whenever something isn't working you should point your browser to: > http://wiki2.dovecot.org/WhyDoesItNotWork > > > Regards, > Pascal > -- > The trapper recommends today: c01dcafe.1113512 at localdomain.org > From nebano at gmail.com Mon May 16 01:29:30 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Mon, 16 May 2011 00:29:30 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> Message-ID: Hi I am testing mdbox. I noticed that after deleting mail from inbox and trash the mail are always in the mdbox I mean it size has not changed. I executed: /usr/local/dovecot/bin/doveadm -Dv purge -u user at example.org but nothing changed the filess size have not changed I did /usr/local/dovecot/bin/doveadm search all -u user at example.org 4673461242fdcb4d8d0900004ccdb073 1 4673461242fdcb4d8d0900004ccdb073 2 4673461242fdcb4d8d0900004ccdb073 3 4673461242fdcb4d8d0900004ccdb073 4 4673461242fdcb4d8d0900004ccdb073 5 52dfc91bb54cd04df30b00004ccdb073 1 52dfc91bb54cd04df30b00004ccdb073 2 52dfc91bb54cd04df30b00004ccdb073 3 52dfc91bb54cd04df30b00004ccdb073 4 52dfc91bb54cd04df30b00004ccdb073 5 52dfc91bb54cd04df30b00004ccdb073 6 52dfc91bb54cd04df30b00004ccdb073 7 52dfc91bb54cd04df30b00004ccdb073 8 52dfc91bb54cd04df30b00004ccdb073 9 52dfc91bb54cd04df30b00004ccdb073 10 52dfc91bb54cd04df30b00004ccdb073 11 52dfc91bb54cd04df30b00004ccdb073 12 52dfc91bb54cd04df30b00004ccdb073 13 So all files are there rigth? How can I erase deleted mails? Thanks 2011/5/13 Timo Sirainen : > On 13.5.2011, at 1.00, Osvaldo Alvarez Pozo wrote: > >> Actually I have no namespace definition. If i add namespace definition >> for start migrating, ?waht about my clients? will they be able to find >> there mail & mailboxes while I am migrating from maildir to mdbox? > > Your clients see the default namespace if it's not explicitly specified. That namespace has prefix="" and the separator depends on what mailbox format you're using. With Maildir that would be "." character. If you keep that there shouldn't be even any potential problems. > > > From user+dovecot at localhost.localdomain.org Mon May 16 01:33:05 2011 From: user+dovecot at localhost.localdomain.org (Pascal Volk) Date: Mon, 16 May 2011 00:33:05 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> Message-ID: <4DD054A1.9030107@localhost.localdomain.org> On 05/16/2011 12:29 AM Osvaldo Alvarez Pozo wrote: > Hi > I am testing mdbox. > ? > How can I erase deleted mails? > See doveadm-purge(1) Regards, Pascal -- The trapper recommends today: fabaceae.1113600 at localdomain.org From nebano at gmail.com Mon May 16 01:37:16 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Mon, 16 May 2011 00:37:16 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: <4DD054A1.9030107@localhost.localdomain.org> References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> <4DD054A1.9030107@localhost.localdomain.org> Message-ID: Hi thanks but I do not have doveadm-purge. I have doveadm and I can run it with -purge option and that's wath I did with no result. Thanks 2011/5/16 Pascal Volk : > On 05/16/2011 12:29 AM Osvaldo Alvarez Pozo wrote: >> Hi >> I am testing mdbox. >> ? >> How can I erase deleted mails? >> > > See doveadm-purge(1) > > > Regards, > Pascal > -- > The trapper recommends today: fabaceae.1113600 at localdomain.org > From user+dovecot at localhost.localdomain.org Mon May 16 01:53:01 2011 From: user+dovecot at localhost.localdomain.org (Pascal Volk) Date: Mon, 16 May 2011 00:53:01 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> <4DD054A1.9030107@localhost.localdomain.org> Message-ID: <4DD0594D.8040504@localhost.localdomain.org> On 05/16/2011 12:37 AM Osvaldo Alvarez Pozo wrote: > Hi > thanks but I do not have doveadm-purge. I have doveadm and I can run > it with -purge option and that's wath I did with no result. > Please stop Top-posting. OK, if man 1 doveadm-purge didn't work for you, run doveadm purge help. You may check if there are some deleted mails in the mdbox: doveadm dump /path/2/mdbox/storage | egrep 'ext 3 ref\s+\:\s+0' -c If the printed count is greater then 0, there are deleted mails in the mdbox. Then you can delete them permanently with doveadm purge ? Regards, Pascal -- The trapper recommends today: fabaceae.1113600 at localdomain.org From mysqlstudent at gmail.com Mon May 16 04:31:06 2011 From: mysqlstudent at gmail.com (Alex) Date: Sun, 15 May 2011 21:31:06 -0400 Subject: [Dovecot] Dovecot mail_location creating duplicate mbox mail directories Message-ID: Hi all, I'm using dovecot v2.0.11 on fedora14 with postfix. This system was migrated from an old UW mbox system, so users already have ~/mail/INBOX.* files. Now for some reason, dovecot is creating ~/mail/mail/INBOX.* files and somehow not seeing the mail_location properly. I've set mail_location to "mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u", which has worked on a similar system I migrated, but I can't understand why it would try and create a "mail" subdiretory under the ~/mail directory. Even if I set mail_location to just mbox:~ instead, it doesn't create the .subscriptions file properly, and still creates them with "mail/INBOX.Trash" for example. Below is my doveconf. Any ideas greatly appreciated. Is there a way to have doveconf only print those values that differ from the defaults? # 2.0.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.35.13-91.fc14.x86_64 x86_64 Fedora release 14 (Laughlin) auth_anonymous_username = anonymous auth_cache_negative_ttl = 1 hours auth_cache_size = 0 auth_cache_ttl = 1 hours auth_debug = no auth_debug_passwords = no auth_default_realm = auth_failure_delay = 2 secs auth_first_valid_uid = 500 auth_gssapi_hostname = auth_krb5_keytab = auth_last_valid_uid = 0 auth_master_user_separator = auth_mechanisms = plain login auth_realms = auth_socket_path = auth-userdb auth_ssl_require_client_cert = no auth_ssl_username_from_cert = no auth_use_winbind = no auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@ auth_username_format = auth_username_translation = auth_verbose = no auth_verbose_passwords = no auth_winbind_helper_path = /usr/bin/ntlm_auth auth_worker_max_count = 30 base_dir = /var/run/dovecot config_cache_size = 1 M debug_log_path = default_client_limit = 2000 default_idle_kill = 60 default_internal_user = dovecot default_login_user = dovenull default_process_limit = 100 default_vsz_limit = 256 M deliver_log_format = msgid=%m: %$ dict_db_config = director_doveadm_port = 0 director_mail_servers = director_servers = director_user_expire = 15 mins disable_plaintext_auth = yes dotlock_use_excl = yes doveadm_socket_path = doveadm-server doveadm_worker_count = 0 first_valid_gid = 1 first_valid_uid = 500 hostname = imap_capability = imap_client_workarounds = imap_id_log = imap_id_send = imap_idle_notify_interval = 2 mins imap_logout_format = bytes=%i/%o imap_max_line_length = 64 k import_environment = TZ info_log_path = last_valid_gid = 0 last_valid_uid = 0 lda_mailbox_autocreate = no lda_mailbox_autosubscribe = no lda_original_recipient_header = libexec_dir = /usr/libexec/dovecot listen = *, :: lmtp_proxy = no lmtp_save_to_detail_mailbox = no lock_method = fcntl log_path = syslog log_timestamp = "%b %d %H:%M:%S " login_access_sockets = login_greeting = Dovecot ready. login_log_format = %$: %s login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c login_trusted_networks = mail_access_groups = mail_attachment_dir = mail_attachment_fs = sis posix mail_attachment_hash = %{sha1} mail_attachment_min_size = 128 k mail_cache_fields = flags mail_cache_min_mail_count = 0 mail_chroot = mail_debug = yes mail_fsync = optimized mail_full_filesystem_access = no mail_gid = mail mail_home = mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u mail_log_prefix = "%s(%u): " mail_max_keyword_length = 50 mail_max_lock_timeout = 0 mail_max_userip_connections = 10 mail_never_cache_fields = imap.envelope mail_nfs_index = no mail_nfs_storage = no mail_plugin_dir = /usr/lib64/dovecot mail_plugins = mail_privileged_group = mail mail_save_crlf = no mail_temp_dir = /tmp mail_uid = mailbox_idle_check_interval = 30 secs mailbox_list_index_disable = no maildir_copy_with_hardlinks = yes maildir_stat_dirs = no maildir_very_dirty_syncs = no master_user_separator = mbox_dirty_syncs = yes mbox_dotlock_change_timeout = 2 mins mbox_lazy_writes = yes mbox_lock_timeout = 5 mins mbox_min_index_size = 0 mbox_read_locks = fcntl mbox_very_dirty_syncs = no mbox_write_locks = fcntl mdbox_preallocate_space = no mdbox_rotate_interval = 0 mdbox_rotate_size = 2 M mmap_disable = no passdb { args = deny = no driver = pam master = no pass = no } passdb { args = deny = no driver = pam master = no pass = no } pop3_client_workarounds = pop3_enable_last = no pop3_fast_size_lookups = no pop3_lock_session = no pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s pop3_no_flag_updates = no pop3_reuse_xuidl = no pop3_save_uidl = no pop3_uidl_format = %08Xu%08Xv postmaster_address = protocols = imap pop3 lmtp quota_full_tempfail = no recipient_delimiter = + rejection_reason = Your message to <%t> was automatically rejected:%n%r rejection_subject = Rejected: %s sendmail_path = /usr/sbin/sendmail service anvil { chroot = empty client_limit = 0 drop_priv_before_exec = no executable = anvil extra_groups = group = idle_kill = 4294967295 secs privileged_group = process_limit = 1 process_min_avail = 1 protocol = service_count = 0 type = anvil unix_listener anvil-auth-penalty { group = mode = 0600 user = } unix_listener anvil { group = mode = 0600 user = } user = $default_internal_user vsz_limit = 18446744073709551615 B } service auth-worker { chroot = client_limit = 1 drop_priv_before_exec = no executable = auth -w extra_groups = group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = service_count = 1 type = unix_listener auth-worker { group = mode = 0600 user = $default_internal_user } user = vsz_limit = 18446744073709551615 B } service auth { chroot = client_limit = 4096 drop_priv_before_exec = no executable = auth extra_groups = group = idle_kill = 0 privileged_group = process_limit = 1 process_min_avail = 0 protocol = service_count = 0 type = unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-client { group = mode = 0600 user = } unix_listener auth-login { group = mode = 0600 user = $default_internal_user } unix_listener auth-master { group = mode = 0600 user = } unix_listener auth-userdb { group = mode = 0600 user = } unix_listener login/login { group = mode = 0666 user = } user = $default_internal_user vsz_limit = 18446744073709551615 B } service config { chroot = client_limit = 0 drop_priv_before_exec = no executable = config extra_groups = group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = service_count = 0 type = config unix_listener config { group = mode = 0600 user = } user = vsz_limit = 18446744073709551615 B } service dict { chroot = client_limit = 1 drop_priv_before_exec = no executable = dict extra_groups = group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = service_count = 0 type = unix_listener dict { group = mode = 0600 user = } user = $default_internal_user vsz_limit = 18446744073709551615 B } service director { chroot = client_limit = 0 drop_priv_before_exec = no executable = director extra_groups = fifo_listener login/proxy-notify { group = mode = 00 user = } group = idle_kill = 4294967295 secs inet_listener { address = port = 0 ssl = no } privileged_group = process_limit = 1 process_min_avail = 0 protocol = service_count = 0 type = unix_listener director-admin { group = mode = 0600 user = } unix_listener director-userdb { group = mode = 0600 user = } unix_listener login/director { group = mode = 00 user = } user = $default_internal_user vsz_limit = 18446744073709551615 B } service dns_client { chroot = client_limit = 1 drop_priv_before_exec = no executable = dns-client extra_groups = group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = service_count = 0 type = unix_listener dns-client { group = mode = 0666 user = } unix_listener login/dns-client { group = mode = 0666 user = } user = $default_internal_user vsz_limit = 18446744073709551615 B } service doveadm { chroot = client_limit = 1 drop_priv_before_exec = no executable = doveadm-server extra_groups = group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = service_count = 1 type = unix_listener doveadm-server { group = mode = 0600 user = } user = vsz_limit = 18446744073709551615 B } service imap-login { chroot = login client_limit = 0 drop_priv_before_exec = no executable = imap-login extra_groups = group = idle_kill = 0 inet_listener imap { address = port = 143 ssl = no } inet_listener imaps { address = port = 993 ssl = yes } privileged_group = process_limit = 0 process_min_avail = 20 protocol = imap service_count = 0 type = login user = $default_login_user vsz_limit = 64 M } service imap { chroot = client_limit = 1 drop_priv_before_exec = no executable = imap extra_groups = group = idle_kill = 0 privileged_group = process_limit = 1024 process_min_avail = 0 protocol = imap service_count = 1 type = unix_listener login/imap { group = mode = 0666 user = } user = vsz_limit = 18446744073709551615 B } service lmtp { chroot = client_limit = 0 drop_priv_before_exec = no executable = lmtp extra_groups = group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = lmtp service_count = 0 type = unix_listener lmtp { group = mode = 0666 user = } user = vsz_limit = 0 } service log { chroot = client_limit = 0 drop_priv_before_exec = no executable = log extra_groups = group = idle_kill = 0 privileged_group = process_limit = 1 process_min_avail = 0 protocol = service_count = 0 type = log user = vsz_limit = 18446744073709551615 B } service pop3-login { chroot = login client_limit = 0 drop_priv_before_exec = no executable = pop3-login extra_groups = group = idle_kill = 0 inet_listener pop3 { address = port = 110 ssl = no } inet_listener pop3s { address = port = 995 ssl = yes } privileged_group = process_limit = 0 process_min_avail = 0 protocol = pop3 service_count = 1 type = login user = $default_login_user vsz_limit = 64 M } service pop3 { chroot = client_limit = 1 drop_priv_before_exec = no executable = pop3 extra_groups = group = idle_kill = 0 privileged_group = process_limit = 1024 process_min_avail = 0 protocol = pop3 service_count = 1 type = unix_listener login/pop3 { group = mode = 0666 user = } user = vsz_limit = 18446744073709551615 B } service ssl-params { chroot = client_limit = 0 drop_priv_before_exec = no executable = ssl-params extra_groups = group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = service_count = 0 type = startup unix_listener login/ssl-params { group = mode = 0666 user = } user = vsz_limit = 18446744073709551615 B } shutdown_clients = yes ssl = yes ssl_ca = ssl_cert = Hi all, I'm still trying to troubleshoot my problem with dovecot-2.0.11 and creating "mail/mail" directories for a reason unknown to me, so I enabled mail_debug. It's now printing this: May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : Using permissions from /home/gdadmin/mail: mode=0755 gid=-1 May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : Permission lookup failed from /home/gdadmin/mail/mail/INBOX. Trash That file (INBOX.Trash) does exist at that location and is readable. It prints that line three times for each of INBOX.Sent, INBOX.Trash, and INBOX.Drafts. Also notice that it is creating /home/user/mail/mail. My mail_location is set to "mbox:~/mail:INBOX=/var/spool/mail/%u", so I'm really confused. I really hope someone has some ideas! Thanks so much, Best, Alex From eray.aslan at caf.com.tr Mon May 16 07:57:06 2011 From: eray.aslan at caf.com.tr (Eray Aslan) Date: Mon, 16 May 2011 07:57:06 +0300 Subject: [Dovecot] v1.2.17 released In-Reply-To: <1305129153.10421.214.camel@hurina> References: <1305129153.10421.214.camel@hurina> Message-ID: <4DD0AEA2.9030002@caf.com.tr> On 2011-05-11 6:52 PM, Timo Sirainen wrote: > http://dovecot.org/releases/1.2/dovecot-1.2.17.tar.gz > http://dovecot.org/releases/1.2/dovecot-1.2.17.tar.gz.sig Will there be a piegonhole sieve/managesieve release for 1.2.17? -- Eray From stephan at rename-it.nl Mon May 16 09:21:33 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Mon, 16 May 2011 08:21:33 +0200 Subject: [Dovecot] v1.2.17 released In-Reply-To: <4DD0AEA2.9030002@caf.com.tr> References: <1305129153.10421.214.camel@hurina> <4DD0AEA2.9030002@caf.com.tr> Message-ID: <4DD0C26D.2070405@rename-it.nl> On 5/16/2011 6:57 AM, Eray Aslan wrote: > On 2011-05-11 6:52 PM, Timo Sirainen wrote: >> http://dovecot.org/releases/1.2/dovecot-1.2.17.tar.gz >> http://dovecot.org/releases/1.2/dovecot-1.2.17.tar.gz.sig > Will there be a piegonhole sieve/managesieve release for 1.2.17? > Yes, but I won't have time for that until Wednesday. Regards, Stephan. From nebano at gmail.com Mon May 16 15:08:27 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Mon, 16 May 2011 14:08:27 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: <4DD0594D.8040504@localhost.localdomain.org> References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> <4DD054A1.9030107@localhost.localdomain.org> <4DD0594D.8040504@localhost.localdomain.org> Message-ID: Hi I have done some test. If I use a webmail as roundcube to read mail mails, when I erase a mail from Inbox and after that from trash.the command. /usr/local/dovecot/bin/doveadm dump /var/vmail1/example.org/user/mdbox/storage/|grep 'ref.*\b0\b' show mail with ref count=0 - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) But if I erase mail from Mozilla Thunderbird then I find no mail with ref count=0 and doveadm purge does nothing. It is strange I thought thunderbird was a good mail client. My thunderbird is up to date. Thanks 2011/5/16 Pascal Volk : > On 05/16/2011 12:37 AM Osvaldo Alvarez Pozo wrote: >> Hi >> thanks but I do not have doveadm-purge. I have doveadm and I can run >> it with -purge option and that's wath I did with no result. >> > > Please stop Top-posting. > > OK, if man 1 doveadm-purge didn't work for you, run doveadm purge help. > > You may check if there are some deleted mails in the mdbox: > doveadm dump /path/2/mdbox/storage | egrep 'ext 3 ref\s+\:\s+0' -c > If the printed count is greater then 0, there are deleted mails in the > mdbox. Then you can delete them permanently with doveadm purge ? > > > Regards, > Pascal > -- > The trapper recommends today: fabaceae.1113600 at localdomain.org > From tss at iki.fi Mon May 16 15:46:37 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 15:46:37 +0300 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> <4DD054A1.9030107@localhost.localdomain.org> <4DD0594D.8040504@localhost.localdomain.org> Message-ID: <1305549997.10421.250.camel@hurina> On Mon, 2011-05-16 at 14:08 +0200, Osvaldo Alvarez Pozo wrote: > But if I erase mail from Mozilla Thunderbird then I find no mail with > ref count=0 and doveadm purge does nothing. doveadm purge only purges mails that have been expunged. So I guess your TB has only marked mails \Deleted, but not actually expunged anything. From tss at iki.fi Mon May 16 15:48:39 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 15:48:39 +0300 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> Message-ID: <1305550119.10421.251.camel@hurina> Yeah, looks right. And once you've migrated everyone, change mail_location globally and remove them from userdb. On Fri, 2011-05-13 at 08:46 +0200, Osvaldo Alvarez Pozo wrote: > Ok I want to do migration without downtime > > Yes i have red that the separator depends on mailbox format and that > for maildir it is '.' > > So in my dovecot.conf I have no namespace definition and my mail-location is: > > mail_location = maildir:/var/vmail/%d/%u/Maildir > > But when I execute the dsync command: > > /usr/local/dovecot/bin/dsync -v -f -u example at example.org mirror > mdbox:/var1/vmail/example.org/example/mdbox > > i get > > dsync(root): Fatal: Mail locations must use the same virtual mailbox > hierarchy separator (specify separator for the default namespace) > > > So i have to add to my dovecot.conf > namespace { > inbox = yes > separator = . > subscriptions = yes > } > > And after finishig dsync for all mailboxes to a new location > I change separator to: > > separator = / > > as a final step I have to return the new mdbox mail location for > each user using userdb > > and my dsync command would change: > > /usr/local/dovecot/bin/dsync -v -f -u example at example.org mirror > maildir:/var/vmail/example.org/example/Maildir > > Am I rigth? > > Thanks you all > > > 2011/5/13 Timo Sirainen : > > On 13.5.2011, at 1.00, Osvaldo Alvarez Pozo wrote: > > > >> Actually I have no namespace definition. If i add namespace definition > >> for start migrating, waht about my clients? will they be able to find > >> there mail & mailboxes while I am migrating from maildir to mdbox? > > > > Your clients see the default namespace if it's not explicitly specified. That namespace has prefix="" and the separator depends on what mailbox format you're using. With Maildir that would be "." character. If you keep that there shouldn't be even any potential problems. > > > > > > > From tss at iki.fi Mon May 16 15:54:14 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 15:54:14 +0300 Subject: [Dovecot] [Dovecot-news] v2.0.13 released In-Reply-To: <4DEADAD3-8E3E-4FE9-BB75-3F88805A30EB@apple.com> References: <1305129141.10421.213.camel@hurina> <4DEADAD3-8E3E-4FE9-BB75-3F88805A30EB@apple.com> Message-ID: <1305550454.10421.253.camel@hurina> On Wed, 2011-05-11 at 17:01 -0500, Mike Abbott wrote: > Compiling dovecot-2.0.13 on OS X emits these warnings: > > user-directory.c: In function user_directory_add: > user-directory.c:79: warning: comparison between signed and unsigned > user-directory.c:84: warning: comparison between signed and unsigned On all 32 bit systems I guess. > Casting the left hand sides of the comparisons to time_t, as you do in other places, silences them: Yeah.. Hmm. I wonder if there's a reason I didn't make the timestamp just be time_t. Oh well, we still have 30 years or so to fix it. :) Applied your patch: http://hg.dovecot.org/dovecot-2.0/rev/d9d5759196ee From tss at iki.fi Mon May 16 15:56:35 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 15:56:35 +0300 Subject: [Dovecot] dovecot authentication failing In-Reply-To: References: <4DCFA978.6010806@localhost.localdomain.org> Message-ID: <1305550595.10421.254.camel@hurina> On Sun, 2011-05-15 at 10:38 -0400, David Mehler wrote: > passdb { > driver = passwd-file > args = scheme=SHA512-CRYPT username_format=%n /etc/dovecot/passwd > } > > In passwd I have: > > user:{SSHA512}hbLu+pCmhmtyKEwyAs3wv3kvHD/ryr0MoXOAq3VdB7X/g8qIE/xE9BG+eI4jhFk9pTyiCltPCjZxv5/+yK1wll2LNcw= The passdb scheme doesn't matter if all your password entries have {scheme} prefix. It doesn't hurt either though.. From tss at iki.fi Mon May 16 15:59:12 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 15:59:12 +0300 Subject: [Dovecot] dovecot proxy with nopassword and postfix sasl In-Reply-To: <4DCE5F82.2030803@simonecaruso.com> References: <4DCD22C2.4060004@simonecaruso.com> <4DCE5F82.2030803@simonecaruso.com> Message-ID: <1305550752.10421.255.camel@hurina> On Sat, 2011-05-14 at 12:54 +0200, Simone Caruso wrote: > Il 13/05/2011 15:07, Franco Rizzo ha scritto: > > Hello thank you for your answer > > > > when I have this user in my passdb file > > franco at ozzir.ch:{plain}password::::::proxy host=xx.xx.xx.xx > > postfix sasl accept only the password => password > > > > When I have this user in my passdb file > > franco at ozzir.ch:::::::nopassword proxy host=xx.xx.xx.xx > > postfix sasl accept any password > > > And i think this is all normal... > From: > http://wiki2.dovecot.org/PasswordDatabase/ExtraFields/Proxy > I don't think it is allowed behaviour for Postfix to authenticate on a dovecot > proxy. Right. If you really want to, with v2.0 you could do: protocol smtp { passdb for your sql/ldap/whatever database that has passwords } protocol !smtp { passdb for proxy without passwords } From tss at iki.fi Mon May 16 16:00:23 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 16:00:23 +0300 Subject: [Dovecot] ID RFC2971 stored anywhere when client announced it? In-Reply-To: References: Message-ID: <1305550823.10421.256.camel@hurina> On Fri, 2011-05-13 at 21:43 +0400, Nikolay Shopik wrote: > Does dovecot store RFC2971 information supplied by client, anywhere? To log, if you've configured imap_id_log setting. From r.zimmermann at siegnetz.de Mon May 16 16:49:01 2011 From: r.zimmermann at siegnetz.de (Ralf Zimmermann) Date: Mon, 16 May 2011 15:49:01 +0200 Subject: [Dovecot] user_query and mail_plugins in database Message-ID: <4DD12B4D.80809@siegnetz.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I have a problem with mail_plugins in dovecot-2.0.x. I will use mail_plugins within a database, so that I can define plugins for users in the database. But I get errors like this. - -----------------------------%<------------------------------------ lmtp(3933): Error: Can't load plugin imap_quota_plugin: Plugin is intended to be used only by imap binary (we're lmtp) - -----------------------------%<------------------------------------- Here my options from the configuration: - -----------------------------%<------------------------------------- mail_plugins = " acl quota" protocol lmtp { mail_plugins = " acl quota sieve" } protocol lda { mail_plugins = " acl quota sieve" } protocol imap { mail_plugins = " acl quota imap_quota imap_acl autocreate" } - -----------------------------%<-------------------------------------- Every protocol uses own mail_plugin definitions. So I create the following user_query: user_query = SELECT LOWER(login) AS user,home,mail,5000 AS uid,5000 AS gid,CONCAT('*:storage=',quota_mb,'MB') AS quota_rule,acl_groups,case when '%s'='lda' then 'acl quota sieve' when '%s'='lmtp' then 'acl quota sieve' when '%s'='doveadm' then 'acl quota' when '%s'='sieve' then 'acl quota' else mail_plugins end as mail_plugins FROM virtual_users WHERE ( login='%u' OR email='%u' ) AND enabled IS true; Now the configuration works. Can I use a simpler solution to configure this functionality? Ralf -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAEBAgAGBQJN0StGAAoJENVjhbwuX+/HyPQH/2hTa5k32Y1WIhVLpRtPudLr qPnk29rN4Gz+6GGwK9M6X3Shkgx1mdGEwZwzEkV/QAURgk+8k90uN+Od1gqKtLer dMhUJPJjeZbRmcxthA/fNKuAHiGCQsYSiCle0603iFq8HwG5QfWvf+IqkUuo/MzI 9bX9xBJGW40M/wAisiRLj03Y+PWe101YL3iKXbDYVuzFpMeJ3WkUoJ378ujGWyaH zjEf5sYACf9jVx6wAsthwaXheRwyxXhcQOrBldOun+rh+l809iD5ivogBrbd3o/G Uuli0LlS8b5tOXZfxIqFmVCt/1Ebo1oD/vHc9yZo1eLSqpuPZGc3qiDPP/JCMY4= =YhpJ -----END PGP SIGNATURE----- From tss at iki.fi Mon May 16 17:09:49 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 17:09:49 +0300 Subject: [Dovecot] user_query and mail_plugins in database In-Reply-To: <4DD12B4D.80809@siegnetz.de> References: <4DD12B4D.80809@siegnetz.de> Message-ID: <1305554989.10421.257.camel@hurina> On Mon, 2011-05-16 at 15:49 +0200, Ralf Zimmermann wrote: > Every protocol uses own mail_plugin definitions. So I create the > following user_query: > > user_query = SELECT LOWER(login) AS user,home,mail,5000 AS uid,5000 AS > gid,CONCAT('*:storage=',quota_mb,'MB') AS quota_rule,acl_groups,case > when '%s'='lda' then 'acl quota sieve' when '%s'='lmtp' then 'acl quota > sieve' when '%s'='doveadm' then 'acl quota' when '%s'='sieve' then 'acl > quota' else mail_plugins end as mail_plugins FROM virtual_users WHERE ( > login='%u' OR email='%u' ) AND enabled IS true; > > Now the configuration works. Can I use a simpler solution to configure > this functionality? Nope. Although you could probably hide much that query into an SQL function. If you have some ideas how to simplify this let me know. :) From tss at iki.fi Mon May 16 17:15:02 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 17:15:02 +0300 Subject: [Dovecot] Permission lookup failed with imap In-Reply-To: References: Message-ID: <1305555302.10421.260.camel@hurina> On Sun, 2011-05-15 at 21:47 -0400, Alex wrote: > I'm still trying to troubleshoot my problem with dovecot-2.0.11 and > creating "mail/mail" directories for a reason unknown to me, so I > enabled mail_debug. It's now printing this: > > May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : Using > permissions from /home/gdadmin/mail: mode=0755 gid=-1 > May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : > Permission lookup failed from /home/gdadmin/mail/mail/INBOX. > Trash > > That file (INBOX.Trash) does exist at that location and is readable. > It prints that line three times for each of INBOX.Sent, INBOX.Trash, > and INBOX.Drafts. > > Also notice that it is creating /home/user/mail/mail. My mail_location > is set to "mbox:~/mail:INBOX=/var/spool/mail/%u", so I'm really > confused. Your client probably has set a "mail/" namespace prefix. Either remove that or add a namespace to make both work: http://wiki2.dovecot.org/Namespaces Also I don't understand why you would have stuff like INBOX.Sent. Usually it would be called just "Sent", i.e. /home/gdadmin/mail/Sent. From tss at iki.fi Mon May 16 17:21:54 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 17:21:54 +0300 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> Message-ID: <1305555714.10421.264.camel@hurina> On Fri, 2011-05-13 at 09:35 +0100, a.smith at ukgrid.net wrote: > Quoting a.smith at ukgrid.net: > > > > > Ok, I just deleted the dovecot index files etc from the mailbox, > > when it recreated them all is now looking normal... > > > > When I logged into my mail today this problem has come back :S Can > anyone suggest a cause or anything else I should do? > I am correct in thinking that Dovecot normally orders emails by date right???? The way it works is that: Initially when you don't have dovecot-uidlist file, it assigns UIDs for all the files. It sorts them by the filename, which typically causes them to be sorted by their received time. After this when new files are added, the new files are sorted among themselves and then given UIDs in that order. The new files are always appended after existing UIDs, never inserted in the middle. Have you checked if there are any errors in Dovecot logs? There are some reasons why Dovecot might give a new UID to an existing mail. dovecot -n output might also be useful. From mysqlstudent at gmail.com Mon May 16 17:24:46 2011 From: mysqlstudent at gmail.com (Alex) Date: Mon, 16 May 2011 10:24:46 -0400 Subject: [Dovecot] Permission lookup failed with imap In-Reply-To: <1305555302.10421.260.camel@hurina> References: <1305555302.10421.260.camel@hurina> Message-ID: Hi, >> I'm still trying to troubleshoot my problem with dovecot-2.0.11 and >> creating "mail/mail" directories for a reason unknown to me, so I >> enabled mail_debug. It's now printing this: >> >> May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : Using >> permissions from /home/gdadmin/mail: mode=0755 gid=-1 >> May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : >> Permission lookup failed from /home/gdadmin/mail/mail/INBOX. >> Trash >> >> That file (INBOX.Trash) does exist at that location and is readable. >> It prints that line three times for each of INBOX.Sent, INBOX.Trash, >> and INBOX.Drafts. >> >> Also notice that it is creating /home/user/mail/mail. My mail_location >> is set to "mbox:~/mail:INBOX=/var/spool/mail/%u", so I'm really >> confused. > > Your client probably has set a "mail/" namespace prefix. Either remove > that or add a namespace to make both work: > http://wiki2.dovecot.org/Namespaces > > Also I don't understand why you would have stuff like INBOX.Sent. > Usually it would be called just "Sent", i.e. /home/gdadmin/mail/Sent. Ah, yes, that must be it. This was using squirrelmail as the mail client, and apparently I didn't change the namespace there after the migration. I'll try and do that now. For the INBOX.* files, I believe squirrelmail was also configured to adjust for that. If I delete the .subscription files for all users, will dovecot automatically rebuild them, so I can create a sed script to rename all the INBOX.* files to remove the INBOX. part? Thanks, Alex From tss at iki.fi Mon May 16 17:35:23 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 17:35:23 +0300 Subject: [Dovecot] when the user has no home directory In-Reply-To: References: <81B248CC-75F9-4449-9618-A712259C4A6B@iki.fi> Message-ID: <1305556523.10421.265.camel@hurina> On Wed, 2011-05-11 at 00:26 -0700, Dave Yost wrote: > Apparently I get no error message back. The connection just closes. > Perhaps Apple Mail's "(null)" is the result of the summary closing of > the connection. > > Wed 0:16:39 > 0 222 Z% telnet localhost 110 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > +OK Dovecot ready. > user xxxxx > +OK > pass xxxxx > Connection closed by foreign host. Fixed: http://hg.dovecot.org/dovecot-2.0/rev/ac006833cd66 From tss at iki.fi Mon May 16 17:36:52 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 17:36:52 +0300 Subject: [Dovecot] dovecot-lda 2.0.8 Panic: stream doesn't support seeking backwards In-Reply-To: References: <4CFEFEF2.1050204@jesstech.com> Message-ID: <1305556612.10421.266.camel@hurina> On Thu, 2011-05-05 at 18:45 +0000, Riadh Djebrouni wrote: > Hi, I'm facing the exact same problem. > Did you find a workaround? This was fixed in a newer Dovecot version. From tss at iki.fi Mon May 16 17:38:53 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 17:38:53 +0300 Subject: [Dovecot] Permission lookup failed with imap In-Reply-To: References: <1305555302.10421.260.camel@hurina> Message-ID: <1305556733.10421.268.camel@hurina> On Mon, 2011-05-16 at 10:24 -0400, Alex wrote: > If I delete the .subscription files for all users, will dovecot > automatically rebuild them, so I can create a sed script to rename all > the INBOX.* files to remove the INBOX. part? Subscriptions are managed by users. If you delete .subscriptions file, then all mailboxes are unsubscribed. There's not really any point in using subscriptions at all if all mailboxes are subscribed.. From a.smith at ukgrid.net Mon May 16 17:41:15 2011 From: a.smith at ukgrid.net (a.smith at ukgrid.net) Date: Mon, 16 May 2011 15:41:15 +0100 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <1305555714.10421.264.camel@hurina> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> <1305555714.10421.264.camel@hurina> Message-ID: <20110516154115.68191iqtqh04p7r4@webmail2.ukgrid.net> Quoting Timo Sirainen : > Have you checked if there are any errors in Dovecot logs? There are some > reasons why Dovecot might give a new UID to an existing mail. dovecot -n > output might also be useful. > > Hi Timo, thanks for the reply. I just checked and the file names are correct for the mails to be ordered chronologically, so nothing weird going on there that would cause a prob. I can't see any errors relating to this in the logs, but my logs a several thousand lines per day so is there any particular error message I should be looking for? A grep -i err doesn't show anything interesting... Here is a the output of dovecot -n: # dovecot -n # 2.0.11: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 8.2-RELEASE amd64 zfs auth_username_format = %Lu disable_plaintext_auth = no dotlock_use_excl = no first_valid_gid = 1000 first_valid_uid = 1000 lock_method = dotlock mail_fsync = always mail_location = maildir:/var/spool/mail/%d/%u mail_nfs_index = yes mail_nfs_storage = yes mail_privileged_group = vmail managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mmap_disable = yes passdb { args = /usr/local/etc/dovecot/dovecot-sql.conf driver = sql } plugin/fts = squat plugin/fts_squat = partial=4 full=10 protocols = imap pop3 service auth { unix_listener auth-client { mode = 0660 } unix_listener auth-master { mode = 0600 } user = root } service imap { vsz_limit = 1 G } service pop3 { vsz_limit = 1 G } ssl_ca = References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> <1305555714.10421.264.camel@hurina> <20110516154115.68191iqtqh04p7r4@webmail2.ukgrid.net> Message-ID: <1305558254.10421.273.camel@hurina> On Mon, 2011-05-16 at 15:41 +0100, a.smith at ukgrid.net wrote: > Quoting Timo Sirainen : > > Have you checked if there are any errors in Dovecot logs? There are some > > reasons why Dovecot might give a new UID to an existing mail. dovecot -n > > output might also be useful. > > > thanks for the reply. I just checked and the file names are correct > for the mails to be ordered chronologically, so nothing weird going on > there that would cause a prob. > I can't see any errors relating to this in the logs, but my logs a > several thousand lines per day so is there any particular error > message I should be looking for? A grep -i err doesn't show anything > interesting... Try grepping for "Warning" also. I usually put error logs to a different file. That file should stay empty (except for Dovecot stop messages). > mail_location = maildir:/var/spool/mail/%d/%u > mail_nfs_index = yes > mail_nfs_storage = yes Are you using NFS? With just one server or more? What NFS server? From a.smith at ukgrid.net Mon May 16 18:31:13 2011 From: a.smith at ukgrid.net (a.smith at ukgrid.net) Date: Mon, 16 May 2011 16:31:13 +0100 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <1305558254.10421.273.camel@hurina> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> <1305555714.10421.264.camel@hurina> <20110516154115.68191iqtqh04p7r4@webmail2.ukgrid.net> <1305558254.10421.273.camel@hurina> Message-ID: <20110516163113.12061vx7rk1vs9q8@webmail2.ukgrid.net> Quoting Timo Sirainen : > > Try grepping for "Warning" also. I usually put error logs to a different > file. That file should stay empty (except for Dovecot stop messages). Hi, I don't have a dovecot log specified in the config, so I believe everything goes to syslog which I think all ends up in either maillog or messages. I don't see anything in there with "Warning". > >> mail_location = maildir:/var/spool/mail/%d/%u >> mail_nfs_index = yes >> mail_nfs_storage = yes > > Are you using NFS? With just one server or more? What NFS server? > In this case, no I'm not using NFS. The server on which I'm seeing this problem has the maildir data on a local ZFS file system. I have a sort of poor mans cluster where I can run all the services on one of two servers which may or may not use NFS, but as mentioned in this instance there is no NFS to worry about. thanks Andy. From mysqlstudent at gmail.com Mon May 16 19:45:41 2011 From: mysqlstudent at gmail.com (Alex) Date: Mon, 16 May 2011 12:45:41 -0400 Subject: [Dovecot] Permission lookup failed with imap In-Reply-To: <1305556733.10421.268.camel@hurina> References: <1305555302.10421.260.camel@hurina> <1305556733.10421.268.camel@hurina> Message-ID: Hi, >> If I delete the .subscription files for all users, will dovecot >> automatically rebuild them, so I can create a sed script to rename all >> the INBOX.* files to remove the INBOX. part? > > Subscriptions are managed by users. If you delete .subscriptions file, > then all mailboxes are unsubscribed. There's not really any point in > using subscriptions at all if all mailboxes are subscribed.. I think that might be a better option for my users. Is there a way to automatically subscribe to all folders? Thanks again, Alex From shopik at inblock.ru Mon May 16 20:15:35 2011 From: shopik at inblock.ru (Nikolay Shopik) Date: Mon, 16 May 2011 21:15:35 +0400 Subject: [Dovecot] ID RFC2971 stored anywhere when client announced it? In-Reply-To: <1305550823.10421.256.camel@hurina> References: <1305550823.10421.256.camel@hurina> Message-ID: <4DD15BB7.1000507@inblock.ru> On 16.05.2011 17:00, Timo Sirainen wrote: > On Fri, 2011-05-13 at 21:43 +0400, Nikolay Shopik wrote: >> Does dovecot store RFC2971 information supplied by client, anywhere? > > To log, if you've configured imap_id_log setting. > > Is this proper output or bug? ID sent: name=Thunderbird, Thunderbird=version, version=3.3a4pre This is outputs after these IMAP commands 3 ID ("name" "Thunderbird" "version" "3.3a4pre") * ID NIL 3 OK ID completed. I think it should just output this ID sent: name=Thunderbird, version=3.3a4pre I'm on 1.2.16 From tss at iki.fi Tue May 17 13:12:05 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 17 May 2011 13:12:05 +0300 Subject: [Dovecot] Permission lookup failed with imap In-Reply-To: References: <1305555302.10421.260.camel@hurina> <1305556733.10421.268.camel@hurina> Message-ID: <1305627125.10421.277.camel@hurina> On Mon, 2011-05-16 at 12:45 -0400, Alex wrote: > >> If I delete the .subscription files for all users, will dovecot > >> automatically rebuild them, so I can create a sed script to rename all > >> the INBOX.* files to remove the INBOX. part? > > > > Subscriptions are managed by users. If you delete .subscriptions file, > > then all mailboxes are unsubscribed. There's not really any point in > > using subscriptions at all if all mailboxes are subscribed.. > > I think that might be a better option for my users. Is there a way to > automatically subscribe to all folders? Not easily. You could write a script using "doveadm mailbox list" output and running "doveadm mailbox subscribe" to all of them. From tss at iki.fi Tue May 17 13:13:55 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 17 May 2011 13:13:55 +0300 Subject: [Dovecot] ID RFC2971 stored anywhere when client announced it? In-Reply-To: <4DD15BB7.1000507@inblock.ru> References: <1305550823.10421.256.camel@hurina> <4DD15BB7.1000507@inblock.ru> Message-ID: <1305627235.10421.278.camel@hurina> On Mon, 2011-05-16 at 21:15 +0400, Nikolay Shopik wrote: > On 16.05.2011 17:00, Timo Sirainen wrote: > > On Fri, 2011-05-13 at 21:43 +0400, Nikolay Shopik wrote: > >> Does dovecot store RFC2971 information supplied by client, anywhere? > > > > To log, if you've configured imap_id_log setting. > > > > > Is this proper output or bug? > > ID sent: name=Thunderbird, Thunderbird=version, version=3.3a4pre Yeah, it's a bug. It was fixed in v2.0 but I didn't bother checking v1.2. Fixed there now too: http://hg.dovecot.org/dovecot-1.2/rev/32fe996d3c99 From tss at iki.fi Tue May 17 13:16:11 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 17 May 2011 13:16:11 +0300 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <20110516163113.12061vx7rk1vs9q8@webmail2.ukgrid.net> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> <1305555714.10421.264.camel@hurina> <20110516154115.68191iqtqh04p7r4@webmail2.ukgrid.net> <1305558254.10421.273.camel@hurina> <20110516163113.12061vx7rk1vs9q8@webmail2.ukgrid.net> Message-ID: <1305627371.10421.280.camel@hurina> On Mon, 2011-05-16 at 16:31 +0100, a.smith at ukgrid.net wrote: > Quoting Timo Sirainen : > > > > > Try grepping for "Warning" also. I usually put error logs to a different > > file. That file should stay empty (except for Dovecot stop messages). > > Hi, I don't have a dovecot log specified in the config, so I believe > everything goes to syslog which I think all ends up in either maillog > or messages. I don't see anything in there with "Warning". Well, difficult to say then. It kind of sounds like Dovecot suddenly doesn't see that some old message is still there (not returned by readdir()) but then later it sees that it's there again, and gives it a new UID. Although in many such cases Dovecot should notice this itself and log a warning/error about it. You could try saving a backup of dovecot-uidlist periodically and when this happens again, see what exactly changed in the file. From a.smith at ukgrid.net Tue May 17 13:55:31 2011 From: a.smith at ukgrid.net (a.smith at ukgrid.net) Date: Tue, 17 May 2011 11:55:31 +0100 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <1305627371.10421.280.camel@hurina> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> <1305555714.10421.264.camel@hurina> <20110516154115.68191iqtqh04p7r4@webmail2.ukgrid.net> <1305558254.10421.273.camel@hurina> <20110516163113.12061vx7rk1vs9q8@webmail2.ukgrid.net> <1305627371.10421.280.camel@hurina> Message-ID: <20110517115531.96555y9bd23q8bwo@webmail2.ukgrid.net> Quoting Timo Sirainen : > You could try saving a backup of dovecot-uidlist periodically and when > this happens again, see what exactly changed in the file. > Well actually I have hourly/weekly/monthly ZFS snapshots of all data so I can do this now. Here I can see that the UID changed between week 13 and 14 of 2011: ./.zfs/snapshot/WEEK13_2011/ukgrid.net/a.smith/dovecot-uidlist:1815 W5772 S5627 :1238145250.H86871P67126.mx1.ukgrid.net:2,RS ./.zfs/snapshot/WEEK14_2011/ukgrid.net/a.smith/dovecot-uidlist:40723 W5772 :1238145250.H86871P67126.mx1.ukgrid.net I believe this was due to an upgrade from Dovecot 1.2 to 2.0. Its the only change I can see of the UID in 2011 apart from when I deleted the dovecot-uidlist last Thursday. The incorrect ordering could have been occuring since the upgrade to 2.0 but I just didn't notice it. I was particularly worried about it as we have a long time issue with blackberry users being resent large chunks of email and I was wondering if this was the cause... The issue did reoccur after deleting the dovecot-uidlist last Friday, in that I had very old messages being listed in the top hundred or so emails. Unfortunately I didn't make a note of the which messages these were and all seems to be being listed correctly currently. I am now armed with the knowledge to investigate this if it happens again. One last thing, you asked previously if I used NFS and I said that in this case I wasn't. We do have NFS and we do want to use it under some circumstances with Dovecot, both server and client are FreeBSD 8.2, are there any known issues with that in conjunction with Dovecot? thanks Andy. From mail at baqs.net Tue May 17 14:59:55 2011 From: mail at baqs.net (Pierre) Date: Tue, 17 May 2011 13:59:55 +0200 Subject: [Dovecot] alternative storage taken from sql Message-ID: <20110517115955.GA30895@mail3.serarien.com> Hi list, I'm looking for a simple way to define alternative storage (ALT parameter in mail_location) from userdb query. dovecot v2 Is there a simple way to handle this ? Thanks a lot Pierre PS: I'm talking about this functionnality: http://wiki2.dovecot.org/Tools/Doveadm/Altmove From mysqlstudent at gmail.com Tue May 17 17:38:39 2011 From: mysqlstudent at gmail.com (Alex) Date: Tue, 17 May 2011 10:38:39 -0400 Subject: [Dovecot] Permission lookup failed with imap In-Reply-To: <1305627125.10421.277.camel@hurina> References: <1305555302.10421.260.camel@hurina> <1305556733.10421.268.camel@hurina> <1305627125.10421.277.camel@hurina> Message-ID: Hi, >> > Subscriptions are managed by users. If you delete .subscriptions file, >> > then all mailboxes are unsubscribed. There's not really any point in >> > using subscriptions at all if all mailboxes are subscribed.. >> >> I think that might be a better option for my users. Is there a way to >> automatically subscribe to all folders? > > Not easily. You could write a script using "doveadm mailbox list" output > and running "doveadm mailbox subscribe" to all of them. Thank you again for all your help. Best, Alex From tss at iki.fi Tue May 17 17:51:21 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 17 May 2011 17:51:21 +0300 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <20110517115531.96555y9bd23q8bwo@webmail2.ukgrid.net> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> <1305555714.10421.264.camel@hurina> <20110516154115.68191iqtqh04p7r4@webmail2.ukgrid.net> <1305558254.10421.273.camel@hurina> <20110516163113.12061vx7rk1vs9q8@webmail2.ukgrid.net> <1305627371.10421.280.camel@hurina> <20110517115531.96555y9bd23q8bwo@webmail2.ukgrid.net> Message-ID: <33E5AED9-C35F-40D0-8992-3D6F66023D08@iki.fi> On 17.5.2011, at 13.55, a.smith at ukgrid.net wrote: > One last thing, you asked previously if I used NFS and I said that in this case I wasn't. We do have NFS and we do want to use it under some circumstances with Dovecot, both server and client are FreeBSD 8.2, are there any known issues with that in conjunction with Dovecot? As long as a user's mails are accessed simultaneously by more than 1 server, it works fine. If you use more than one server, you can use http://wiki2.dovecot.org/Director to implement this easily. From tss at iki.fi Tue May 17 17:53:17 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 17 May 2011 17:53:17 +0300 Subject: [Dovecot] alternative storage taken from sql In-Reply-To: <20110517115955.GA30895@mail3.serarien.com> References: <20110517115955.GA30895@mail3.serarien.com> Message-ID: <14EE0F07-C54D-40C2-BD4B-AD4FFA1EF7E1@iki.fi> On 17.5.2011, at 14.59, Pierre wrote: > I'm looking for a simple way to define alternative storage (ALT parameter in mail_location) > from userdb query. > dovecot v2 > > Is there a simple way to handle this ? The ALT parameter is part of mail_location, so you need to override the entire mail_location. There are many examples how to do that in the wiki, e.g. http://wiki2.dovecot.org/MailLocation#Per-user_mail_locations From CMarcus at Media-Brokers.com Tue May 17 18:14:02 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Tue, 17 May 2011 11:14:02 -0400 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <33E5AED9-C35F-40D0-8992-3D6F66023D08@iki.fi> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> <1305555714.10421.264.camel@hurina> <20110516154115.68191iqtqh04p7r4@webmail2.ukgrid.net> <1305558254.10421.273.camel@hurina> <20110516163113.12061vx7rk1vs9q8@webmail2.ukgrid.net> <1305627371.10421.280.camel@hurina> <20110517115531.96555y9bd23q8bwo@webmail2.ukgrid.net> <33E5AED9-C35F-40D0-8992-3D6F66023D08@iki.fi> Message-ID: <4DD290BA.8080705@Media-Brokers.com> On 2011-05-17 10:51 AM, Timo Sirainen wrote: > On 17.5.2011, at 13.55, a.smith at ukgrid.net wrote: >> One last thing, you asked previously if I used NFS and I said that >> in this case I wasn't. We do have NFS and we do want to use it under some >> circumstances with Dovecot, both server and client are FreeBSD 8.2, are >> there any known issues with that in conjunction with Dovecot? > As long as a user's mails are accessed simultaneously by more than 1 > server, it works fine. If you use more than one server, you can use > http://wiki2.dovecot.org/Director to implement this easily. I'm almost certain Timo meant to say, 'As long as any 1 users emails are NOT accessed simultaneously by more than 1 server, it works fine.' The NFS problems happen when more than one server accesses the same users mailstore simultaneously. At least, I hope I understand this issue correctly... -- Best regards, Charles From wojciech.giel at cimr.cam.ac.uk Tue May 17 19:03:41 2011 From: wojciech.giel at cimr.cam.ac.uk (Wojciech Giel) Date: Tue, 17 May 2011 17:03:41 +0100 Subject: [Dovecot] sieve vacation reply Message-ID: <4DD29C5D.4070405@cimr.cam.ac.uk> Hi, I'm configuring postfix with dovecot and roundcube. I'm using flat files as passwdb userdb. Everything works fine except sieve vacation reply. when i send mail from ex. user dennis to tytus I get "discarding vacation response for message implicitly delivered to". What Am i doing wrong? thanks sieve: using sieve path for user's script: /home/tytus/.dovecot.sieve 2011-05-17 16:56:45 deliver(tytus): Info: sieve: opening script /home/tytus/.dovecot.sieve 2011-05-17 16:56:45 deliver(tytus): Info: sieve: executing compiled script /home/tytus/.dovecot.sieve 2011-05-17 16:56:45 deliver(tytus): Info: sieve: msgid=<20110517155641.GA3452 at badger.example.com>: discarding vacation response for message implicitly delivered to /etc/postfix/main.cf ... mailbox_command = /usr/lib/dovecot/deliver -n -m "${EXTENSION}" ... # 1.2.15: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.1 log_path: /var/log/dovecot.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps managesieve listen(default): * listen(imap): * listen(managesieve): 127.0.0.1:2000 ssl_ca_file: /etc/postfix/ssl/cacert.pem ssl_cert_file: /etc/postfix/ssl/servercrt.pem ssl_key_file: /etc/postfix/ssl/serverkey.pem ssl_cipher_list: ALL:!LOW:!SSLv2 login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(managesieve): /usr/lib/dovecot/managesieve-login mail_location: maildir:~/Maildir:INDEX=~/Maildir/indexes mail_debug: yes mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugins(default): quota imap_quota autocreate mail_plugins(imap): quota imap_quota autocreate mail_plugins(managesieve): mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve imap_client_workarounds(default): tb-extra-mailbox-sep netscape-eoh delay-newmail outlook-idle imap_client_workarounds(imap): tb-extra-mailbox-sep netscape-eoh delay-newmail outlook-idle imap_client_workarounds(managesieve): lda: postmaster_address: postmaster mail_plugins: sieve quota autocreate quota_full_tempfail: yes deliver_log_format: msgid=%m: %$ rejection_reason: Your message to <%t> was automatically rejected:%n%r log_path: /var/log/sieve.log auth default: mechanisms: plain login cram-md5 verbose: yes debug: yes debug_passwords: yes passdb: driver: pam passdb: driver: passwd-file args: scheme=cram-md5 /etc/dovecot/passwd userdb: driver: passwd-file args: /etc/dovecot/passwd userdb: driver: passwd socket: type: listen client: path: /var/spool/postfix/private/dovecot-auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 plugin: sieve: ~/.dovecot.sieve sieve_dir: ~/sieve autocreate: INBOX autocreate2: Sent autocreate3: Trash autocreate4: Drafts autocreate5: Junk autosubscribe: INBOX autosubscribe2: Sent autosubscribe3: Trash autosubscribe4: Drafts autosubscribe5: Junk quota: maildir:User quota quota_rule: Trash:storage=10M quota_warning: storage=85%% /usr/bin/dovecot-quota-warning.sh 85 quota_warning2: storage=90%% /usr/bin/dovecot-quota-warning.sh 90 quota_warning3: storage=95%% /usr/bin/dovecot-quota-warning.sh 95 From pllis at educ.ar Wed May 18 01:32:19 2011 From: pllis at educ.ar (Pablo Luchetti) Date: Tue, 17 May 2011 19:32:19 -0300 Subject: [Dovecot] vacation problem with sieve and sogo [solved] In-Reply-To: <4DCACCF1.1070803@rename-it.nl> References: <4DC456B4.7000205@educ.ar> <4DC4EF53.2050108@rename-it.nl> <4DC5DA02.5020604@educ.ar> <4DCACCF1.1070803@rename-it.nl> Message-ID: <4DD2F773.1010101@educ.ar> Hi Stephan, you were right. The problem was that there is 2 instances of dovecot running, and while I configured one of them, the other is listening in port 2000. Thanks again and my apologies for the inconvenience. Pablo Stephan Bosch wrote: > Op 8-5-2011 1:47, Pablo Luchetti schreef: >> Thanks Stephan, but doesn't work. >> I try both >> >> plugin: >> sieve: ~/sieve/ >> >> and >> >> plugin: >> sieve: ~/.dovecot.sieve > > Could you enable mail_debug and show me any relevant log lines? > > Regards, > > Stephan. > From nyoman.bogi at gmail.com Wed May 18 04:48:37 2011 From: nyoman.bogi at gmail.com (nyoman.bogi at gmail.com) Date: Wed, 18 May 2011 08:48:37 +0700 Subject: [Dovecot] newbie: can not authenticate using dovecot Message-ID: Hi all, This is the first time I used Dovecot and it's perfectly run : dev# ps ax | grep dove 77332 ?? Ss 0:00.30 /usr/local/sbin/dovecot -c /usr/local/etc/dovecot.con 77333 ?? S 0:00.10 dovecot-auth 77334 ?? I 0:00.02 dovecot-auth -w 81495 0 S+ 0:00.00 grep dove But when I try to connect to Dovecot's POP3 Server : dev# telnet 127.0.0.1 110 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK Dovecot ready. user bogi +OK pass bogi Connection closed by foreign host. Is there something I missed in Dovecot's configuration? This is my configuration : dev# dovecot --version 1.2.16 dev# dovecot -n # 1.2.16: /usr/local/etc/dovecot.conf # OS: FreeBSD 8.2-RELEASE i386 protocols: pop3 listen: 127.0.0.1:110 ssl: no disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/pop3-login verbose_proctitle: yes first_valid_uid: 1000 first_valid_gid: 1000 mail_privileged_group: mail mail_location: mbox:~/mail/:INBOX=/var/mail/%u mail_executable: /usr/local/libexec/dovecot/pop3 mail_plugin_dir: /usr/local/lib/dovecot/pop3 pop3_client_workarounds: outlook-no-nuls oe-ns-eoh lda: sendmail_path: /usr/sbin/sendmail auth default: mechanisms: plain login username_format: %Lu passdb: driver: pam args: session=yes dovecot userdb: driver: passwd args: blocking=yes socket: type: listen client: path: /var/run/dovecot/auth-client mode: 432 master: path: /var/run/dovecot/auth-master mode: 384 From nyoman.bogi at gmail.com Wed May 18 07:06:30 2011 From: nyoman.bogi at gmail.com (nyoman.bogi at gmail.com) Date: Wed, 18 May 2011 11:06:30 +0700 Subject: [Dovecot] newbie: can not authenticate using dovecot In-Reply-To: References: Message-ID: So sorry guys I've found the problem after activating Dovecot's log. After I use "mail_location = mbox:/var/mail/:INBOX=/var/mail/%u" everything works just fine. Thank you and sorry for my newbie question. regards. Bogi Aditya IM Telkom On Wed, May 18, 2011 at 8:48 AM, nyoman.bogi at gmail.com < nyoman.bogi at gmail.com> wrote: > Hi all, > > This is the first time I used Dovecot and it's perfectly run : > dev# ps ax | grep dove > 77332 ?? Ss 0:00.30 /usr/local/sbin/dovecot -c > /usr/local/etc/dovecot.con > 77333 ?? S 0:00.10 dovecot-auth > 77334 ?? I 0:00.02 dovecot-auth -w > 81495 0 S+ 0:00.00 grep dove > > But when I try to connect to Dovecot's POP3 Server : > dev# telnet 127.0.0.1 110 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > +OK Dovecot ready. > user bogi > +OK > pass bogi > Connection closed by foreign host. > > Is there something I missed in Dovecot's configuration? > > > This is my configuration : > > dev# dovecot --version > 1.2.16 > > dev# dovecot -n > # 1.2.16: /usr/local/etc/dovecot.conf > # OS: FreeBSD 8.2-RELEASE i386 > protocols: pop3 > listen: 127.0.0.1:110 > ssl: no > disable_plaintext_auth: no > login_dir: /var/run/dovecot/login > login_executable: /usr/local/libexec/dovecot/pop3-login > verbose_proctitle: yes > first_valid_uid: 1000 > first_valid_gid: 1000 > mail_privileged_group: mail > mail_location: mbox:~/mail/:INBOX=/var/mail/%u > mail_executable: /usr/local/libexec/dovecot/pop3 > mail_plugin_dir: /usr/local/lib/dovecot/pop3 > pop3_client_workarounds: outlook-no-nuls oe-ns-eoh > lda: > sendmail_path: /usr/sbin/sendmail > auth default: > mechanisms: plain login > username_format: %Lu > passdb: > driver: pam > args: session=yes dovecot > userdb: > driver: passwd > args: blocking=yes > socket: > type: listen > client: > path: /var/run/dovecot/auth-client > mode: 432 > master: > path: /var/run/dovecot/auth-master > mode: 384 > > From tss at iki.fi Wed May 18 11:23:02 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 18 May 2011 11:23:02 +0300 Subject: [Dovecot] newbie: can not authenticate using dovecot In-Reply-To: References: Message-ID: <19F3CB90-A4DF-4F33-AAC6-4CEE1477FB09@iki.fi> On 18.5.2011, at 7.06, nyoman.bogi at gmail.com wrote: > I've found the problem after activating Dovecot's log. > After I use "mail_location = mbox:/var/mail/:INBOX=/var/mail/%u" > everything works just fine. That's not a good way to do it. It doesn't break with one user, but you'll start getting into trouble with more users since everyone tries to write to /var/mail/.imap/INBOX/* index files, thinking they own it. See the bottom of http://wiki.dovecot.org/MailLocation/Mbox From nyoman.bogi at gmail.com Wed May 18 11:36:20 2011 From: nyoman.bogi at gmail.com (nyoman.bogi at gmail.com) Date: Wed, 18 May 2011 15:36:20 +0700 Subject: [Dovecot] newbie: can not authenticate using dovecot In-Reply-To: <19F3CB90-A4DF-4F33-AAC6-4CEE1477FB09@iki.fi> References: <19F3CB90-A4DF-4F33-AAC6-4CEE1477FB09@iki.fi> Message-ID: Thanks for the advice Sir, when I use the configuration "mail_location = mbox:~/mail/:INBOX=/var/mail/%u" and look at the Dovecot's log why it's rejecting my authentication : May 18 09:26:29 pop3-login: Info: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured May 18 09:26:29 POP3(bogi): Error: mail_location: mbox: mkdir(/nonexistent/mail) failed: Permission denied (euid=1005(bogi) egid=1005(bogi)) May 18 09:26:29 POP3(bogi): Fatal: Namespace initialization failed May 18 09:27:45 dovecot: Warning: Killed with signal 15 (by pid=82713 uid=0 code=kill) And Yes, I create all user with no home directory (/nonexistent) and no shell (basically all user will have only mail spool in /var/mail) any suggestion to avoid this? should I use a new directory i.e. /var/mail/dovecot with world writable to accommodate this? thanks in advance From tss at iki.fi Wed May 18 15:24:24 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 18 May 2011 15:24:24 +0300 Subject: [Dovecot] newbie: can not authenticate using dovecot In-Reply-To: References: <19F3CB90-A4DF-4F33-AAC6-4CEE1477FB09@iki.fi> Message-ID: <93506147-AF8A-4D94-872E-AF0D6285253C@iki.fi> I suggest you do as the wiki URL I gave explained. Create a non-writable empty directory with indexes disabled. On 18.5.2011, at 11.36, nyoman.bogi at gmail.com wrote: > Thanks for the advice Sir, > > when I use the configuration "mail_location = > mbox:~/mail/:INBOX=/var/mail/%u" > and look at the Dovecot's log why it's rejecting my authentication : > > May 18 09:26:29 pop3-login: Info: Login: user=, method=PLAIN, > rip=127.0.0.1, lip=127.0.0.1, secured > May 18 09:26:29 POP3(bogi): Error: mail_location: mbox: > mkdir(/nonexistent/mail) failed: Permission denied (euid=1005(bogi) > egid=1005(bogi)) > May 18 09:26:29 POP3(bogi): Fatal: Namespace initialization failed > May 18 09:27:45 dovecot: Warning: Killed with signal 15 (by pid=82713 uid=0 > code=kill) > > And Yes, I create all user with no home directory (/nonexistent) and no > shell > (basically all user will have only mail spool in /var/mail) > > any suggestion to avoid this? > > should I use a new directory i.e. /var/mail/dovecot with world writable to > accommodate this? > > thanks in advance From gonzalo at sepp0.com.ar Wed May 18 16:08:37 2011 From: gonzalo at sepp0.com.ar (Gonzalo Rodriguez) Date: Wed, 18 May 2011 10:08:37 -0300 Subject: [Dovecot] Dovecot deliver Message-ID: Hi all, I have a problem with my dovecot/postfix configuration: here is my dovecot -n # 1.2.16: /etc/dovecot.conf Warning: fd limit 128 is lower than what Dovecot can use under full load (more than 768). Either grow the limit or change login_max_processes_count and max_mail_processes settings # OS: OpenBSD 4.9 i386 nfs base_dir: /var/dovecot/ log_path: /var/log/dovecot protocols: imaps pop3s login_dir: /var/dovecot/login login_executable(default): /usr/local/libexec/dovecot/imap-login login_executable(imap): /usr/local/libexec/dovecot/imap-login login_executable(pop3): /usr/local/libexec/dovecot/pop3-login login_user: _dovecot mail_location: maildir:/var/www/datos/correo/foobar.com.ar/%n:LAYOUT=fs mail_debug: yes mail_nfs_storage: yes mail_nfs_index: yes mbox_write_locks: fcntl mail_executable(default): /usr/local/libexec/dovecot/imap mail_executable(imap): /usr/local/libexec/dovecot/imap mail_executable(pop3): /usr/local/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/local/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(pop3): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh lda: mail_plugins: sieve postmaster_address: postmaster at foobar.com.ar log_path: /var/log/dovecot-deliver-errors.log info_log_path: /var/log/dovecot-deliver.log auth default: mechanisms: login plain verbose: yes debug: yes debug_passwords: yes passdb: driver: bsdauth userdb: driver: static args: uid=vmail gid=vmail home=/var/www/datos/correo/foobar.com.ar/%n, allow_all_users=yes socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: _postfix group: _postfix master: path: /var/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: sieve_global_dir: /var/sieve sieve_global_path: /var/sieve/global-default.sieve sieve: /var/sieve/%n.sieve I use bsdauth to system users auth againts Active-Directory, and I use dovecot to deliver the mails, in my postfix master.cf I have this: ## Deliver con Dovecot en ## Mailboxes dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient} The problem is I don't any process like this: pipe -n dovecot -t unix flags=DRhu user=vmail /usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient} And in the dovecot log I don't see anything, but in maillog I have: May 18 09:49:35 FOOBAR-0010 postfix/local[16584]: 8808D26125: to=, relay=local, delay=0.92, delays=0.91/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox) But the mail it's not in the mailbox, what is wrong? any hint? the storage is a NFS with centos. cheers From dovecot.user at seibercom.net Wed May 18 18:23:50 2011 From: dovecot.user at seibercom.net (Jerry) Date: Wed, 18 May 2011 11:23:50 -0400 Subject: [Dovecot] Dovecot deliver In-Reply-To: References: Message-ID: <20110518112350.53b2861d@scorpio> On Wed, 18 May 2011 10:08:37 -0300 Gonzalo Rodriguez articulated: > Hi all, > > I have a problem with my dovecot/postfix configuration: > > here is my dovecot -n > > > # 1.2.16: /etc/dovecot.conf > Warning: fd limit 128 is lower than what Dovecot can use under full > load (more than 768). Either grow the limit or change > login_max_processes_count and max_mail_processes settings > # OS: OpenBSD 4.9 i386 nfs > base_dir: /var/dovecot/ > log_path: /var/log/dovecot > protocols: imaps pop3s > login_dir: /var/dovecot/login > login_executable(default): /usr/local/libexec/dovecot/imap-login > login_executable(imap): /usr/local/libexec/dovecot/imap-login > login_executable(pop3): /usr/local/libexec/dovecot/pop3-login > login_user: _dovecot > mail_location: > maildir:/var/www/datos/correo/foobar.com.ar/%n:LAYOUT=fs mail_debug: > yes mail_nfs_storage: yes > mail_nfs_index: yes > mbox_write_locks: fcntl > mail_executable(default): /usr/local/libexec/dovecot/imap > mail_executable(imap): /usr/local/libexec/dovecot/imap > mail_executable(pop3): /usr/local/libexec/dovecot/pop3 > mail_plugin_dir(default): /usr/local/lib/dovecot/imap > mail_plugin_dir(imap): /usr/local/lib/dovecot/imap > mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 > imap_client_workarounds(default): delay-newmail outlook-idle > netscape-eoh tb-extra-mailbox-sep > imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh > tb-extra-mailbox-sep > imap_client_workarounds(pop3): > pop3_client_workarounds(default): > pop3_client_workarounds(imap): > pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh > lda: > mail_plugins: sieve > postmaster_address: postmaster at foobar.com.ar > log_path: /var/log/dovecot-deliver-errors.log > info_log_path: /var/log/dovecot-deliver.log > auth default: > mechanisms: login plain > verbose: yes > debug: yes > debug_passwords: yes > passdb: > driver: bsdauth > userdb: > driver: static > args: uid=vmail gid=vmail > home=/var/www/datos/correo/foobar.com.ar/%n, allow_all_users=yes > socket: > type: listen > client: > path: /var/spool/postfix/private/auth > mode: 432 > user: _postfix > group: _postfix > master: > path: /var/dovecot/auth-master > mode: 384 > user: vmail > group: vmail > plugin: > sieve_global_dir: /var/sieve > sieve_global_path: /var/sieve/global-default.sieve > sieve: /var/sieve/%n.sieve > > > I use bsdauth to system users auth againts Active-Directory, and I use > dovecot to deliver the mails, in my postfix master.cf I have this: > > > ## Deliver con Dovecot en > ## Mailboxes > dovecot unix - n n - - pipe > flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver > -f ${sender} -d ${recipient} > > > > The problem is I don't any process like this: > > > pipe -n dovecot -t unix flags=DRhu user=vmail > /usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient} > > > And in the dovecot log I don't see anything, but in maillog I have: > > > May 18 09:49:35 FOOBAR-0010 postfix/local[16584]: 8808D26125: > to=, relay=local, delay=0.92, > delays=0.91/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox) > > > But the mail it's not in the mailbox, what is wrong? any hint? the > storage is a NFS with centos. If I am reading this correctly, the mail is never being delivered to Dovecot. You need to do the following: 1) Read the documentation at: Pay particular attention to the "Reporting problems to postfix-users at postfix.org at the end of the document. specifically: When reporting a problem, be sure to include the following information. A summary of the problem. Please do not just send some logging without explanation of what YOU believe is wrong. Complete error messages. Please use cut-and-paste, or use attachments, instead of reciting information from memory. Postfix logging. See the text at the top of the DEBUG_README document to find out where logging is stored. Please do not frustrate the helpers by word wrapping the logging. If the logging is more than a few kbytes of text, consider posting an URL on a web or ftp site. Output from "postconf -n". Please do not send your main.cf file, or 500+ lines of postconf output. Better, provide output from the postfinger tool. This can be found at http://ftp.wl0.org/SOURCES/postfinger. The use of the "postfinger" tool is always the best procedure. Then, post the above on the Postfix forum. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From jortega at onuva.com Wed May 18 18:41:23 2011 From: jortega at onuva.com (Julio C. Ortega) Date: Wed, 18 May 2011 11:11:23 -0430 Subject: [Dovecot] Dovecot deliver In-Reply-To: References: Message-ID: <4DD3E8A3.8000603@onuva.com> El 18/05/11 08:38, Gonzalo Rodriguez escribi?: > Hi all, > > I have a problem with my dovecot/postfix configuration: > > here is my dovecot -n > > > # 1.2.16: /etc/dovecot.conf > Warning: fd limit 128 is lower than what Dovecot can use under full > load (more than 768). Either grow the limit or change > login_max_processes_count and max_mail_processes settings > # OS: OpenBSD 4.9 i386 nfs > base_dir: /var/dovecot/ > log_path: /var/log/dovecot > protocols: imaps pop3s > login_dir: /var/dovecot/login > login_executable(default): /usr/local/libexec/dovecot/imap-login > login_executable(imap): /usr/local/libexec/dovecot/imap-login > login_executable(pop3): /usr/local/libexec/dovecot/pop3-login > login_user: _dovecot > mail_location: maildir:/var/www/datos/correo/foobar.com.ar/%n:LAYOUT=fs > mail_debug: yes > mail_nfs_storage: yes > mail_nfs_index: yes > mbox_write_locks: fcntl > mail_executable(default): /usr/local/libexec/dovecot/imap > mail_executable(imap): /usr/local/libexec/dovecot/imap > mail_executable(pop3): /usr/local/libexec/dovecot/pop3 > mail_plugin_dir(default): /usr/local/lib/dovecot/imap > mail_plugin_dir(imap): /usr/local/lib/dovecot/imap > mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 > imap_client_workarounds(default): delay-newmail outlook-idle > netscape-eoh tb-extra-mailbox-sep > imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh > tb-extra-mailbox-sep > imap_client_workarounds(pop3): > pop3_client_workarounds(default): > pop3_client_workarounds(imap): > pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh > lda: > mail_plugins: sieve > postmaster_address: postmaster at foobar.com.ar > log_path: /var/log/dovecot-deliver-errors.log > info_log_path: /var/log/dovecot-deliver.log > auth default: > mechanisms: login plain > verbose: yes > debug: yes > debug_passwords: yes > passdb: > driver: bsdauth > userdb: > driver: static > args: uid=vmail gid=vmail > home=/var/www/datos/correo/foobar.com.ar/%n, allow_all_users=yes > socket: > type: listen > client: > path: /var/spool/postfix/private/auth > mode: 432 > user: _postfix > group: _postfix > master: > path: /var/dovecot/auth-master > mode: 384 > user: vmail > group: vmail > plugin: > sieve_global_dir: /var/sieve > sieve_global_path: /var/sieve/global-default.sieve > sieve: /var/sieve/%n.sieve > > > I use bsdauth to system users auth againts Active-Directory, and I use > dovecot to deliver the mails, in my postfix master.cf I have this: > > > ## Deliver con Dovecot en > ## Mailboxes > dovecot unix - n n - - pipe > flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver > -f ${sender} -d ${recipient} > > > > The problem is I don't any process like this: > > > pipe -n dovecot -t unix flags=DRhu user=vmail > /usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient} > > > And in the dovecot log I don't see anything, but in maillog I have: > > > May 18 09:49:35 FOOBAR-0010 postfix/local[16584]: 8808D26125: > to=, relay=local, delay=0.92, > delays=0.91/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox) > > > But the mail it's not in the mailbox, what is wrong? any hint? the > storage is a NFS with centos. > > cheers Greetings Gonzalo. You should configure postfix to use deliver explicitly. main.cf: mailbox_command = /usr/lib/dovecot/deliver Kind regards -- ------------------------------------ Julio C. Ortega ONUVA http://www.onuva.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: From gonzalo at sepp0.com.ar Wed May 18 19:47:19 2011 From: gonzalo at sepp0.com.ar (Gonzalo Rodriguez) Date: Wed, 18 May 2011 13:47:19 -0300 Subject: [Dovecot] Dovecot deliver In-Reply-To: <4DD3E8A3.8000603@onuva.com> References: <4DD3E8A3.8000603@onuva.com> Message-ID: sorry first my postconf alias_database = hash:/etc/postfix/aliases command_directory = /usr/local/sbin config_directory = /etc/postfix daemon_directory = /usr/local/libexec/postfix data_directory = /var/postfix debug_peer_level = 2 disable_vrfy_command = yes mail_owner = _postfix mailbox_command = /usr/local/libexec/dovecot/deliver mydestination = $myhostname mydomain = foobar.com.ar myhostname = foobar.com.ar mynetworks = 127.0.0.0/8 10.65.3.120 myorigin = $mydomain parent_domain_matches_subdomains = queue_directory = /var/spool/postfix relay_domains = $mydestination setgid_group = _postdrop smtp_starttls_timeout = 300s smtp_tls_cert_file = /etc/ssl/foobar.crt smtp_tls_key_file = /etc/ssl/private/foobar.key smtp_tls_loglevel = 1 smtp_tls_note_starttls_offer = yes smtp_tls_session_cache_timeout = 3600s smtp_use_tls = yes smtpd_banner = $myhostname ESMTP smtpd_etrn_restrictions = reject smtpd_helo_required = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_sender_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_rbl_client cbl.abuseat.org, reject_rbl_client bl.spamcop.net smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot smtpd_tls_cert_file = /etc/ssl/foobar.crt smtpd_tls_key_file = /etc/ssl/private/foobar.key smtpd_tls_loglevel = 1 smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes tls_random_source = dev:/dev/urandom virtual_alias_maps = hash:/var/www/datos/correo/virtual/aliases/foobar.com.ar virtual_gid_maps = static:5001 virtual_mailbox_base = /var/www/datos/correo virtual_mailbox_domains = hash:/var/www/datos/correo/virtual/mailbox/domains virtual_mailbox_maps = hash:/var/www/datos/correo/virtual/mailbox/mailboxes virtual_minimum_uid = 5000 virtual_transport = dovecot virtual_uid_maps = static:5001 I add the line: mailbox_command = /usr/lib/dovecot/deliver Like Julio says, and works, but now I have this in my dovecot-deliver-error.log: May 18 13:39:32 deliver(gonzalor): Error: open(/var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/tmp/1305736772.M157290P19363.FOOBAR-0010) failed: Permission denied May 18 13:42:04 deliver(gonzalor): Error: open(/var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/dovecot.index.log) failed: Permission denied (euid=1003(gonzalor) egid=10(users) missing +w perm: /var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/dovecot.index.log) May 18 13:42:04 deliver(gonzalor): Error: open(/var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/tmp/1305736924.M208261P12143.FOOBAR-0010) failed: Permission denied any hint? regards 2011/5/18 Julio C. Ortega : > El 18/05/11 08:38, Gonzalo Rodriguez escribi?: >> Hi all, >> >> I have a problem with my dovecot/postfix configuration: >> >> here is my dovecot -n >> >> >> # 1.2.16: /etc/dovecot.conf >> Warning: fd limit 128 is lower than what Dovecot can use under full >> load (more than 768). Either grow the limit or change >> login_max_processes_count and max_mail_processes settings >> # OS: OpenBSD 4.9 i386 ?nfs >> base_dir: /var/dovecot/ >> log_path: /var/log/dovecot >> protocols: imaps pop3s >> login_dir: /var/dovecot/login >> login_executable(default): /usr/local/libexec/dovecot/imap-login >> login_executable(imap): /usr/local/libexec/dovecot/imap-login >> login_executable(pop3): /usr/local/libexec/dovecot/pop3-login >> login_user: _dovecot >> mail_location: maildir:/var/www/datos/correo/foobar.com.ar/%n:LAYOUT=fs >> mail_debug: yes >> mail_nfs_storage: yes >> mail_nfs_index: yes >> mbox_write_locks: fcntl >> mail_executable(default): /usr/local/libexec/dovecot/imap >> mail_executable(imap): /usr/local/libexec/dovecot/imap >> mail_executable(pop3): /usr/local/libexec/dovecot/pop3 >> mail_plugin_dir(default): /usr/local/lib/dovecot/imap >> mail_plugin_dir(imap): /usr/local/lib/dovecot/imap >> mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 >> imap_client_workarounds(default): delay-newmail outlook-idle >> netscape-eoh tb-extra-mailbox-sep >> imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh >> tb-extra-mailbox-sep >> imap_client_workarounds(pop3): >> pop3_client_workarounds(default): >> pop3_client_workarounds(imap): >> pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh >> lda: >> ? mail_plugins: sieve >> ? postmaster_address: postmaster at foobar.com.ar >> ? log_path: /var/log/dovecot-deliver-errors.log >> ? info_log_path: /var/log/dovecot-deliver.log >> auth default: >> ? mechanisms: login plain >> ? verbose: yes >> ? debug: yes >> ? debug_passwords: yes >> ? passdb: >> ? ? driver: bsdauth >> ? userdb: >> ? ? driver: static >> ? ? args: uid=vmail gid=vmail >> home=/var/www/datos/correo/foobar.com.ar/%n, allow_all_users=yes >> ? socket: >> ? ? type: listen >> ? ? client: >> ? ? ? path: /var/spool/postfix/private/auth >> ? ? ? mode: 432 >> ? ? ? user: _postfix >> ? ? ? group: _postfix >> ? ? master: >> ? ? ? path: /var/dovecot/auth-master >> ? ? ? mode: 384 >> ? ? ? user: vmail >> ? ? ? group: vmail >> plugin: >> ? sieve_global_dir: /var/sieve >> ? sieve_global_path: /var/sieve/global-default.sieve >> ? sieve: /var/sieve/%n.sieve >> >> >> I use bsdauth to system users auth againts Active-Directory, and I use >> dovecot to deliver the mails, in my postfix master.cf I have this: >> >> >> ## Deliver con Dovecot en >> ## Mailboxes >> dovecot ? unix ?- ? ? ? n ? ? ? n ? ? ? - ? ? ? - ? ? ? pipe >> ? flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver >> -f ${sender} -d ${recipient} >> >> >> >> The problem is I don't any process like this: >> >> >> pipe -n dovecot -t unix flags=DRhu user=vmail >> /usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient} >> >> >> And in the dovecot log I don't see anything, but in maillog I have: >> >> >> May 18 09:49:35 FOOBAR-0010 postfix/local[16584]: 8808D26125: >> to=, relay=local, delay=0.92, >> delays=0.91/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox) >> >> >> But the mail it's not in the mailbox, what is wrong? any hint? the >> storage is a NFS with centos. >> >> cheers > > Greetings Gonzalo. > > You should configure postfix to use deliver explicitly. > > main.cf: > mailbox_command = /usr/lib/dovecot/deliver > > Kind regards > > -- > ------------------------------------ > Julio C. Ortega > ONUVA > http://www.onuva.com > > From gonzalo at sepp0.com.ar Wed May 18 19:48:58 2011 From: gonzalo at sepp0.com.ar (Gonzalo Rodriguez) Date: Wed, 18 May 2011 13:48:58 -0300 Subject: [Dovecot] Dovecot deliver In-Reply-To: References: <4DD3E8A3.8000603@onuva.com> Message-ID: I forgot: $ ls -al total 136 drwxr-xr-x 6 vmail vmail 4096 May 16 16:48 . drwxr-xr-x 8 vmail vmail 4096 May 17 15:47 .. drwx------ 5 vmail vmail 4096 May 18 09:47 Drafts drwxr-xr-x 5 vmail vmail 4096 May 18 13:10 INBOX drwx------ 5 vmail vmail 4096 May 17 17:24 Sent drwx------ 5 vmail vmail 4096 May 18 12:39 Trash -rw------- 1 vmail vmail 8 May 16 16:48 dovecot-uidvalidity -rw------- 1 vmail vmail 0 May 11 2001 dovecot-uidvalidity.4dce94ed -rw------- 1 vmail vmail 18 May 16 16:48 subscriptions 2011/5/18 Gonzalo Rodriguez : > sorry first my postconf > > alias_database = hash:/etc/postfix/aliases > command_directory = /usr/local/sbin > config_directory = /etc/postfix > daemon_directory = /usr/local/libexec/postfix > data_directory = /var/postfix > debug_peer_level = 2 > disable_vrfy_command = yes > mail_owner = _postfix > mailbox_command = /usr/local/libexec/dovecot/deliver > mydestination = $myhostname > mydomain = foobar.com.ar > myhostname = foobar.com.ar > mynetworks = 127.0.0.0/8 10.65.3.120 > myorigin = $mydomain > parent_domain_matches_subdomains = > queue_directory = /var/spool/postfix > relay_domains = $mydestination > setgid_group = _postdrop > smtp_starttls_timeout = 300s > smtp_tls_cert_file = /etc/ssl/foobar.crt > smtp_tls_key_file = /etc/ssl/private/foobar.key > smtp_tls_loglevel = 1 > smtp_tls_note_starttls_offer = yes > smtp_tls_session_cache_timeout = 3600s > smtp_use_tls = yes > smtpd_banner = $myhostname ESMTP > smtpd_etrn_restrictions = reject > smtpd_helo_required = yes > smtpd_recipient_restrictions = permit_mynetworks, > permit_sasl_authenticated, ? ? ? reject_unauth_destination, > reject_invalid_hostname, ? ? ? ?reject_non_fqdn_hostname, > reject_unknown_sender_domain, ? reject_non_fqdn_sender, > reject_non_fqdn_recipient, ? ? ?reject_rbl_client cbl.abuseat.org, > ?reject_rbl_client bl.spamcop.net > smtpd_sasl_auth_enable = yes > smtpd_sasl_authenticated_header = yes > smtpd_sasl_path = private/auth > smtpd_sasl_type = dovecot > smtpd_tls_cert_file = /etc/ssl/foobar.crt > smtpd_tls_key_file = /etc/ssl/private/foobar.key > smtpd_tls_loglevel = 1 > smtpd_tls_session_cache_timeout = 3600s > smtpd_use_tls = yes > tls_random_source = dev:/dev/urandom > virtual_alias_maps = hash:/var/www/datos/correo/virtual/aliases/foobar.com.ar > virtual_gid_maps = static:5001 > virtual_mailbox_base = /var/www/datos/correo > virtual_mailbox_domains = hash:/var/www/datos/correo/virtual/mailbox/domains > virtual_mailbox_maps = hash:/var/www/datos/correo/virtual/mailbox/mailboxes > virtual_minimum_uid = 5000 > virtual_transport = dovecot > virtual_uid_maps = static:5001 > > > I add the line: > > mailbox_command = /usr/lib/dovecot/deliver > > Like Julio says, and works, but now I have this in my dovecot-deliver-error.log: > > May 18 13:39:32 deliver(gonzalor): Error: > open(/var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/tmp/1305736772.M157290P19363.FOOBAR-0010) > failed: Permission denied > May 18 13:42:04 deliver(gonzalor): Error: > open(/var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/dovecot.index.log) > failed: Permission denied (euid=1003(gonzalor) egid=10(users) missing > +w perm: /var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/dovecot.index.log) > May 18 13:42:04 deliver(gonzalor): Error: > open(/var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/tmp/1305736924.M208261P12143.FOOBAR-0010) > failed: Permission denied > > > any hint? > > regards > > 2011/5/18 Julio C. Ortega : >> El 18/05/11 08:38, Gonzalo Rodriguez escribi?: >>> Hi all, >>> >>> I have a problem with my dovecot/postfix configuration: >>> >>> here is my dovecot -n >>> >>> >>> # 1.2.16: /etc/dovecot.conf >>> Warning: fd limit 128 is lower than what Dovecot can use under full >>> load (more than 768). Either grow the limit or change >>> login_max_processes_count and max_mail_processes settings >>> # OS: OpenBSD 4.9 i386 ?nfs >>> base_dir: /var/dovecot/ >>> log_path: /var/log/dovecot >>> protocols: imaps pop3s >>> login_dir: /var/dovecot/login >>> login_executable(default): /usr/local/libexec/dovecot/imap-login >>> login_executable(imap): /usr/local/libexec/dovecot/imap-login >>> login_executable(pop3): /usr/local/libexec/dovecot/pop3-login >>> login_user: _dovecot >>> mail_location: maildir:/var/www/datos/correo/foobar.com.ar/%n:LAYOUT=fs >>> mail_debug: yes >>> mail_nfs_storage: yes >>> mail_nfs_index: yes >>> mbox_write_locks: fcntl >>> mail_executable(default): /usr/local/libexec/dovecot/imap >>> mail_executable(imap): /usr/local/libexec/dovecot/imap >>> mail_executable(pop3): /usr/local/libexec/dovecot/pop3 >>> mail_plugin_dir(default): /usr/local/lib/dovecot/imap >>> mail_plugin_dir(imap): /usr/local/lib/dovecot/imap >>> mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 >>> imap_client_workarounds(default): delay-newmail outlook-idle >>> netscape-eoh tb-extra-mailbox-sep >>> imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh >>> tb-extra-mailbox-sep >>> imap_client_workarounds(pop3): >>> pop3_client_workarounds(default): >>> pop3_client_workarounds(imap): >>> pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh >>> lda: >>> ? mail_plugins: sieve >>> ? postmaster_address: postmaster at foobar.com.ar >>> ? log_path: /var/log/dovecot-deliver-errors.log >>> ? info_log_path: /var/log/dovecot-deliver.log >>> auth default: >>> ? mechanisms: login plain >>> ? verbose: yes >>> ? debug: yes >>> ? debug_passwords: yes >>> ? passdb: >>> ? ? driver: bsdauth >>> ? userdb: >>> ? ? driver: static >>> ? ? args: uid=vmail gid=vmail >>> home=/var/www/datos/correo/foobar.com.ar/%n, allow_all_users=yes >>> ? socket: >>> ? ? type: listen >>> ? ? client: >>> ? ? ? path: /var/spool/postfix/private/auth >>> ? ? ? mode: 432 >>> ? ? ? user: _postfix >>> ? ? ? group: _postfix >>> ? ? master: >>> ? ? ? path: /var/dovecot/auth-master >>> ? ? ? mode: 384 >>> ? ? ? user: vmail >>> ? ? ? group: vmail >>> plugin: >>> ? sieve_global_dir: /var/sieve >>> ? sieve_global_path: /var/sieve/global-default.sieve >>> ? sieve: /var/sieve/%n.sieve >>> >>> >>> I use bsdauth to system users auth againts Active-Directory, and I use >>> dovecot to deliver the mails, in my postfix master.cf I have this: >>> >>> >>> ## Deliver con Dovecot en >>> ## Mailboxes >>> dovecot ? unix ?- ? ? ? n ? ? ? n ? ? ? - ? ? ? - ? ? ? pipe >>> ? flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver >>> -f ${sender} -d ${recipient} >>> >>> >>> >>> The problem is I don't any process like this: >>> >>> >>> pipe -n dovecot -t unix flags=DRhu user=vmail >>> /usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient} >>> >>> >>> And in the dovecot log I don't see anything, but in maillog I have: >>> >>> >>> May 18 09:49:35 FOOBAR-0010 postfix/local[16584]: 8808D26125: >>> to=, relay=local, delay=0.92, >>> delays=0.91/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox) >>> >>> >>> But the mail it's not in the mailbox, what is wrong? any hint? the >>> storage is a NFS with centos. >>> >>> cheers >> >> Greetings Gonzalo. >> >> You should configure postfix to use deliver explicitly. >> >> main.cf: >> mailbox_command = /usr/lib/dovecot/deliver >> >> Kind regards >> >> -- >> ------------------------------------ >> Julio C. Ortega >> ONUVA >> http://www.onuva.com >> >> > From dovecot.user at seibercom.net Wed May 18 21:10:48 2011 From: dovecot.user at seibercom.net (Jerry) Date: Wed, 18 May 2011 14:10:48 -0400 Subject: [Dovecot] Dovecot deliver In-Reply-To: References: <4DD3E8A3.8000603@onuva.com> Message-ID: <20110518141048.2ae08eba@scorpio> On Wed, 18 May 2011 13:47:19 -0300 Gonzalo Rodriguez articulated: > I add the line: > > mailbox_command = /usr/lib/dovecot/deliver Why? You are using virtual delivery. You don't need that. The following is from my master.cf file. It works perfectly. This is on a FreeBSD-8.2 system. dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -a ${recipient} Your problem is with your Postfix configuration. You are asking on the wrong list. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From gonzalo at sepp0.com.ar Wed May 18 21:14:11 2011 From: gonzalo at sepp0.com.ar (Gonzalo Rodriguez) Date: Wed, 18 May 2011 15:14:11 -0300 Subject: [Dovecot] Dovecot deliver In-Reply-To: <20110518141048.2ae08eba@scorpio> References: <4DD3E8A3.8000603@onuva.com> <20110518141048.2ae08eba@scorpio> Message-ID: 2011/5/18 Jerry : > On Wed, 18 May 2011 13:47:19 -0300 > Gonzalo Rodriguez articulated: > >> I add the line: >> >> mailbox_command = /usr/lib/dovecot/deliver > > Why? You are using virtual delivery. You don't need that. > in my main.cf have virtual_transport = dovecot > The following is from my master.cf file. It works perfectly. This is on > a FreeBSD-8.2 system. > > dovecot ? unix ?- ? ? ? n ? ? ? n ? ? ? - ? ? ? - ? ? ? pipe > ?flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} > ?-d ${user}@${nexthop} -a ${recipient} > > Your problem is with your Postfix configuration. You are asking on the > wrong list. > > -- > Jerry ? > Dovecot.user at seibercom.net > > Disclaimer: off-list followups get on-list replies or get ignored. > Please do not ignore the Reply-To header. > __________________________________________________________________ > > From Bartlomiej.Solarz-Niesluchowski at wit.edu.pl Wed May 18 21:21:43 2011 From: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl (=?UTF-8?B?QmFydMWCb21pZWogU29sYXJ6LU5pZXPFgnVjaG93c2tp?=) Date: Wed, 18 May 2011 20:21:43 +0200 Subject: [Dovecot] Dovecot 2.0 (2.0.11) na nfs quota In-Reply-To: <4D809E65.4080402@wit.edu.pl> References: <4D774002.2050109@wit.edu.pl> <4D77678B.5070208@Media-Brokers.com> <4D7773E1.5080604@wit.edu.pl> <4D7778EC.60803@Media-Brokers.com> <4D777E93.8060201@wit.edu.pl> <4D809E65.4080402@wit.edu.pl> Message-ID: <4DD40E37.6060707@wit.edu.pl> W dniu 2011-03-16 12:26, Bart?omiej Solarz-Nies?uchowski pisze: > W dniu 2011-03-09 14:20, Bart?omiej Solarz-Nies?uchowski pisze: >> plugin/quota = fs:INBOX:mount=/var/spool/mail >> plugin/quota2 = fs:Others:user > > OK reason founded. > > On system where was compiled dovecot was no quota-devel package.... > > Now dovecot works correctly. > > BUT > > anybody knows why Mozilla Thunderbird shows quota based only on > plugin/quota2 = fs:Others:user even on INBOX > OKi next problem: after changing dovecot to v. 2.0.12 TB shows quota on INBOX correctly but quota on Send and other mailboxes is noquota: GOOD: 8164[7102b80]: 830c000:imap.wit.edu.pl:A:CreateNewLineFromSocket: 6 OK [READ-WRITE] Select completed. 8164[7102b80]: 830c000:imap.wit.edu.pl:S-INBOX:SendData: 7 getquotaroot "INBOX" 8164[7102b80]: ReadNextLine [stream=5e82428 nb=29 needmore=0] 8164[7102b80]: 830c000:imap.wit.edu.pl:S-INBOX:CreateNewLineFromSocket: * QUOTAROOT "INBOX" "INBOX" 8164[7102b80]: ReadNextLine [stream=5e82428 nb=39 needmore=0] 8164[7102b80]: 830c000:imap.wit.edu.pl:S-INBOX:CreateNewLineFromSocket: * QUOTA "INBOX" (STORAGE 3336 200000) 8164[7102b80]: ReadNextLine [stream=5e82428 nb=30 needmore=0] 8164[7102b80]: 830c000:imap.wit.edu.pl:S-INBOX:CreateNewLineFromSocket: 7 OK Getquotaroot completed. BAD: 7672[71040c0]: 964b000:imap.wit.edu.pl:A:CreateNewLineFromSocket: 2 OK [READ-WRITE] Select completed. 7672[71040c0]: 964b000:imap.wit.edu.pl:S-mail.Sent:SendData: 3 getquotaroot "mail.Sent" 7672[71040c0]: ReadNextLine [stream=95fbe88 nb=16 needmore=0] 7672[71040c0]: 964b000:imap.wit.edu.pl:S-mail.Sent:CreateNewLineFromSocket: 3 OK No quota. 7672[71040c0]: 964b000:imap.wit.edu.pl:S-mail.Sent:SendData: 4 UID fetch 1:* (FLAGS) (CHANGEDSINCE 0) dovecot.conf # 2.0.12: /etc/dovecot/dovecot.conf # OS: Linux 2.6.35.11-83.fc14.x86_64 x86_64 Fedora release 14 (Laughlin) auth_cache_size = 8 k mail_fsync = always mail_location = maildir:~/Maildir:INBOX=/var/spool/mail/%u mail_nfs_index = yes mail_nfs_storage = yes mail_plugins = acl quota zlib trash mail_privileged_group = mail mmap_disable = yes passdb { args = cache_key=%u%r%l max_requests=256 driver = pam } plugin { quota = fs:INBOX:mount=/var/spool/mail quota2 = fs:Others:user quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u } protocols = imap pop3 service anvil { client_limit = 1155 } service auth { client_limit = 5248 user = root } service imap-login { client_limit = 256 inet_listener imap { port = 0 } inet_listener imaps { address = [::], * port = 993 } process_limit = 1024 service_count = 0 } service imap { process_limit = 2048 } service pop3-login { client_limit = 256 inet_listener pop3 { port = 0 } inet_listener pop3s { address = [::], * port = 995 } process_limit = 128 service_count = 0 } service pop3 { process_limit = 2048 } service quota-warning { executable = script /usr/local/bin/quota-warning.sh user = dovenull } ssl_cert = From Bartlomiej.Solarz-Niesluchowski at wit.edu.pl Wed May 18 21:32:43 2011 From: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl (=?UTF-8?B?QmFydMWCb21pZWogU29sYXJ6LU5pZXPFgnVjaG93c2tp?=) Date: Wed, 18 May 2011 20:32:43 +0200 Subject: [Dovecot] Dovecot 2.0 (2.0.11) na nfs quota In-Reply-To: <4DD40E37.6060707@wit.edu.pl> References: <4D774002.2050109@wit.edu.pl> <4D77678B.5070208@Media-Brokers.com> <4D7773E1.5080604@wit.edu.pl> <4D7778EC.60803@Media-Brokers.com> <4D777E93.8060201@wit.edu.pl> <4D809E65.4080402@wit.edu.pl> <4DD40E37.6060707@wit.edu.pl> Message-ID: <4DD410CB.9020300@wit.edu.pl> W dniu 2011-05-18 20:21, Bart?omiej Solarz-Nies?uchowski pisze: > W dniu 2011-03-16 12:26, Bart?omiej Solarz-Nies?uchowski pisze: >> W dniu 2011-03-09 14:20, Bart?omiej Solarz-Nies?uchowski pisze: >>> plugin/quota = fs:INBOX:mount=/var/spool/mail >>> plugin/quota2 = fs:Others:user >> >> OK reason founded. >> >> On system where was compiled dovecot was no quota-devel package.... >> >> Now dovecot works correctly. >> >> BUT >> >> anybody knows why Mozilla Thunderbird shows quota based only on >> plugin/quota2 = fs:Others:user even on INBOX >> > OKi > next problem: > after changing dovecot to v. 2.0.12 TB shows quota on INBOX correctly > but quota on Send and other mailboxes is noquota: Found: fedora 14 has compiled dovecot without nfs quota support Sorry for the noise Best Regards -- Bart?omiej Solarz-Nies?uchowski, Administrator WSISiZ e-mail: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl tel. 223486547, fax 223486501 JID: solarz at jabber.wit.edu.pl 01-447 Warszawa, ul. Newelska 6, pok?j 404, pon.-pt. 8-16 Motto - Jak sobie po?cielisz tak sie wy?pisz -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6020 bytes Desc: S/MIME Cryptographic Signature URL: From dovecot.user at seibercom.net Thu May 19 00:08:43 2011 From: dovecot.user at seibercom.net (Jerry) Date: Wed, 18 May 2011 17:08:43 -0400 Subject: [Dovecot] Dovecot deliver In-Reply-To: References: <4DD3E8A3.8000603@onuva.com> <20110518141048.2ae08eba@scorpio> Message-ID: <20110518170843.5a0844ae@scorpio> On Wed, 18 May 2011 15:14:11 -0300 Gonzalo Rodriguez articulated: > 2011/5/18 Jerry : > > On Wed, 18 May 2011 13:47:19 -0300 > > Gonzalo Rodriguez articulated: > > > >> I add the line: > >> > >> mailbox_command = /usr/lib/dovecot/deliver > > > > Why? You are using virtual delivery. You don't need that. > > > > in my main.cf have virtual_transport = dovecot Which is why you do not need the "mailbox_command" line. What is the output of: pw user show 5001 Again, this really belongs on the Postfix forum. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From anfi at onet.eu Thu May 19 00:25:35 2011 From: anfi at onet.eu (Andrzej Adam Filip) Date: Wed, 18 May 2011 23:25:35 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: <4AC9F690-85E4-4EF6-998A-29697CCBF3A1@iki.fi> References: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> <7638EBDA-9290-4CEB-A940-E2E47B938821@iki.fi> <4AC9F690-85E4-4EF6-998A-29697CCBF3A1@iki.fi> Message-ID: <4DD4394F.6020008@onet.eu> On 05/10/2011 08:37 PM, Timo Sirainen wrote: > On 10.5.2011, at 21.32, Andrzej Adam Filip wrote: > >> Do you intent any time soon to provide some hook to alow MTA reject >> in reply to "RCPT TO:" (in SMTP session) messages to over quota >> mailboxes? > > Can you give specifics of what I'd need to do for that? > I remember there is some sendmail protocol that is also supported by > Postfix (I think), but I can't remember specifics (and a bit lazy to > google for it). > v2.0 would finally allow easily implementing such > service. Hmm. I guess such service would both have to check if the > user exists and also the quota value, and give errors about both of them. Both sendmail and postfix support milter protocol/API. Unlike API provided by library the protocol is "not officially" documented. Sendmail/sendmail.cf could also use trivial "socket map" protocol (query->response) [sample Perl scripts implementing it are in contrib directory of sendmail distribution]. IMHO the best honeypot for developers (especially without dovecot expertise) would be simple library providing two functions email_address -> state( does_not_exist, under_quota, over_quota) email_address, message_size -> ( does_not_exist, ....). From errno at cox.net Thu May 19 00:50:54 2011 From: errno at cox.net (errno) Date: Wed, 18 May 2011 14:50:54 -0700 Subject: [Dovecot] integrating procmail Message-ID: <201105181450.54892.errno@cox.net> Hello, list members! I'm new to dovecot, and haven't needed to maintain an email server instance for quite some time. I recently got a fairly simple postfix + dovecot installation functional as needed, however I now need to get procmail filtering incoming mail, and after reading various docs and wikis, I find that I'm still having a tough time feeling confident on how best to approach it in the simplest manner. (this is for a small installation.... 10 email accounts, max). Below, I've provide the relevant snippets of my current functional configuration; how best to integrate procmail into the mix? /etc/postfix/main.cf: ... alias_maps = hash:/etc/mail/aliases local_recipient_maps = hash:/etc/postfix/vmailbox, $alias_maps virtual_transport = dovecot virtual_mailbox_domains = $mydomain virtual_mailbox_base = /var/vmail/ virtual_mailbox_maps = hash:/etc/postfix/vmailbox virtual_minimum_uid = 500 virtual_uid_maps = static:501 virtual_gid_maps = static:501 ... /etc/postfix/master.cf: ... dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f ${sender} - d ${recipient} ... /etc/dovecot/dovecot.conf: ... mail_location = maildir:~/Maildir protocol lda { sendmail_path = /usr/sbin/sendmail } auth default { mechanisms = plain passdb passwd-file { args = /var/vmail/passwd } userdb static { args = uid=vmail gid=vmail home=/var/vmail/%d/%u } socket listen { master { path = /var/run/dovecot/auth-master mode = 0600 user = vmail group = vmail } } } ... Thankyou for any tips, much appreciated! From dovecot.user at seibercom.net Thu May 19 01:07:44 2011 From: dovecot.user at seibercom.net (Jerry) Date: Wed, 18 May 2011 18:07:44 -0400 Subject: [Dovecot] integrating procmail In-Reply-To: <201105181450.54892.errno@cox.net> References: <201105181450.54892.errno@cox.net> Message-ID: <20110518180744.44ecdc76@scorpio> On Wed, 18 May 2011 14:50:54 -0700 errno articulated: > > Hello, list members! > > I'm new to dovecot, and haven't needed to maintain an email server > instance for quite some time. > > I recently got a fairly simple postfix + dovecot installation > functional as needed, however I now need to get procmail filtering > incoming mail, and after reading various docs and wikis, I find that > I'm still having a tough time feeling confident on how best to > approach it in the simplest manner. (this is for a small > installation.... 10 email accounts, max). > > Below, I've provide the relevant snippets of my current functional > configuration; how best to integrate procmail into the mix? Why procmail? Use sieve instead. It is fully supported in Dovecot and IMHO far easier to use. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ . From errno at cox.net Thu May 19 01:20:08 2011 From: errno at cox.net (errno) Date: Wed, 18 May 2011 15:20:08 -0700 Subject: [Dovecot] integrating procmail In-Reply-To: <20110518180744.44ecdc76@scorpio> References: <201105181450.54892.errno@cox.net> <20110518180744.44ecdc76@scorpio> Message-ID: <201105181520.08854.errno@cox.net> On Wednesday, May 18, 2011 03:07:44 PM Jerry wrote: > On Wed, 18 May 2011 14:50:54 -0700 > errno articulated: > > Below, I've provide the relevant snippets of my current functional > > configuration; how best to integrate procmail into the mix? > > Why procmail? Use sieve instead. It is fully supported in Dovecot > and IMHO far easier to use. > I hear you, and agree - I was able to determine that sieve was better supported. Unfortunately, I'm doing this for a client who is rather set in his ways and already has a largish custom procmail filter he wants/needs to use. For me to tell him, "no we need to use sieve instead", he will see that as a failure on my part; and/or will request that I install and configure a different combination of software that will facilitate his familiar territory of procmail. Seeing as I already have postfix and dovecot functioning, I'd rather just get procmail in there and be done with it; is this possible? Thankyou! From Harlan.Stenn at pfcs.com Thu May 19 01:25:25 2011 From: Harlan.Stenn at pfcs.com (Harlan Stenn) Date: Wed, 18 May 2011 18:25:25 -0400 Subject: [Dovecot] integrating procmail In-Reply-To: <201105181520.08854.errno@cox.net> References: <201105181450.54892.errno@cox.net> <20110518180744.44ecdc76@scorpio> <201105181520.08854.errno@cox.net> Message-ID: <20110518222525.E6B482844C@gwc.pfcs.com> I have not tried this: http://www.zimbra.com/forums/users/7239-any-way-add-message-filters-command-line.html H From kjonca at o2.pl Thu May 19 08:04:00 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Thu, 19 May 2011 07:04:00 +0200 Subject: [Dovecot] integrating procmail References: <201105181450.54892.errno@cox.net> <20110518180744.44ecdc76@scorpio> Message-ID: <8739kbz3gf.fsf@alfa.kjonca> Jerry writes: >> Below, I've provide the relevant snippets of my current functional >> configuration; how best to integrate procmail into the mix? > > Why procmail? Use sieve instead. It is fully supported in Dovecot and > IMHO far easier to use. Well, how can I call external program from sieve? (For example for decoding some data, and put them to database?) Is any extension for this? KJ -- http://sporothrix.wordpress.com/2011/01/16/usa-sie-krztusza-kto-nastepny/ GNU is Not Unix From stephan at rename-it.nl Thu May 19 10:07:44 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Thu, 19 May 2011 09:07:44 +0200 Subject: [Dovecot] integrating procmail In-Reply-To: <8739kbz3gf.fsf@alfa.kjonca> References: <201105181450.54892.errno@cox.net> <20110518180744.44ecdc76@scorpio> <8739kbz3gf.fsf@alfa.kjonca> Message-ID: <4DD4C1C0.2000006@rename-it.nl> On 5/19/2011 7:04 AM, Kamil Jo?ca wrote: > Jerry writes: > >>> Below, I've provide the relevant snippets of my current functional >>> configuration; how best to integrate procmail into the mix? >> Why procmail? Use sieve instead. It is fully supported in Dovecot and >> IMHO far easier to use. > Well, how can I call external program from sieve? (For example for > decoding some data, and put them to database?) Is any extension for > this? > KJ Currently, no. Not an official one anyway. We did see the potential of this a few months back and we've built a skeleton implementation of such an extension. 'Skeleton' in this case means that there is a plugin that implements the Sieve language extension, but it does not actually do anything yet. I've documented the language extension as follows: http://hg.rename-it.nl/hidden/pigeonhole-0.2-sieve-pipe/raw-file/tip/doc/rfc/spec-bosch-sieve-pipe.txt I am not sure when we can continue work on this. For security reasons, external programs would not be forked from the Sieve interpreter (LDA/LMTP plugin) directly, but rather using some unix socket and a Dovecot service. It should at least be implemented for Dovecot v2.1. Timo, any comments? Regards, Stephan. From serarien at baqs.net Thu May 19 11:27:04 2011 From: serarien at baqs.net (Pierre) Date: Thu, 19 May 2011 10:27:04 +0200 Subject: [Dovecot] alternative storage taken from sql In-Reply-To: <14EE0F07-C54D-40C2-BD4B-AD4FFA1EF7E1@iki.fi> References: <20110517115955.GA30895@mail3.serarien.com> <14EE0F07-C54D-40C2-BD4B-AD4FFA1EF7E1@iki.fi> Message-ID: <20110519082703.GY14376@mail3.serarien.com> Thanks a lot for quick answer, will try to override it. You were right, it was explicitely written there: http://wiki2.dovecot.org/UserDatabase " mail: Mail location (if needed to override the default mail_location setting) " Pierre On 17/mai - 17:53, Timo Sirainen wrote: > On 17.5.2011, at 14.59, Pierre wrote: > > > I'm looking for a simple way to define alternative storage (ALT parameter in mail_location) > > from userdb query. > > dovecot v2 > > > > Is there a simple way to handle this ? > > The ALT parameter is part of mail_location, so you need to override the entire mail_location. There are many examples how to do that in the wiki, e.g. http://wiki2.dovecot.org/MailLocation#Per-user_mail_locations > From robert at schetterer.org Thu May 19 12:37:32 2011 From: robert at schetterer.org (Robert Schetterer) Date: Thu, 19 May 2011 11:37:32 +0200 Subject: [Dovecot] integrating procmail In-Reply-To: <4DD4C1C0.2000006@rename-it.nl> References: <201105181450.54892.errno@cox.net> <20110518180744.44ecdc76@scorpio> <8739kbz3gf.fsf@alfa.kjonca> <4DD4C1C0.2000006@rename-it.nl> Message-ID: <4DD4E4DC.8070407@schetterer.org> Am 19.05.2011 09:07, schrieb Stephan Bosch: > On 5/19/2011 7:04 AM, Kamil Jo?ca wrote: >> Jerry writes: >> >>>> Below, I've provide the relevant snippets of my current functional >>>> configuration; how best to integrate procmail into the mix? >>> Why procmail? Use sieve instead. It is fully supported in Dovecot and >>> IMHO far easier to use. >> Well, how can I call external program from sieve? (For example for >> decoding some data, and put them to database?) Is any extension for >> this? >> KJ > > Currently, no. Not an official one anyway. > > We did see the potential of this a few months back and we've built a > skeleton implementation of such an extension. 'Skeleton' in this case > means that there is a plugin that implements the Sieve language > extension, but it does not actually do anything yet. I've documented the > language extension as follows: > > http://hg.rename-it.nl/hidden/pigeonhole-0.2-sieve-pipe/raw-file/tip/doc/rfc/spec-bosch-sieve-pipe.txt > > > I am not sure when we can continue work on this. For security reasons, > external programs would not be forked from the Sieve interpreter > (LDA/LMTP plugin) directly, but rather using some unix socket and a > Dovecot service. It should at least be implemented for Dovecot v2.1. yeah that would be extrem nice there always some specials with i.e procmail does better ,not often ,but its nice to have > > Timo, any comments? > > Regards, > > Stephan. > > > -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From anfi at onet.eu Thu May 19 13:54:06 2011 From: anfi at onet.eu (Andrzej Adam Filip) Date: Thu, 19 May 2011 12:54:06 +0200 Subject: [Dovecot] integrating procmail (procmail v. sieve) In-Reply-To: <8739kbz3gf.fsf@alfa.kjonca> ("Kamil =?utf-8?Q?Jo=C5=84ca=22'?= =?utf-8?Q?s?= message of "Thu, 19 May 2011 07:04:00 +0200") References: <201105181450.54892.errno@cox.net> <20110518180744.44ecdc76@scorpio> <8739kbz3gf.fsf@alfa.kjonca> Message-ID: kjonca at o2.pl (Kamil Jo?ca) wrote: > Jerry writes: > >>> Below, I've provide the relevant snippets of my current functional >>> configuration; how best to integrate procmail into the mix? >> >> Why procmail? Use sieve instead. It is fully supported in Dovecot and >> IMHO far easier to use. > > Well, how can I call external program from sieve? (For example for > decoding some data, and put them to database?) Is any extension for > this? KJ I would suggest leaving sieve filtering for most users/mailboxes (delivery via dovecot's deliver) and executing deliver from procmail script of a few exceptions (delivery via procmail). [ I assume postix can be configured to do it ] -- [pl>en: Andrew] Andrzej Adam Filip : anfi at onet.eu I never vote for anyone. I always vote against. -- W. C. Fields From trever.adams at gmail.com Thu May 19 16:20:30 2011 From: trever.adams at gmail.com (Trever L. Adams) Date: Thu, 19 May 2011 07:20:30 -0600 Subject: [Dovecot] possible bug leading to lmtp crashes In-Reply-To: <1305116849.10421.192.camel@hurina> References: <4DAECAAC.3060903@gmail.com> <4DB58F67.4090600@gmail.com> <4DB6FCF7.9070905@gmail.com> <5D19A866-381B-4CA6-B8FF-0F7BCDA36799@iki.fi> <4DBC3F3F.4030605@gmail.com> <1304957973.10421.101.camel@hurina> <4DCA7C6F.40902@gmail.com> <1305116849.10421.192.camel@hurina> Message-ID: <4DD5191E.9040606@gmail.com> On 05/11/2011 06:27 AM, Timo Sirainen wrote: > > That patch only was supposed to make it crash elsewhere, not actually > fix anything. :) > > I just noticed that some asserts were matching the crash times on the different machines. What is strange, I just verified that other than the ldap setup (which only differs where needed for each domain) the configuration of all three machines match perfectly. The two that crash both git the same assert, while the third does not. One that crashes has 384M, the other 2 have 512M. They are pretty much identical installs in every way. The assert: May 17 04:01:02 dovecot: auth: Panic: file ../../src/lib/array.h: line 189 (array_idx_i): assertion failed: (idx * array->element_size < array->buffer->used) This is usually repeated 2 or more times near a crash. On the machine that doesn't crash, I NEVER see this. On the machines that crash, there isn't (or doesn't seem to be) a 1:1 correlation. Trever -- "If destruction be our lot, we must ourselves be its author and finisher. As a nation of freemen, we must live through all time or die by suicide." -- Abraham Lincoln -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From rob0 at gmx.co.uk Thu May 19 17:02:50 2011 From: rob0 at gmx.co.uk (/dev/rob0) Date: Thu, 19 May 2011 09:02:50 -0500 Subject: [Dovecot] integrating procmail In-Reply-To: <201105181520.08854.errno@cox.net> References: <201105181450.54892.errno@cox.net> <20110518180744.44ecdc76@scorpio> <201105181520.08854.errno@cox.net> Message-ID: <20110519140250.GC22540@cardinal> On Wed, May 18, 2011 at 03:20:08PM -0700, errno wrote: > On Wednesday, May 18, 2011 03:07:44 PM Jerry wrote: > > On Wed, 18 May 2011 14:50:54 -0700 > > errno articulated: > > > Below, I've provide the relevant snippets of my current > > > functional configuration; how best to integrate procmail into > > > the mix? > > > > Why procmail? Use sieve instead. It is fully supported in Dovecot > > and IMHO far easier to use. > > I hear you, and agree - I was able to determine that sieve was > better supported. Unfortunately, I'm doing this for a client who is > rather set in his ways and already has a largish custom procmail > filter he wants/needs to use. For me to tell him, "no we need to > use sieve instead", he will see that as a failure on my part; > and/or will request that I install and configure a different > combination of software that will facilitate his familiar territory > of procmail. > > Seeing as I already have postfix and dovecot functioning, I'd rather > just get procmail in there and be done with it; is this possible? This is all on the Postfix side. Leave Dovecot out of it. And it's trivial. main.cf: mydestination = localhost, localhost.$mydomain[, ... ] virtual_alias_maps = (set to something) virtual_alias_maps includes this: real at email.address setnways at localhost Create a Unix user, "setnways". ~setnways/.forward: |/path/to/procmail Populate ~setnways/.procmailrc as desired. Obviously this won't work if you have disabled local(8) delivery. Note: I set reply-to this list, but it would be more appropriate on postfix-users. Start a new thread there if you need help. See also: http://www.postfix.org/virtual.5.html http://www.postfix.org/aliases.5.html http://www.postfix.org/local.8.html And your OS documentation if needed. -- Offlist mail to this address is discarded unless "/dev/rob0" or "not-spam" is in Subject: header From cor at xs4all.nl Thu May 19 18:40:09 2011 From: cor at xs4all.nl (Cor Bosman) Date: Thu, 19 May 2011 17:40:09 +0200 Subject: [Dovecot] fts squat index file not appearing Message-ID: Hey all, im experimenting with squat for a small project but am not having much luck. Debugging tells me squat is being loaded, but the index.search files are not appearing after TEXT/BODY commands. Squat plugin was added to config as well. Anyone have an idea? Cor From gduncan at engr.UVic.CA Thu May 19 03:45:33 2011 From: gduncan at engr.UVic.CA (Gary Duncan) Date: Wed, 18 May 2011 17:45:33 -0700 (PDT) Subject: [Dovecot] How to stop mail_executable from cwd to ~home Message-ID: <20110519004533.C759E3F813F@post.engr.uvic.ca> In our environment home directories are auto-mounted via /home/ including on the server provided mail. Within the various mail services though we try to isolate and override with local /mail/home/ Works well except that dovecot still wants to cd to the real home triggering a useless and potentially hindering automount when it invokes the imap or pop3 process specified by mail_executable, ie an lsof of the process shows cwd of /home/ and the automounted home. It does this even though home is properly overridden within. I suspect this is part of changing to invoke as the user as the *-login process are ok but then they are still running as dovecot. Various recent attempts to explicitly respecify HOME for mail_executable via a wrapper script or using env have been to no avail (as seen below). How can I resolve? And no I don't just want to override /home at the system level. Thanks -- Gary # 1.0.9: /etc/dovecot.conf base_dir: /var/run/dovecot/ syslog_facility: local1 protocols: imap imaps pop3 pop3s listen(default): *:143 listen(imap): *:143 listen(pop3): *:110 ssl_listen(default): *:993 ssl_listen(imap): *:993 ssl_listen(pop3): *:995 ssl_ca_file: /etc/ssl/certs/gd_bundle.crt ssl_cert_file: /etc/ssl/certs/engr.uvic.ca.crt ssl_key_file: /etc/ssl/private/engineeringwildcard.key ssl_parameters_regenerate: 24 disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_log_format_elements: %u [%r] %c login_process_size: 32 login_processes_count: 8 login_max_processes_count: 150 verbose_proctitle: yes first_valid_uid: 100 default_mail_env: mbox:/mail/home/%u/mail/:INBOX=/mail/boxes/%u:INDEX=/mail/indexes/%u mail_location: mbox:/mail/home/%u/mail/:INBOX=/mail/boxes/%u:INDEX=/mail/indexes/%u mbox_read_locks: fcntl dotlock mbox_write_locks: fcntl dotlock mail_executable(default): /bin/env 'HOME=/mail/home/$USER' /usr/libexec/dovecot/imap mail_executable(imap): /bin/env 'HOME=/mail/home/$USER' /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3-home mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(pop3): outlook-idle pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %v.%u pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): oe-ns-eoh outlook-no-nuls auth default: passdb: driver: pam userdb: driver: passwd args: home=/mail/home/%u plugin: home: /mail/home/%u From henri at nerv.fi Thu May 19 21:50:43 2011 From: henri at nerv.fi (Henri Salo) Date: Thu, 19 May 2011 21:50:43 +0300 Subject: [Dovecot] [Dovecot-news] v2.0.13 released In-Reply-To: <1305129141.10421.213.camel@hurina> References: <1305129141.10421.213.camel@hurina> Message-ID: <20110519185043.GK32435@foo.fgeek.fi> On Wed, May 11, 2011 at 06:52:21PM +0300, Timo Sirainen wrote: > http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz > http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz.sig > > I've almost managed to read my email backlog, but there are still some > unanswered mails. Feel free to resend if you think I should have > answered some of your mails. > > The most important changes since v2.0.12: > > + Added "doveadm index" command to add unindexed messages into > index/cache. If full text search is enabled, it also adds unindexed > messages to the fts database. > + added "doveadm director dump" command. > + pop3: Added support for showing messages in "POP3 order", which can > be different from IMAP message order. This can be useful for > migrations from other servers. Implemented it for Maildir as 'O' > field in dovecot-uidlist. > - doveconf: Fixed a wrong "subsection has ssl=yes" warning. > - mdbox purge: Fixed wrong warning about corrupted extrefs. > - sdbox: INBOX GUID changed when INBOX was autocreated, leading to > trouble with dsync. > - script-login binary wasn't actually dropping privileges to the > user/group/chroot specified by its service settings. > - Fixed potential crashes and other problems when parsing header names > that contained NUL characters. Header NUL problem got assigned CVE-2011-1929. Best regards, Henri Salo From tss at iki.fi Thu May 19 22:23:31 2011 From: tss at iki.fi (Timo Sirainen) Date: Thu, 19 May 2011 22:23:31 +0300 Subject: [Dovecot] How to stop mail_executable from cwd to ~home In-Reply-To: <20110519004533.C759E3F813F@post.engr.uvic.ca> References: <20110519004533.C759E3F813F@post.engr.uvic.ca> Message-ID: <1305833011.10421.288.camel@hurina> On Wed, 2011-05-18 at 17:45 -0700, Gary Duncan wrote: > Works well except that dovecot still wants to cd to the real home > triggering a useless and potentially hindering automount > when it invokes the imap or pop3 process specified by mail_executable, > ie an lsof of the process shows cwd of /home/ and the automounted home. > > How can I resolve? > # 1.0.9: /etc/dovecot.conf .. > userdb: > driver: passwd > args: home=/mail/home/%u Upgrade to v1.1+ and this home setting will actually work. From dmiller at amfes.com Fri May 20 00:43:46 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Thu, 19 May 2011 14:43:46 -0700 Subject: [Dovecot] Migrate to new server without raw copy Message-ID: I've setup a new virtual machine to run my mail servers. Dovecot is installed and talking with the LDAP server for the user list. Now the question is how to migrate the data from the old Dovecot to the new. The data is stored in mdbox, with some possible corruption. Accordingly, any form of simple file copy is not the answer - I need the messages to be processed by something and then stored fresh on the new server. I do have NFS access both ways if that does anything. I tried imapsync - but it quickly broke on some of the messages. Is dsync the answer? Or do I use a MUA and drag-n-drop the messages a batch at a time between the servers? -- Daniel From jk at jkart.de Fri May 20 00:57:41 2011 From: jk at jkart.de (Jim Knuth) Date: Thu, 19 May 2011 23:57:41 +0200 Subject: [Dovecot] xi.rename-it.nl down? Message-ID: <4DD59255.4020002@jkart.de> Hello, http://xi.rename-it.nl/debian/dists/stable-auto/dovecot-2.0 not available? -- Mit freundlichen Gr??en, with kind regards, Jim Knuth --------- Mit dem Geist ist es wie mit dem Magen: Mann kann ihm nur Dinge zumuten, die er verdauen kann. [Churchill] From dmiller at amfes.com Fri May 20 01:01:55 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Thu, 19 May 2011 15:01:55 -0700 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: References: Message-ID: On 5/19/2011 8:40 AM, Cor Bosman wrote: > Hey all, im experimenting with squat for a small project but am not having much luck. Debugging tells me squat is being loaded, but the index.search files are not appearing after TEXT/BODY commands. Squat plugin was added to config as well. > > Anyone have an idea? > > Cor > +1 -- Daniel From stephan at rename-it.nl Fri May 20 01:13:23 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Fri, 20 May 2011 00:13:23 +0200 Subject: [Dovecot] Released Pigeonhole Sieve v0.1.19 and ManageSieve v0.11.13 for Dovecot v1.2.17 Message-ID: <4DD59603.9030005@rename-it.nl> Hello Dovecot users, As promised, I hereby release new versions of Sieve and ManageSieve for Dovecot v1.2. These releases consist entirely of (backported) bugfixes and introduce no new features. There is a good chance that these are the last releases for Dovecot v1.2. Changelog Sieve v0.1.19: - Enotify extension: fixed inappropriate return type in mailto URI parse function, also fixing ARM compiler warning. - Vacation extension: fixed handling of sendmail errors. It produced an additional confusing success message in case of error. - Removed header MIME-decoding to fix erroneous address parsing. Applies to address test and vacation command. Changelog ManageSieve v0.11.13: - ManageSieve: fixed bug in UTF-8 checking of string values. The releases are available as follows: Sieve http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-sieve-0.1.19.tar.gz http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-sieve-0.1.19.tar.gz.sig ManageSieve http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-managesieve-0.11.13.tar.gz http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-managesieve-0.11.13.tar.gz.sig ManageSieve patch http://www.rename-it.nl/dovecot/1.2/dovecot-1.2.17-managesieve-0.11.13.diff.gz http://www.rename-it.nl/dovecot/1.2/dovecot-1.2.17-managesieve-0.11.13.diff.gz.sig Refer to http://pigeonhole.dovecot.org and the Dovecot wiki for more information. Don't hesitate to notify me when there are any problems. Regards, -- Stephan Bosch stephan at rename-it.nl From stephan at rename-it.nl Fri May 20 01:36:50 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Fri, 20 May 2011 00:36:50 +0200 Subject: [Dovecot] xi.rename-it.nl down? In-Reply-To: <4DD59255.4020002@jkart.de> References: <4DD59255.4020002@jkart.de> Message-ID: <4DD59B82.5010900@rename-it.nl> On 05/19/2011 11:57 PM, Jim Knuth wrote: > Hello, > > http://xi.rename-it.nl/debian/dists/stable-auto/dovecot-2.0 > > not available? > Yes, it is down. The admin is looking into it. I'm not sure when it will be online again. Regards, Stephan. From tss at iki.fi Fri May 20 01:46:27 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 20 May 2011 01:46:27 +0300 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: References: Message-ID: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> On 19.5.2011, at 18.40, Cor Bosman wrote: > Hey all, im experimenting with squat for a small project but am not having much luck. Debugging tells me squat is being loaded, but the index.search files are not appearing after TEXT/BODY commands. Squat plugin was added to config as well. plugin { fts = squat } ? From tss at iki.fi Fri May 20 01:47:30 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 20 May 2011 01:47:30 +0300 Subject: [Dovecot] Migrate to new server without raw copy In-Reply-To: References: Message-ID: <862B63DB-1200-44F1-9A0F-D7F1E8B245C8@iki.fi> On 20.5.2011, at 0.43, Daniel L. Miller wrote: > I've setup a new virtual machine to run my mail servers. Dovecot is installed and talking with the LDAP server for the user list. Now the question is how to migrate the data from the old Dovecot to the new. > > The data is stored in mdbox, with some possible corruption. Accordingly, any form of simple file copy is not the answer - I need the messages to be processed by something and then stored fresh on the new server. I do have NFS access both ways if that does anything. > > I tried imapsync - but it quickly broke on some of the messages. Is dsync the answer? Or do I use a MUA and drag-n-drop the messages a batch at a time between the servers? dsync should work for this.. If you run into any bugs with corruption, I can fix them. From jk at jkart.de Fri May 20 02:11:17 2011 From: jk at jkart.de (Jim Knuth) Date: Fri, 20 May 2011 01:11:17 +0200 Subject: [Dovecot] xi.rename-it.nl down? In-Reply-To: <4DD59B82.5010900@rename-it.nl> References: <4DD59255.4020002@jkart.de> <4DD59B82.5010900@rename-it.nl> Message-ID: <4DD5A395.70802@jkart.de> am 20.05.11 00:36 schrieb Stephan Bosch : > On 05/19/2011 11:57 PM, Jim Knuth wrote: >> Hello, >> >> http://xi.rename-it.nl/debian/dists/stable-auto/dovecot-2.0 >> >> not available? >> > > > Yes, it is down. The admin is looking into it. I'm not sure when it will > be online again. Thanks. Then I want to have sometimes patience. ;) > > Regards, > > Stephan. -- Mit freundlichen Gr??en, with kind regards, Jim Knuth --------- You don't know where your shadow will fall. (Somebody ..) From jtam.home at gmail.com Fri May 20 03:32:00 2011 From: jtam.home at gmail.com (Joseph Tam) Date: Thu, 19 May 2011 17:32:00 -0700 (PDT) Subject: [Dovecot] How to stop mail_executable from cwd to ~home In-Reply-To: References: Message-ID: Gary Duncan writes: > In our environment home directories are auto-mounted via /home/ > including on the server provided mail. > Within the various mail services though we try to isolate > and override with local /mail/home/ > > Works well except that dovecot still wants to cd to the real home > triggering a useless and potentially hindering automount This becomes really apparent if you have an organization wide-mailing list, and one delivery to it causes a flurry of automounts. I similarly replace per-user mounts with a home mount bundle. > when it invokes the imap or pop3 process specified by mail_executable, > ie an lsof of the process shows cwd of /home/ and the automounted home. I see the same behaviour in 2.0.13, which process tracing of imap shows more clearly (/nfs/user is per user mount, /nfs/home/user is user home bundle) ... 4087: getuid() = 12345 [12345] 4087: chdir("/nfs/test") = 0 4087: stat64("/nfs/home/test/mail", 0xFFBFF6C0) = 0 4087: stat64("/nfs/home/test/mail", 0xFFBFF5A0) = 0 4087: stat64("/nfs/home/test/mail", 0xFFBFF6C0) = 0 ... This happens fairly early after imap-login forks and execs the imap process. I'll see if I can find it after building a debug version, but I think Timo will beat me to this. Joseph Tam From urushkin at telros.ru Fri May 20 08:37:03 2011 From: urushkin at telros.ru (Sergey Urushkin) Date: Fri, 20 May 2011 09:37:03 +0400 Subject: [Dovecot] Global fields for passwd-file database Message-ID: <4DD5FDFF.8080308@telros.ru> Is there a way to specify global fields for passwd-file DB? Currently interested in "home" for userdb and "allow_nets" for passworddb. The next doesn't work, of course: passdb passwd-file { args = username_format=%n allow_nets=127.0.0.1 /etc/dovecot/dovecot.passwd.%d } userdb passwd-file { args = username_format=%n home=/var/mail/%d/%n /etc/dovecot/dovecot.passwd.%d } -- Best regards, Sergey Urushkin From cor at xs4all.nl Fri May 20 12:44:11 2011 From: cor at xs4all.nl (Cor Bosman) Date: Fri, 20 May 2011 11:44:11 +0200 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> References: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> Message-ID: On May 20, 2011, at 12:46 AM, Timo Sirainen wrote: > On 19.5.2011, at 18.40, Cor Bosman wrote: > >> Hey all, im experimenting with squat for a small project but am not having much luck. Debugging tells me squat is being loaded, but the index.search files are not appearing after TEXT/BODY commands. Squat plugin was added to config as well. > > plugin { > fts = squat > } No, it was something wholly unexpected to me. OSX Mail refuses to do remote searches. I expected OSX Mail to issue a BODY/TEXT when doing an fts, but it only ever searches local copies. So I cant even set up a remote archive under OSX Mail without first copying all 1 million emails to a local copy. How stupid. When I issues the commands by hand everything worked as expected. Cor From lists at wildgooses.com Fri May 20 12:53:43 2011 From: lists at wildgooses.com (Ed W) Date: Fri, 20 May 2011 10:53:43 +0100 Subject: [Dovecot] Migrate to new server without raw copy In-Reply-To: References: Message-ID: <4DD63A27.4020101@wildgooses.com> On 19/05/2011 22:43, Daniel L. Miller wrote: > I've setup a new virtual machine to run my mail servers. Dovecot is > installed and talking with the LDAP server for the user list. Now the > question is how to migrate the data from the old Dovecot to the new. Different problem, but please also note the fantastic "proxy" feature in dovecot. With a bit of config this allows you to point all your users at the new server, whilst proxying them back to the old server if that's where their mailbox still remains. This dramatically reduces the challenge of migrating a ton of data in a big bang - you can migrate mailbox by mailbox and update the proxy settings for each user as you go. Good luck Ed W From lists at wildgooses.com Fri May 20 13:04:15 2011 From: lists at wildgooses.com (Ed W) Date: Fri, 20 May 2011 11:04:15 +0100 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: <1305549997.10421.250.camel@hurina> References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> <4DD054A1.9030107@localhost.localdomain.org> <4DD0594D.8040504@localhost.localdomain.org> <1305549997.10421.250.camel@hurina> Message-ID: <4DD63C9F.1050306@wildgooses.com> On 16/05/2011 13:46, Timo Sirainen wrote: > On Mon, 2011-05-16 at 14:08 +0200, Osvaldo Alvarez Pozo wrote: > >> But if I erase mail from Mozilla Thunderbird then I find no mail with >> ref count=0 and doveadm purge does nothing. > > doveadm purge only purges mails that have been expunged. So I guess your > TB has only marked mails \Deleted, but not actually expunged anything. Yes, Thunderbird's default is to only mark as deleted (true of many clients I think?). There are some options to encourage it to expunge "more frequently". Also (and you need EVERY user to change this..) you can set your delete action to (say) move the mails to a Trash folder. I think this (mark, then expunge) behaviour is very alien to most email users, it's just not how any other MUA actually behaves (at best they all hide the imap behaviour). There are some features in dovecot to help hide this, but I think it would actually be quite helpful to have a Dovecot feature which literally intercepts an MUA marking messages deleted and whips them into the Trash folder..? Anyway, just a wierdness in IMAP which I think really hasn't worked out as the model of how the rest of the world decided to work. I personally desire this behaviour to go away since it's confusing to 99% of non technical users... Cheers Ed W From dmiller at amfes.com Fri May 20 18:17:56 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Fri, 20 May 2011 08:17:56 -0700 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> References: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> Message-ID: On 5/19/2011 3:46 PM, Timo Sirainen wrote: > On 19.5.2011, at 18.40, Cor Bosman wrote: > >> Hey all, im experimenting with squat for a small project but am not having much luck. Debugging tells me squat is being loaded, but the index.search files are not appearing after TEXT/BODY commands. Squat plugin was added to config as well. > plugin { > fts = squat > } I do have that - but after executing a command such as "doveadm search text -u user at domain.com something", and then following up with a "find /var/mail -iname 'dovecot*' - the only files I see listed are: dovecot.mailbox.log dovecot.map.index.log dovecot.index.log dovecot.index.cache Where are the squat indexes stored? -- Daniel From tss at iki.fi Fri May 20 22:01:36 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 20 May 2011 22:01:36 +0300 Subject: [Dovecot] Global fields for passwd-file database In-Reply-To: <4DD5FDFF.8080308@telros.ru> References: <4DD5FDFF.8080308@telros.ru> Message-ID: <1305918096.10421.370.camel@hurina> On Fri, 2011-05-20 at 09:37 +0400, Sergey Urushkin wrote: > Is there a way to specify global fields for passwd-file DB? No. From tss at iki.fi Fri May 20 22:02:51 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 20 May 2011 22:02:51 +0300 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: References: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> Message-ID: <1305918171.10421.371.camel@hurina> On Fri, 2011-05-20 at 08:17 -0700, Daniel L. Miller wrote: > > plugin { > > fts = squat > > } > > I do have that - but after executing a command such as "doveadm search > text -u user at domain.com something", and then following up with a "find > /var/mail -iname 'dovecot*' - the only files I see listed are: > > dovecot.mailbox.log > dovecot.map.index.log > dovecot.index.log > dovecot.index.cache > > Where are the squat indexes stored? dovecot -n? From kjonca at o2.pl Fri May 20 22:35:39 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Fri, 20 May 2011 21:35:39 +0200 Subject: [Dovecot] Crash test :) Message-ID: <87hb8pxj04.fsf@alfa.kjonca> I'm considering to move my mails from maildir/mbox to mdbox. One of my doubts is: how can I restore my mails when something terrribly wrong happens. I understand that I should use doveadm import "backup_location" "mailbox" all. So I try to import with: doveadm -v import "sdbox:~/Mail/dbox-temp/spamcop/reports/" "#Dbox/spamcop/reports" all #Dbox namespace were defined as: --8<---------------cut here---------------start------------->8--- namespace { hidden = no inbox = no list = yes location = mdbox:~/Mail/Dbox prefix = "#Dbox/" separator = / subscriptions = yes type = private } --8<---------------cut here---------------end--------------->8--- dbox-temp were defined earlier as --8<---------------cut here---------------start------------->8--- namespace { hidden = no inbox = no list = yes location = sdbox:~/Mail/dbox-temp separator = / subscriptions = yes type = private } --8<---------------cut here---------------end--------------->8--- 1. when I specified for example sdbox:~/Mail/dbox-temp/spamcop/reports/ doveadm search mails under ~/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails/ - am I missing something from documentation? (I expected rather ~/Mail/dbox-temp/mailboxes/spamcop/reports/dbox-Mails) 2. when I move dbox-Mails to proper place I got: doveadm(kjonca): Error: sdbox /home/kjonca/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails: Invalid dbox header size doveadm(kjonca): Error: sdbox /home/kjonca/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails: Invalid dbox header size And nothing were imported. Notices: a) there were only u.* files, no indexes. b) u.* files were created on i386 system, and import test on amd64. KJ -- http://blogdebart.pl/2010/03/17/dalsze-przygody-swinki-w-new-jersey/ From tss at iki.fi Fri May 20 22:57:21 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 20 May 2011 22:57:21 +0300 Subject: [Dovecot] Crash test :) In-Reply-To: <87hb8pxj04.fsf@alfa.kjonca> References: <87hb8pxj04.fsf@alfa.kjonca> Message-ID: <1B1EBB7C-2A68-41EE-B520-ACB8F55A270B@iki.fi> On 20.5.2011, at 22.35, Kamil Jo?ca wrote: > So I try to import with: > > doveadm -v import "sdbox:~/Mail/dbox-temp/spamcop/reports/" "#Dbox/spamcop/reports" all You probably want something more like: doveadm import sdbox:~/Mail/dbox-temp "#Dbox" mailbox spamcop/reports > dbox-temp were defined earlier as > --8<---------------cut here---------------start------------->8--- > namespace { > hidden = no > inbox = no > list = yes > location = sdbox:~/Mail/dbox-temp > separator = / > subscriptions = yes > type = private > } > --8<---------------cut here---------------end--------------->8--- This isn't needed. > 2. when I move dbox-Mails to proper place I got: > > doveadm(kjonca): Error: sdbox /home/kjonca/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails: Invalid dbox header size What Dovecot version? I think this is fixed already. > b) u.* files were created on i386 system, and import test on amd64. Index files use the same format in 32bit and 64bit systems (but not in little vs big endian). From dmiller at amfes.com Fri May 20 23:33:08 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Fri, 20 May 2011 13:33:08 -0700 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: <1305918171.10421.371.camel@hurina> References: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> <1305918171.10421.371.camel@hurina> Message-ID: On 5/20/2011 12:02 PM, Timo Sirainen wrote: > On Fri, 2011-05-20 at 08:17 -0700, Daniel L. Miller wrote: >>> plugin { >>> fts = squat >>> } >> I do have that - but after executing a command such as "doveadm search >> text -u user at domain.com something", and then following up with a "find >> /var/mail -iname 'dovecot*' - the only files I see listed are: >> >> dovecot.mailbox.log >> dovecot.map.index.log >> dovecot.index.log >> dovecot.index.cache >> >> Where are the squat indexes stored? > dovecot -n? # 2.0.11: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.35-22-server x86_64 Ubuntu 10.10 auth_cache_size = 4 k auth_mechanisms = plain login default_login_user = nobody disable_plaintext_auth = no listen = * mail_attachment_dir = /var/mail/attachments managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date namespace { hidden = no inbox = yes list = yes location = prefix = separator = . subscriptions = yes type = private } passdb { args = /usr/local/etc/dovecot/dovecot-ldap.conf driver = ldap } plugin/fts = squat plugin/fts_squat = partial=4 full=4 plugin/sieve = ~/.dovecot.sieve plugin/sieve_dir = ~/sieve plugin/zlib_save = gz plugin/zlib_save_level = 9 protocols = imap lmtp sieve service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = mail mode = 0600 user = vmail } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = mail mode = 0666 user = vmail } } service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } process_min_avail = 0 service_count = 1 } ssl_cert = References: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> <1305918171.10421.371.camel@hurina> Message-ID: On 20.5.2011, at 23.33, Daniel L. Miller wrote: > # 2.0.11: /usr/local/etc/dovecot/dovecot.conf > # OS: Linux 2.6.35-22-server x86_64 Ubuntu 10.10 .. > protocol imap { > mail_plugins = " fts fts_squat imap_zlib zlib" > } You've enabled fts for imap protocol, nothing else. Same with zlib, which can cause trouble. Make them global: mail_plugins = fts fts_squat zlib protocol imap { mail_plugins = $mail_plugins imap_zlib } From kjonca at o2.pl Sat May 21 00:07:46 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Fri, 20 May 2011 23:07:46 +0200 Subject: [Dovecot] Crash test :) References: <87hb8pxj04.fsf@alfa.kjonca> <1B1EBB7C-2A68-41EE-B520-ACB8F55A270B@iki.fi> Message-ID: <87d3jdxeql.fsf@alfa.kjonca> Timo Sirainen writes: > On 20.5.2011, at 22.35, Kamil Jo?ca wrote: > >> So I try to import with: >> >> doveadm -v import "sdbox:~/Mail/dbox-temp/spamcop/reports/" "#Dbox/spamcop/reports" all > > You probably want something more like: > > doveadm import sdbox:~/Mail/dbox-temp "#Dbox" mailbox spamcop/reports Thanks. > >> 2. when I move dbox-Mails to proper place I got: >> >> doveadm(kjonca): Error: sdbox /home/kjonca/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails: Invalid dbox header size > > What Dovecot version? I think this is fixed already. Um. :( Files were created about 2 months ago. It was certainly 1.x, but now it is hard to say, what exactly version it was. KJ -- http://sporothrix.wordpress.com/2011/01/16/usa-sie-krztusza-kto-nastepny/ Zuzanka najwyra?niej pe?ni obowi?zki Albina Siwaka w tej ekipie... (C) Slawek Kotynski w dyskusj nt. pl.whatewer.SETI at home... From kjonca at o2.pl Sat May 21 01:21:27 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Sat, 21 May 2011 00:21:27 +0200 Subject: [Dovecot] Crash test :) References: <87hb8pxj04.fsf@alfa.kjonca> <1B1EBB7C-2A68-41EE-B520-ACB8F55A270B@iki.fi> <87d3jdxeql.fsf@alfa.kjonca> Message-ID: <87y621vwrc.fsf@alfa.kjonca> kjonca at o2.pl (Kamil Jo?ca) writes: [...] >>> 2. when I move dbox-Mails to proper place I got: >>> >>> doveadm(kjonca): Error: sdbox /home/kjonca/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails: Invalid dbox header size >> >> What Dovecot version? I think this is fixed already. > > Um. :( Files were created about 2 months ago. It was certainly 1.x, but > now it is hard to say, what exactly version it was. But question is open: Can I (and how) restore mails from so old backup? KJ -- http://modnebzdury.wordpress.com/2009/10/01/niewiarygodny-list-prof-majewskiej-wprowadzenie/ Suma inteligencji na planecie jest stala, liczba ludzi powieksza sie. From tss at iki.fi Sat May 21 01:30:22 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 01:30:22 +0300 Subject: [Dovecot] Crash test :) In-Reply-To: <87y621vwrc.fsf@alfa.kjonca> References: <87hb8pxj04.fsf@alfa.kjonca> <1B1EBB7C-2A68-41EE-B520-ACB8F55A270B@iki.fi> <87d3jdxeql.fsf@alfa.kjonca> <87y621vwrc.fsf@alfa.kjonca> Message-ID: <544A05F0-C45F-404B-AF33-D068FCDD1E04@iki.fi> On 21.5.2011, at 1.21, Kamil Jo?ca wrote: >>>> 2. when I move dbox-Mails to proper place I got: >>>> >>>> doveadm(kjonca): Error: sdbox /home/kjonca/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails: Invalid dbox header size >>> >>> What Dovecot version? I think this is fixed already. >> >> Um. :( Files were created about 2 months ago. It was certainly 1.x, but >> now it is hard to say, what exactly version it was. > > But question is open: Can I (and how) restore mails from so old backup? Dovecot v2.0 should be able to read v1.x's dbox files. If it can, it can restore the backups. The only difference I can think of is that in some version I changed the default to have dbox save everything under "mailboxes/" directory. If your backups don't use that directory, you can use something like: doveadm import sdbox:~/Mail/dbox-temp:MAILBOXDIR= "#Dbox" mailbox spamcop/reports From dovecot-user at spambox.dk Sat May 21 02:10:39 2011 From: dovecot-user at spambox.dk (Henrik Larsson) Date: Sat, 21 May 2011 01:10:39 +0200 Subject: [Dovecot] IMAP COMPRESS not announced while using imap_zlib plugin Message-ID: <4DD6F4EF.4050902@spambox.dk> I'm trying to enable the IMAP COMPRESS plugin listed here: http://wiki2.dovecot.org/Plugins/Compress I have added zlib globally and imap_zlib to the imap protocol. This is the output from doveconf -n with regards to mail_plugins: --cut-- mail_plugins = zlib protocol imap { mail_plugins = zlib imap_zlib } --cut But it seem like the feature is not announced when connecting to the IMAP server: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED AUTH=DIGEST-MD5 AUTH=CRAM-MD5] Dovecot ready. I would expect something like COMPRESS=DEFLATE. I haven't enabled any compression for the Maildir files, zlib_save_level and zlib_save is not set. Does IMAP COMPRESS only work if the mailbox is compressed? Best regards Henrik Larsson From tss at iki.fi Sat May 21 02:17:37 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 02:17:37 +0300 Subject: [Dovecot] IMAP COMPRESS not announced while using imap_zlib plugin In-Reply-To: <4DD6F4EF.4050902@spambox.dk> References: <4DD6F4EF.4050902@spambox.dk> Message-ID: <84AA6648-117B-4D93-BB2E-A2E3954AD57B@iki.fi> On 21.5.2011, at 2.10, Henrik Larsson wrote: > But it seem like the feature is not announced when connecting to the IMAP server: > * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED AUTH=DIGEST-MD5 AUTH=CRAM-MD5] Dovecot ready. Log in first. > I would expect something like COMPRESS=DEFLATE. Not yet. From dovecot-user at spambox.dk Sat May 21 02:31:14 2011 From: dovecot-user at spambox.dk (Henrik Larsson) Date: Sat, 21 May 2011 01:31:14 +0200 Subject: [Dovecot] IMAP COMPRESS not announced while using imap_zlib plugin In-Reply-To: <84AA6648-117B-4D93-BB2E-A2E3954AD57B@iki.fi> References: <4DD6F4EF.4050902@spambox.dk> <84AA6648-117B-4D93-BB2E-A2E3954AD57B@iki.fi> Message-ID: <4DD6F9C2.7090301@spambox.dk> >> But it seem like the feature is not announced when connecting to the IMAP server: >> * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED AUTH=DIGEST-MD5 AUTH=CRAM-MD5] Dovecot ready. > Log in first. Thank you Timo, I see it is listed after login. The reason why I didn't check this was the explanation in the RFC. Here the feature is announced before logging in: --cut-- The following example illustrates how commands and responses are compressed during a simple login sequence: S: * OK [CAPABILITY IMAP4REV1 STARTTLS COMPRESS=DEFLATE] C: a starttls S: a OK TLS active --cut-- Is there any way I can see in the logs if IMAP COMPRESS is used? Best regards Henrik Larsson From dovecot-user at spambox.dk Sat May 21 02:51:08 2011 From: dovecot-user at spambox.dk (Henrik Larsson) Date: Sat, 21 May 2011 01:51:08 +0200 Subject: [Dovecot] Dovecot stops with "Fatal: kevent(): Invalid argument" In-Reply-To: <4DCE8161.8020109@spambox.dk> References: <4DC1D95D.3070603@spambox.dk> <4DCE8161.8020109@spambox.dk> Message-ID: <4DD6FE6C.6010607@spambox.dk> >> That patch doesn't fix anything. It only changes the error message to >> be more informative so I could figure out what is causing it. If you >> haven't seen any more errors, it's just a coincidence. > > I have for some reason not seen the error since applying the above > patch. But wouldn't it make sense to include the patch in the stable > release so others can give input in the rare case they experience the > same issue? At least until the issue has been resolved. > > I don't say that this is a Dovecot issue, and I admit that it have to > be a rare case, but when two independent people experience the same > error, there have to be a problem somewhere. Is there a problem adding a patch like this to the stable code? Should I ask the FreeBSD dovecot2 port maintainer to add it to the FreeBSD port instead? Best regards Henrik Larsson From urushkin at telros.ru Sat May 21 10:23:50 2011 From: urushkin at telros.ru (Sergey Urushkin) Date: Sat, 21 May 2011 11:23:50 +0400 Subject: [Dovecot] Global fields for passwd-file database In-Reply-To: <1305918096.10421.370.camel@hurina> References: <4DD5FDFF.8080308@telros.ru> <1305918096.10421.370.camel@hurina> Message-ID: <68c1d4c1-2f4b-411c-ac2a-df6b806ff5f0@email.android.com> And no hope it'll be implemented ever? -- Best regards, Sergey Urushkin Timo Sirainen wrote: On Fri, 2011-05-20 at 09:37 +0400, Sergey Urushkin wrote: > Is there a way to specify global fields for passwd-file DB? No. From jtam.home at gmail.com Sat May 21 10:51:34 2011 From: jtam.home at gmail.com (Joseph Tam) Date: Sat, 21 May 2011 00:51:34 -0700 (PDT) Subject: [Dovecot] How to stop mail_executable from cwd to ~home In-Reply-To: References: Message-ID: On Thu, 19 May 2011, I wrote: > Gary Duncan writes: > >> Works well except that dovecot still wants to cd to the real home >> triggering a useless and potentially hindering automount when it >> invokes the imap or pop3 process specified by mail_executable, ie an >> lsof of the process shows cwd of /home/ and the automounted >> home. > > I see the same behaviour in 2.0.13, which process tracing of imap > shows more clearly (/nfs/user is per user mount, /nfs/home/user > is user home bundle) This appears to be done (v2.0.13) in mail-storage-service.c in an attempt to make sure core files are dumped into a user's home directory if ((user->flags & MAIL_STORAGE_SERVICE_FLAG_TEMP_PRIV_DROP) != 0 && (user->flags & MAIL_STORAGE_SERVICE_FLAG_ENABLE_CORE_DUMPS) == 0) { /* we don't want to write core files to any users' home directories since they could contain information about other users' mails as well. so do no chdiring to home. */ } else if (*home != '\0' && (user->flags & MAIL_STORAGE_SERVICE_FLAG_NO_CHDIR) == 0) { /* If possible chdir to home directory, so that core file could be written in case we crash. */ if (chdir(home) < 0) { ... debug diagnostics ... } } As to how to stop the mail process from chdir'ing to a home directory rather than putting core files somewhere else, I don't know how to do it without altering the source code or wrapping these processes in something that alters the HOME environment variable. I also can't find how user->flags sets MAIL_STORAGE_SERVICE_FLAG_NO_CHDIR or MAIL_STORAGE_SERVICE_FLAG_ENABLE_CORE_DUMPS that could influence this behaviour. Joseph Tam From tss at iki.fi Sat May 21 18:52:08 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 18:52:08 +0300 Subject: [Dovecot] How to stop mail_executable from cwd to ~home In-Reply-To: References: Message-ID: On 21.5.2011, at 10.51, Joseph Tam wrote: > On Thu, 19 May 2011, I wrote: > >> Gary Duncan writes: >> >>> Works well except that dovecot still wants to cd to the real home >>> triggering a useless and potentially hindering automount when it >>> invokes the imap or pop3 process specified by mail_executable, ie an >>> lsof of the process shows cwd of /home/ and the automounted >>> home. >> I see the same behaviour in 2.0.13, which process tracing of imap >> shows more clearly (/nfs/user is per user mount, /nfs/home/user >> is user home bundle) > > This appears to be done (v2.0.13) in mail-storage-service.c in an attempt to > make sure core files are dumped into a user's home directory That's one reason, yes. It's also needed when doing chrooting. And in general it's cleaner.. > As to how to stop the mail process from chdir'ing to a home directory If you don't want Dovecot to use a home directory, don't tell it a home directory. From tss at iki.fi Sat May 21 18:54:55 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 18:54:55 +0300 Subject: [Dovecot] Dovecot stops with "Fatal: kevent(): Invalid argument" In-Reply-To: <4DD6FE6C.6010607@spambox.dk> References: <4DC1D95D.3070603@spambox.dk> <4DCE8161.8020109@spambox.dk> <4DD6FE6C.6010607@spambox.dk> Message-ID: On 21.5.2011, at 2.51, Henrik Larsson wrote: > >>> That patch doesn't fix anything. It only changes the error message to be more informative so I could figure out what is causing it. If you haven't seen any more errors, it's just a coincidence. >> >> I have for some reason not seen the error since applying the above patch. But wouldn't it make sense to include the patch in the stable release so others can give input in the rare case they experience the same issue? At least until the issue has been resolved. >> >> I don't say that this is a Dovecot issue, and I admit that it have to be a rare case, but when two independent people experience the same error, there have to be a problem somewhere. > > Is there a problem adding a patch like this to the stable code? Annoying to add ugly debug code for a problem that happens so rarely.. > Should I ask the FreeBSD dovecot2 port maintainer to add it to the FreeBSD port instead? I wouldn't mind them adding it. From tss at iki.fi Sat May 21 18:56:28 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 18:56:28 +0300 Subject: [Dovecot] IMAP COMPRESS not announced while using imap_zlib plugin In-Reply-To: <4DD6F9C2.7090301@spambox.dk> References: <4DD6F4EF.4050902@spambox.dk> <84AA6648-117B-4D93-BB2E-A2E3954AD57B@iki.fi> <4DD6F9C2.7090301@spambox.dk> Message-ID: <3DF97395-0599-4BB8-9774-F9B62E464C16@iki.fi> On 21.5.2011, at 2.31, Henrik Larsson wrote: > Is there any way I can see in the logs if IMAP COMPRESS is used? Not currently. Would be nice in the logout message I guess. From tss at iki.fi Sat May 21 18:59:18 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 18:59:18 +0300 Subject: [Dovecot] Global fields for passwd-file database In-Reply-To: <68c1d4c1-2f4b-411c-ac2a-df6b806ff5f0@email.android.com> References: <4DD5FDFF.8080308@telros.ru> <1305918096.10421.370.camel@hurina> <68c1d4c1-2f4b-411c-ac2a-df6b806ff5f0@email.android.com> Message-ID: <06B571C1-45D0-434D-8D82-BF89B1BF1103@iki.fi> On 21.5.2011, at 10.23, Sergey Urushkin wrote: > And no hope it'll be implemented ever? I guess a generic implementation could be added: passdb { # overridden by passdb entries extra_fields_defaults = uid=1000 gid=1000 # these override the passdb entries extra_fields_overrides = home=/home/%u } And the same for userdb. Although I don't really like those setting names. Wonder if there are some better ones. From tss at iki.fi Sat May 21 23:23:41 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 23:23:41 +0300 Subject: [Dovecot] Behavior difference in mbox versus Maildir listing In-Reply-To: <20110521221618.7736bf28@neptune.home> References: <20110521221618.7736bf28@neptune.home> Message-ID: On 21.5.2011, at 23.16, Bruno Pr?mont wrote: > The resulting IMAPv4 session is: > mb1 LIST "" "#mbox.%" > * LIST (\Noselect \HasChildren) "." "#mbox.folder" > mb1 OK List completed. > mb2 LIST "" "#mbox.folder.%" > * LIST (\Noselect \HasChildren) "." "#mbox.folder." > * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1a" > * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1b" > * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1c" > mb2 OK List completed. > md1 LIST "" "#maildir.%" > * LIST (\HasChildren) "." "#maildir.folder" > md1 OK List completed. > md2 LIST "" "#maildir.folder.%" > * LIST (\HasNoChildren) "." "#maildir.folder.folder1a" > * LIST (\HasNoChildren) "." "#maildir.folder.folder1b" > * LIST (\HasNoChildren) "." "#maildir.folder.folder1c" > md2 OK List completed. > > Notice the extra presence of listed folder itself with trailing "." > in mb2 that has no equivalent in md2! > > Is this expected listing behavior? If so, why the differing behavior > between both storage engines? It's expected, although maybe not the best behavior. I'm basically copying UW-IMAP behavior for mbox and Courier/Cyrus behavior for Maildir. There are more detailed reasons for why the "#mbox.folder." should be listed, which are described by Mark Crispin somewhere in imap-protocol mailing list archives I think. I've been thinking about making dbox and Maildir (and maybe mbox) behavior identical though.. From bonbons at linux-vserver.org Sat May 21 23:16:18 2011 From: bonbons at linux-vserver.org (Bruno =?UTF-8?B?UHLDqW1vbnQ=?=) Date: Sat, 21 May 2011 22:16:18 +0200 Subject: [Dovecot] Behavior difference in mbox versus Maildir listing Message-ID: <20110521221618.7736bf28@neptune.home> Hi, My MUA (claws-mail) is having a hard time listing directories for a mail account with two namespaces, one of which using mbox and the other one using maildir to store mails. Let's call the namespaces "#mbox." and "#maildir." and have "." as separator. Assume I have the following folder hierarchy: $namespace $namespace folder $namespace folder folder1a $namespace folder folder1b $namespace folder folder1c The resulting IMAPv4 session is: mb1 LIST "" "#mbox.%" * LIST (\Noselect \HasChildren) "." "#mbox.folder" mb1 OK List completed. mb2 LIST "" "#mbox.folder.%" * LIST (\Noselect \HasChildren) "." "#mbox.folder." * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1a" * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1b" * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1c" mb2 OK List completed. md1 LIST "" "#maildir.%" * LIST (\HasChildren) "." "#maildir.folder" md1 OK List completed. md2 LIST "" "#maildir.folder.%" * LIST (\HasNoChildren) "." "#maildir.folder.folder1a" * LIST (\HasNoChildren) "." "#maildir.folder.folder1b" * LIST (\HasNoChildren) "." "#maildir.folder.folder1c" md2 OK List completed. Notice the extra presence of listed folder itself with trailing "." in mb2 that has no equivalent in md2! Is this expected listing behavior? If so, why the differing behavior between both storage engines? Affected dovecot versions: at least 1.1.16 and 2.0.11 (installed from Gentoo packages) System is x86 on XFS Thanks, Bruno -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From bonbons at linux-vserver.org Sat May 21 23:35:31 2011 From: bonbons at linux-vserver.org (Bruno =?UTF-8?B?UHLDqW1vbnQ=?=) Date: Sat, 21 May 2011 22:35:31 +0200 Subject: [Dovecot] Behavior difference in mbox versus Maildir listing In-Reply-To: References: <20110521221618.7736bf28@neptune.home> Message-ID: <20110521223531.3dd953fb@neptune.home> On Sat, 21 May 2011 Timo Sirainen wrote: > On 21.5.2011, at 23.16, Bruno Pr?mont wrote: > > > The resulting IMAPv4 session is: > > mb1 LIST "" "#mbox.%" > > * LIST (\Noselect \HasChildren) "." "#mbox.folder" > > mb1 OK List completed. > > mb2 LIST "" "#mbox.folder.%" > > * LIST (\Noselect \HasChildren) "." "#mbox.folder." > > * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1a" > > * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1b" > > * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1c" > > mb2 OK List completed. > > md1 LIST "" "#maildir.%" > > * LIST (\HasChildren) "." "#maildir.folder" > > md1 OK List completed. > > md2 LIST "" "#maildir.folder.%" > > * LIST (\HasNoChildren) "." "#maildir.folder.folder1a" > > * LIST (\HasNoChildren) "." "#maildir.folder.folder1b" > > * LIST (\HasNoChildren) "." "#maildir.folder.folder1c" > > md2 OK List completed. > > > > Notice the extra presence of listed folder itself with trailing "." > > in mb2 that has no equivalent in md2! > > > > Is this expected listing behavior? If so, why the differing behavior > > between both storage engines? > > It's expected, although maybe not the best behavior. I'm basically > copying UW-IMAP behavior for mbox and Courier/Cyrus behavior for > Maildir. There are more detailed reasons for why the "#mbox.folder." > should be listed, which are described by Mark Crispin somewhere in > imap-protocol mailing list archives I think. I've been thinking about > making dbox and Maildir (and maybe mbox) behavior identical though.. Hm, at least claws-mail (it uses libetpan) does not survive listing the #mbox namespace here, it loops listing the same folder until it crashes. The mbox behavior must have changed during 1.1.* series as some time ago I could refresh the folder list (unless claws-mail/libetpan changed their approach of listing folders recently) Reporting bug over there as crashing/infinite-looping MUA is bad. If you have a pointer to the detailed reasons for the differing behavior I would appreciate so I could add it to the bug report. Thanks, Bruno -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From tss at iki.fi Sat May 21 23:42:39 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 23:42:39 +0300 Subject: [Dovecot] Behavior difference in mbox versus Maildir listing In-Reply-To: <20110521223531.3dd953fb@neptune.home> References: <20110521221618.7736bf28@neptune.home> <20110521223531.3dd953fb@neptune.home> Message-ID: <6BC7D198-F40F-4736-9BBE-66D71F80F6E6@iki.fi> On 21.5.2011, at 23.35, Bruno Pr?mont wrote: >> It's expected, although maybe not the best behavior. I'm basically >> copying UW-IMAP behavior for mbox and Courier/Cyrus behavior for >> Maildir. There are more detailed reasons for why the "#mbox.folder." >> should be listed, which are described by Mark Crispin somewhere in >> imap-protocol mailing list archives I think. I've been thinking about >> making dbox and Maildir (and maybe mbox) behavior identical though.. > > Hm, at least claws-mail (it uses libetpan) does not survive listing the > #mbox namespace here, it loops listing the same folder until it crashes. Well, then I'd think it always crashes when listing mailboxes with UW-IMAP? If not, it has some special UW-IMAP specific crash-avoidance code.. > If you have a pointer to the detailed reasons for the differing behavior > I would appreciate so I could add it to the bug report. Well, one such link is http://marc.info/?l=imap&m=104561252904979&w=2 but there are probably better. From bonbons at linux-vserver.org Sun May 22 01:04:30 2011 From: bonbons at linux-vserver.org (Bruno =?UTF-8?B?UHLDqW1vbnQ=?=) Date: Sun, 22 May 2011 00:04:30 +0200 Subject: [Dovecot] Behavior difference in mbox versus Maildir listing In-Reply-To: <6BC7D198-F40F-4736-9BBE-66D71F80F6E6@iki.fi> References: <20110521221618.7736bf28@neptune.home> <20110521223531.3dd953fb@neptune.home> <6BC7D198-F40F-4736-9BBE-66D71F80F6E6@iki.fi> Message-ID: <20110522000430.133dd730@neptune.home> On Sat, 21 May 2011 Timo Sirainen wrote: > On 21.5.2011, at 23.35, Bruno Pr?mont wrote: > >> It's expected, although maybe not the best behavior. I'm basically > >> copying UW-IMAP behavior for mbox and Courier/Cyrus behavior for > >> Maildir. There are more detailed reasons for why the "#mbox.folder." > >> should be listed, which are described by Mark Crispin somewhere in > >> imap-protocol mailing list archives I think. I've been thinking about > >> making dbox and Maildir (and maybe mbox) behavior identical though.. > > > > Hm, at least claws-mail (it uses libetpan) does not survive listing the > > #mbox namespace here, it loops listing the same folder until it crashes. > > Well, then I'd think it always crashes when listing mailboxes with UW-IMAP? > If not, it has some special UW-IMAP specific crash-avoidance code.. Don't know if it has heuristics (grepping whole source e.g. for UW-IMAP yields not hit) but it proceeds as one would expect when separator is '/' instead of '.'... (going to check with another separator char just to see!) > > If you have a pointer to the detailed reasons for the differing behavior > > I would appreciate so I could add it to the bug report. > > Well, one such link is http://marc.info/?l=imap&m=104561252904979&w=2 but > there are probably better. Ok, so this would mean that the Maildir storage should also list the parent folder as is done for mbox? If other MTAs show trouble it might be worth having a config flag in dovecot tell if parent folder should be listed or not (for all engines)... Bruno -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From dmiller at amfes.com Sun May 22 05:59:02 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Sat, 21 May 2011 19:59:02 -0700 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: References: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> <1305918171.10421.371.camel@hurina> Message-ID: On 5/20/2011 1:37 PM, Timo Sirainen wrote: > On 20.5.2011, at 23.33, Daniel L. Miller wrote:.. >> protocol imap { >> mail_plugins = " fts fts_squat imap_zlib zlib" >> } > You've enabled fts for imap protocol, nothing else. Same with zlib, which can cause trouble. Make them global: > > mail_plugins = fts fts_squat zlib > protocol imap { > mail_plugins = $mail_plugins imap_zlib > } > Amazing - that works! Now...WHY does that work?! I thought I was doing the RIGHT thing by using the individual protocol plugin variables - not including plugins in areas that I THOUGHT were unnecessary. If there are plugins that need to be global (and there obviously are) - please indicate so in the wiki. -- Daniel From dmiller at amfes.com Sun May 22 06:04:01 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Sat, 21 May 2011 20:04:01 -0700 Subject: [Dovecot] fts crash Message-ID: I've completed my mailbox rebuild - theoretically I should be free of corruption. I used dsync to export from mdbox to maildir (so should be clean) then used a virtual machine with Dovecot to import back to mdbox in another location. So...theoretically I should be free of all corruption now... Running an fts update - "doveadm search text -u user at domain.com xyzzyx" works on some users - other mailboxes crash with: doveadm(dmiller at amfes.com): Panic: file squat-trie.c: line 876 (squat_build_word): assertion failed: (i + bytelen <= size) doveadm(dmiller at amfes.com): Error: Raw backtrace: /usr/local/lib/dovecot/libdovecot.so.0(+0x3ccca) [0x7ffee92b6cca] -> /usr/local/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x32) [0x7ffee92b6db2] -> /usr/local/lib/dovecot/libdovecot.so.0(+0x16dda) [0x7ffee9290dda] -> /usr/local/lib/dovecot/lib21_fts_squat_plugin.so(+0x5bbd) [0x7ffee6607bbd] -> /usr/local/lib/dovecot/lib21_fts_squat_plugin.so(squat_trie_build_more+0x153) [0x7ffee6607d13] -> /usr/local/lib/dovecot/lib20_fts_plugin.so(+0x59bc) [0x7ffee68159bc] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_search_next_nonblock+0x20) [0x7ffee99ac180] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_search_next+0x26) [0x7ffee99ac1d6] -> doveadm() [0x40ce47] -> doveadm() [0x409304] -> doveadm(doveadm_mail_single_user+0x8c) [0x40961c] -> doveadm() [0x409817] -> doveadm(doveadm_mail_try_run+0x141) [0x409c31] -> doveadm(main+0x3b1) [0x40dfd1] -> /lib/libc.so.6(__libc_start_main+0xfe) [0x7ffee8b09d8e] -> doveadm() [0x408c09] Aborted -- Daniel From dmiller at amfes.com Sun May 22 06:17:16 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Sat, 21 May 2011 20:17:16 -0700 Subject: [Dovecot] fts crash In-Reply-To: <4DD87D21.7080902@amfes.com> References: <4DD87D21.7080902@amfes.com> Message-ID: On 5/21/2011 8:04 PM, Daniel L. Miller wrote: > I've completed my mailbox rebuild - theoretically I should be free of > corruption. I used dsync to export from mdbox to maildir (so should > be clean) then used a virtual machine with Dovecot to import back to > mdbox in another location. So...theoretically I should be free of all > corruption now... > Perhaps I spoke too soon... May 21 20:13:38 bubba dovecot: imap(emiller at amfes.com): Error: FETCH [] for mailbox INBOX UID 1274 got too little data: 4443 vs 5253 May 21 20:13:38 bubba dovecot: imap(emiller at amfes.com): Error: Corrupted index cache file /var/mail/amfes.com/emiller/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: Broken virtual size for mail UID 1274 May 21 20:13:38 bubba dovecot: imap(emiller at amfes.com): Disconnected: FETCH failed bytes=103/5395 -- Daniel From dmiller at amfes.com Sun May 22 06:20:40 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Sat, 21 May 2011 20:20:40 -0700 Subject: [Dovecot] fts crash In-Reply-To: <4DD8803C.3060800@amfes.com> References: <4DD87D21.7080902@amfes.com> <4DD8803C.3060800@amfes.com> Message-ID: On 5/21/2011 8:17 PM, Daniel L. Miller wrote: > On 5/21/2011 8:04 PM, Daniel L. Miller wrote: >> I've completed my mailbox rebuild - theoretically I should be free of >> corruption. I used dsync to export from mdbox to maildir (so should >> be clean) then used a virtual machine with Dovecot to import back to >> mdbox in another location. So...theoretically I should be free of >> all corruption now... >> > Perhaps I spoke too soon... > > May 21 20:13:38 bubba dovecot: imap(emiller at amfes.com): Error: FETCH > [] for mailbox INBOX UID 1274 got too little data: 4443 vs 5253 > May 21 20:13:38 bubba dovecot: imap(emiller at amfes.com): Error: > Corrupted index cache file > /var/mail/amfes.com/emiller/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: > Broken virtual size for mail UID 1274 > May 21 20:13:38 bubba dovecot: imap(emiller at amfes.com): Disconnected: > FETCH failed bytes=103/5395 > > Note that the above logged error appears from a MUA accessing the mailbox - no log entries from a doveadm search text command. -- Daniel From kjonca at o2.pl Sun May 22 08:27:49 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Sun, 22 May 2011 07:27:49 +0200 Subject: [Dovecot] Crash test :) References: <87hb8pxj04.fsf@alfa.kjonca> <1B1EBB7C-2A68-41EE-B520-ACB8F55A270B@iki.fi> <87d3jdxeql.fsf@alfa.kjonca> <87y621vwrc.fsf@alfa.kjonca> <544A05F0-C45F-404B-AF33-D068FCDD1E04@iki.fi> Message-ID: <87fwo7wbhm.fsf@alfa.kjonca> Timo Sirainen writes: > On 21.5.2011, at 1.21, Kamil Jo?ca wrote: > >>>>> 2. when I move dbox-Mails to proper place I got: >>>>> >>>>> doveadm(kjonca): Error: sdbox /home/kjonca/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails: Invalid dbox header size >>>> >>>> What Dovecot version? I think this is fixed already. >>> >>> Um. :( Files were created about 2 months ago. It was certainly 1.x, but >>> now it is hard to say, what exactly version it was. >> >> But question is open: Can I (and how) restore mails from so old backup? > > Dovecot v2.0 should be able to read v1.x's dbox files. If it can, it can restore the backups. The only difference I can think of is that in some version I changed the default to have dbox save everything under "mailboxes/" directory. If your backups don't use that directory, you can use something like: > > doveadm import sdbox:~/Mail/dbox-temp:MAILBOXDIR= "#Dbox" mailbox spamcop/reports Unfortunately neither debian 2.0.12 nor 2.0.13 version can import these. Strange thing is that message "Invalid dbox header size" is printed after creating "dovecot-uidvalidity" and dovecot-index* files for source dbox, u.* files are not read at all. KJ -- http://blogdebart.pl/2010/03/17/dalsze-przygody-swinki-w-new-jersey/ "Nie mo?na wlecie? w trzecie tysiaclecie na drzwiach od stodo?y" - biskup polowy WP S?awoj Leszek G??d?. From errno at cox.net Sun May 22 08:53:55 2011 From: errno at cox.net (errno) Date: Sat, 21 May 2011 22:53:55 -0700 Subject: [Dovecot] hardluck w/ sieve Message-ID: <201105212253.55956.errno@cox.net> I've followed the docs here: http://wiki.dovecot.org/LDA/Sieve/Dovecot ... in particular, the 'Per-user Sieve script location' scenario. However, I'm unable to get any behavior that indicates that sieve is functioning correctly - well, functioning _at_all_ would be more accurate. Relevant dovecot.conf: protocol lda { ... mail_plugins = sieve } auth default { ... passdb passwd-file { args = /var/vmail/passwd } userdb static { args = uid=vmail gid=vmail home=/var/vmail/%d/%u } } plugin { sieve = /var/sieve-scripts/%d/%u.sieve } ls -l /var/sieve-scripts/domain.com/user.sieve -rw-r--r-- 1 vmail vmail 224 May 22 00:18 /var/sieve-scripts/domain/user.sieve I of course have an extremely simple rule in the example 'user.sieve' file; but for whatever reasons, no filtering is occurring. Is there anything obvious in my configuration that's broke? How best to debug? Thankyou! From errno at cox.net Sun May 22 09:00:40 2011 From: errno at cox.net (errno) Date: Sat, 21 May 2011 23:00:40 -0700 Subject: [Dovecot] hardluck w/ sieve In-Reply-To: <201105212253.55956.errno@cox.net> References: <201105212253.55956.errno@cox.net> Message-ID: <201105212300.40643.errno@cox.net> On Saturday, May 21, 2011 10:53:55 PM errno wrote: > I've followed the docs here: > > http://wiki.dovecot.org/LDA/Sieve/Dovecot > > ... in particular, the 'Per-user Sieve script location' scenario. > > However, I'm unable to get any behavior that indicates that > sieve is functioning correctly - well, functioning _at_all_ would > be more accurate. > > Relevant dovecot.conf: > > plugin { > sieve = /var/sieve-scripts/%d/%u.sieve > } > ... sheesh, of course the moment I send this it dawns on me what the problem is... The following fixed the issue: plugin { sieve = /var/sieve-scripts/%d/%n.sieve } I was using %u when I should have been using %n. Sorry for the noise! From svoop at delirium.ch Sun May 22 10:21:30 2011 From: svoop at delirium.ch (Sven Schwyn) Date: Sun, 22 May 2011 09:21:30 +0200 Subject: [Dovecot] dovecot-antispam dependencies Message-ID: Hi There's currently a version block for the dovecot and dovecot-antispam packages in Gentoo. Dependencies indicate that dovecot-2.0.11 does not accept dovecot-antispam-1.3. Is this correct or should it work? If not: How about the current rc of version 1.4? Cheers, -sven From tss at iki.fi Sun May 22 11:44:28 2011 From: tss at iki.fi (Timo Sirainen) Date: Sun, 22 May 2011 11:44:28 +0300 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: References: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> <1305918171.10421.371.camel@hurina> Message-ID: On 22.5.2011, at 5.59, Daniel L. Miller wrote: > On 5/20/2011 1:37 PM, Timo Sirainen wrote: >> On 20.5.2011, at 23.33, Daniel L. Miller wrote:.. >>> protocol imap { >>> mail_plugins = " fts fts_squat imap_zlib zlib" >>> } >> You've enabled fts for imap protocol, nothing else. Same with zlib, which can cause trouble. Make them global: >> >> mail_plugins = fts fts_squat zlib >> protocol imap { >> mail_plugins = $mail_plugins imap_zlib >> } >> > > Amazing - that works! Now...WHY does that work?! I thought I was doing the RIGHT thing by using the individual protocol plugin variables - not including plugins in areas that I THOUGHT were unnecessary. Sure it worked with imap. But you were trying to use doveadm. doveadm isn't imap.. > If there are plugins that need to be global (and there obviously are) - please indicate so in the wiki. Everything that isn't imap_* should probably be global. That is how all the examples are written. I don't know where/how I could say it better. From trever.adams at gmail.com Sun May 22 14:59:53 2011 From: trever.adams at gmail.com (Trever L. Adams) Date: Sun, 22 May 2011 05:59:53 -0600 Subject: [Dovecot] dovecot-antispam dependencies In-Reply-To: References: Message-ID: <4DD8FAB9.7040001@gmail.com> On 05/22/2011 01:21 AM, Sven Schwyn wrote: > Hi > > There's currently a version block for the dovecot and dovecot-antispam packages in Gentoo. Dependencies indicate that dovecot-2.0.11 does not accept dovecot-antispam-1.3. Is this correct or should it work? If not: How about the current rc of version 1.4? > > Cheers, -sven I believe you will find a much cleaned up version here: http://hg.dovecot.org/dovecot-antispam-plugin/ It will work. Thanks to Eugene for his work. Trever -- "Black holes are where God divided by zero." -- Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From alietsantiesteban at gmail.com Sun May 22 15:46:26 2011 From: alietsantiesteban at gmail.com (Aliet Santiesteban Sifontes) Date: Sun, 22 May 2011 08:46:26 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: <1305043528.10421.143.camel@hurina> References: <4DC3D251.4050004@Media-Brokers.com> <1305043528.10421.143.camel@hurina> Message-ID: Timo, Can you recommend us some benchmarking tools to test the dovecot cluster setup?? Best regards 2011/5/10 Timo Sirainen > I don't think those results look too bad, even the original ones. > imaptest doesn't measure real world performance anyway. Some ideas: > > - Try mdbox instead of sdbox. Cluster filesystems apparently like a few > bigger files better than many small ones. > > - Try imaptest with logout=0 (or =1 or something). Now you're measuring > way too much the login performance. > > - autocreate plugin sucks, especially with logout=100 because it has to > check that all of the mailboxes exist. In v2.1 autocreate plugin is > redesigned to not do any disk I/O. > > On Fri, 2011-05-06 at 23:01 -0400, Aliet Santiesteban Sifontes wrote: > > New results, now with all plugins disabled: > > > > os rhel6 x86_64, GFS2 Lun > > > > Totals: > > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > > 30% 5% > > 1- 4514 2189 2250 4514 4264 6163 709 3403 4260 4292 8726 > > 2- 2827 1409 1389 2827 2765 3951 495 2168 2765 2777 5644 > > 3- 2711 1409 1368 2711 2649 3833 512 2145 2647 2662 5396 > > 4- 1799 912 890 1799 1720 2492 360 1370 1719 1735 3592 > > 5- 3817 1869 1896 3760 3717 5313 575 3026 3715 3737 7616 > > 6- 3296 1583 1628 3296 3215 4585 523 2600 3215 3238 6584 > > > > 2011/5/6 Aliet Santiesteban Sifontes > > > > > the configs: > > > > > > [root at n02 ~]# dovecot -n > > > # 2.0.12: /etc/dovecot/dovecot.conf > > > # OS: Linux 2.6.32-71.24.1.el6.x86_64 x86_64 Red Hat Enterprise Linux > > > Server release 6.0 (Santiago) > > > auth_cache_size = 15 M > > > auth_default_realm = test.com > > > auth_mechanisms = plain login > > > auth_worker_max_count = 60 > > > disable_plaintext_auth = no > > > login_greeting = Server ready. > > > mail_fsync = never > > > mail_location = sdbox:~/sdbox:INDEX=/vmail/index/%n > > > mail_plugins = quota zlib > > > managesieve_notify_capability = mailto > > > managesieve_sieve_capability = fileinto reject envelope > encoded-character > > > vacation subaddress comparator-i;ascii-numeric relational regex > imap4flags > > > copy include variables body enotify environment mailbox date > > > mbox_write_locks = fcntl > > > mmap_disable = yes > > > namespace { > > > inbox = yes > > > location = > > > prefix = > > > separator = / > > > } > > > passdb { > > > args = /etc/dovecot/dovecot-ldap.conf.ext > > > driver = ldap > > > } > > > plugin { > > > autocreate = Sent > > > autocreate2 = Trash > > > autocreate3 = Drafts > > > autocreate4 = Junk > > > autocreate5 = Archives > > > autocreate6 = Templates > > > autosubscribe = Sent > > > autosubscribe2 = Trash > > > autosubscribe3 = Drafts > > > autosubscribe4 = Junk > > > autosubscribe5 = Archives > > > autosubscribe6 = Templates > > > quota = dict:User quota::file:%h/sdbox/dovecot-quota > > > quota_rule = *:storage=250M > > > quota_rule2 = Trash:storage=+50M > > > quota_rule3 = Spam:storage=+25M > > > quota_rule4 = Sent:ignore > > > sieve = ~/.dovecot.sieve > > > sieve_before = /var/vmail/sievescripts/before.d > > > sieve_dir = ~/sieve > > > zlib_save = gz > > > zlib_save_level = 6 > > > } > > > postmaster_address = postmaster at test.com > > > protocols = imap pop3 lmtp sieve > > > service auth { > > > unix_listener auth-userdb { > > > group = vmail > > > mode = 0660 > > > user = root > > > } > > > } > > > service imap-login { > > > service_count = 0 > > > } > > > > > > best regards > > > > > > > > > 2011/5/6 Charles Marcus > > > > > >> On 2011-05-05 7:56 PM, Aliet Santiesteban Sifontes wrote: > > >> > We have used sdbox as mailbox format, and all the user data is > > >> configured in > > >> > LDAP Servers > > >> > > >> It might help Timo to provide some suggestions if you also provide > > >> dovecot -n output... ;) > > >> > > >> -- > > >> > > >> Best regards, > > >> > > >> Charles > > >> > > > > > > > > > From dovecot-user at spambox.dk Sun May 22 16:08:42 2011 From: dovecot-user at spambox.dk (Henrik Larsson) Date: Sun, 22 May 2011 15:08:42 +0200 Subject: [Dovecot] Dovecot stops with "Fatal: kevent(): Invalid argument" In-Reply-To: References: <4DC1D95D.3070603@spambox.dk> <4DCE8161.8020109@spambox.dk> <4DD6FE6C.6010607@spambox.dk> Message-ID: <4DD90ADA.5030801@spambox.dk> >> Is there a problem adding a patch like this to the stable code? > Annoying to add ugly debug code for a problem that happens so rarely.. > But what are the alternatives? Best regards Henrik Larsson From bradley.giesbrecht at gmail.com Sun May 22 18:59:03 2011 From: bradley.giesbrecht at gmail.com (Bradley Giesbrecht) Date: Sun, 22 May 2011 08:59:03 -0700 Subject: [Dovecot] dovecot-antispam dependencies In-Reply-To: <4DD8FAB9.7040001@gmail.com> References: <4DD8FAB9.7040001@gmail.com> Message-ID: On May 22, 2011, at 4:59 AM, Trever L. Adams wrote: > On 05/22/2011 01:21 AM, Sven Schwyn wrote: >> Hi >> >> There's currently a version block for the dovecot and dovecot-antispam packages in Gentoo. Dependencies indicate that dovecot-2.0.11 does not accept dovecot-antispam-1.3. Is this correct or should it work? If not: How about the current rc of version 1.4? >> >> Cheers, -sven > I believe you will find a much cleaned up version here: > http://hg.dovecot.org/dovecot-antispam-plugin/ > > It will work. Thanks to Eugene for his work. It would be nice to make a release of Eugene's dovecot-antispam-plugin so packages can be made. I can find no version or tag info at http://hg.dovecot.org/dovecot-antispam-plugin/. -- Bradley Giesbrecht From trever.adams at gmail.com Sun May 22 20:42:23 2011 From: trever.adams at gmail.com (Trever L. Adams) Date: Sun, 22 May 2011 11:42:23 -0600 Subject: [Dovecot] dovecot-antispam dependencies In-Reply-To: References: <4DD8FAB9.7040001@gmail.com> Message-ID: <4DD94AFF.5080609@gmail.com> On 05/22/2011 09:59 AM, Bradley Giesbrecht wrote: > > It would be nice to make a release of Eugene's dovecot-antispam-plugin so packages can be made. > > I can find no version or tag info at http://hg.dovecot.org/dovecot-antispam-plugin/. > > -- > Bradley Giesbrecht Bradley, Just use the latest versions of the files. It works fine (a long time of using it on three servers here, one of which sees thousands of emails every few hours). If you want a rpm spec, I have made one. Trever -- "millihelen, n.: The amount of beauty required to launch one ship." -- Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From tom at whyscream.net Sun May 22 20:51:19 2011 From: tom at whyscream.net (Tom Hendrikx) Date: Sun, 22 May 2011 19:51:19 +0200 Subject: [Dovecot] dovecot-antispam dependencies In-Reply-To: <4DD94AFF.5080609@gmail.com> References: <4DD8FAB9.7040001@gmail.com> <4DD94AFF.5080609@gmail.com> Message-ID: <4DD94D17.2090909@whyscream.net> On 22/05/11 19:42, Trever L. Adams wrote: > On 05/22/2011 09:59 AM, Bradley Giesbrecht wrote: >> >> It would be nice to make a release of Eugene's dovecot-antispam-plugin so packages can be made. >> >> I can find no version or tag info at http://hg.dovecot.org/dovecot-antispam-plugin/. >> >> -- >> Bradley Giesbrecht > Bradley, > > Just use the latest versions of the files. It works fine (a long time of > using it on three servers here, one of which sees thousands of emails > every few hours). If you want a rpm spec, I have made one. > I would like to see a tagged version too, but trunk works fine here. Since the OP mentions Gentoo, my latest ebuild for dovecot-antispam for 2.x is attached. -- Tom -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: dovecot-antispam-9999.ebuild URL: From bradley.giesbrecht at gmail.com Sun May 22 21:30:21 2011 From: bradley.giesbrecht at gmail.com (Bradley Giesbrecht) Date: Sun, 22 May 2011 11:30:21 -0700 Subject: [Dovecot] dovecot-antispam dependencies In-Reply-To: <4DD94D17.2090909@whyscream.net> References: <4DD8FAB9.7040001@gmail.com> <4DD94AFF.5080609@gmail.com> <4DD94D17.2090909@whyscream.net> Message-ID: On May 22, 2011, at 10:51 AM, Tom Hendrikx wrote: > On 22/05/11 19:42, Trever L. Adams wrote: >> On 05/22/2011 09:59 AM, Bradley Giesbrecht wrote: >>> >>> It would be nice to make a release of Eugene's dovecot-antispam-plugin so packages can be made. >>> >>> I can find no version or tag info at http://hg.dovecot.org/dovecot-antispam-plugin/. >>> >>> -- >>> Bradley Giesbrecht >> Bradley, >> >> Just use the latest versions of the files. It works fine (a long time of >> using it on three servers here, one of which sees thousands of emails >> every few hours). If you want a rpm spec, I have made one. >> > > I would like to see a tagged version too, but trunk works fine here. > Since the OP mentions Gentoo, my latest ebuild for dovecot-antispam for > 2.x is attached. I maintain the MacPorts port of dovecot-antispam. Tags or releases help produce packages with consistent build results. I will go ahead and use a hg changeset and a date for a version to produce my package. -- Bradley Giesbrecht From dmiller at amfes.com Mon May 23 00:05:33 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Sun, 22 May 2011 14:05:33 -0700 Subject: [Dovecot] zlib Message-ID: How can I enable zlib for reading compressed messages but not writing? -- Daniel From patrickdk at patrickdk.com Mon May 23 02:25:00 2011 From: patrickdk at patrickdk.com (Patrick Domack) Date: Sun, 22 May 2011 19:25:00 -0400 Subject: [Dovecot] zlib In-Reply-To: References: Message-ID: <20110522192500.Horde.1CzVE5LnE6FN2ZtM310kKBA@mail.patrickdk.com> only enable the plugin for pop and imap, but not lda or lmtp modes. Quoting "Daniel L. Miller" : > How can I enable zlib for reading compressed messages but not writing? > > -- > Daniel From jom at grosjo.net Mon May 23 05:14:00 2011 From: jom at grosjo.net (Joan Moreau) Date: Sun, 22 May 2011 21:14:00 -0500 Subject: [Dovecot] SVN Compilation error Message-ID: <2e52d7c774fc5337ff8db83a375193e7@grosjo.net> Hi, Here the error I get (SVN) Making all in dns make[3]: Entering directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src/dns' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src/dns' Making all in ipc make[3]: Entering directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src/ipc' MAKE[3]: *** NO RULE TO MAKE TARGET `ALL'. STOP. make[3]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src/ipc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0' make: *** [all] Error 2 From f.bonnet at esiee.fr Mon May 23 07:45:08 2011 From: f.bonnet at esiee.fr (Frank Bonnet) Date: Mon, 23 May 2011 06:45:08 +0200 Subject: [Dovecot] Debian or Ubuntu packages ? Message-ID: <4DD9E654.10800@esiee.fr> Hello Anyone knows which version of Dovecot 2 are availables on Squeeze Debian or Ubuntu server 10.04 LTS ? Also what is the Linux OS that is must up to date ? Thanks From slusarz at curecanti.org Mon May 23 08:37:45 2011 From: slusarz at curecanti.org (Michael M Slusarz) Date: Sun, 22 May 2011 23:37:45 -0600 Subject: [Dovecot] PERMANENTFLAGS response if ACL seen/write rights are missing Message-ID: <20110522233745.Horde.IKZ7HIF5lbhN2fKpuzehF0A@bigworm.curecanti.org> In dovecot 2.0.13, if a user does not have either s or w ACL rights on a mailbox, PERMANENTFLAGS correctly indicates that the mailbox has not permanent flags: * OK [PERMANENTFLAGS ()] Read-only mailbox. However, if one is set but not the other, the PERMANENTFLAGS list is not being pruned appropriately. For example, for a mailbox with the following flags: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded $Junk) If s is set, but not w, I would expect PERMANENTFLAGS to look like: * OK [PERMANENTFLAGS (\Seen)] If w is set, but not s, I would expect this: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Draft $Forwarded $Junk \*)] However, in both cases I currently see all flags in the mailbox: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded $Junk \*)] michael From urushkin at telros.ru Mon May 23 09:35:41 2011 From: urushkin at telros.ru (Sergey Urushkin) Date: Mon, 23 May 2011 10:35:41 +0400 Subject: [Dovecot] Global fields for passwd-file database In-Reply-To: <06B571C1-45D0-434D-8D82-BF89B1BF1103@iki.fi> References: <4DD5FDFF.8080308@telros.ru> <1305918096.10421.370.camel@hurina> <68c1d4c1-2f4b-411c-ac2a-df6b806ff5f0@email.android.com> <06B571C1-45D0-434D-8D82-BF89B1BF1103@iki.fi> Message-ID: <4DDA003D.4090003@telros.ru> 21.05.2011 19:59, Timo Sirainen wrote: > I guess a generic implementation could be added: At least several people are waiting for it. > passdb { > # overridden by passdb entries > extra_fields_defaults = uid=1000 gid=1000 > > # these override the passdb entries > extra_fields_overrides = home=/home/%u > } > > And the same for userdb. Although I don't really like those setting names. Wonder if there are some better ones. Nothing bad with these names. It's clear even without comments. Thanks. -- Best regards, Sergey Urushkin From robert at schetterer.org Mon May 23 09:43:35 2011 From: robert at schetterer.org (Robert Schetterer) Date: Mon, 23 May 2011 08:43:35 +0200 Subject: [Dovecot] Debian or Ubuntu packages ? In-Reply-To: <4DD9E654.10800@esiee.fr> References: <4DD9E654.10800@esiee.fr> Message-ID: <4DDA0217.9070907@schetterer.org> Am 23.05.2011 06:45, schrieb Frank Bonnet: > Hello > > Anyone knows which version of Dovecot 2 are availables > on Squeeze Debian or Ubuntu server 10.04 LTS ? > you mostly got the latest dove here http://xi.rename-it.nl/debian/ anyway read http://wiki1.dovecot.org/PrebuiltBinaries#Automatically_Built_Packages > Also what is the Linux OS that is must up to date ? mostly last one got released so ubuntu 11.4 should may it be for today *g > > Thanks -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From aperezaranda at yaco.es Mon May 23 14:11:27 2011 From: aperezaranda at yaco.es (Antonio Perez-Aranda) Date: Mon, 23 May 2011 13:11:27 +0200 Subject: [Dovecot] [PATCH] Indexing mail attachments with Dovecot + Solr Message-ID: Indexing mail attachments with Dovecot + Solr. This patch has been tested with these versions: * dovecot 2.0.9 * apache-solr 1.4.1 This is a patch for the fts-solr plugin (that indexes mail messages for Dovecot with Solr). In main stream, the plugin does not index attachments; With this patch, you can index mails and their attachments (pdf, docs, openoffice docs...) . You can get others goodies with this patch and the Solr Config provided, like Synonyms and Stemming (Spanish by default). Attachment indexing is provided by Solr Cell and Tika (ExtractingRequestHandler) * http://wiki.apache.org/solr/ExtractingRequestHandler Synonyms and Stemming are provided by SnowballPorterFilterFactory from Solr Language Analysis: * http://wiki.apache.org/solr/LanguageAnalysis We have tested Solr with Tomcat and Jetty. Tomcat is better to handle UTF-8 and bigger POSTS. Attachments file format supported * http://tika.apache.org/0.9/formats.html At present, attachments in attachments (like, for example, attachments in fordwarded "eml" attachments) are not indexed. Also, keep in mind that there are many types of files, and many variants of the same file type. Per Example, some pdf files are "not readable" by solr pdf reader. Config: There are two new options added to fts_solr property: * index-attachments Enable attachments indexing. * manual-update Avoid index on user search. You can trigger indexing using doveadm search or doveadm index commands. There is a new property for the section plugin to filter the mimetypes that you want to index. * fts_solr_mimetype files with this mimetype will be sent to solr. After integrating solr directory in your solr config, and building Dovecot with fts-solr support and with fts-solr-attachments-r885.patch applied, you can update your dovecot config by adding to your dovecot.conf: ... mail_pluings = $mail_plugins fts fts_solr plugin { fts = solr fts_solr = url=http://solrhost:8983/solr/ break-imap-search index-attachments fts_solr_mimetype = application/x-pdf application/vnd.openxmlformats-officedocument.wordprocessingml.document } ... -- Antonio P?rez-Aranda Alcaide aperezaranda at yaco.es Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Tel?fono +34 954 50 00 57 Fax ? ? ?+34 954 50 09 29 From svoop at delirium.ch Mon May 23 14:35:48 2011 From: svoop at delirium.ch (Sven Schwyn) Date: Mon, 23 May 2011 13:35:48 +0200 Subject: [Dovecot] dovecot-antispam dependencies Message-ID: <5CB9D783-008E-410D-B79C-AE807180D98A@delirium.ch> > I would like to see a tagged version too, but trunk works fine here. > Since the OP mentions Gentoo, my latest ebuild for dovecot-antispam for > 2.x is attached. The thing with Gentoo: Unless a tagged version is created, it's very unlikely that the Gentoo guys update the current ebuild (aka: package) and thus the incompatibility between the dovecot and the dovecot-antispam packages in the package tree remains. Thanks for the ebuild. Cheers, -sven From mw+dovecot.org at lw-systems.de Mon May 23 14:52:59 2011 From: mw+dovecot.org at lw-systems.de (Martin =?utf-8?Q?Werthm=C3=B6ller?=) Date: Mon, 23 May 2011 13:52:59 +0200 Subject: [Dovecot] Hide INBOX prefix on shared mailboxes Message-ID: <20110523115259.GA4676@shpere> Hello List, We've upgraded our Dovecot system from 1.2.4 to 2.0.12. If someone now accesses an inbox of another user at the shared namespace, the folder will be shown as: shared/martin/INBOX The 1.2 installation has shown the folder like shared/martin Is it possible to achieve the "old" behavior? ** Configuration of the namespaces * dovecot 1.2 namespace private { separator = / prefix = #location defaults to mail_location. inbox = yes } namespace shared { separator = / prefix = shared/%%n location = maildir:%%h:INDEX=~/shared/%%n/ subscriptions = no list = children } * dovecot 2.0 namespace { type = private separator = / prefix = #location defaults to mail_location. inbox = yes } namespace { type = shared separator = / prefix = shared/%%n/ location = maildir:%%h:INDEX=~/shared/%%n subscriptions = no list = children } Best regards, Martin Werthmoeller -- LWsystems GmbH & Co. KG ++ http://www.lw-systems.de/impressum Phone: +49 +5455 932132 ++ Fax: +49 +5455 932099 Your experts for Linux, Open Source and IT security. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ LWsystems GmbH & Co. KG Headquaters: Tegelerweg 11, D-49186 Bad Iburg, Germany Phone +49 (0)5455 932132 fax +49 (0)5455 932099 register of commerce: Amtsgericht Osnabr?ck, hra 110668 VAT no. DE23852211 Managing Directors: Dipl.-Ing. Ansgar H. Licher, Bad Iburg, Germany Dipl.-Ing. Martin Werthm?ller, Ibbenb?ren, Germany For further company details please look at: http://www.lw-systems.de/impressum ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ From aperezaranda at yaco.es Mon May 23 14:14:01 2011 From: aperezaranda at yaco.es (Antonio Perez-Aranda) Date: Mon, 23 May 2011 13:14:01 +0200 Subject: [Dovecot] [PATCH] Indexing mail attachments with Dovecot + Solr In-Reply-To: References: Message-ID: Sorry, I forgot to include the attachment. 2011/5/23 Antonio Perez-Aranda : > Indexing mail attachments with Dovecot + Solr. > > This patch has been tested with these versions: > ?* dovecot 2.0.9 > ?* apache-solr 1.4.1 > > This is a patch for the fts-solr plugin (that indexes mail messages > for Dovecot with Solr). In main stream, the plugin does not index > attachments; With this patch, you can index mails and their > attachments (pdf, docs, openoffice docs...) . You can get others > goodies with this patch and the Solr > Config provided, like Synonyms and Stemming (Spanish by default). > > Attachment indexing is provided by Solr Cell and Tika (ExtractingRequestHandler) > ?* http://wiki.apache.org/solr/ExtractingRequestHandler > > Synonyms and Stemming are provided by SnowballPorterFilterFactory from > Solr Language Analysis: > ?* http://wiki.apache.org/solr/LanguageAnalysis > > We have tested Solr with Tomcat and Jetty. Tomcat is better to handle > UTF-8 and bigger POSTS. > > Attachments file format supported > ?* http://tika.apache.org/0.9/formats.html > > At present, attachments in attachments (like, for example, attachments > in fordwarded "eml" attachments) are not indexed. Also, keep in mind > that there are many types of files, and many variants of the same file > type. Per Example, some pdf files are "not readable" by solr pdf > reader. > > Config: > > There are two new options added to fts_solr property: > ?* index-attachments > ? ? ? Enable attachments indexing. > ?* manual-update > ? ? ? Avoid index on user search. You can trigger indexing using > doveadm search or doveadm index commands. > > There is a new property for the section plugin to filter the mimetypes > that you want to index. > ?* fts_solr_mimetype > ? ? ? files with this mimetype will be sent to solr. > > After integrating solr directory in your solr config, and building > Dovecot with fts-solr support and with fts-solr-attachments-r885.patch > applied, you can update your dovecot config by adding to your > dovecot.conf: > > ... > mail_pluings = $mail_plugins fts fts_solr > > plugin { > ? fts = solr > ? fts_solr = url=http://solrhost:8983/solr/ break-imap-search > index-attachments > ? fts_solr_mimetype = application/x-pdf > application/vnd.openxmlformats-officedocument.wordprocessingml.document > } > ... > > > > -- > Antonio P?rez-Aranda Alcaide > aperezaranda at yaco.es > > Yaco Sistemas S.L. > http://www.yaco.es/ > C/ Rioja 5, 41001 Sevilla > Tel?fono +34 954 50 00 57 > Fax ? ? ?+34 954 50 09 29 > -- Antonio P?rez-Aranda Alcaide aperezaranda at yaco.es Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Tel?fono +34 954 50 00 57 Fax ? ? ?+34 954 50 09 29 -------------- next part -------------- A non-text attachment was scrubbed... Name: fts-solr-attachments-r885.tar.gz Type: application/x-gzip Size: 28370 bytes Desc: not available URL: From tom at whyscream.net Mon May 23 15:24:57 2011 From: tom at whyscream.net (Tom Hendrikx) Date: Mon, 23 May 2011 14:24:57 +0200 Subject: [Dovecot] dovecot-antispam dependencies In-Reply-To: <5CB9D783-008E-410D-B79C-AE807180D98A@delirium.ch> References: <5CB9D783-008E-410D-B79C-AE807180D98A@delirium.ch> Message-ID: <4DDA5219.6080207@whyscream.net> On 23/05/11 13:35, Sven Schwyn wrote: >> I would like to see a tagged version too, but trunk works fine >> here. Since the OP mentions Gentoo, my latest ebuild for >> dovecot-antispam for 2.x is attached. > > The thing with Gentoo: Unless a tagged version is created, it's very > unlikely that the Gentoo guys update the current ebuild (aka: > package) and thus the incompatibility between the dovecot and the > dovecot-antispam packages in the package tree remains. > > Thanks for the ebuild. > > Cheers, -sven This was discussed some time ago [1], but it seems as if no real progress has been made since. Maybe we can put some spare time into the points Eugene made? Eugene: is there any progress on the issues listed in the mentioned e-mail? Anything we can help you with? [1] http://marc.info/?l=dovecot&m=128631351625368&w=2 -- Regards, Tom From CMarcus at Media-Brokers.com Mon May 23 15:54:22 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Mon, 23 May 2011 08:54:22 -0400 Subject: [Dovecot] [PATCH] Indexing mail attachments with Dovecot + Solr In-Reply-To: References: Message-ID: <4DDA58FE.8080707@Media-Brokers.com> On 2011-05-23 7:11 AM, Antonio Perez-Aranda wrote: > Indexing mail attachments with Dovecot + Solr. > > This patch has been tested with these versions: > * dovecot 2.0.9 > * apache-solr 1.4.1 Isn't it customary - and logical - to always test/patch against the current stable RELEASE version (ie, 2.0.13)? -- Best regards, Charles From CMarcus at Media-Brokers.com Mon May 23 15:56:15 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Mon, 23 May 2011 08:56:15 -0400 Subject: [Dovecot] Hide INBOX prefix on shared mailboxes In-Reply-To: <20110523115259.GA4676@shpere> References: <20110523115259.GA4676@shpere> Message-ID: <4DDA596F.8030104@Media-Brokers.com> On 2011-05-23 7:52 AM, Martin Werthm?ller wrote: > Hello List, > > We've upgraded our Dovecot system from 1.2.4 to 2.0.12. > > If someone now accesses an inbox of another user at the shared > namespace, the folder will be shown as: > > shared/martin/INBOX > > The 1.2 installation has shown the folder like > > shared/martin > > Is it possible to achieve the "old" behavior? What if Martin shared something other than his INBOX though? I think this is a cosmetic issue that could quickly get ugly since different people might like it shown differently... -- Best regards, Charles From tss at iki.fi Mon May 23 16:13:33 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 23 May 2011 16:13:33 +0300 Subject: [Dovecot] PERMANENTFLAGS response if ACL seen/write rights are missing In-Reply-To: <20110522233745.Horde.IKZ7HIF5lbhN2fKpuzehF0A@bigworm.curecanti.org> References: <20110522233745.Horde.IKZ7HIF5lbhN2fKpuzehF0A@bigworm.curecanti.org> Message-ID: <1306156413.10421.387.camel@hurina> On Sun, 2011-05-22 at 23:37 -0600, Michael M Slusarz wrote: > In dovecot 2.0.13, if a user does not have either s or w ACL rights on > a mailbox, PERMANENTFLAGS correctly indicates that the mailbox has not > permanent flags: Fixed in v2.1: http://hg.dovecot.org/dovecot-2.1/rev/189c9baf840a Too big of a change for v2.0. From tss at iki.fi Mon May 23 16:15:52 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 23 May 2011 16:15:52 +0300 Subject: [Dovecot] zlib In-Reply-To: References: Message-ID: <1306156552.10421.388.camel@hurina> On Sun, 2011-05-22 at 14:05 -0700, Daniel L. Miller wrote: > How can I enable zlib for reading compressed messages but not writing? That's the default. Writing is enabled only with zlib_save plugin setting. From jom at grosjo.net Mon May 23 16:24:07 2011 From: jom at grosjo.net (Joan Moreau) Date: Mon, 23 May 2011 08:24:07 -0500 Subject: [Dovecot] HG Compilation error Message-ID: Hi, Here the error I get, when compiling from Mercurial repository Making all in ipc make[3]: Entering directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src/ipc' MAKE[3]: *** NO RULE TO MAKE TARGET `ALL'. STOP. make[3]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src/ipc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0' make: *** [all] Error 2 How to fix that ? thx jm From tss at iki.fi Mon May 23 16:25:02 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 23 May 2011 16:25:02 +0300 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: References: <4DC3D251.4050004@Media-Brokers.com> <1305043528.10421.143.camel@hurina> Message-ID: <1306157102.10421.391.camel@hurina> On Sun, 2011-05-22 at 08:46 -0400, Aliet Santiesteban Sifontes wrote: > Timo, > Can you recommend us some benchmarking tools to test the dovecot cluster > setup?? See http://www.imapwiki.org/Benchmarking - the bottom lists all the benchmarking tools I know of. From tss at iki.fi Mon May 23 16:25:50 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 23 May 2011 16:25:50 +0300 Subject: [Dovecot] Crash test :) In-Reply-To: <87fwo7wbhm.fsf@alfa.kjonca> References: <87hb8pxj04.fsf@alfa.kjonca> <1B1EBB7C-2A68-41EE-B520-ACB8F55A270B@iki.fi> <87d3jdxeql.fsf@alfa.kjonca> <87y621vwrc.fsf@alfa.kjonca> <544A05F0-C45F-404B-AF33-D068FCDD1E04@iki.fi> <87fwo7wbhm.fsf@alfa.kjonca> Message-ID: <1306157150.10421.392.camel@hurina> On Sun, 2011-05-22 at 07:27 +0200, Kamil Jo?ca wrote: > >>> Um. :( Files were created about 2 months ago. It was certainly 1.x, but > >>> now it is hard to say, what exactly version it was. > >> > >> But question is open: Can I (and how) restore mails from so old backup? > > > > Dovecot v2.0 should be able to read v1.x's dbox files. If it can, it can restore the backups. The only difference I can think of is that in some version I changed the default to have dbox save everything under "mailboxes/" directory. If your backups don't use that directory, you can use something like: > > > > doveadm import sdbox:~/Mail/dbox-temp:MAILBOXDIR= "#Dbox" mailbox spamcop/reports > > > Unfortunately neither debian 2.0.12 nor 2.0.13 version can import > these. Strange thing is that message "Invalid dbox header size" is > printed after creating "dovecot-uidvalidity" and dovecot-index* files > for source dbox, u.* files are not read at all. Oh. I think it's entirely possible that current v2.0 can't really read v1.x dbox without giving errors.. From tss at iki.fi Mon May 23 16:27:10 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 23 May 2011 16:27:10 +0300 Subject: [Dovecot] SVN Compilation error In-Reply-To: <2e52d7c774fc5337ff8db83a375193e7@grosjo.net> References: <2e52d7c774fc5337ff8db83a375193e7@grosjo.net> Message-ID: <1306157230.10421.393.camel@hurina> On Sun, 2011-05-22 at 21:14 -0500, Joan Moreau wrote: > Here the error I get (SVN) hg, not svn. > make[3]: Entering directory > `/data/admin/src/mail/dovecot2/dovecot-2.0/src/ipc' > MAKE[3]: *** NO RULE > TO MAKE TARGET `ALL'. STOP. Thanks, fixed: http://hg.dovecot.org/dovecot-2.0/rev/9127a988acb8 From aperezaranda at yaco.es Mon May 23 16:40:17 2011 From: aperezaranda at yaco.es (Antonio Perez-Aranda) Date: Mon, 23 May 2011 15:40:17 +0200 Subject: [Dovecot] [PATCH] Indexing mail attachments with Dovecot + Solr In-Reply-To: <4DDA58FE.8080707@Media-Brokers.com> References: <4DDA58FE.8080707@Media-Brokers.com> Message-ID: Yes and I have it in my TODO, but we are using this version on a production system. And it is our base system for development. 2011/5/23 Charles Marcus : > On 2011-05-23 7:11 AM, Antonio Perez-Aranda wrote: >> Indexing mail attachments with Dovecot + Solr. >> >> This patch has been tested with these versions: >> ?* dovecot 2.0.9 >> ?* apache-solr 1.4.1 > > Isn't it customary - and logical - to always test/patch against the > current stable RELEASE version (ie, 2.0.13)? > > -- > > Best regards, > > Charles > -- Antonio P?rez-Aranda Alcaide aperezaranda at yaco.es Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Tel?fono +34 954 50 00 57 Fax ? ? ?+34 954 50 09 29 From ariel at post.tau.ac.il Mon May 23 18:07:42 2011 From: ariel at post.tau.ac.il (Ariel Biener) Date: Mon, 23 May 2011 18:07:42 +0300 Subject: [Dovecot] delegation of admin rights Message-ID: <4DDA783E.1030706@post.tau.ac.il> Hello, We're a rather largish university (largest in Israel), with some 60-70k users, using Dovecot 1.2.14 (we're cautious about moving to 2.0.x for now). We need to provide admin rights to faculty computer/IT staff, so they can have access to the mailboxes of their respective users. We use LDAP as an authentication/authorization backend. Currently, dovecot has a "master user" which can access all mailboxes. I am looking for a solution, preferably within dovecot, to create a delegation type of administration, allowing certain users to access the mailboxes of other users based on an LDAP filter or LDAP attribute value. If possible, allowing per protocol access(that is, I would like to give them IMAP access and not POP3) and within IMAP allowing only to view a mailbox, but not to change it, that would be even better. Does anyone on this list know of any IMAP proxy providing such abilities, and also, would the Dovecot team consider this as a candidate for a request for enhancement ? This would be very useful in a delegated administration environment, like most larger organizations, hosting & ISP, and other environments where delegation is an important and very much needed ability. thanks a bunch, -- Ariel -- Ariel Biener e-mail: ariel at post.tau.ac.il PGP: http://www.tau.ac.il/~ariel/pgp.html From lists at wildgooses.com Mon May 23 18:15:52 2011 From: lists at wildgooses.com (Ed W) Date: Mon, 23 May 2011 16:15:52 +0100 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: References: <4DC3D251.4050004@Media-Brokers.com> <1305043528.10421.143.camel@hurina> Message-ID: <4DDA7A28.7090505@wildgooses.com> On 11/05/2011 00:00, Aliet Santiesteban Sifontes wrote: > Using local storage(local hard driver ext4 filesystems) > > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 7798 3868 3889 7706 7566 10713 1080 6089 7559 7688 15562 > 7806 3879 3874 7716 7585 10873 1114 6018 7578 7696 15572 > 7866 3910 3855 7773 7748 11053 1076 6253 7747 7761 15710 > 7893 3978 3931 7802 7772 10988 1117 6197 7767 7789 15760 > 7775 3853 3809 7683 7654 10897 1081 6142 7651 7675 15534 > 7877 3919 3872 7789 7758 10986 1085 6218 7755 7773 15720 > > GFS2-mdbox, (no plugins) > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 7547 3739 3749 7455 7421 10605 1053 5931 7417 7443 15074 > 7480 3702 3724 7387 7367 10558 1064 5874 7366 7378 14946 > 7523 3759 3711 7428 7394 10560 1126 5898 7390 7412 15014 > 7455 3736 3621 7364 7326 10561 1088 5854 7324 7349 14880 > 7431 3712 3686 7337 7312 10406 1017 5882 7311 7328 14844 > 7426 3704 3671 7334 7296 10364 1076 5791 7296 7325 14834 > 7517 3673 3782 7425 7406 10554 1103 5913 7404 7414 15008 Hi, this performance seems excellent! There is no reason at all why you might try this, but as someone on lower end hardware I would be fascinated to learn how the performance changes is: - Switch FC to gig ethernet? (expecting substantial performance hit?) - Reverting to maildir (suspecting much less of a hit based on your numbers above?) - OCFS vs GFS (although probably not sensible in your architecture since you have a support contract for GFS, some have suggested OCFS can be faster?) Please do post any other performance results - seems like you have found an excellent cluster setup? Ed W From jom at grosjo.net Mon May 23 18:24:10 2011 From: jom at grosjo.net (Joan Moreau) Date: Mon, 23 May 2011 10:24:10 -0500 Subject: [Dovecot] =?utf-8?q?New_IPC_features_=3A_any_configuration_doc_?= =?utf-8?q?=3F?= Message-ID: Hi, Dovecot complains at start for the ipc listener not correctly configured. What is the configuration scheme ? Thanks JM From lists at wildgooses.com Mon May 23 18:38:53 2011 From: lists at wildgooses.com (Ed W) Date: Mon, 23 May 2011 16:38:53 +0100 Subject: [Dovecot] delegation of admin rights In-Reply-To: <4DDA783E.1030706@post.tau.ac.il> References: <4DDA783E.1030706@post.tau.ac.il> Message-ID: <4DDA7F8D.2050201@wildgooses.com> On 23/05/2011 16:07, Ariel Biener wrote: > We need to provide admin rights to faculty computer/IT staff, so they > can have access to the mailboxes > of their respective users. We use LDAP as an > authentication/authorization backend. > > Currently, dovecot has a "master user" which can access all > mailboxes. I am looking for a solution, > preferably within dovecot, to create a delegation type of > administration, allowing certain users to > access the mailboxes of other users based on an LDAP filter or LDAP > attribute value. If possible, > allowing per protocol access(that is, I would like to give them IMAP > access and not POP3) and within IMAP > allowing only to view a mailbox, but not to change it, that would be > even better. If I were doing this in SQL, then I would construct my SQL query to basically be true IFF some complicated where clause confirms the delegation? Possibly you can do a similar query in LDAP? Note one significant limitation is that the username is in the format "admin*user" in variable %u. This makes all your queries quite tricky... I would recommend considering sponsoring some feature request to have this split into two extra variables with the admin and usernames split out? In the case of LDAP that should make it possible to filter on some admin attribute? Also you have Checkpassword script option and you can do anything you like in that script? Good luck Ed W From tss at iki.fi Mon May 23 19:18:00 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 23 May 2011 19:18:00 +0300 Subject: [Dovecot] delegation of admin rights In-Reply-To: <4DDA7F8D.2050201@wildgooses.com> References: <4DDA783E.1030706@post.tau.ac.il> <4DDA7F8D.2050201@wildgooses.com> Message-ID: On 23.5.2011, at 18.38, Ed W wrote: > Note one significant limitation is that the username is in the format > "admin*user" in variable %u. I don't think this is true. > Also you have Checkpassword script option and you can do anything you > like in that script? Maybe something like that.. I think all of the pieces for this already exist in Dovecot. They just need to be put together in a way that works nicely. ACLs can be given to master user (although there still is no "default ACL" which makes this annoying). The checkpassword can anyway figure out if user X can be allowed to give user Y rights. I think all users then need to be both master users and passdb users. From tss at iki.fi Mon May 23 19:18:46 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 23 May 2011 19:18:46 +0300 Subject: [Dovecot] New IPC features : any configuration doc ? In-Reply-To: References: Message-ID: On 23.5.2011, at 18.24, Joan Moreau wrote: > Dovecot complains at start for the ipc listener not correctly > configured. What exactly is the error message? > What is the configuration scheme ? You shouldn't have needed to do anything about it. From aring at gmavt.net Mon May 23 22:47:56 2011 From: aring at gmavt.net (Adam) Date: Mon, 23 May 2011 15:47:56 -0400 Subject: [Dovecot] v1.1.20 vs v1.2 & v2.0 Message-ID: <4DDAB9EC.10202@gmavt.net> I am currently running v1.1.20 and was wondering if there is any compelling reason to upgrade to v1.2 or v2.0? For example is there any security updates in v1.2 or v2.0 that aren't included in v1.1.20? The other major thing I would be interested in knowing is there any speed enhancements in the newer versions? I am using basic PAM Auth and Maildir mailboxes on a Linux box. Let me know if you need any more information to answer my questions. Thanks, Adam From jtam.home at gmail.com Tue May 24 00:48:39 2011 From: jtam.home at gmail.com (Joseph Tam) Date: Mon, 23 May 2011 14:48:39 -0700 (PDT) Subject: [Dovecot] How to stop mail_executable from cwd to ~home In-Reply-To: References: Message-ID: Timo wrote: >> As to how to stop the mail process from chdir'ing to a home directory > > If you don't want Dovecot to use a home directory, don't tell it a home directory. I'm all for that since I don't seem to have any need for a home directory. Any idea of how to do it with a passwd-file userdb backend? I also tried to override home directory with userdb { driver = passwd-file args = /etc/passwd home=/bundled/home/$n } but that didn't work out too well. Or is this feature a rephrasing of the current topic thread "Global fields for passwd-file database". Joseph Tam From tss at iki.fi Tue May 24 00:53:17 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 24 May 2011 00:53:17 +0300 Subject: [Dovecot] How to stop mail_executable from cwd to ~home In-Reply-To: References: Message-ID: On 24.5.2011, at 0.48, Joseph Tam wrote: >>> As to how to stop the mail process from chdir'ing to a home directory >> >> If you don't want Dovecot to use a home directory, don't tell it a home directory. > > I'm all for that since I don't seem to have any need for a home directory. > Any idea of how to do it with a passwd-file userdb backend? Why do you have home directories listed in the passwd-file if you don't want to use them? > I also > tried to override home directory with > > userdb { > driver = passwd-file > args = /etc/passwd home=/bundled/home/$n > } > > but that didn't work out too well. Or is this feature a rephrasing of > the current topic thread "Global fields for passwd-file database". Could be. From jtam.home at gmail.com Tue May 24 01:02:14 2011 From: jtam.home at gmail.com (Joseph Tam) Date: Mon, 23 May 2011 15:02:14 -0700 (PDT) Subject: [Dovecot] How to stop mail_executable from cwd to ~home In-Reply-To: References: Message-ID: On Tue, 24 May 2011, Timo Sirainen wrote: > Why do you have home directories listed in the passwd-file if you don't want to use them? It's the authentication database for everything, not just Dovecot. I I guess I could just synthesize one by creating an auxilliary password file with the other information stripped out. Or just let dovecot do an automount on a per-user demand and see how it goes -- I think this only becomes a concern if I do a doveadm command with wildcarded users. Joseph Tam From jom at grosjo.net Tue May 24 02:42:19 2011 From: jom at grosjo.net (Joan Moreau) Date: Mon, 23 May 2011 18:42:19 -0500 Subject: [Dovecot] =?utf-8?q?New_IPC_features_=3A_any_configuration_doc_?= =?utf-8?q?=3F?= In-Reply-To: References: Message-ID: <94c726cbd87ddd67a42c1cf30d3d42aa@grosjo.net> Here the message at restart, when using the HG version (2.0.13 works nicely) # /etc/init.d/dovecot restart Stopping dovecot done Starting dovecot Fatal: service(ipc) User doesn't exist: dovenull (See service ipc { unix_listener /var/run/dovecot/login/ipc-proxy { user } } setting) startproc: exit status of parent of /usr/sbin/dovecot: 89 On Mon, 23 May 2011 19:18:46 +0300, Timo Sirainen wrote: > On 23.5.2011, at 18.24, Joan Moreau wrote: > >> Dovecot complains at start for the ipc listener not correctly >> configured. > > What exactly is the error message? > >> What is the configuration scheme ? > > You shouldn't have needed to do anything about it. From tss at iki.fi Tue May 24 03:42:17 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 24 May 2011 03:42:17 +0300 Subject: [Dovecot] New IPC features : any configuration doc ? In-Reply-To: <94c726cbd87ddd67a42c1cf30d3d42aa@grosjo.net> References: <94c726cbd87ddd67a42c1cf30d3d42aa@grosjo.net> Message-ID: <669AFB3A-2CAE-4D00-AA55-36361EF871A3@iki.fi> default_login_user should be set to the user that runs imap-login and pop3-login processes. Apparently you haven't changed that from the default dovenull, but instead have set service imap-login { user } setting directly. On 24.5.2011, at 2.42, Joan Moreau wrote: > Here the message at restart, when using the HG version (2.0.13 works > nicely) > > # /etc/init.d/dovecot restart > Stopping dovecot done > Starting dovecot Fatal: service(ipc) User doesn't exist: dovenull (See service ipc { unix_listener /var/run/dovecot/login/ipc-proxy { user } } setting) > startproc: exit status of parent of /usr/sbin/dovecot: 89 > > > > On Mon, 23 May 2011 19:18:46 +0300, Timo Sirainen wrote: > >> On 23.5.2011, at 18.24, Joan Moreau wrote: >> >>> Dovecot complains at start for the ipc listener not correctly >>> configured. >> >> What exactly is the error message? >> >>> What is the configuration scheme ? >> >> You shouldn't have needed to do anything about it. > From sansez at yahoo.com Tue May 24 09:16:52 2011 From: sansez at yahoo.com (San San) Date: Mon, 23 May 2011 23:16:52 -0700 (PDT) Subject: [Dovecot] Dovecot 2 and Expire plugins : doesn't have record in DB Message-ID: <929313.39503.qm@web130220.mail.mud.yahoo.com> Dovecot 2 and Expire plugins : doesn't have records in db Hide Details FROM: * San San TO: * ?dovecot at dovecot.org Message flagged Tuesday, May 24, 2011 1:09 PM Dear Dovecot I have already config dovecot server with 2.0.13, and I need to enable expire plugins (in dovecot1 I have already used) but I see in my db doesn't have any record how about to debug or trace to solve this problem doveconf -n : auth_verbose = yes default_internal_user = vmail dict { ? expire = mysql:/usr/local/etc/dovecot/dovecot-dict-expire.conf } disable_plaintext_auth = no first_valid_gid = 200 first_valid_uid = 200 last_valid_gid = 200 last_valid_uid = 200 login_greeting = mail ready. mail_gid = vmail mail_location = maildir:~/Maildir mail_nfs_storage = yes mail_plugins = expire mail_uid = vmail maildir_very_dirty_syncs = yes namespace { ? hidden = no ? inbox = yes ? list = yes ? location =? ? prefix = INBOX. ? separator =? ? subscriptions = yes ? type = private } passdb { ? args = /usr/local/etc/dovecot/dovecot-ldap.conf ? driver = ldap } plugin { ? autocreate = INBOX.Drafts ? autocreate2 = INBOX.Sent ? autocreate3 = INBOX.Trash ? autocreate4 = INBOX.Spam ? autosubscribe = INBOX.Drafts ? autosubscribe2 = INBOX.Sent ? autosubscribe3 = INBOX.Trash ? autosubscribe4 = INBOX.Spam ? expire = INBOX.Trash 15d ? expire2 = INBOX.Spam 30d ? expire_dict = proxy::expire ? quota = maildir ? quota_rule = INBOX.Trash:storage=+200M } protocols = imap service anvil { ? chroot = empty ? client_limit = 0 ? drop_priv_before_exec = no ? executable = anvil ? extra_groups =? ? group =? ? idle_kill =?4294967295?secs ? privileged_group =? ? process_limit = 1 ? process_min_avail = 1 ? protocol =? ? service_count = 0 ? type = anvil ? unix_listener anvil-auth-penalty { ? ? group =? ? ? mode = 0600 ? ? user =? ? } ? unix_listener anvil { ? ? group =? ? ? mode = 0600 ? ? user =? ? } ? user = $default_internal_user ? vsz_limit = 18446744073709551615 B } service auth-worker { ? chroot =? ? client_limit = 1 ? drop_priv_before_exec = no ? executable = auth -w ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 0 ? process_min_avail = 0 ? protocol =? ? service_count = 1 ? type =? ? unix_listener auth-worker { ? ? group =? ? ? mode = 0600 ? ? user = $default_internal_user ? } ? user =? ? vsz_limit = 18446744073709551615 B } service auth { ? chroot =? ? client_limit = 4096 ? drop_priv_before_exec = no ? executable = auth ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 1 ? process_min_avail = 0 ? protocol =? ? service_count = 0 ? type =? ? unix_listener auth-client { ? ? group =? ? ? mode = 0600 ? ? user =? ? } ? unix_listener auth-login { ? ? group =? ? ? mode = 0600 ? ? user = $default_internal_user ? } ? unix_listener auth-master { ? ? group = vmail ? ? mode = 0600 ? ? user = vmail ? } ? unix_listener auth-userdb { ? ? group =? ? ? mode = 0600 ? ? user =? ? } ? unix_listener login/login { ? ? group =? ? ? mode = 0666 ? ? user =? ? } ? user = root ? vsz_limit = 18446744073709551615 B } service config { ? chroot =? ? client_limit = 0 ? drop_priv_before_exec = no ? executable = config ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 0 ? process_min_avail = 0 ? protocol =? ? service_count = 0 ? type = config ? unix_listener config { ? ? group =? ? ? mode = 0600 ? ? user =? ? } ? user =? ? vsz_limit = 18446744073709551615 B } service dict { ? chroot =? ? client_limit = 1 ? drop_priv_before_exec = no ? executable = dict ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 0 ? process_min_avail = 0 ? protocol =? ? service_count = 0 ? type =? ? unix_listener dict { ? ? group =? ? ? mode = 0600 ? ? user = vmail ? } ? user = $default_internal_user ? vsz_limit = 64 M } service director { ? chroot =? ? client_limit = 0 ? drop_priv_before_exec = no ? executable = director ? extra_groups =? ? fifo_listener login/proxy-notify { ? ? group =? ? ? mode = 00 ? ? user =? ? } ? group =? ? idle_kill = 4294967295 secs ? privileged_group =? ? process_limit = 1 ? process_min_avail = 0 ? protocol =? ? service_count = 0 ? type =? ? unix_listener director-admin { ? ? group =? ? ? mode = 0600 ? ? user =? ? } ? unix_listener login/director { ? ? group =? ? ? mode = 00 ? ? user =? ? } ? user = $default_internal_user ? vsz_limit = 18446744073709551615 B } service dns_client { ? chroot =? ? client_limit = 1 ? drop_priv_before_exec = no ? executable = dns-client ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 0 ? process_min_avail = 0 ? protocol =? ? service_count = 0 ? type =? ? unix_listener dns-client { ? ? group =? ? ? mode = 0666 ? ? user =? ? } ? unix_listener login/dns-client { ? ? group =? ? ? mode = 0666 ? ? user =? ? } ? user = $default_internal_user ? vsz_limit = 18446744073709551615 B } service doveadm { ? chroot =? ? client_limit = 1 ? drop_priv_before_exec = no ? executable = doveadm-server ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 0 ? process_min_avail = 0 ? protocol =? ? service_count = 1 ? type =? ? unix_listener doveadm-server { ? ? group =? ? ? mode = 0600 ? ? user =? ? } ? user =? ? vsz_limit = 64 M } service imap-login { ? chroot = login ? client_limit = 800 ? drop_priv_before_exec = no ? executable = imap-login ? extra_groups =? ? group =? ? idle_kill = 0 ? inet_listener imap { ? ? address =? ? ? port = 143 ? ? ssl = no ? } ? inet_listener imaps { ? ? address =? ? ? port = 993 ? ? ssl = yes ? } ? privileged_group =? ? process_limit = 255 ? process_min_avail = 10 ? protocol = imap ? service_count = 0 ? type = login ? user = nobody ? vsz_limit = 64 M } service imap { ? chroot =? ? client_limit = 1024 ? drop_priv_before_exec = no ? executable = imap ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 1024 ? process_min_avail = 8 ? protocol = imap ? service_count = 1 ? type =? ? unix_listener login/imap { ? ? group =? ? ? mode = 0666 ? ? user =? ? } ? user =? ? vsz_limit = 64 M } service lmtp { ? chroot =? ? client_limit = 0 ? drop_priv_before_exec = no ? executable = lmtp ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 0 ? process_min_avail = 0 ? protocol = lmtp ? service_count = 0 ? type =? ? unix_listener lmtp { ? ? group =? ? ? mode = 0666 ? ? user =? ? } ? user =? ? vsz_limit = 0 } service log { ? chroot =? ? client_limit = 0 ? drop_priv_before_exec = no ? executable = log ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 1 ? process_min_avail = 0 ? protocol =? ? service_count = 0 ? type = log ? user =? ? vsz_limit = 18446744073709551615 B } service pop3-login { ? chroot = login ? client_limit = 255 ? drop_priv_before_exec = no ? executable = pop3-login ? extra_groups =? ? group =? ? idle_kill = 0 ? inet_listener pop3 { ? ? address =? ? ? port = 110 ? ? ssl = no ? } ? inet_listener pop3s { ? ? address =? ? ? port = 995 ? ? ssl = yes ? } ? privileged_group =? ? process_limit = 255 ? process_min_avail = 10 ? protocol = pop3 ? service_count = 0 ? type = login ? user = nobody ? vsz_limit = 64 M } service pop3 { ? chroot =? ? client_limit = 1 ? drop_priv_before_exec = no ? executable = pop3 ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 1024 ? process_min_avail = 0 ? protocol = pop3 ? service_count = 1 ? type =? ? unix_listener login/pop3 { ? ? group =? ? ? mode = 0666 ? ? user =? ? } ? user =? ? vsz_limit = 18446744073709551615 B } service ssl-params { ? chroot =? ? client_limit = 0 ? drop_priv_before_exec = no ? executable = ssl-params ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 0 ? process_min_avail = 0 ? protocol =? ? service_count = 0 ? type =? ? unix_listener login/ssl-params { ? ? group =? ? ? mode = 0666 ? ? user =? ? } ? user =? ? vsz_limit = 18446744073709551615 B } ssl = no userdb { ? args = /usr/local/etc/dovecot/dovecot-ldap.conf ? driver = ldap } protocol imap { ? imap_client_workarounds = tb-extra-mailbox-sep ? mail_max_userip_connections = 200 ? mail_plugins = quota imap_quota expire autocreate } protocol pop3 { ? pop3_client_workarounds = outlook-no-nuls oe-ns-eoh ? pop3_uidl_format = %v-%u } protocol lda { ? postmaster_address =?postmaster at example.com } ? and dovecot-dict-expire.conf is? connect = host=10.3.1.31?dbname=dovecot user=dovecot password=dovecot # CREATE TABLE expires ( # ? username varchar(100) not null, # ? mailbox varchar(255) not null, # ? expire_stamp integer not null, # ? primary key (username, mailbox) # ); map { ? pattern = shared/expire/$user/$mailbox ? table = expires ? value_field = expire_stamp ? fields { ? ? username = $user ? ? mailbox = $mailbox ? } } ? Sincerely, Nantharat Puwarang From ricardo at wenn.com Tue May 24 12:44:44 2011 From: ricardo at wenn.com (Ricardo Branco) Date: Tue, 24 May 2011 10:44:44 +0100 Subject: [Dovecot] IMAP Label Updates not showing up across shared account Message-ID: <4DDB7E0C.9090306@wenn.com> Dovecot 2.0.13 Centos 5.4 x86_64 2.6.18-164.9.1.el5 (on ESXi) OS/Logs on local storage, /home all on NFS server for datastore (NFS Store Centos 5.5 x86_64 2.6.18-194.11.1.el5) Thunderbird 3.1.10 on XP/W7 Desktops We are seeing a werid issue where there is a delay of up to a few mins in seeing label updates on messages. I have confirmed that Thunderbird is sending the update to the server with WireShark, its just additional users connected to the same mailbox do not see them. Marking a message as Seen/Un-Seen happens faster just not labels. If you have a label set when you mark a message as Seen/Un-Seen the other clients then see the update straight away. -- The information contained in or attached to this email is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain any message or any part of it. If you have received an email in error, please contact the sender and delete the material from any computer. The contents of this email are not for publication unless specifically stated. Furthermore, the information contained in this message, and any attachment(s) thereto, is for information purposes only and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of WENN or its subsidiaries and associated companies. We make every effort to keep our network free from viruses. However, you do need to check this e-mail and any attachments to it for viruses as we can take no responsibility for any computer virus which may be transferred by way! of this e-mail. WENN Ltd: Registered Office: 35 Tileyard Studios, Tileyard Road, London, N7 9AH, England. Registered No: 4375163. Place of Registration: United Kingdom. USA Entertainment News Inc (d/b/a WENN): Registered Office: 60 Madison Avenue, Suite 1027, New York, NY 10010, USA The WENN name, design and related marks are trademarks of the WENN group of companies. (c) 2011 All Rights Reserved. From cor at in.ter.net Tue May 24 18:01:39 2011 From: cor at in.ter.net (Cor Bosman) Date: Tue, 24 May 2011 17:01:39 +0200 Subject: [Dovecot] slow squat fts index creation Message-ID: <89758552-27E7-4A1F-9705-22506AE812D2@in.ter.net> Hi all, ive been playing with squat indexes. Up to about 300.000 emails in a single mailbox this was working flawlessly. The search index file is about 500MB at that time. Ive now added some more emails, and at 450.000 or so emails im seeing a serious problem with squat index creation. It takes...f o r e v e r . The .tmp file is being so slowly, it will probably take 2-3 hours to create. Upto this point it took maybe a minute. Im doing this in an openvz container, so theoretically i may be hitting some openvz resource limit. But ive upped all the limits and dont see any improvements. I dont see any resources starvation either. Could there be some dovecot issue when the search index reaches say 1GB? (im estimating that it's now trying to save about 1GB search index). Regards, Cor From a.smith at ukgrid.net Tue May 24 20:26:19 2011 From: a.smith at ukgrid.net (a.smith at ukgrid.net) Date: Tue, 24 May 2011 18:26:19 +0100 Subject: [Dovecot] libwrap does it work on in 2.0? Message-ID: <20110524182619.12135qwyw8kflqsc@webmail2.ukgrid.net> Hi, I noticed recently that libwrap (TCP Wrappers) is supported, although disabled by default, in the current Dovecot 2.0 but doesn't seem to be mentioned anywhere on the wiki. Is this working well/at all? Anyone care with experience using this care to share their experiences? My OS is FreeBSD, I noticed on some Linux distributions there may be issues, but this won't affect my installation. thanks Andy. From damien at robinet.net Tue May 24 21:29:01 2011 From: damien at robinet.net (Damien Robinet) Date: Tue, 24 May 2011 20:29:01 +0200 Subject: [Dovecot] Dovecot 1.2 with MySQL limit Trash folder Message-ID: Hi All, I need your help to limit the size of the Trash folder. I want to exclude the Trash folder in my user quota. But I do not want the Trash folder can not exceed 10M for example. I can manage to exclude the size of the Trash folder. But I can not limit the size of the folder. On my test, I've bytes=512000 for the Trash folder. But the user can move more that 512000B on the Trash folder ... Could you help me please ? Bests Regards, Damien ################################ ## My SQL query (dovecot-sql.conf) ## ################################ user_query = SELECT CONCAT( '/home/vmail/', maildir ) AS home, CONCAT( '/home/vmail/', maildir ) AS sieve_dir, 201 AS uid, 201 AS gid, CONCAT('*:storage=',ROUND((quota*1048.576)),'B') AS quota_rule, 'Trash:storage=50000B' AS quota_rule2, 'Trash:ignore' AS quota_rule3 FROM mail_mailbox WHERE username = '%u' AND actif = '1' ############ ## My Log: ## ############ 2011-05-24 20:08:59 imap-login: Info: Login: user=, method=PLAIN, rip=192.168.1.101, lip=192.168.1.10 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Loading modules from directory: /usr/lib/dovecot/modules/imap 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib20_autocreate_plugin.so 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib20_expire_plugin.so 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Effective uid=201, gid=201, home=/home/vmail/d/o/domain.tld/postmaster/ 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Quota root: name=user backend=dict args=:proxy::quota 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Quota rule: root=user mailbox=* bytes=1048576 messages=0 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Quota rule: root=user mailbox=Trash bytes=512000 messages=0 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: expire: No expire or expire_altmove settings - plugin disabled 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: dict quota: user=postmaster at domain.tld, uri=proxy::quota, noenforcing=0 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: maildir: data=/home/vmail/d/o/domain.tld/postmaster/ 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: maildir++: root=/home/vmail/d/o/domain.tld/postmaster, index=, control=, inbox=/home/vmail/d/o/domain.tld/postmaster 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Namespace : Using permissions from /home/vmail/d/o/domain.tld/postmaster: mode=0700 gid=-1 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Connection closed bytes=38/363 ################### ## My dovecot.conf ## ################### dict { quota = mysql:/etc/dovecot/dovecot-quota.conf } plugin { args = /etc/dovecot/dovecot-sql.conf quota = dict:user::proxy::quota autocreate = Junk autocreate2 = NonJunk autocreate3 = Drafts autocreate4 = Sent autocreate5 = Trash autosubscribe = Junk autosubscribe2 = NonJunk autosubscribe3 = Drafts autosubscribe4 = Sent autosubscribe5 = Trash } From jom at grosjo.net Wed May 25 00:38:08 2011 From: jom at grosjo.net (Joan Moreau) Date: Tue, 24 May 2011 16:38:08 -0500 Subject: [Dovecot] =?utf-8?q?New_IPC_features_=3A_any_configuration_doc_?= =?utf-8?q?=3F?= In-Reply-To: <669AFB3A-2CAE-4D00-AA55-36361EF871A3@iki.fi> References: <94c726cbd87ddd67a42c1cf30d3d42aa@grosjo.net> <669AFB3A-2CAE-4D00-AA55-36361EF871A3@iki.fi> Message-ID: <443189154fbbbd1add631a3c1173528a@grosjo.net> That shall appear in the doc somewhere, as "default_login_user" is not a mandatory field, or you shall make this field mandatory On Tue, 24 May 2011 03:42:17 +0300, Timo Sirainen wrote: > default_login_user should be set to the user that runs imap-login and pop3-login processes. Apparently you haven't changed that from the default dovenull, but instead have set service imap-login { user } setting directly. > > On 24.5.2011, at 2.42, Joan Moreau wrote: > >> Here the message at restart, when using the HG version (2.0.13 works nicely) # /etc/init.d/dovecot restart Stopping dovecot done Starting dovecot Fatal: service(ipc) User doesn't exist: dovenull (See service ipc { unix_listener /var/run/dovecot/login/ipc-proxy { user } } setting) startproc: exit status of parent of /usr/sbin/dovecot: 89 On Mon, 23 May 2011 19:18:46 +0300, Timo Sirainen wrote: >> >>> On 23.5.2011, at 18.24, Joan Moreau wrote: >>> >>>> Dovecot complains at start for the ipc listener not correctly configured. >>> What exactly is the error message? >>> >>>> What is the configuration scheme ? >>> You shouldn't have needed to do anything about it. From Steven.Jones at vuw.ac.nz Wed May 25 04:29:36 2011 From: Steven.Jones at vuw.ac.nz (Steven Jones) Date: Wed, 25 May 2011 01:29:36 +0000 Subject: [Dovecot] problems with debian 5.0 and thunderbird Message-ID: <833D8E48405E064EBC54C84EC6B36E40063589C3@STAWINCOX10MBX1.staff.vuw.ac.nz> Hi, Does anyone have a setup guide for Thunderbird and Dovecot on Debian please? Dovecot is 1.0.15 I have Dovecot running listening on 143 and I can telnet from the XP guest but Thunderbird cant or wont talk to it. I have taken the # off listen and I get a telnet reply, no firewall is configured.... Ive set thunderbird up lots so I suspect its not Thunderbird but a dovecot config I have wrong. regards From lists at binarus.de Wed May 25 14:12:21 2011 From: lists at binarus.de (Binarus) Date: Wed, 25 May 2011 13:12:21 +0200 Subject: [Dovecot] 2.0.12 (fa2e92526716): Deleting mails and folders from public namespaces In-Reply-To: <1D83A6C4-14F4-43F5-8F8B-9A4ED4D00F79@iki.fi> References: <4DB72F8D.5030401@binarus.de> <1D83A6C4-14F4-43F5-8F8B-9A4ED4D00F79@iki.fi> Message-ID: <4DDCE415.8080806@binarus.de> On 26.04.2011 23:25, Timo Sirainen wrote: > On 26.4.2011, at 23.48, Binarus wrote: > >> But whenever a user tries to delete a folder from the public namespace, >> dovecot gives the following error: "Renaming not supported across >> non-private namespaces". > .. >> Furthermore, I haven't completely understood the reason for the >> different behaviour of folders in the public namespace and a single >> message therein. > > > Talking only about ACLs I guess it would be ok to allow renaming from public namespace to a private namespace. Renaming one of your own private mailboxes to public namespace is a bit trickier, because the default ACL is "no permissions". So when renaming, a new explicit ACL should be added to the user who did the renaming, because otherwise user could no longer access that mailbox at all. Still doable I guess. > > Although it is possible to give user permission to delete foo/bar but not give permission to create children to foo. Then if user renames foo/bar to Trash/foo/bar, it's not possible to rename it back. Probably not a real problem. > > Renaming from/to shared namespace needs to update the shared users acl dict. > > Quota also needs to be updated. I'm not sure if lazy-expunge has any trouble with this. Multi-dbox backend can't do a fast rename at all, because it would have to physically copy all of the messages from one mdbox storage to another mdbox storage. Maybe there are other problems I can't remember now. > > So looks like it should be possible to do all this, with the exception of adding an inefficiency to mdbox, but it's some work.. Thank you very much for your answer which shows that -as always- problems are more complicated than they seem first. Nevertheless, I don't want to give up, have a few thoughts and just would like to know I am right and what others are thinking: - I have used Cyrus 2.2 for a long time before I switched to Dovecot; in Cyrus 2.2, I did not have the problem. So I am wondering how the problem has been solved there. - Obviously, users can create new folders in public namespace (if the ACL allows) and their private mailboxes; furthermore, they can delete folders from public namespace and private mailboxes (if the ACL allows) (I am talking of a pure delete here, not of moving the folder to Trash). Thus, we could emulate moving folders between any namespaces (for example, from public namespace to private Trash) by first copying them to the new location and then deleting them from the original location. Let's assume we have a folder in a public namespace and are allowed to do everything with it. Then, we could delete this folder (this time, I am meaning moving it to private Trash) by doing the following steps manually: a) Create a new folder with the same name in Trash (which may be in the private mailbox); recursively repeat this with all subfolders. b) Move all messages from the folder in the public namespace to the folder in Trash; recursively repeat this with all subfolders (remark: moving messages does not seem to cause problems, as opposed to moving folders). c) Recursively delete the folder with all subfolders (which are completely empty now) from the public namespace (of course, this again is a "real" delete). I have tested this procedure with multiple IMAP clients against Dovecot, and there were no problems. Automation of the procedure would not be expected to lead to problems, would it?. - From a user's point of view, it is not important how messages get deleted or moved behind the scenes. A users which wants his stuff moved doesn't care if moving is accomplished by a rename or by another mechanism. In fact, he doesn't even know about renaming. He just wants the stuff which was in some folder to show up in some other folder. It seems that the problems come from the fact that deletion is done by renaming. I am not in IMAP but suppose that there is some rename command which is used by email clients in such cases. Maybe there is also a delete command which dovecot is "emulating" by doing a rename - I really don't know... So why not implement the rename / delete command in the way that I have described above? I know that a rename probably (for example on a file system or Dovecot's backends) is by far much more efficient than the copy-move-delete mechanism, but we could do the following: If the renaming is problematic due to reasons Timo has mentioned in his first reply, then emulate the renaming by the copy-move-delete mechanism; if renaming would be no problem, then use the normal method (the method which is already implemented). The inefficiency of the copy-move-delete mechanism would be no argument against using it: the alternative would be having the user to do these steps by hand, for every single subfolder (there may be thousands of them...). This is just not acceptable. One could argue that this functionality should be in the client, and indeed, I suspect that some clients are working that way in some situations. Nevertheless, I think such clients are bad, by using inefficient operations where it would not be necessary and putting the servers under load. IMHO, such functionality belongs into the server side since only the server can reliably decide if there will be problems before trying the operation. I am absolutely sure users would prefer waiting for inefficient copy-move-delete operations instead of not being able to move their stuff at all. Perhaps implementing such a behaviour would not be too difficult? At the end, I would like to stress that this is not just an academic question. The need to move folders, especially between public and private namespaces, is very common in small and large companies, and although my original post was about deleting folders, the problem in fact is a real big one (although some clients seem to circumvent it by wasting server resources). I am curiously looking forward to any comments. Regards, Peter From mfioretti at nexaima.net Wed May 25 14:49:30 2011 From: mfioretti at nexaima.net (M. Fioretti) Date: Wed, 25 May 2011 13:49:30 +0200 (CEST) Subject: [Dovecot] Error: file_dotlock_create failed: Permission denied Message-ID: <37522.151.25.103.156.1306324170.squirrel@nexaima.net> Hi, I have a Fedora 14 x86_64 computer. I run dovecot 2.0.12 on it, only to keep a local imap copy of all my email, in maildir format. A couple days ago the hard disk broke, so I bought a new one, and reinstalled Fedora 14 x86_64 with all the updates. Then I copied all the maildirs from a backup to the new drive. But I can't access email now. No matter how I change sticky bits or ownership and permissions of all the involved files and directories, etc.. Login succeeds, but I get this error whenever I try to create new mailboxes or access existing ones: May 25 13:36:03 polaris dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=8489, secured May 25 13:36:06 polaris dovecot: imap(marco): Error: file_dotlock_open(/home/z/email/marco/dovecot.index.log) failed: Permission denied (euid=500(marco) egid=500(marco) missing +w perm: /home/z/email/marco, euid is not dir owner) May 25 13:36:06 polaris dovecot: imap(marco): Error: file_dotlock_create(/home/z/email/marco/dovecot-uidlist) failed: Permission denied (euid=500(marco) egid=500(marco) missing +w perm: /home/z/email/marco, euid is not dir owner) May 25 13:36:06 polaris dovecot: imap(marco): Error: file_dotlock_create(/home/z/email/marco/dovecot-uidlist) failed: Permission denied (euid=500(marco) egid=500(marco) missing +w perm: /home/z/email/marco, euid is not dir owner) May 25 13:36:06 polaris dovecot: imap(marco): Error: opendir(/home/z/email/marco/new) failed: Permission denied (euid=500(marco) egid=500(marco) missing +r perm: /home/z/email/marco/new, euid is not dir owner) May 25 13:36:06 polaris dovecot: imap(marco): Error: file_dotlock_create(/home/z/email/marco/dovecot-uidlist) failed: Permission denied (euid=500(marco) egid=500(marco) missing +w perm: /home/z/email/marco, euid is not dir owner) Again, this doesn't change changing ownership. Output of dovecot -n is below The only possible difference I can find between this and the previous install of the SAME distro/dovecot package is that this time I use ext4 filesystem. Maybe, I don't remember, I was using ext3 in the original install. What must I change to gain access again to my mailboxes??? thanks! Marco dovecot -n # 2.0.12: /etc/dovecot/dovecot.conf doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:88: ssl_disable has been renamed to ssl doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:979: auth_user has been replaced by service auth { user } doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection # OS: Linux 2.6.35.13-91.fc14.x86_64 x86_64 Fedora release 14 (Laughlin) ext4 auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login listen = * mail_location = maildir:/home/z/email/%u mail_privileged_group = mail_imap passdb { args = scheme=plain username_format=%n /etc/local_dovecot_passwords driver = passwd-file } protocols = imap service auth { user = root } ssl = no userdb { args = username_format=%n /etc/local_dovecot_passwords driver = passwd-file } protocol lda { postmaster_address = postmaster at example.com } From lists at binarus.de Wed May 25 15:13:34 2011 From: lists at binarus.de (Binarus) Date: Wed, 25 May 2011 14:13:34 +0200 Subject: [Dovecot] problems with debian 5.0 and thunderbird In-Reply-To: <833D8E48405E064EBC54C84EC6B36E40063589C3@STAWINCOX10MBX1.staff.vuw.ac.nz> References: <833D8E48405E064EBC54C84EC6B36E40063589C3@STAWINCOX10MBX1.staff.vuw.ac.nz> Message-ID: <4DDCF26E.3080206@binarus.de> On 25.05.2011 03:29, Steven Jones wrote: > Hi, > > Does anyone have a setup guide for Thunderbird and Dovecot on Debian please? > > Dovecot is 1.0.15 > > I have Dovecot running listening on 143 and I can telnet from the XP guest but Thunderbird cant or wont talk to it. Did I get this right: You can telnet to port 143 of the server? > I have taken the # off listen and I get a telnet reply, no firewall is configured.... > > Ive set thunderbird up lots so I suspect its not Thunderbird but a dovecot config I have wrong. > > > regards > Perhaps Thunderbird wants to talk via SSL (Port 993)? If that is not the case, the common recommendation is to look into the logs at the server side (/var/log/syslog, /var/log/mail and so on). For further details and how to increase the debug level, look here: http://wiki1.dovecot.org/Logging If that doesn't help, install Thunderbird's addon accountex, export your account settings to a file (don't forget to clear your logins and passwords before doing so) and provide them to the community so that somebody could take a look. Regards, Peter From aring at gmavt.net Wed May 25 16:39:25 2011 From: aring at gmavt.net (Adam) Date: Wed, 25 May 2011 09:39:25 -0400 Subject: [Dovecot] v1.1.20 vs v1.2 & v2.0 In-Reply-To: <4DDAB9EC.10202@gmavt.net> References: <4DDAB9EC.10202@gmavt.net> Message-ID: <4DDD068D.1050208@gmavt.net> Ping... Any thoughts on this? Any assistance would be appreciated. Thanks, Adam Adam wrote: > I am currently running v1.1.20 and was wondering if there is any > compelling reason to upgrade to v1.2 or v2.0? > > For example is there any security updates in v1.2 or v2.0 that aren't > included in v1.1.20? > > The other major thing I would be interested in knowing is there any > speed enhancements in the newer versions? I am using basic PAM Auth and > Maildir mailboxes on a Linux box. Let me know if you need any more > information to answer my questions. > > Thanks, > Adam > From tom at whyscream.net Wed May 25 16:45:50 2011 From: tom at whyscream.net (Tom Hendrikx) Date: Wed, 25 May 2011 15:45:50 +0200 Subject: [Dovecot] v1.1.20 vs v1.2 & v2.0 In-Reply-To: <4DDD068D.1050208@gmavt.net> References: <4DDAB9EC.10202@gmavt.net> <4DDD068D.1050208@gmavt.net> Message-ID: <4DDD080E.1080506@whyscream.net> On 25/05/11 15:39, Adam wrote: > Ping... > > Any thoughts on this? Any assistance would be appreciated. > > Thanks, > Adam > > Adam wrote: >> I am currently running v1.1.20 and was wondering if there is any >> compelling reason to upgrade to v1.2 or v2.0? >> >> For example is there any security updates in v1.2 or v2.0 that aren't >> included in v1.1.20? >> >> The other major thing I would be interested in knowing is there any >> speed enhancements in the newer versions? I am using basic PAM Auth and >> Maildir mailboxes on a Linux box. Let me know if you need any more >> information to answer my questions. >> >> Thanks, >> Adam >> > Please review the release notes / upgrade instructions for differenes between the versions, you can find them in the wiki or in the respective tarballs. If there are still questions after that: ask them here, and be specific ;) Kind regards, Tom From bill+dovecot at blunn.org Wed May 25 17:35:22 2011 From: bill+dovecot at blunn.org (William Blunn) Date: Wed, 25 May 2011 15:35:22 +0100 Subject: [Dovecot] v1.1.20 vs v1.2 & v2.0 In-Reply-To: <4DDAB9EC.10202@gmavt.net> References: <4DDAB9EC.10202@gmavt.net> Message-ID: <4DDD13AA.70907@blunn.org> On 23/05/2011 20:47, Adam wrote: > I am currently running v1.1.20 and was wondering if there is any > compelling reason to upgrade to v1.2 or v2.0? > > For example is there any security updates in v1.2 or v2.0 that aren't > included in v1.1.20? > > The other major thing I would be interested in knowing is there any > speed enhancements in the newer versions? I am using basic PAM Auth > and Maildir mailboxes on a Linux box. Let me know if you need any > more information to answer my questions. 1.1 doesn't appear to have been touched since 2009-11-09 1.2 last is 1.2.17 dated 2011-05-11 2.0 last is 2.0.13 dated 2011-05-11 So it looks like 1.1 is unmaintained 1.2 is maintained for security and bug fixes 2.0 is maintained The differences between 1.1 and 1.2, and 1.2 and 2.0 can be seen at http://www.dovecot.org/doc/NEWS-2.0. A compelling reason for me to use 2.0.x was the inclusion of multi-dbox / mdbox ( http://wiki2.dovecot.org/MailboxFormat/dbox#Multi-dbox ). Bill From stan at hardwarefreak.com Wed May 25 18:54:19 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Wed, 25 May 2011 10:54:19 -0500 Subject: [Dovecot] v1.1.20 vs v1.2 & v2.0 In-Reply-To: <4DDD068D.1050208@gmavt.net> References: <4DDAB9EC.10202@gmavt.net> <4DDD068D.1050208@gmavt.net> Message-ID: <4DDD262B.5040403@hardwarefreak.com> On 5/25/2011 8:39 AM, Adam wrote: > Adam wrote: >> I am currently running v1.1.20 and was wondering if there is any >> compelling reason to upgrade to v1.2 or v2.0? There have been a large number of bug fixes between 1.1.20 and 1.2.17. If you are a distro package user, I recommend, at minimum, upgrading to the latest 1.2.x version you can get. If later down the road you need some of the advanced features of 2.x, such as director or mdbox, you'll be in a little bit better position to upgrade to 2.x, though you certainly can upgrade straight to 2.x at this time if you wish. Carefully read the upgrade procedures beforehand. -- Stan From sf.rique at gmail.com Thu May 26 01:44:10 2011 From: sf.rique at gmail.com (Henrique Fernandes) Date: Wed, 25 May 2011 19:44:10 -0300 Subject: [Dovecot] Per user Namespaces From SQL Message-ID: Hello folks, i am lookign in the wiki, but did not find anything very clear about what i want. I need to have namespace for each user from mysql. But like, i need all configruation comming from mysql, not only the location. Is that possible? here: http://wiki2.dovecot.org/Namespaces at section: Per-user Namespace Location From SQLI can set the location, is there an way to make everything ? Like the name of namespace, and etc ? Thanks to all! []'sf.rique From wgillespie+dovecot at es2eng.com Thu May 26 09:38:01 2011 From: wgillespie+dovecot at es2eng.com (Willie Gillespie) Date: Thu, 26 May 2011 00:38:01 -0600 Subject: [Dovecot] 2.0.12 (fa2e92526716): Deleting mails and folders from public namespaces In-Reply-To: <4DDCE415.8080806@binarus.de> References: <4DB72F8D.5030401@binarus.de> <1D83A6C4-14F4-43F5-8F8B-9A4ED4D00F79@iki.fi> <4DDCE415.8080806@binarus.de> Message-ID: <4DDDF549.6050203@es2eng.com> On 5/25/2011 5:12 AM, Binarus wrote: > It seems that the problems come from the fact that deletion is done by > renaming. I am not in IMAP but suppose that there is some rename command > which is used by email clients in such cases. Maybe there is also a > delete command which dovecot is "emulating" by doing a rename - I really > don't know... Just a little correction here: Deletion is NOT done by renaming. Deletion of folders is done with a DELETE command which gets rid of it entirely. What your mail clients are doing is renaming the folder, which is done with a RENAME command. For example, if "SomeFolder" is deleted then your mail client is doing: RENAME "SomeFolder" "Trash.SomeFolder" which effectively just moves the folder as a subfolder of Trash. So, mail clients are asking to rename the folder (not delete it) in the case you are concerned about. Timo, you said > Talking only about ACLs I guess it would be ok to allow renaming from > public namespace to a private namespace. Renaming one of your own > private mailboxes to public namespace is a bit trickier, because the > default ACL is "no permissions". So when renaming, a new explicit ACL > should be added to the user who did the renaming, because otherwise > user could no longer access that mailbox at all. Still doable I guess. I don't think any ACL should be added automatically in this case. If they set their trash folder to be in a public/shared namespace for which they have only CREATE permissions, then I think that's their fault and the admins problem... not Dovecot's. From robert at schetterer.org Thu May 26 10:40:37 2011 From: robert at schetterer.org (Robert Schetterer) Date: Thu, 26 May 2011 09:40:37 +0200 Subject: [Dovecot] Per user Namespaces From SQL In-Reply-To: References: Message-ID: <4DDE03F5.9080303@schetterer.org> Am 26.05.2011 00:44, schrieb Henrique Fernandes: > Hello folks, i am lookign in the wiki, but did not find anything very clear > about what i want. > > I need to have namespace for each user from mysql. But like, i need all > configruation comming from mysql, not only the location. > > Is that possible? > > here: http://wiki2.dovecot.org/Namespaces > at section: > Per-user Namespace Location From SQLI can set the location, is there an way > to make everything ? Like the name of namespace, and etc ? > > Thanks to all! > > []'sf.rique > there is a example with sql and virtual plugin namespace perhaps you can use as starting point to modify to your needs http://wiki2.dovecot.org/Plugins/Virtual --snip user_query = SELECT ..., \ CASE '%s' WHEN 'pop3' THEN NULL ELSE 'yes' END AS 'namespace/default/inbox', \ CASE '%s' WHEN 'pop3' THEN 'yes' ELSE NULL END AS 'namespace/virtual/inbox' \ WHERE ... --- -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From tkrah at fachschaft.imn.htwk-leipzig.de Thu May 26 12:21:07 2011 From: tkrah at fachschaft.imn.htwk-leipzig.de (Torsten Krah) Date: Thu, 26 May 2011 11:21:07 +0200 Subject: [Dovecot] passdb: password contains illegal chars question Message-ID: <201105261121.12894.tkrah@fachschaft.imn.htwk-leipzig.de> Hi, some question about passdb backend: I'll receive this (using dovecot 2.0.13, pgsql passdb backend) for some users: mail dovecot: auth: passdb(account-username,127.0.0.1): Attempted login with password having illegal chars Password schema ist crypt-md5. So what "chars" does dovecot not like (why?) and whats the preferred way to fix this? regards Torsten -- Bitte senden Sie mir keine Word- oder PowerPoint-Anh?nge. Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." -- Linus Torvalds -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1996 bytes Desc: not available URL: From lists at binarus.de Thu May 26 12:43:31 2011 From: lists at binarus.de (Binarus) Date: Thu, 26 May 2011 11:43:31 +0200 Subject: [Dovecot] 2.0.12 (fa2e92526716): Deleting mails and folders from public namespaces In-Reply-To: <4DDDF549.6050203@es2eng.com> References: <4DB72F8D.5030401@binarus.de> <1D83A6C4-14F4-43F5-8F8B-9A4ED4D00F79@iki.fi> <4DDCE415.8080806@binarus.de> <4DDDF549.6050203@es2eng.com> Message-ID: <4DDE20C3.6040200@binarus.de> On 26.05.2011 08:38, Willie Gillespie wrote: > On 5/25/2011 5:12 AM, Binarus wrote: >> It seems that the problems come from the fact that deletion is done by >> renaming. I am not in IMAP but suppose that there is some rename command >> which is used by email clients in such cases. Maybe there is also a >> delete command which dovecot is "emulating" by doing a rename - I really >> don't know... > > Just a little correction here: Deletion is NOT done by renaming. > Deletion of folders is done with a DELETE command which gets rid of it > entirely. What your mail clients are doing is renaming the folder, > which is done with a RENAME command. > > For example, if "SomeFolder" is deleted then your mail client is doing: > RENAME "SomeFolder" "Trash.SomeFolder" > which effectively just moves the folder as a subfolder of Trash. > I suspected something like that, and you can see it from the fact that some IMAP clients indeed are able to do the moving (obviously by internally emulating it by the copy-move-delete method). That was the reason why I was proposing the server-side copy-move-delete implementation for such cases. I think it is the correct behaviour for clients to use renaming instead of more inefficient operations, but I also think that the server should try to obey the user and should emulate renaming by the copy-move-delete method if a "pure" renaming is not possible for some reason. Obviously, Dovecot incorporates code for creating new folders in any namespace, for moving messages regardless of namespaces and for deleting (empty?) folders in any namespace (we can do all these actions manually provided the ACLs allow). Therefore, emulating renaming by copy-move-delete in problematic cases might be possible without pain. I know that it is not a completely "clean" solution; on the other hand, it would be reasonable and immediately understandable by users. The purists among us might be happy if there was a configuration directive to enable or disable such behaviour. What do you think about that? > > Timo, you said >> Talking only about ACLs I guess it would be ok to allow renaming from >> public namespace to a private namespace. Renaming one of your own >> private mailboxes to public namespace is a bit trickier, because the >> default ACL is "no permissions". So when renaming, a new explicit ACL >> should be added to the user who did the renaming, because otherwise >> user could no longer access that mailbox at all. Still doable I guess. > > I don't think any ACL should be added automatically in this case. If > they set their trash folder to be in a public/shared namespace for which > they have only CREATE permissions, then I think that's their fault and > the admins problem... not Dovecot's. > I agree with Willie. Once again, look at the analogy: what does a user expect to happen when he tries to move a folder from his private space to public space? He expects - a new folder (with subfolder structure) to be created in public, every folder having the same name as it's counterpart in private - all messages to be moved from the folder structure in private to the folder structure in public - the folder structure in private to be deleted These steps could be done by hand, and thus, the behaviour, ACL handling and error messages should exactly be the same as when doing the steps by hand. For example, when a user creates a folder in public by hand, he eventually will not be able to access that folder, depending of the ACLs of the parent folder. This is normal and expected, so there is no reason to handle it in special way when moving (renaming?) folders. By the way, if I got it right, the same problem might appear if the user was copying folders within the same public namespace. What if a user copies a folder (in public) to another parent folder (also in public) where the user only has create rights? I don't know for sure, but I think the ACL won't be copied in this case, so the user might not have access to the new folder. But I may be wrong here, and I am unsure what would happen if the folder would be moved instead of copied; I think if moving is done by renaming, the ACL would be moved as well, so there should not be any problem. We also could look at it the other way: Logically, from my (naive) point of view, any folder in a user's private namespace is connected with a standard ACL; however, this ACL can't be altered by users (or the admin), has only one entry (respective user has full access) and is created / kept automatically by the server. In this model, renaming from private to public would be the same as renaming from public to public and thus would solve the problems. I don't know how difficult it would be to make Dovecot look at things that way. Maybe my point of view is completely wrong, but then I hope somebody will tell me about it... Personally, I could live very well with both solutions (emulating moving by copy-move-delete in problematic cases or handling private namespace just as public namespace with special ACLs that can't be altered). I don't know which is easier, more logic, and if any of them completely respects RFCs. But I know for sure that being unable to move folders between any namespaces is a big problem for users and even a bigger one for admins (guess what a user does if he can't move this one, super-important folder with hundreds of subfolders - this usually ends with the admin trying to move the whole thing on file-system level, of course during work time where Dovecot can't be shut down, or the admin desperately trying to find and configure an IMAP client which emulates moving internally by copy-move-delete). Regards, Peter From jom at grosjo.net Thu May 26 16:46:49 2011 From: jom at grosjo.net (Joan Moreau) Date: Thu, 26 May 2011 08:46:49 -0500 Subject: [Dovecot] doveadm segfault Message-ID: Hi, Using HG latest version, I get the following in the dmesg : [38041.387112] doveadm[20515]: segfault at 8 ip 000000000040f51d sp 00007fffb774c010 error 4 in doveadm[400000+2a000] [38041.397966] doveadm[20613]: segfault at 8 ip 000000000040f51d sp 00007fff953c1790 error 4 in doveadm[400000+2a000] [38041.428206] doveadm[20615]: segfault at 8 ip 000000000040f51d sp 00007ffffdce0cf0 error 4 in doveadm[400000+2a000] [38041.444879] doveadm[20619]: segfault at 8 ip 000000000040f51d sp 00007fffbb0668b0 error 4 in doveadm[400000+2a000] [38041.451815] doveadm[20622]: segfault at 8 ip 000000000040f51d sp 00007fff91d9b670 error 4 in doveadm[400000+2a000] [38041.459231] doveadm[20624]: segfault at 8 ip 000000000040f51d sp 00007fffe92b31b0 error 4 in doveadm[400000+2a000] [38041.468292] doveadm[20625]: segfault at 8 ip 000000000040f51d sp 00007fff5a4895c0 error 4 in doveadm[400000+2a000] [38041.481951] doveadm[20626]: segfault at 8 ip 000000000040f51d sp 00007fff8e84d010 error 4 in doveadm[400000+2a000] [38041.489414] doveadm[20629]: segfault at 8 ip 000000000040f51d sp 00007fff79206180 error 4 in doveadm[400000+2a000] [38041.512329] doveadm[20630]: segfault at 8 ip 000000000040f51d sp 00007ffff10582d0 error 4 in doveadm[400000+2a000] hundreds of times... No clue what is the bug.... JM From wgillespie+dovecot at es2eng.com Thu May 26 17:37:59 2011 From: wgillespie+dovecot at es2eng.com (Willie Gillespie) Date: Thu, 26 May 2011 08:37:59 -0600 (MDT) Subject: [Dovecot] Moving maildir mailboxes Message-ID: <1306420679.51194931@apps.rackspace.com> I am using Maildir with Dovecot 1.2. (Config available if needed, but should be a simple question.) I have a bunch of mail that I would like to do a one-time move from a private namespace to a shared namespace. The namespaces are already set up, etc. Can I just move the folders to their new location? I am not merging with existing folders, they would be new subfolders. Thanks! - Willie From CMarcus at Media-Brokers.com Thu May 26 18:06:10 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Thu, 26 May 2011 11:06:10 -0400 Subject: [Dovecot] Moving maildir mailboxes In-Reply-To: <1306420679.51194931@apps.rackspace.com> References: <1306420679.51194931@apps.rackspace.com> Message-ID: <4DDE6C62.8020003@Media-Brokers.com> On 2011-05-26 10:37 AM, Willie Gillespie wrote: > I have a bunch of mail that I would like to do a one-time move from a > private namespace to a shared namespace. The namespaces are already > set up, etc. > > Can I just move the folders to their new location? I am not merging > with existing folders, they would be new subfolders. Yes. -- Best regards, Charles From alietsantiesteban at gmail.com Thu May 26 19:00:44 2011 From: alietsantiesteban at gmail.com (Aliet Santiesteban Sifontes) Date: Thu, 26 May 2011 12:00:44 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: <4DDA7A28.7090505@wildgooses.com> References: <4DC3D251.4050004@Media-Brokers.com> <1305043528.10421.143.camel@hurina> <4DDA7A28.7090505@wildgooses.com> Message-ID: Thanks Ed, right now we are finishing the setup, next week we will continue the tests and will let you know the results... best regards 2011/5/23 Ed W > On 11/05/2011 00:00, Aliet Santiesteban Sifontes wrote: > > Using local storage(local hard driver ext4 filesystems) > > > > > > Totals: > > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > > 30% 5% > > 7798 3868 3889 7706 7566 10713 1080 6089 7559 7688 15562 > > 7806 3879 3874 7716 7585 10873 1114 6018 7578 7696 15572 > > 7866 3910 3855 7773 7748 11053 1076 6253 7747 7761 15710 > > 7893 3978 3931 7802 7772 10988 1117 6197 7767 7789 15760 > > 7775 3853 3809 7683 7654 10897 1081 6142 7651 7675 15534 > > 7877 3919 3872 7789 7758 10986 1085 6218 7755 7773 15720 > > > > GFS2-mdbox, (no plugins) > > > > Totals: > > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > > 30% 5% > > 7547 3739 3749 7455 7421 10605 1053 5931 7417 7443 15074 > > 7480 3702 3724 7387 7367 10558 1064 5874 7366 7378 14946 > > 7523 3759 3711 7428 7394 10560 1126 5898 7390 7412 15014 > > 7455 3736 3621 7364 7326 10561 1088 5854 7324 7349 14880 > > 7431 3712 3686 7337 7312 10406 1017 5882 7311 7328 14844 > > 7426 3704 3671 7334 7296 10364 1076 5791 7296 7325 14834 > > 7517 3673 3782 7425 7406 10554 1103 5913 7404 7414 15008 > > Hi, this performance seems excellent! > > There is no reason at all why you might try this, but as someone on > lower end hardware I would be fascinated to learn how the performance > changes is: > > - Switch FC to gig ethernet? (expecting substantial performance hit?) > - Reverting to maildir (suspecting much less of a hit based on your > numbers above?) > - OCFS vs GFS (although probably not sensible in your architecture since > you have a support contract for GFS, some have suggested OCFS can be > faster?) > > Please do post any other performance results - seems like you have found > an excellent cluster setup? > > Ed W > From juan at inti.gob.ar Thu May 26 21:39:16 2011 From: juan at inti.gob.ar (Juan Bernhard) Date: Thu, 26 May 2011 15:39:16 -0300 Subject: [Dovecot] PAM config problem... Message-ID: <4DDE9E54.8020105@inti.gob.ar> Hi, I had some troubles with PAM configuration. I need to restrict imap access to some users (and allow pop3 to all). I followed the wiki example of using "args = %s" to use 2 pams configurations (one for imap and another for pop3) When I start the service, it starts, but when I try to auth its hangs Here is the log: May 26 15:16:09 claudia dovecot: master: Warning: Killed with signal 15 (by pid=15424 uid=0 code=kill) May 26 15:16:10 claudia dovecot: master: Dovecot v2.0.13 starting up May 26 15:16:24 claudia dovecot: auth: Debug: Loading modules from directory: /usr/local/lib/dovecot/auth May 26 15:16:24 claudia dovecot: auth: Fatal: pam: Unknown setting: %s May 26 15:16:24 claudia dovecot: master: Error: service(auth): command startup failed, throttling May 26 15:16:59 claudia dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15435, input bytes=0 Is this option working? Im I missing somethin? I had the same proble in Solaris (but i thought that was a solaris thing, solaris is ALWAYS diferent) here is my doveconf -n # 2.0.13: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.18-238.9.1.el5 x86_64 CentOS release 5.6 (Final) ext3 auth_cache_size = 10 M auth_debug = yes base_dir = /var/run/dovecot/ disable_plaintext_auth = no listen = * login_greeting = Server ready. mail_debug = yes mail_location = maildir:/var/mail/%u:INDEX=~/ mail_plugins = quota passdb { args = %s failure_show_msg=yes driver = pam } plugin { quota = maildir:Cuota de correo quota_rule = *:storage=1G quota_rule2 = Trash:storage=+100M } protocols = imap pop3 ssl = no ssl_cert = Hi, I am getting the following error trying to search a virtual folder. May 26 11:35:29 xam dovecot: imap(egh): Panic: Trying to sync mailbox archive with open transactions May 26 11:35:29 xam dovecot: imap(egh): Error: Raw backtrace: /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot.so.0(+0x39ce1) [0xd2dce1] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot.so.0(+0x39d4f) [0xd2dd4f] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot.so.0(i_fatal+0) [0xd0485e] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot-storage.so.0(+0x24dd6) [0xf5add6] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0x80f) [0x4a1a7f] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x39) [0xf5ada9] -> dovecot/imap(imap_sync_init+0x54) [0x805df74] -> dovecot/imap(cmd_sync_delayed+0x1bc) [0x805ecdc] -> dovecot/imap(client_handle_input+0x21a) [0x805658a] -> dovecot/imap(client_input+0x5f) [0x8056daf] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x51) [0xd3b681] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xd3) [0xd3c8b3] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot.so.0(io_loop_run+0x40) [0xd3b600] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot.so.0(master_service_run+0x2a) [0xd26e1a] -> dovecot/imap(main+0x32d) [0x805f99d] -> /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x808e37] -> dovecot/imap() [0x804e131] May 26 11:35:29 xam dovecot: master: Error: service(imap): child 18403 killed with signal 6 (core dumps disabled) As you can see, I am using fts_solr plugin. the virtual mailbox is pretty simple: INBOX * -spam -Trash -trash -drafts My client is Wanderlust. Let me know any other information I can provide. Thank you! best, Erik Hetzner -------------- next part -------------- # 2.0.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.38-8-generic i686 Ubuntu 11.04 log_timestamp = "%Y-%m-%d %H:%M:%S " mail_location = maildir:~/maildir mail_plugins = " virtual fts fts_solr" mail_privileged_group = mail namespace { inbox = yes location = maildir:~/maildir prefix = separator = / type = private } namespace { location = virtual:~/maildir/virtual prefix = virtual/ separator = / } passdb { args = failure_show_msg=yes dovecot driver = pam } plugin { fts = solr fts_solr = url=http://localhost:8080/solr/mail/ break-imap-search } protocols = imap service auth { user = root } ssl = required ssl_cert = . From grenouille at c-base.org Fri May 27 02:59:44 2011 From: grenouille at c-base.org (wulf) Date: Fri, 27 May 2011 01:59:44 +0200 Subject: [Dovecot] unexpected subfolder locaton in Maildir/.INBOX.subfolder Message-ID: <20110526235943.GC848@coulmann.de> Hallo, I try to migrate existing imap server to dovecot 1.2 in debian squeeze if I connect to imap://user at host/INBOX Inbox works as expected and I get the content of Maildir/{cur,new,tmp} Maildir/.subfolder already exists if I connect to imap://user at host/INBOX.subfolder I get "folder not found" if I do a imap directory listing (raw mutt config, no subscriptions) - I see "../" - If I navigate to "../" I se all my existing subfolders if I create a new folder via imap the folder is created in Maildir/.INBOX.new_subfolder I expect the creation of Maildir/.new_subfolder This doesn't fit to the client configs and if I move the existing folders it doesn't fit to existing delivery agent filters and settings. I enabled mail_debug and the expansion looks ok for me: dovecot: imap-login: Login: user=, method=PLAIN, rip=85.178.xx.xxx, lip=80.81.xxx.xxx, TLS dovecot: IMAP(wulf): Effective uid=112, gid=114, home=/var/mail/home/wulf dovecot: IMAP(wulf): maildir: data=~/Maildir dovecot: IMAP(wulf): maildir++: root=/var/mail/home/wulf/Maildir, index=, control=, inbox=/var/mail/home/wulf/Maildir the existing subscription information from courier-imap looks like INBOX.subolder Yes I can sed them to subfolder (of course I have to copy them to Maildir/subscriptions anyhow) But is that the idea? I like to avoid trouble with all the users and their already configured mail-clients. Where is my mistake? Thanks for feedback Best Wulf CONF: protocols = imap imaps log_timestamp = "%Y-%m-%d %H:%M:%S " ssl = required ssl_cert_file = /etc/exim4/xxxxxxxxxxxxxxx.pem ssl_key_file = /etc/exim4/xxxxxx.key mail_location = maildir:~/Maildir mail_uid = 112 mail_gid = 114 mail_access_groups = vmail mail_debug = yes first_valid_uid = 112 protocol imap { } protocol pop3 { pop3_uidl_format = %08Xu%08Xv } protocol managesieve { } auth_verbose = yes auth_debug = yes auth default { mechanisms = plain passdb ldap { args = /etc/dovecot/dovecot-ldap.conf } userdb static { args = uid=112 gid=114 home=/var/mail/home/%u } user = root } dict { } plugin { } dovecot-ldap.conf: hosts = 127.0.0.1:389 auth_bind = yes auth_bind_userdn = uid=%u,ou=users,dc=xxxxxxxx,dc=de base = dc=xxxxxxxx,dc=de From Steven.Jones at vuw.ac.nz Fri May 27 03:35:49 2011 From: Steven.Jones at vuw.ac.nz (Steven Jones) Date: Fri, 27 May 2011 00:35:49 +0000 Subject: [Dovecot] unexpected subfolder locaton in Maildir/.INBOX.subfolder In-Reply-To: <20110526235943.GC848@coulmann.de> References: <20110526235943.GC848@coulmann.de> Message-ID: <833D8E48405E064EBC54C84EC6B36E400635B6B5@STAWINCOX10MBX1.staff.vuw.ac.nz> Hi, I dont know if this will help but, When I upgraded from Debain 5.0 to 6.0 I had to specify the mail directory explicitly, it then all worked fine. so in the dovecot.conf there is this line, "mail_location = mbox:~/mail:INBOX=/var/mail/%u" I took the # out and restarted Dovecot and it was happy. regards ________________________________________ From: dovecot-bounces at dovecot.org [dovecot-bounces at dovecot.org] on behalf of wulf [grenouille at c-base.org] Sent: Friday, 27 May 2011 11:59 a.m. To: dovecot at dovecot.org Subject: [Dovecot] unexpected subfolder locaton in Maildir/.INBOX.subfolder Hallo, I try to migrate existing imap server to dovecot 1.2 in debian squeeze if I connect to imap://user at host/INBOX Inbox works as expected and I get the content of Maildir/{cur,new,tmp} Maildir/.subfolder already exists if I connect to imap://user at host/INBOX.subfolder I get "folder not found" if I do a imap directory listing (raw mutt config, no subscriptions) - I see "../" - If I navigate to "../" I se all my existing subfolders if I create a new folder via imap the folder is created in Maildir/.INBOX.new_subfolder I expect the creation of Maildir/.new_subfolder This doesn't fit to the client configs and if I move the existing folders it doesn't fit to existing delivery agent filters and settings. I enabled mail_debug and the expansion looks ok for me: dovecot: imap-login: Login: user=, method=PLAIN, rip=85.178.xx.xxx, lip=80.81.xxx.xxx, TLS dovecot: IMAP(wulf): Effective uid=112, gid=114, home=/var/mail/home/wulf dovecot: IMAP(wulf): maildir: data=~/Maildir dovecot: IMAP(wulf): maildir++: root=/var/mail/home/wulf/Maildir, index=, control=, inbox=/var/mail/home/wulf/Maildir the existing subscription information from courier-imap looks like INBOX.subolder Yes I can sed them to subfolder (of course I have to copy them to Maildir/subscriptions anyhow) But is that the idea? I like to avoid trouble with all the users and their already configured mail-clients. Where is my mistake? Thanks for feedback Best Wulf CONF: protocols = imap imaps log_timestamp = "%Y-%m-%d %H:%M:%S " ssl = required ssl_cert_file = /etc/exim4/xxxxxxxxxxxxxxx.pem ssl_key_file = /etc/exim4/xxxxxx.key mail_location = maildir:~/Maildir mail_uid = 112 mail_gid = 114 mail_access_groups = vmail mail_debug = yes first_valid_uid = 112 protocol imap { } protocol pop3 { pop3_uidl_format = %08Xu%08Xv } protocol managesieve { } auth_verbose = yes auth_debug = yes auth default { mechanisms = plain passdb ldap { args = /etc/dovecot/dovecot-ldap.conf } userdb static { args = uid=112 gid=114 home=/var/mail/home/%u } user = root } dict { } plugin { } dovecot-ldap.conf: hosts = 127.0.0.1:389 auth_bind = yes auth_bind_userdn = uid=%u,ou=users,dc=xxxxxxxx,dc=de base = dc=xxxxxxxx,dc=de From djonas at vitalwerks.com Fri May 27 09:25:59 2011 From: djonas at vitalwerks.com (David Jonas) Date: Thu, 26 May 2011 23:25:59 -0700 Subject: [Dovecot] dsync: Invalid mailbox first_recent_uid Message-ID: <4DDF43F7.8020707@vitalwerks.com> For the life of me I can't get dsync to work. Please help! Remote server runs dovecot out of /usr/local/dovecot2. Everything makes sense until this line: dsync-local(djonas at vitalwerks.com): Error: Invalid mailbox input from worker server: Invalid mailbox first_recent_uid The local uid is 8989 and the remote uid is 89. I added "first_valid_uid = 89" to the local conf but to no avail. Local version is 2.0.12, remote is 2.0.1. # dsync -Dv -u djonas at vitalwerks.com mirror \ ssh vmail at 192.168.15.54 \ /usr/local/dovecot2/bin/dsync -Dv -u djonas at vitalwerks.com dsync(vmail): Debug: Effective uid=8989, gid=8989, home=/home/vmail/domains/vitalwerks.com/djonas dsync(vmail): Debug: Quota root: name=user backend=dict args=vitalwerks.com-djonas:proxy::quota dsync(vmail): Debug: dict quota: user=vitalwerks.com-djonas, uri=proxy::quota, noenforcing=0 dsync(vmail): Debug: Namespace : type=private, prefix=, sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir:INBOX=~/Maildir dsync(vmail): Debug: maildir++: root=/home/vmail/domains/vitalwerks.com/djonas/Maildir, index=, control=, inbox=/home/vmail/domains/vitalwerks.com/djonas/Maildir dsync-local(djonas at vitalwerks.com): Debug: Namespace : Using permissions from /home/vmail/domains/vitalwerks.com/djonas/Maildir: mode=0770 gid=-1 dsync-local(djonas at vitalwerks.com): Error: Invalid mailbox input from worker server: Invalid mailbox first_recent_uid dsync-remote(djonas at vitalwerks.com): Error: read() from proxy client failed: EOF From aperezaranda at yaco.es Fri May 27 11:17:17 2011 From: aperezaranda at yaco.es (Antonio Perez-Aranda) Date: Fri, 27 May 2011 10:17:17 +0200 Subject: [Dovecot] [PATCH] Indexing mail attachments with Dovecot + Solr In-Reply-To: References: <4DDA58FE.8080707@Media-Brokers.com> Message-ID: I can confirm that this patch is running against Dovecot 2.0.13 2011/5/23 Antonio Perez-Aranda : > Yes and I have it in my TODO, but we are using this version on a > production system. And it is our base system for development. > > 2011/5/23 Charles Marcus : >> On 2011-05-23 7:11 AM, Antonio Perez-Aranda wrote: >>> Indexing mail attachments with Dovecot + Solr. >>> >>> This patch has been tested with these versions: >>> ?* dovecot 2.0.9 >>> ?* apache-solr 1.4.1 >> >> Isn't it customary - and logical - to always test/patch against the >> current stable RELEASE version (ie, 2.0.13)? >> >> -- >> >> Best regards, >> >> Charles >> > > > > -- > Antonio P?rez-Aranda Alcaide > aperezaranda at yaco.es > > Yaco Sistemas S.L. > http://www.yaco.es/ > C/ Rioja 5, 41001 Sevilla > Tel?fono +34 954 50 00 57 > Fax ? ? ?+34 954 50 09 29 > -- Antonio P?rez-Aranda Alcaide aperezaranda at yaco.es Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Tel?fono +34 954 50 00 57 Fax ? ? ?+34 954 50 09 29 From mfioretti at nexaima.net Fri May 27 11:25:46 2011 From: mfioretti at nexaima.net (M. Fioretti) Date: Fri, 27 May 2011 10:25:46 +0200 (CEST) Subject: [Dovecot] Error: file_dotlock_create failed: Permission denied In-Reply-To: <37522.151.25.103.156.1306324170.squirrel@nexaima.net> References: <37522.151.25.103.156.1306324170.squirrel@nexaima.net> Message-ID: <44237.151.25.116.171.1306484746.squirrel@nexaima.net> On Wed, May 25, 2011 1:49 pm, M. Fioretti wrote: > Hi, > > I have a Fedora 14 x86_64 computer. I run dovecot 2.0.12 on it, only to > keep a local imap copy of all my email, in maildir format. A couple days > ago the hard disk broke, so I bought a new one, and reinstalled Fedora 14 > x86_64 with all the updates. > > Then I copied all the maildirs from a backup to the new drive. > > But I can't access email now. No matter how I change sticky bits or > ownership and permissions of all the involved files and directories, etc.. > Login succeeds, but I get this error whenever I try to create new > mailboxes or access existing ones: sorry to nag the list, but is it possible that there is no way to restore this dovecot install, or at least any indication of what else I should check/try to do? Should I provide more information? TIA for any feedback, Marco From aperezaranda at yaco.es Fri May 27 11:44:44 2011 From: aperezaranda at yaco.es (Antonio Perez-Aranda) Date: Fri, 27 May 2011 10:44:44 +0200 Subject: [Dovecot] This is appear a fts bug Message-ID: I have checked this on dovecot 2.0.9 and 2.0.13 with fts-solr without patching. If you execute the follow IMAP script, then the imap process die by and a "assert" . select "inbox." . search text something After search, the connection is aborted in the client side, and imap process died on the server. When the log in dovecot says: (fts_backend_solr_init): assertion failed: (*box_name != '\0') After debug the code, there isn't in context any possibility to get "box_name". With squat plugin it is running. -- Antonio P?rez-Aranda Alcaide aperezaranda at yaco.es Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Tel?fono +34 954 50 00 57 Fax ? ? ?+34 954 50 09 29 From grenouille at c-base.org Fri May 27 14:05:06 2011 From: grenouille at c-base.org (wulf) Date: Fri, 27 May 2011 13:05:06 +0200 Subject: [Dovecot] unexpected subfolder locaton in Maildir/.INBOX.subfolder In-Reply-To: <833D8E48405E064EBC54C84EC6B36E400635B6B5@STAWINCOX10MBX1.staff.vuw.ac.nz> References: <20110526235943.GC848@coulmann.de> <833D8E48405E064EBC54C84EC6B36E400635B6B5@STAWINCOX10MBX1.staff.vuw.ac.nz> Message-ID: <20110527110504.GB7401@coulmann.de> Hi Steve, On Fri, May 27, 2011 at 12:35:49AM +0000, Steven Jones wrote: > I dont know if this will help but, When I upgraded from Debain 5.0 to > 6.0 I had to specify the mail directory explicitly, it then all worked > fine. no, it don't I already tried this, and as you can see there is a correct expansion off INBOX in the log. > dovecot: IMAP(wulf): maildir++: root=/var/mail/home/wulf/Maildir, > index=, control=, inbox=/var/mail/home/wulf/Maildir best wulf From warden at geneseo.edu Fri May 27 15:51:10 2011 From: warden at geneseo.edu (David Warden) Date: Fri, 27 May 2011 08:51:10 -0400 Subject: [Dovecot] PAM config problem... In-Reply-To: <4DDE9E54.8020105@inti.gob.ar> References: <4DDE9E54.8020105@inti.gob.ar> Message-ID: <17660AE4-188E-4FCC-87D5-75F8B3BBDFA2@geneseo.edu> Someone else may have responded to this already but it looks like you have a problem in the passdb section of your config. See my inline... On May 26, 2011, at 2:39 PM, Juan Bernhard wrote: > Hi, > I had some troubles with PAM configuration. I need to restrict imap > access to some users (and allow pop3 to all). I followed the wiki > example of using "args = %s" to use 2 pams configurations (one for imap > and another for pop3) > When I start the service, it starts, but when I try to auth its hangs > Here is the log: > May 26 15:16:09 claudia dovecot: master: Warning: Killed with signal 15 > (by pid=15424 uid=0 code=kill) > May 26 15:16:10 claudia dovecot: master: Dovecot v2.0.13 starting up > May 26 15:16:24 claudia dovecot: auth: Debug: Loading modules from > directory: /usr/local/lib/dovecot/auth > May 26 15:16:24 claudia dovecot: auth: Fatal: pam: Unknown setting: %s > May 26 15:16:24 claudia dovecot: master: Error: service(auth): command > startup failed, throttling > May 26 15:16:59 claudia dovecot: pop3-login: Error: Timeout waiting for > handshake from auth server. my pid=15435, input bytes=0 > > Is this option working? Im I missing somethin? I had the same proble in > Solaris (but i thought that was a solaris thing, solaris is ALWAYS diferent) > > here is my doveconf -n > # 2.0.13: /usr/local/etc/dovecot/dovecot.conf > # OS: Linux 2.6.18-238.9.1.el5 x86_64 CentOS release 5.6 (Final) ext3 > auth_cache_size = 10 M > auth_debug = yes > base_dir = /var/run/dovecot/ > disable_plaintext_auth = no > listen = * > login_greeting = Server ready. > mail_debug = yes > mail_location = maildir:/var/mail/%u:INDEX=~/ > mail_plugins = quota > passdb { > args = %s failure_show_msg=yes I think you want %s (service) after failure_show_msg=yes. At least the default config file says that the PAM service comes after the key,value config pars for args. > driver = pam > } > plugin { > quota = maildir:Cuota de correo > quota_rule = *:storage=1G > quota_rule2 = Trash:storage=+100M > } > protocols = imap pop3 > ssl = no > ssl_cert = ssl_key = userdb { > driver = passwd > } > protocol imap { > imap_client_workarounds = tb-extra-mailbox-sep tb-lsub-flags > mail_plugins = quota imap_quota > } > protocol pop3 { > pop3_client_workarounds = outlook-no-nuls oe-ns-eoh > pop3_lock_session = yes > pop3_uidl_format = %08Xv%08Xu > } > > > And the build options: > Build options: ioloop=epoll notify=inotify ipv6 openssl io_block_size=8192 > Mail storages: cydir maildir mbox mdbox raw sdbox shared > SQL drivers: > Passdb: checkpassword ldap pam passwd passwd-file shadow > Userdb: checkpassword ldap nss passwd prefetch passwd-file > > > Thanks, Juan. > > > > > > From jayw at interoceansystems.com Fri May 27 20:16:36 2011 From: jayw at interoceansystems.com (Jay Welch) Date: Fri, 27 May 2011 10:16:36 -0700 Subject: [Dovecot] Email being stored in "cur" folder and not being downloaded in Thunderbird Message-ID: <4DDFDC74.9020205@interoceansystems.com> Hi, I have recently noticed that a random number of emails are being stored in the "cur" folder under certain users and cannot be downloaded in Thunderbird. I have tried moving the emails from "cur" to "new" but everytime I try to download the email from Thunderbird, the emails go back to the "cur" folder. What could be causing this? What is the "cur" folder used for? I had thought that the "cur" folder was used for IMAP but all the users here are using POP. Also, I have tried testing this on Outlook and Outlook seems to download the files from "cur". Thanks From kgc at corp.sonic.net Fri May 27 22:00:25 2011 From: kgc at corp.sonic.net (Kelsey Cummings) Date: Fri, 27 May 2011 12:00:25 -0700 Subject: [Dovecot] Client IP log variable for proxy/director setups? Message-ID: <20110527190025.GH70065@corp.sonic.net> Timo - it would be very convenient if we could get a variable that held the real client ip for use in logging with director/proxy setups. It's clearly already passed around in client->user->remote_ip but at this point, I don't see anyway to get it into the logs and it would take me ages to figure out the Right place to add it since client->user doesn't seem to be available in client-common.c: get_var_expand_table(..). Perhaps I'm missing something obvious? -- Kelsey Cummings - kgc at corp.sonic.net sonic.net, inc. System Architect 2260 Apollo Way 707.522.1000 Santa Rosa, CA 95407 From sven at svenhartge.de Fri May 27 23:29:38 2011 From: sven at svenhartge.de (Sven Hartge) Date: Fri, 27 May 2011 22:29:38 +0200 Subject: [Dovecot] Email being stored in "cur" folder and not being downloaded in Thunderbird References: <4DDFDC74.9020205@interoceansystems.com> Message-ID: <37srmedh8hv8@mids.svenhartge.de> Jay Welch wrote: > I have recently noticed that a random number of emails are being > stored in the "cur" folder under certain users and cannot be > downloaded in Thunderbird. I have tried moving the emails from "cur" > to "new" but everytime I try to download the email from Thunderbird, > the emails go back to the "cur" folder. What could be causing this? Perfectly normal, this is the way the Maildir format works. > What is the "cur" folder used for? I had thought that the "cur" folder > was used for IMAP but all the users here are using POP. No, the way the mail is stored and the way it is accessed are two different things. Gr??e, Sven. -- Sigmentation fault. Core dumped. From nick.z.edwards at gmail.com Sat May 28 10:53:38 2011 From: nick.z.edwards at gmail.com (Nick Edwards) Date: Sat, 28 May 2011 17:53:38 +1000 Subject: [Dovecot] recipient delimiters and virtual users Message-ID: Is there a known workaround for users who want to use the old recipient delimiter plus sign method of sorting their mail? eg: foo.bat +dovecot at example.com This does not work with postfix/dovecot, but if we tell postfix/system-passwd to use the recipient_delimiter = + it works just like I recall sendmail did, but we no longer use local users only virtual dovecot LDA w/mysql. postfix appears to accept it testing by telnet, but then the message gets a new DSN generated saying no user, so dovecot LDA must not work by default with this. Postfix 2.8.3 Dovecot 1.2.17 MySQL 5.5.12 our postfix master.cf is dovecot unix - n n - - pipe flags=DRhu user=mail:mail argv=/usr/libexec/dovecot/deliver -e -d ${recipient} From dovecot.user at seibercom.net Sat May 28 13:31:11 2011 From: dovecot.user at seibercom.net (Jerry) Date: Sat, 28 May 2011 06:31:11 -0400 Subject: [Dovecot] recipient delimiters and virtual users In-Reply-To: References: Message-ID: <20110528063111.3c7955bd@scorpio> On Sat, 28 May 2011 17:53:38 +1000 Nick Edwards articulated: > Is there a known workaround for users who want to use the old > recipient delimiter plus sign method of sorting their mail? eg: > foo.bat +dovecot at example.com > > This does not work with postfix/dovecot, but if we tell > postfix/system-passwd to use the recipient_delimiter = + it works > just like I recall sendmail did, but we no longer use local users > only virtual dovecot LDA w/mysql. > > postfix appears to accept it testing by telnet, but then the message > gets a new DSN generated saying no user, so > dovecot LDA must not work by default with this. > > Postfix 2.8.3 > Dovecot 1.2.17 > MySQL 5.5.12 > > > our postfix master.cf is > dovecot unix - n n - - pipe > flags=DRhu user=mail:mail argv=/usr/libexec/dovecot/deliver -e -d > ${recipient} I use "+" addressing with Postfix & dovecot without a problem. This is from the Postfix master.cf file: dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -a ${recipient} You should include the log entries, both Postfix and Dovecot that pertain to this situation. And please, do not mangle them. It makes figuring out what is happening so very much harder. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From jk at jkart.de Sat May 28 13:36:28 2011 From: jk at jkart.de (Jim Knuth) Date: Sat, 28 May 2011 12:36:28 +0200 Subject: [Dovecot] Segmentation fault again Message-ID: <4DE0D02C.4060807@jkart.de> Hi, I have the following report after a cron job again? /root/tools/expunge: Zeile 3: 4869 Speicherzugriffsfehler doveadm expunge -A mailbox Spam savedbefore 5d /root/tools/expunge: Zeile 5: 4915 Speicherzugriffsfehler doveadm expunge -A mailbox Papierkorb savedbefore 4d See the attachment. Any ideas greatly appreciated. Thanks -- Mit freundlichen Gr??en, with kind regards, Jim Knuth --------- Das Leben ist bezaubernd, man muss es nur durch die richtige Brille sehen. (Alexandre Dumas) -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: doveadm-bt_full.txt URL: From trever.adams at gmail.com Sat May 28 18:33:07 2011 From: trever.adams at gmail.com (Trever L. Adams) Date: Sat, 28 May 2011 09:33:07 -0600 Subject: [Dovecot] possible bug leading to lmtp crashes In-Reply-To: <4DD5191E.9040606@gmail.com> References: <4DAECAAC.3060903@gmail.com> <4DB58F67.4090600@gmail.com> <4DB6FCF7.9070905@gmail.com> <5D19A866-381B-4CA6-B8FF-0F7BCDA36799@iki.fi> <4DBC3F3F.4030605@gmail.com> <1304957973.10421.101.camel@hurina> <4DCA7C6F.40902@gmail.com> <1305116849.10421.192.camel@hurina> <4DD5191E.9040606@gmail.com> Message-ID: <4DE115B3.7080706@gmail.com> On 05/19/2011 07:20 AM, Trever L. Adams wrote: > > The assert: > > May 17 04:01:02 dovecot: auth: Panic: file ../../src/lib/array.h: line > 189 (array_idx_i): assertion failed: (idx * array->element_size < > array->buffer->used) > > This is usually repeated 2 or more times near a crash. On the machine > that doesn't crash, I NEVER see this. On the machines that crash, there > isn't (or doesn't seem to be) a 1:1 correlation. > > Trever This bug still exists in Dovecot 2.0.13. I am sorry I had thought it was fixed. Again, two machines are crashing with the above message, the third doesn't. Trever -- "The only true happiness comes from squandering ourselves for a purpose." -- William Cowper -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From mail at tomsommer.dk Sat May 28 22:16:29 2011 From: mail at tomsommer.dk (Tom Sommer) Date: Sat, 28 May 2011 21:16:29 +0200 Subject: [Dovecot] Bug: Fixed a duplicate Message-ID: <4DE14A0D.6030704@tomsommer.dk> I restored a dovecot mailserver today, and when I started the server again, the logs filled up with "Fixed a duplicate" warnings. This in itself it not a problem, the problem is that it appears the fix is not done correct. Consider this: Warning: Fixed a duplicate: [X]/cur/1305907573.V807I37682f3M146183.mail8.xxx.com:2,S -> 1306601066.M382668P27710.mail8.xxx.com The problem appears to be the timestamp of this new file isn't updated correctly. Now I got hundreds of mailboxes filled with mails named 1305907573.* with random (in the past) timestamps, leading to mangled miss-sorted inboxes for customers. 3575 May 25 02:05 1306600913.M982997P26976.mail8.xxx.com:2,S 55313 May 6 01:50 1306600913.M982998P26976.mail8.xxx.com:2,S 9839 May 7 23:59 1306600913.M982999P26976.mail8.xxx.com:2,S 3453 May 10 01:32 1306600913.M983000P26976.mail8.xxx.com:2,S 16616 May 14 00:22 1306600913.M983001P26976.mail8.xxx.com:2,S 68850 May 25 00:46 1306600913.M983002P26976.mail8.xxx.com:2,S etc. Dovecot is v. 2.0.11 I guess I should have deleted all dovecot.* files after the restore, before I started dovecot? // Tom From dmiller at amfes.com Sun May 29 12:09:29 2011 From: dmiller at amfes.com (Daniel Miller) Date: Sun, 29 May 2011 02:09:29 -0700 Subject: [Dovecot] solr substring schema.xml Message-ID: I'm trying a modified schema.xml with solr - it appears I now have substring searches! I took the schema.xml file shipped with Dovecot, and modified the text field definition to be: Changing to the new "SnowballPorter" instead of the deprecated "EnglishPorter" filters is probably minor - the magic is the "NGramFilterFactory". 3 & 15 seemed reasonable defaults for the min/max size to search on. -- Daniel From jk at jkart.de Sun May 29 13:12:10 2011 From: jk at jkart.de (Jim Knuth) Date: Sun, 29 May 2011 12:12:10 +0200 Subject: [Dovecot] Segmentation fault again In-Reply-To: <4DE0D02C.4060807@jkart.de> References: <4DE0D02C.4060807@jkart.de> Message-ID: <4DE21BFA.4020300@jkart.de> am 28.05.11 12:36 schrieb Jim Knuth : > Hi, > > I have the following report after a cron job again? > > /root/tools/expunge: Zeile 3: 4869 Speicherzugriffsfehler doveadm > expunge -A mailbox Spam savedbefore 5d > /root/tools/expunge: Zeile 5: 4915 Speicherzugriffsfehler doveadm > expunge -A mailbox Papierkorb savedbefore 4d > > See the attachment. > > Any ideas greatly appreciated. Thanks > Does nobody know, how will this be solved? :-/ -- Mit freundlichen Gr??en, with kind regards, Jim Knuth --------- Und aus dem Chaos sprach eine Stimme zu mir: "L?chle und sei froh, es k?nnte schlimmer kommen!" Und ich lachte und war froh - denn es kam schlimmer. (Otto Waalkes) From user+dovecot at localhost.localdomain.org Sun May 29 13:57:08 2011 From: user+dovecot at localhost.localdomain.org (Pascal Volk) Date: Sun, 29 May 2011 12:57:08 +0200 Subject: [Dovecot] Segmentation fault again In-Reply-To: <4DE21BFA.4020300@jkart.de> References: <4DE0D02C.4060807@jkart.de> <4DE21BFA.4020300@jkart.de> Message-ID: <4DE22684.6070806@localhost.localdomain.org> On 05/29/2011 12:12 PM Jim Knuth wrote: > am 28.05.11 12:36 schrieb Jim Knuth : > >> Hi, >> >> I have the following report after a cron job again? >> >> /root/tools/expunge: Zeile 3: 4869 Speicherzugriffsfehler doveadm >> expunge -A mailbox Spam savedbefore 5d >> /root/tools/expunge: Zeile 5: 4915 Speicherzugriffsfehler doveadm >> expunge -A mailbox Papierkorb savedbefore 4d >> >> See the attachment. Which attachment? >> Any ideas greatly appreciated. Thanks Did you apply that patch? http://hg.dovecot.org/dovecot-2.0/rev/475e6633b1d7 Upgrading to v2.0.13 may also solve your problem. > Does nobody know, how will this be solved? :-/ Provide some details about the crash. See that thread for details: http://dovecot.org/list/dovecot/2011-April/058518.html Regards, Pascal -- The trapper recommends today: c01dcafe.1114912 at localdomain.org From jk at jkart.de Sun May 29 14:08:14 2011 From: jk at jkart.de (Jim Knuth) Date: Sun, 29 May 2011 13:08:14 +0200 Subject: [Dovecot] Segmentation fault again In-Reply-To: <4DE22684.6070806@localhost.localdomain.org> References: <4DE0D02C.4060807@jkart.de> <4DE21BFA.4020300@jkart.de> <4DE22684.6070806@localhost.localdomain.org> Message-ID: <4DE2291E.1070803@jkart.de> am 29.05.11 12:57 schrieb Pascal Volk : > On 05/29/2011 12:12 PM Jim Knuth wrote: >> am 28.05.11 12:36 schrieb Jim Knuth: >> >>> Hi, >>> >>> I have the following report after a cron job again? >>> >>> /root/tools/expunge: Zeile 3: 4869 Speicherzugriffsfehler doveadm >>> expunge -A mailbox Spam savedbefore 5d >>> /root/tools/expunge: Zeile 5: 4915 Speicherzugriffsfehler doveadm >>> expunge -A mailbox Papierkorb savedbefore 4d >>> >>> See the attachment. > > Which attachment? I`ve send already with the first post. Whatever. here again. > Upgrading to v2.0.13 may also solve your problem. That is V 2.0.13 > Regards, > Pascal -- Mit freundlichen Gr??en, with kind regards, Jim Knuth --------- Die Antwort ist 42. (Per Anhalter durch die Galaxis) -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: doveadm-bt_full.txt URL: From jk at jkart.de Sun May 29 14:14:05 2011 From: jk at jkart.de (Jim Knuth) Date: Sun, 29 May 2011 13:14:05 +0200 Subject: [Dovecot] Segmentation fault again In-Reply-To: <4DE22684.6070806@localhost.localdomain.org> References: <4DE0D02C.4060807@jkart.de> <4DE21BFA.4020300@jkart.de> <4DE22684.6070806@localhost.localdomain.org> Message-ID: <4DE22A7D.3010403@jkart.de> am 29.05.11 12:57 schrieb Pascal Volk : > > Did you apply that patch? http://hg.dovecot.org/dovecot-2.0/rev/475e6633b1d7 > Upgrading to v2.0.13 may also solve your problem. # 2.0.13 (936f6c2ddfdd): /etc/dovecot/dovecot.conf # OS: Linux 2.6.29.4 i686 Debian wheezy/sid > Regards, > Pascal -- Mit freundlichen Gr??en, with kind regards, Jim Knuth --------- Kluge Menschen suchen sich selbst die Erfahrungen aus, die sie zu machen w?nschen. (Aldous Huxley) From user+dovecot at localhost.localdomain.org Sun May 29 14:16:04 2011 From: user+dovecot at localhost.localdomain.org (Pascal Volk) Date: Sun, 29 May 2011 13:16:04 +0200 Subject: [Dovecot] Segmentation fault again In-Reply-To: <4DE2291E.1070803@jkart.de> References: <4DE0D02C.4060807@jkart.de> <4DE21BFA.4020300@jkart.de> <4DE22684.6070806@localhost.localdomain.org> <4DE2291E.1070803@jkart.de> Message-ID: <4DE22AF4.9060803@localhost.localdomain.org> On 05/29/2011 01:08 PM Jim Knuth wrote: > am 29.05.11 12:57 schrieb Pascal Volk > : >> Which attachment? > > I`ve send already with the first post. > Whatever. here again. When you compare them??, you will see the difference. >> Upgrading to v2.0.13 may also solve your problem. > > That is V 2.0.13 Yeah, the backtrace looks different and I'm sure, Timo will fix the problem soon. Regards, Pascal -- [1] http://dovecot.org/pipermail/dovecot/attachments/20110409/245be60b/attachment.txt [2] http://dovecot.org/pipermail/dovecot/attachments/20110529/f2b2ffd0/attachment-0001.txt -- The trapper recommends today: fabaceae.1114913 at localdomain.org From nick.z.edwards at gmail.com Mon May 30 03:52:37 2011 From: nick.z.edwards at gmail.com (Nick Edwards) Date: Mon, 30 May 2011 10:52:37 +1000 Subject: [Dovecot] recipient delimiters and virtual users In-Reply-To: <20110528063111.3c7955bd@scorpio> References: <20110528063111.3c7955bd@scorpio> Message-ID: On Sat, May 28, 2011 at 8:31 PM, Jerry wrote: > On Sat, 28 May 2011 17:53:38 +1000 > Nick Edwards articulated: > > > > > > > > our postfix master.cf is > > dovecot unix - n n - - pipe > > flags=DRhu user=mail:mail argv=/usr/libexec/dovecot/deliver -e -d > > ${recipient} > > I use "+" addressing with Postfix & dovecot without a problem. This is > from the Postfix master.cf file: > > dovecot unix - n n - - pipe > flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f > ${sender} > -d ${user}@${nexthop} -a ${recipient} > > This was the problem, thanks, though the -a is not needed from reading the wiki options tells me it defaults to same. (BTW I got this message in my spam folder ???? it must not like the dollar signs?) But all is working thanks again for your help! Nicki From sean at donelan.com Mon May 30 06:39:36 2011 From: sean at donelan.com (Sean Donelan) Date: Sun, 29 May 2011 23:39:36 -0400 (EDT) Subject: [Dovecot] v2.0.13 released Message-ID: After configure and compiling dovecot-2.0.13, running "make check" fails on a few tests on sparc/solaris net_is_in_network(0) ................................................. : ok net_is_in_network(1) ................................................. : ok net_is_in_network(2) ................................................. : ok net_is_in_network(3) ................................................. : ok net_is_in_network(4) ................................................. : ok net_is_in_network(5) ................................................. : ok net_is_in_network(6) ................................................. : ok net_is_in_network(7) ................................................. : ok net_is_in_network(8) ................................................. : ok net_is_in_network(9) ................................................. : ok net_is_in_network(10) ................................................ : ok net_is_in_network(11) ................................................ : FAILED net_is_in_network(12) ................................................ : FAILED net_is_in_network(13) ................................................ : ok net_is_in_network(14) ................................................ : ok net_is_in_network(15) ................................................ : ok net_is_in_network(16) ................................................ : ok The failing tests are for { "255.255.255.255", "128.0.0.0", 1, TRUE }, { "255.255.255.255", "127.0.0.0", 1, FALSE } src/lib/network.c src/lib/test-network From dovecot.user at seibercom.net Mon May 30 14:05:15 2011 From: dovecot.user at seibercom.net (Jerry) Date: Mon, 30 May 2011 07:05:15 -0400 Subject: [Dovecot] recipient delimiters and virtual users In-Reply-To: References: <20110528063111.3c7955bd@scorpio> Message-ID: <20110530070515.3d0f147d@scorpio> On Mon, 30 May 2011 10:52:37 +1000 Nick Edwards articulated: > (BTW I got this message in my spam folder ???? it must not like the > dollar signs?) Interesting! I hope this does not end up in the Spam folder also. Out of morbid curiosity, did it give any indication why it was marked "Spam"? -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From hanns at hannsmattes.de Mon May 30 14:52:36 2011 From: hanns at hannsmattes.de (Hanns Mattes) Date: Mon, 30 May 2011 13:52:36 +0200 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server Message-ID: <4DE38504.2020608@hannsmattes.de> Hi, is there a problem with the server, which is running this list, or do I have an issue with my DNS-server? mail:/ # host 193.210.130.67 Host 67.130.210.193.in-addr.arpa. not found: 3(NXDOMAIN) which leads to postfix complaining: May 30 13:28:39 mail postfix/smtpd[25014]: NOQUEUE: reject_warning: RCPT from unknown[193.210.130.67]: 450 4.7.1 Client host rejected: cannot find your reverse hostname, [193.210.130.67]; from= to= proto=ESMTP helo= Regards Hanns From tss at iki.fi Mon May 30 14:59:36 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 30 May 2011 14:59:36 +0300 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: <4DE38504.2020608@hannsmattes.de> References: <4DE38504.2020608@hannsmattes.de> Message-ID: <1306756776.10421.408.camel@hurina> On Mon, 2011-05-30 at 13:52 +0200, Hanns Mattes wrote: > is there a problem with the server, which is running this list, or do I > have an issue with my DNS-server? > > mail:/ # host 193.210.130.67 > Host 67.130.210.193.in-addr.arpa. not found: 3(NXDOMAIN) The IP changed last Friday and the ISP is being slow in adding the reverse DNS.. From dovecot-user at spambox.dk Mon May 30 15:11:59 2011 From: dovecot-user at spambox.dk (Henrik Larsson) Date: Mon, 30 May 2011 14:11:59 +0200 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: <4DE38504.2020608@hannsmattes.de> References: <4DE38504.2020608@hannsmattes.de> Message-ID: <1adc0844a2632d88f5d4b4fb29534576@larsson.as> > which leads to postfix complaining: > > May 30 13:28:39 mail postfix/smtpd[25014]: NOQUEUE: reject_warning: > RCPT > from unknown[193.210.130.67]: 450 4.7.1 Client host rejected: cannot > find your reverse hostname, [193.210.130.67]; > from= to= > proto=ESMTP > helo= If your are checking for reverse hostname and won't accept e-mails if this is not present you will reject a lot of legitimate mail. From imap at tnde.org Mon May 30 15:18:21 2011 From: imap at tnde.org (imap at tnde.org) Date: Mon, 30 May 2011 08:18:21 -0400 Subject: [Dovecot] Unknown setting: dbox_attachment_dir Message-ID: <6aa4663f8f159b8334230cb285386628.squirrel@emailmg.dot5hosting.com> Hi, I am trying to set up Dovecot with sdbox and sis (single instance storage of attachments), however I get the following error when attempting to start dovecot: Starting Dovecot Imap: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 89: Unknown setting: dbox_attachment_dir I'd appreciate help on getting this up and running. This is a virtual (for the time being) server, running Centos, and Dovecot 2. [root at localhost ~]# dovecot --build-options Build options: ioloop=epoll notify=inotify ipv6 openssl io_block_size=8192 Mail storages: cydir maildir mbox mdbox raw sdbox shared SQL driver plugins: mysql postgresql sqlite Passdb: checkpassword ldap pam passwd passwd-file shadow sql Userdb: checkpassword ldap(plugin) nss passwd prefetch passwd-file sql [root at localhost ~]# dovecot -n # 2.0.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.18-238.9.1.el5 x86_64 CentOS release 5.6 (Final) auth_debug = yes auth_debug_passwords = yes auth_verbose = yes disable_plaintext_auth = no mail_location = sdbox:~/dbox mbox_write_locks = fcntl passdb { driver = pam } ssl_cert = References: <20110528063111.3c7955bd@scorpio> <20110530070515.3d0f147d@scorpio> Message-ID: On Mon, May 30, 2011 at 9:05 PM, Jerry wrote: > On Mon, 30 May 2011 10:52:37 +1000 > Nick Edwards articulated: > > > (BTW I got this message in my spam folder ???? it must not like the > > dollar signs?) > > Interesting! I hope this does not end up in the Spam folder also. Out > of morbid curiosity, did it give any indication why it was marked > "Spam"? > > It did, and I don't know why, gmail is pretty brain dead so could be anything. It must be the list triggering it? From mikael.bak at yandex.ru Mon May 30 15:45:22 2011 From: mikael.bak at yandex.ru (=?UTF-8?B?0JHQsNC6INCc0LjQutCw0LXQuw==?=) Date: Mon, 30 May 2011 14:45:22 +0200 Subject: [Dovecot] recipient delimiters and virtual users In-Reply-To: References: <20110528063111.3c7955bd@scorpio> <20110530070515.3d0f147d@scorpio> Message-ID: <4DE39162.7080105@yandex.ru> Nick Edwards wrote: > On Mon, May 30, 2011 at 9:05 PM, Jerry wrote: > >> On Mon, 30 May 2011 10:52:37 +1000 >> Nick Edwards articulated: >> >>> (BTW I got this message in my spam folder ???? it must not like the >>> dollar signs?) >> Interesting! I hope this does not end up in the Spam folder also. Out >> of morbid curiosity, did it give any indication why it was marked >> "Spam"? >> >> > It did, and I don't know why, gmail is pretty brain dead so could be > anything. It must be the list triggering it? > Sorry for the off topic comment. My email provider (Yandex) is randomly placing email from Dovecot and Postfix list in the spam folder. I have no idea why. Big providers has lousy spam filter. Sometimes Gmail is doing the same. Thought I'd let you know that I have the same problem. Cheers, Mikael From nick.z.edwards at gmail.com Mon May 30 15:48:33 2011 From: nick.z.edwards at gmail.com (Nick Edwards) Date: Mon, 30 May 2011 22:48:33 +1000 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: <1adc0844a2632d88f5d4b4fb29534576@larsson.as> References: <4DE38504.2020608@hannsmattes.de> <1adc0844a2632d88f5d4b4fb29534576@larsson.as> Message-ID: On Mon, May 30, 2011 at 10:11 PM, Henrik Larsson wrote: > which leads to postfix complaining: >> >> May 30 13:28:39 mail postfix/smtpd[25014]: NOQUEUE: reject_warning: RCPT >> from unknown[193.210.130.67]: 450 4.7.1 Client host rejected: cannot >> find your reverse hostname, [193.210.130.67]; >> from= to= proto=ESMTP >> helo= >> > > If your are checking for reverse hostname and won't accept e-mails if this > is not present you will reject a lot of legitimate mail. > This also stops more spam than the good mail it blocks, when people get blocked for this, they should complain to their ISP, why should we accept NON RFC compliant mail servers because the sys admin has not got around to reading dns 101? Yes I know some ISP dont care and shrug their shoulders, I tell the people who complain to postmaster address to find an ISP who can set up their networks and cares about their users! My employer does not pay me to sit here and update the whitelist files every 15 minutes because of some ISP who doesn't care about their users sending mail, and at my last employer a couple of years ago, we did the sums, 92% of spam stopped by rejecting no dns hosts! even here I still see it mx-in1 ~$ cat maillog | grep -c "cannot find your hostname" 5328 mx-in2 ~$ cat maillog | grep -c "cannot find your hostname" 7041 in only 20 hours since logs rolled!!!!!!! enjoy your spam :-> From hanns at hannsmattes.de Mon May 30 16:00:33 2011 From: hanns at hannsmattes.de (Hanns Mattes) Date: Mon, 30 May 2011 15:00:33 +0200 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: <1adc0844a2632d88f5d4b4fb29534576@larsson.as> References: <4DE38504.2020608@hannsmattes.de> <1adc0844a2632d88f5d4b4fb29534576@larsson.as> Message-ID: <4DE394F1.704@hannsmattes.de> Am 30.05.2011 14:11, schrieb Henrik Larsson: > If your are checking for reverse hostname and won't accept e-mails if > this is not present you will reject a lot of legitimate mail. No problem here, using the Postfix-restriction reject_unknown_reverse_client_hostname Regards Hanns From giles at coochey.net Mon May 30 16:05:59 2011 From: giles at coochey.net (Giles Coochey) Date: Mon, 30 May 2011 15:05:59 +0200 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: References: <4DE38504.2020608@hannsmattes.de> <1adc0844a2632d88f5d4b4fb29534576@larsson.as> Message-ID: <75c6bd28758ed622773a82695612d5f5.squirrel@www.coochey.net> On Mon, May 30, 2011 14:48, Nick Edwards wrote: > On Mon, May 30, 2011 at 10:11 PM, Henrik Larsson > wrote: > > > > This also stops more spam than the good mail it blocks, when people get > blocked for this, they should complain to their ISP, why should we accept > NON RFC compliant mail servers because the sys admin has not got around to > reading dns 101? > If you can afford to block legitimate email (RFC compliant or not) in order to reduce your spam then something is seriously wrong. Regardless of how efficient you spam filters are, if they produce false positives, then they're not usable at all. If you disagree, then nere is a 100% guaranteed way to stop ALL your spam: /etc/init.d/postfix stop Regards, Giles From tom at whyscream.net Mon May 30 16:12:16 2011 From: tom at whyscream.net (Tom Hendrikx) Date: Mon, 30 May 2011 15:12:16 +0200 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: <4DE394F1.704@hannsmattes.de> References: <4DE38504.2020608@hannsmattes.de> <1adc0844a2632d88f5d4b4fb29534576@larsson.as> <4DE394F1.704@hannsmattes.de> Message-ID: <4DE397B0.4060900@whyscream.net> On 30/05/11 15:00, Hanns Mattes wrote: > Am 30.05.2011 14:11, schrieb Henrik Larsson: >> If your are checking for reverse hostname and won't accept e-mails if >> this is not present you will reject a lot of legitimate mail. > > No problem here, using the Postfix-restriction > reject_unknown_reverse_client_hostname > > Regards Hanns > I just saw a complaint regarding some possible DNS issue on someone's mail server. The person who was asking around, had some issue with not receiving e-mails from a valid mailing list that he was subscribed to. His name looked just like yours :) -- Regards, Tom From hanns at hannsmattes.de Mon May 30 16:47:06 2011 From: hanns at hannsmattes.de (Hanns Mattes) Date: Mon, 30 May 2011 15:47:06 +0200 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: <4DE397B0.4060900@whyscream.net> References: <4DE38504.2020608@hannsmattes.de> <1adc0844a2632d88f5d4b4fb29534576@larsson.as> <4DE394F1.704@hannsmattes.de> <4DE397B0.4060900@whyscream.net> Message-ID: <4DE39FDA.2010904@hannsmattes.de> Am 30.05.2011 15:12, schrieb Tom Hendrikx: > On 30/05/11 15:00, Hanns Mattes wrote: >> Am 30.05.2011 14:11, schrieb Henrik Larsson: >>> If your are checking for reverse hostname and won't accept e-mails if >>> this is not present you will reject a lot of legitimate mail. >> >> No problem here, using the Postfix-restriction >> reject_unknown_reverse_client_hostname >> > > I just saw a complaint regarding some possible DNS issue on someone's > mail server. The person who was asking around, had some issue with not > receiving e-mails from a valid mailing list that he was subscribed to. > > His name looked just like yours :) :-) Nevertheless: There WAS a DNS-Issue on someone's mail server. And I'won't give up one of my most effective Anti-Spam measures, because an ISP ist slow in adding a reverse DNS. Yes, there is as risk of false positives, if you try to block spam (though in this case, it is no false positive at all), but what is the alternative? Stop blocking Spam? I don't think so. Regards Hanns From tss at iki.fi Mon May 30 16:59:12 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 30 May 2011 16:59:12 +0300 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: <1306756776.10421.408.camel@hurina> References: <4DE38504.2020608@hannsmattes.de> <1306756776.10421.408.camel@hurina> Message-ID: <1306763952.10421.410.camel@hurina> On Mon, 2011-05-30 at 14:59 +0300, Timo Sirainen wrote: > On Mon, 2011-05-30 at 13:52 +0200, Hanns Mattes wrote: > > > is there a problem with the server, which is running this list, or do I > > have an issue with my DNS-server? > > > > mail:/ # host 193.210.130.67 > > Host 67.130.210.193.in-addr.arpa. not found: 3(NXDOMAIN) > > The IP changed last Friday and the ISP is being slow in adding the > reverse DNS.. Looks like they finally added it. From user+dovecot at localhost.localdomain.org Mon May 30 21:19:15 2011 From: user+dovecot at localhost.localdomain.org (Pascal Volk) Date: Mon, 30 May 2011 20:19:15 +0200 Subject: [Dovecot] Unknown setting: dbox_attachment_dir In-Reply-To: <6aa4663f8f159b8334230cb285386628.squirrel@emailmg.dot5hosting.com> References: <6aa4663f8f159b8334230cb285386628.squirrel@emailmg.dot5hosting.com> Message-ID: <4DE3DFA3.2080708@localhost.localdomain.org> On 05/30/2011 02:18 PM imap at tnde.org wrote: > Starting Dovecot Imap: doveconf: Fatal: Error in configuration file > /etc/dovecot/dovecot.conf line 89: Unknown setting: dbox_attachment_dir ,--[ conf.d/10-mail.conf:319-330 ]-- | ## | ## Mail attachments | ## | | # sdbox and mdbox support saving mail attachments to external files, which | # also allows single instance storage for them. Other backends don't support | # this for now. | | # WARNING: This feature hasn't been tested much yet. Use at your own risk. | | # Directory root where to store mail attachments. Disabled, if empty. | #mail_attachment_dir = `-- Regards, Pascal -- The trapper recommends today: c01dcafe.1115020 at localdomain.org From juan at inti.gob.ar Mon May 30 22:02:17 2011 From: juan at inti.gob.ar (Juan Bernhard) Date: Mon, 30 May 2011 16:02:17 -0300 Subject: [Dovecot] PAM config problem... In-Reply-To: <17660AE4-188E-4FCC-87D5-75F8B3BBDFA2@geneseo.edu> References: <4DDE9E54.8020105@inti.gob.ar> <17660AE4-188E-4FCC-87D5-75F8B3BBDFA2@geneseo.edu> Message-ID: <4DE3E9B9.6070402@inti.gob.ar> El 27/05/2011 09:51, David Warden escribi?: > Someone else may have responded to this already but it looks like you have a problem in the passdb section of your config. See my inline... > > On May 26, 2011, at 2:39 PM, Juan Bernhard wrote: > >> Hi, >> I had some troubles with PAM configuration. I need to restrict imap >> access to some users (and allow pop3 to all). I followed the wiki >> example of using "args = %s" to use 2 pams configurations (one for imap >> and another for pop3) >> When I start the service, it starts, but when I try to auth its hangs >> Here is the log: >> May 26 15:16:09 claudia dovecot: master: Warning: Killed with signal 15 >> (by pid=15424 uid=0 code=kill) >> May 26 15:16:10 claudia dovecot: master: Dovecot v2.0.13 starting up >> May 26 15:16:24 claudia dovecot: auth: Debug: Loading modules from >> directory: /usr/local/lib/dovecot/auth >> May 26 15:16:24 claudia dovecot: auth: Fatal: pam: Unknown setting: %s >> May 26 15:16:24 claudia dovecot: master: Error: service(auth): command >> startup failed, throttling >> May 26 15:16:59 claudia dovecot: pop3-login: Error: Timeout waiting for >> handshake from auth server. my pid=15435, input bytes=0 >> >> Is this option working? Im I missing somethin? I had the same proble in >> Solaris (but i thought that was a solaris thing, solaris is ALWAYS diferent) >> >> here is my doveconf -n >> # 2.0.13: /usr/local/etc/dovecot/dovecot.conf >> # OS: Linux 2.6.18-238.9.1.el5 x86_64 CentOS release 5.6 (Final) ext3 >> auth_cache_size = 10 M >> auth_debug = yes >> base_dir = /var/run/dovecot/ >> disable_plaintext_auth = no >> listen = * >> login_greeting = Server ready. >> mail_debug = yes >> mail_location = maildir:/var/mail/%u:INDEX=~/ >> mail_plugins = quota >> passdb { >> args = %s failure_show_msg=yes > I think you want %s (service) after failure_show_msg=yes. At least the default config file says that the PAM service comes after the key,value config pars for args. Doh!... Thanks you!! That solved my problem! Its seems easy when you know what to do, hehe... args = failure_show_msg=yes %s Works. Thanks again >> driver = pam >> } >> plugin { >> quota = maildir:Cuota de correo >> quota_rule = *:storage=1G >> quota_rule2 = Trash:storage=+100M >> } >> protocols = imap pop3 >> ssl = no >> ssl_cert = > ssl_key = > userdb { >> driver = passwd >> } >> protocol imap { >> imap_client_workarounds = tb-extra-mailbox-sep tb-lsub-flags >> mail_plugins = quota imap_quota >> } >> protocol pop3 { >> pop3_client_workarounds = outlook-no-nuls oe-ns-eoh >> pop3_lock_session = yes >> pop3_uidl_format = %08Xv%08Xu >> } >> >> >> And the build options: >> Build options: ioloop=epoll notify=inotify ipv6 openssl io_block_size=8192 >> Mail storages: cydir maildir mbox mdbox raw sdbox shared >> SQL drivers: >> Passdb: checkpassword ldap pam passwd passwd-file shadow >> Userdb: checkpassword ldap nss passwd prefetch passwd-file >> >> >> Thanks, Juan. >> >> >> >> >> >> > > From dmiller at amfes.com Tue May 31 02:16:25 2011 From: dmiller at amfes.com (Daniel Miller) Date: Mon, 30 May 2011 16:16:25 -0700 Subject: [Dovecot] Admin access to shared mailboxes Message-ID: Having enabled shared mailboxes - is there a way to provide access to all users' mailboxes by a given user? Instead of having to manually provide ACL rights to every mailbox of every user? -- Daniel From gouravjoshi at gmail.com Tue May 31 08:53:39 2011 From: gouravjoshi at gmail.com (=?UTF-8?B?4KSX4KWM4KSw4KS1IOCknOCli+CktuClgA==?=) Date: Tue, 31 May 2011 11:23:39 +0530 Subject: [Dovecot] Help needed on dovecot 2.0.13 Message-ID: Hi, We have just installed dovecot version 2.0.13 on our server. while load testing we get below error in logs. May 30 19:57:19 [My Server]dovecot: imap-login: Error: read(imap) failed: Connection reset by peer May 30 19:57:19 [My Server] dovecot: imap-login: Internal login failure (pid=25816 id=1) (auth failed, 1 attempts): Please help as we want to use this on live environment and if these tests fails we can not move this server into live structure. Have a nice time, Gourav Joshi Have a look at www.linuxquestions.in From joseba.torre at ehu.es Tue May 31 11:16:03 2011 From: joseba.torre at ehu.es (Joseba Torre) Date: Tue, 31 May 2011 10:16:03 +0200 Subject: [Dovecot] Admin access to shared mailboxes In-Reply-To: References: Message-ID: <201105311016.04024.joseba.torre@ehu.es> On Martes 31 Mayo 2011 01:16:25 Daniel Miller escribi?: > Having enabled shared mailboxes - is there a way to provide access to > all users' mailboxes by a given user? Instead of having to manually > provide ACL rights to every mailbox of every user? http://wiki2.dovecot.org/Authentication/MasterUsers -- Joseba Torre. Vicegerencia de TICs, ?rea de Explotaci?n From stan at hardwarefreak.com Tue May 31 11:28:53 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Tue, 31 May 2011 03:28:53 -0500 Subject: [Dovecot] Help needed on dovecot 2.0.13 In-Reply-To: References: Message-ID: <4DE4A6C5.60605@hardwarefreak.com> On 5/31/2011 12:53 AM, ???? ???? wrote: > Hi, > > We have just installed dovecot version 2.0.13 on our server. while load > testing we get below error in logs. > > May 30 19:57:19 [My Server]dovecot: imap-login: Error: read(imap) failed: > Connection reset by peer > May 30 19:57:19 [My Server] dovecot: imap-login: Internal login failure > (pid=25816 id=1) (auth failed, 1 attempts): > > > Please help as we want to use this on live environment and if these tests > fails we can not move this server into live structure. Always include 'dovecot -n' output when reporting a problem. In this scenario, you should also have included a detailed description of your load testing methodology. -- Stan From martin.rabl at rablnet.de Tue May 31 10:05:43 2011 From: martin.rabl at rablnet.de (Martin Rabl) Date: Tue, 31 May 2011 09:05:43 +0200 Subject: [Dovecot] Admin access to shared mailboxes In-Reply-To: References: Message-ID: <777DDC9F-5B4D-4255-B15A-66CAFE07B136@rablnet.de> Look for - Global ACL - Master user The Master User can login in a users' box as it Greeetings, Martin Am 31.05.2011 um 01:16 schrieb Daniel Miller: > Having enabled shared mailboxes - is there a way to provide access to all users' mailboxes by a given user? Instead of having to manually provide ACL rights to every mailbox of every user? > -- > Daniel > From harenberg at physik.uni-wuppertal.de Tue May 31 16:36:03 2011 From: harenberg at physik.uni-wuppertal.de (Torsten Harenberg) Date: Tue, 31 May 2011 15:36:03 +0200 Subject: [Dovecot] shared folders "invisible" on new setup Message-ID: Dear list, I hope this is not an old issue, but I couldn't find a solution even after google'ing quite some time. I try to migrate our institute's mail server (~200 users) from an old cyrus-based Mac installation to a new machine (NetBSD, dovecot 2.0.13). Everything went quite smoothly so far, but we are used to have "shared folders" ("public" folders in dovecot) and I simply couldn't make them to appear. I have two separate folders for private (user) mails and for public ones (yes, I set everything to 777 for the moment to avoid file access problems) : mailserver# pwd /var/mail mailserver# ls -al total 8 drwxrwxrwt 4 dovecot wheel 512 May 31 12:26 . drwxr-xr-x 28 root wheel 512 Mar 29 15:05 .. drwxrwxrwx 3 root mail 512 May 31 15:18 public drwxrwxrwx 4 root wheel 512 May 31 12:26 user In the public folder there is a shared folder named "fb8": mailserver# pwd /var/mail/public mailserver# ls -al total 8 drwxrwxrwx 3 root mail 512 May 31 15:18 . drwxrwxrwt 4 dovecot wheel 512 May 31 12:26 .. -rw-rw-rw- 1 10001 mail 0 May 31 15:14 dovecot-acl-list -rwxrwxrwx 1 root mail 0 May 31 11:06 dovecot-shared drwxrwxrwx 5 root mail 512 May 31 12:03 fb8 Now my own username (LDAP-based) is "harenber" and I try to subscribe myself to this list: mailserver# doveadm mailbox subscribe -u harenber public.fb8 mailserver# So a "subscriptions" file appears: mailserver# ls -al total 8 drwxrwxrwx 3 root mail 512 May 31 15:18 . drwxrwxrwt 4 dovecot wheel 512 May 31 12:26 .. -rw-rw-rw- 1 10001 mail 0 May 31 15:14 dovecot-acl-list -rwxrwxrwx 1 root mail 0 May 31 11:06 dovecot-shared drwxrwxrwx 5 root mail 512 May 31 12:03 fb8 -rw-rw-rw- 1 10001 mail 4 May 31 15:18 subscriptions mailserver# cat subscriptions fb8 mailserver# (although I think this is wrong, as I have namespace { list = children location = maildir:/var/mail/public:INDEX=~/public prefix = public. separator = . subscriptions = no type = public } I would assume this file to appear somewhere in /var/mail/user/harenber/public... ) But I cannot access this "fb8" folder with any client. Alpine says that the public folder is empty: ----------------------------------------------------------------------------------------------------------------------------------Folder-Collection ---------------------------------------------------------------------------------------------------------------------------------- [No Folders in Collection] and also Apple Mail sees nothing beneath "public". Tried to speak IMAP directly shows: 01 login harenber XXXXX 01 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS ACL RIGHTS=texk] Logged in 02 namespace * NAMESPACE (("" ".")) NIL (("public." ".")) 02 OK Namespace completed. 03 list "" * * LIST (\HasNoChildren) "." "Trash" * LIST (\HasNoChildren) "." "ALiCEnext" [...] * LIST (\HasNoChildren) "." "sent-mail" * LIST (\HasNoChildren) "." "tier2" * LIST (\HasNoChildren) "." "trash" * LIST (\HasNoChildren) "." "INBOX" * LIST (\Noselect \HasChildren) "." "public" 03 OK List completed Maybe someone of you has a clue what I do wrong here, I'm completely lost at the moment. Thanks for any hint and best regards, Torsten mailserver# doveconf -n # 2.0.13: /usr/pkg/etc/dovecot/dovecot.conf # OS: NetBSD 5.1 amd64 ffs auth_debug = yes auth_verbose = yes base_dir = /var/run/dovecot/ mail_debug = yes mail_gid = 6 mail_location = maildir:/var/mail/user/%u mail_plugins = acl managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date namespace { inbox = yes location = prefix = separator = . type = private } namespace { list = children location = maildir:/var/mail/public:INDEX=%u/public prefix = public. separator = . subscriptions = no type = public } passdb { args = /usr/pkg/etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { acl = vfile sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } protocols = imap pop3 lmtp sieve service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = dovecot user = dovecot } } service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } } ssl_cert = <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> <> <> <> Dr. Torsten Harenberg harenberg at physik.uni-wuppertal.de <> <> Bergische Universitaet <> <> FB C - Physik Tel.: +49 (0)202 439-3521 <> <> Gaussstr. 20 Fax : +49 (0)202 439-2811 <> <> 42097 Wuppertal <> <> <> <><><><><><><>< Of course it runs NetBSD http://www.netbsd.org ><> From jimkarlsson82 at gmail.com Tue May 31 12:36:00 2011 From: jimkarlsson82 at gmail.com (Theatre) Date: Tue, 31 May 2011 02:36:00 -0700 (PDT) Subject: [Dovecot] How to make SUBdirectories in Dovecot... Message-ID: <31739301.post@talk.nabble.com> Hi! I wonder how i can get subdirectories (.INBOX/***/*** etc...) in dovecot... I just stardet a mail server and when i tried to create it from the mail client (MS Outlook) it says that the server wont allow it... Anyone who knows a solution? -- View this message in context: http://old.nabble.com/How-to-make-SUBdirectories-in-Dovecot...-tp31739301p31739301.html Sent from the Dovecot mailing list archive at Nabble.com. From robert at schetterer.org Tue May 31 17:32:34 2011 From: robert at schetterer.org (Robert Schetterer) Date: Tue, 31 May 2011 16:32:34 +0200 Subject: [Dovecot] How to make SUBdirectories in Dovecot... In-Reply-To: <31739301.post@talk.nabble.com> References: <31739301.post@talk.nabble.com> Message-ID: <4DE4FC02.80301@schetterer.org> Am 31.05.2011 11:36, schrieb Theatre: > > Hi! > > I wonder how i can get subdirectories (.INBOX/***/*** etc...) in dovecot... > I just stardet a mail server and when i tried to create it from the mail > client (MS Outlook) it says that the server wont allow it... > > Anyone who knows a solution? > > yes post your conf -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From dmiller at amfes.com Tue May 31 18:53:38 2011 From: dmiller at amfes.com (Daniel Miller) Date: Tue, 31 May 2011 08:53:38 -0700 Subject: [Dovecot] dbox single instance storage maintenance Message-ID: Does the "doveadm purge" operation delete unused attachments? -- Daniel From peter at ixp.jp Sun May 1 04:09:52 2011 From: peter at ixp.jp (Peter Evans) Date: Sun, 1 May 2011 10:09:52 +0900 Subject: [Dovecot] dovecot.org mirrors? In-Reply-To: <8DBD31E0-5567-4EA5-A839-A0397CCA87FF@iki.fi> References: <1303835702.4116.15.camel@hurina> <1304097045.10421.57.camel@hurina> <4DBBA08B.4080601@esiee.fr> <8DBD31E0-5567-4EA5-A839-A0397CCA87FF@iki.fi> Message-ID: <02e501cc079c$797f9a00$6c7ece00$@ixp.jp> > Currently 1 GB, but grows every day of course. I'm currently thinking maybe > there could be one mirror in every continent (so Finland = Europe already) > and with some DNS redirection magic going to the nearest server :) Space isn't a problem, but my webserver is ZWS (they don't do ipv6 for example) However, I can offer DNS ^^; P From michael at orlitzky.com Sun May 1 07:58:14 2011 From: michael at orlitzky.com (Michael Orlitzky) Date: Sun, 01 May 2011 00:58:14 -0400 Subject: [Dovecot] dovecot.org mirrors? In-Reply-To: <20110430191153.GP2976@cardinal> References: <1303835702.4116.15.camel@hurina> <1304097045.10421.57.camel@hurina> <20110430191153.GP2976@cardinal> Message-ID: <4DBCE866.8000102@orlitzky.com> On 04/30/2011 03:11 PM, /dev/rob0 wrote: > On Fri, Apr 29, 2011 at 08:10:45PM +0300, Timo Sirainen wrote: >> The mirroring setup is finished. There's a master server now >> handling dovecot.org and a mirror server handling www/hg/wiki. >> Would be nice to get another reliable fast mirror server if >> someone wants to donate one :) Requirements are: >> >> - Apache2 with WSGI >> - Mercurial >> - Patched moinmoin >> - ssh + rsync so I can push changes immediately > > I think I had offered you a mirror and/or DNS slaves in the past. ATM > we can't manage the Mercurial and moinmoin, but that might change in > the near future. > > I can still offer you two DNS slaves, if you're interested in that, > but there are other free/gratis services available which can do that > quite well. > >> BTW. Apparently there's still something wrong with dovecot.org's >> reverse DNS record. It appears to be ok, but some DNS servers have >> cached it wrong. I don't know why. We've complained to the ISP. > > Sounds like the TTL was too long before a change was made. > >> Also dovecot.org is currently sharing IP with some other stuff, >> but should get its own IP some day. > > dovecot.org. 3600 IN A 194.89.34.45 > 45.34.89.194.in-addr.arpa. 86400 IN PTR mkentta.iki.fi. > mkentta.iki.fi. 86400 IN A 194.89.34.45 > > Looks fine, although the PTR is mkentta.iki.fi. and not dovecot.org. > I'd use "mkentta.iki.fi" as the HELO name if sending mail from there, > but that shouldn't be much of a problem. At the moment, $ dig -x 194.89.34.45 ; <<>> DiG 9.7.3 <<>> -x 194.89.34.45 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 44132 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL:0 ;; QUESTION SECTION: ;45.34.89.194.in-addr.arpa. IN PTR ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Sun May 1 00:49:20 2011 ;; MSG SIZE rcvd: 43 $ dig +short 34.89.194.in-addr.arpa ns $ dig +short 89.194.in-addr.arpa ns ns2-usa.global.sonera.net. ns2-fin.global.sonera.fi. ns1-fin.global.sonera.fi. ns1-swe.global.sonera.se. ns.ripe.net. $ dig +short @ns2-usa.global.sonera.net -x 194.89.34.45 mkentta.iki.fi. $ dig +short @ns2-fin.global.sonera.fi. -x 194.89.34.45 mkentta.iki.fi. $ dig +short @ns1-fin.global.sonera.fi -x 194.89.34.45 mkentta.iki.fi. $ dig +short @ns1-swe.global.sonera.se. -x 194.89.34.45 mkentta.iki.fi. $ dig +short @ns.ripe.net -x 194.89.34.45 It looks like that last one could be the problem. From linuxmail at 4lin.net Sun May 1 19:33:01 2011 From: linuxmail at 4lin.net (Denny Schierz) Date: Sun, 1 May 2011 18:33:01 +0200 Subject: [Dovecot] dovecot.org mirrors? In-Reply-To: <4DBCE866.8000102@orlitzky.com> References: <1303835702.4116.15.camel@hurina> <1304097045.10421.57.camel@hurina> <20110430191153.GP2976@cardinal> <4DBCE866.8000102@orlitzky.com> Message-ID: <7E0D79B9-75E2-447B-92B2-DEC5403263E4@4lin.net> hi, I can also offer you a dovecot mirror (Germany with RootServer from Hetzner) on a own Xen based virtual host and own IP (IPV6 is broken at the moment, but possible) Let me know, if necessary :-) cu denny From tompos at martos.bme.hu Sun May 1 22:23:56 2011 From: tompos at martos.bme.hu (Papp Tamas) Date: Sun, 01 May 2011 21:23:56 +0200 Subject: [Dovecot] dict quota problem In-Reply-To: References: <4DAEBE34.1090504@martos.bme.hu> <1l7pp5qh8cvv8@mids.svenhartge.de> <4DAEF104.3070806@martos.bme.hu> <1o7ppiie8cvv8@mids.svenhartge.de> <4DBB1001.5090000@martos.bme.hu> <4DBBCB29.40401@martos.bme.hu> <4DBC26E8.4070408@martos.bme.hu> Message-ID: <4DBDB34C.7010500@martos.bme.hu> On 04/30/2011 10:21 PM, Sven Hartge wrote: > Yes. You as admin have to deal with this. Buy a bigger disk, reduce the > quota, etc. > > Or use a filesystem quota, which will (of course) only work with real > users and not with virtual users. OK, thank you. Well, virtual users are needed:) tamas From peter at bellfamily.org.uk Mon May 2 13:19:33 2011 From: peter at bellfamily.org.uk (Peter Bell) Date: Mon, 02 May 2011 18:19:33 +0800 Subject: [Dovecot] Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection Message-ID: <4DBE8535.1010005@bellfamily.org.uk> Hi all, This is my first message to the list. I've been experimenting with running dovecot on my unRAID server (basically, a parity-protected array of disks, running on a slackware 13.1 platform). Someone on the unRAID forum had built a binary distribution of dovecot 1.1.20 and I got this up and running without too much trouble. Today, I've been building the latest dovecot release (2.0.12) and getting this up and running. My biggest problem has been reconstructing the configuration file but, after a few diversions, I'm now back up and running, with access to my mail once more. However, I'm just a little bit miffed that I can't get rid of this warning. My configuration: root at Tower:~# doveconf -n # 2.0.12: /usr/local/etc/dovecot/dovecot.conf doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection # OS: Linux 2.6.36.2-unRAID i686 Slackware 13.1.0 fuse.shfs disable_plaintext_auth = no listen = * mail_location = maildir:/mnt/user/Maildir/%u passdb { args = /etc/passwd.dovecot driver = passwd-file } protocols = imap service auth { user = root } service imap-login { inet_listener imap { port = 143 } } ssl = no userdb { args = /etc/passwd.dovecot driver = passwd-file } root at Tower:~# Can someone point me to where the (implicit?) ssl=yes is coming from? In the meantime I will have a play at mail fetching, comparing dumping the mails straight into maildir, with using the dovecote lda. Thanks for any advice. -- ------------------------------------------------------------------- Peter Bell From linuxmail at 4lin.net Mon May 2 13:40:57 2011 From: linuxmail at 4lin.net (Denny Schierz) Date: Mon, 02 May 2011 12:40:57 +0200 Subject: [Dovecot] 2.0.12 Coredump under Solaris 10 *SOLVED* In-Reply-To: <7E0E850A-9F14-445B-BE70-22E4FC892716@iki.fi> References: <1303892653.4232.69.camel@pcdenny> <1303897041.4116.21.camel@hurina> <1303899544.4232.78.camel@pcdenny> <1304016044.10421.18.camel@hurina> <1304068170.4232.191.camel@pcdenny> <7E0E850A-9F14-445B-BE70-22E4FC892716@iki.fi> Message-ID: <1304332857.10574.0.camel@pcdenny> hi, Am Freitag, den 29.04.2011, 14:44 +0300 schrieb Timo Sirainen: > =home=/imap/spool/%d/%1n/%n that works :-) Thanks cu denny -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: From voytek at sbt.net.au Mon May 2 14:30:44 2011 From: voytek at sbt.net.au (Voytek Eymont) Date: Mon, 2 May 2011 22:30:44 +1100 Subject: [Dovecot] is reverse dns down ? Message-ID: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> Hi guys, is that a genuine email from the list, I'm getting it rejected as it's missing reverse hostname: May 2 21:21:41 postfix/smtpd[18033]: NOQUEUE: reject: RCPT from unknown[194.89.34.45]: 450 4.7.1 Client host rejected: cannot find your reverse hostname, [194.89.34.45]; from= to= proto=ESMTP helo= # host mkentta.iki.fi mkentta.iki.fi has address 194.89.34.45 mkentta.iki.fi mail is handled by 10 mkentta.iki.fi. mkentta.iki.fi mail is handled by 100 smtp.menturagroup.com. # host 194.89.34.45 Host 45.34.89.194.in-addr.arpa. not found: 3(NXDOMAIN) -- Voytek From esther.yebenes at conzentra.com Mon May 2 14:42:59 2011 From: esther.yebenes at conzentra.com (=?ISO-8859-1?Q?Esther_Y=E9benes_--Conzentra--?=) Date: Mon, 02 May 2011 13:42:59 +0200 Subject: [Dovecot] is reverse dns down ? In-Reply-To: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> References: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> Message-ID: <4DBE98C3.9010501@conzentra.com> Hi Voytek, I am not having any problem: # host mkentta.iki.fi mkentta.iki.fi has address 194.89.34.45 mkentta.iki.fi mail is handled by 100 smtp.menturagroup.com. mkentta.iki.fi mail is handled by 10 mkentta.iki.fi. # host 194.89.34.45 45.34.89.194.in-addr.arpa domain name pointer mkentta.iki.fi. Maybe it's a local problem with your NS server. On 02/05/11 13:30, Voytek Eymont wrote: > Hi guys, is that a genuine email from the list, I'm getting it rejected as > it's missing reverse hostname: > > May 2 21:21:41 postfix/smtpd[18033]: NOQUEUE: reject: RCPT from > unknown[194.89.34.45]: 450 4.7.1 Client host rejected: cannot find your > reverse hostname, [194.89.34.45]; from= > to= proto=ESMTP helo= > > # host mkentta.iki.fi > mkentta.iki.fi has address 194.89.34.45 > mkentta.iki.fi mail is handled by 10 mkentta.iki.fi. > mkentta.iki.fi mail is handled by 100 smtp.menturagroup.com. > > # host 194.89.34.45 > Host 45.34.89.194.in-addr.arpa. not found: 3(NXDOMAIN) > > > > > -- Esther Y?benes esther.yebenes at conzentra.com Tel. +34 93 412 3750. Ext. 306 Fax. +34 902 889 440 ............................................................................................. S?guenos en: Conzentra your internet bussines partner www.conzentra.com Barcelona c/ Sancho de ?vila 52, 5? 4?, Distrito 22 at . 08009 Barcelona Conzentra BCN en Google Maps! Madrid c/ Alcal? 85, 3? izq. 28009 Madrid Conzentra Madrid en Google Maps! Girona P.? Olot 68-70, bajos. 17006 Girona Conzentra Girona en Google Maps! Tandil c/ 9 de Julio 388, 5? 2000 Tandil (Argentina) Conzentra Tandil en Google Maps! ............................................................................................. Advertencia: Este correo electr?nico contiene informaci?n privada y confidencial. Si usted no es el destinatario del presente mensaje no est? autorizado a leerlo, retenerlo o difundirlo. Warning: This e-mail is privileged, confidential and contains private information. Any reading, retention, distribution or copying of this communication by any person other than its intended recipient is prohibited. -------------- next part -------------- A non-text attachment was scrubbed... Name: blog.jpg Type: image/jpeg Size: 2253 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: twitter.jpg Type: image/jpeg Size: 1711 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: linkedin.jpg Type: image/jpeg Size: 1389 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: facebook.jpg Type: image/jpeg Size: 1589 bytes Desc: not available URL: From stan at hardwarefreak.com Mon May 2 15:05:42 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Mon, 02 May 2011 07:05:42 -0500 Subject: [Dovecot] is reverse dns down ? In-Reply-To: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> References: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> Message-ID: <4DBE9E16.2060401@hardwarefreak.com> On 5/2/2011 6:30 AM, Voytek Eymont wrote: > # host 194.89.34.45 > Host 45.34.89.194.in-addr.arpa. not found: 3(NXDOMAIN) ~$ host 194.89.34.45 45.34.89.194.in-addr.arpa domain name pointer mkentta.iki.fi. ~$ prdns.pl 194.89.34.45/32 194.89.34.45: mkentta.iki.fi ~$ rdns-tool.pl 194.89.34.45/32 using mask 32 194.89.34.45: mkentta.iki.fi Looks like there's a DNS issue on your end. Try flushing your cache. For obvious reasons Postfix returns a 450 in this case, so the list server will attempt delivery for a few days. If you don't run your own resolver on your Postfix MX I suggest you do so. I use PowerDNS recursor on my MX MTAs. Works great. Setup takes less than 5 minutes. Caching is in memory only, not disk, so a restart clears everything. -- Stan From ejs at shubes.net Mon May 2 17:20:30 2011 From: ejs at shubes.net (Eric Shubert) Date: Mon, 02 May 2011 07:20:30 -0700 Subject: [Dovecot] IMAP vs. POP3 In-Reply-To: References: Message-ID: On 04/28/2011 10:31 AM, Matt wrote: > Does IMAP create much additional system load vs. POP3? > How much is much? They do have different usage patterns. The server load also depends on how each client program is configured. Some client configurations create more of a load than others (eg how messages are cached on the client). My impression is that the client configuration can affect system load more so than the difference between IMAP and POP3. Generally speaking, IMAP is preferable to POP3 due to the accessibility it provides from multiple clients/devices. POP3 is the past, IMAP is the future. -- -Eric 'shubes' From lm7812 at gmail.com Mon May 2 18:11:46 2011 From: lm7812 at gmail.com (Matt) Date: Mon, 2 May 2011 10:11:46 -0500 Subject: [Dovecot] Restricting IMAP Message-ID: I want to restrict IMAP use too 127.0.0.1 and to only certain usernames. Such as fred at my777domain.com would be allowed to use IMAP. How would I do that with Dovecot or can I? Basically I want webmail to work with IMAP regardless of username but I only want certain usernames allowed to use IMAP remotely. From wgillespie+dovecot at es2eng.com Mon May 2 18:27:45 2011 From: wgillespie+dovecot at es2eng.com (Willie Gillespie) Date: Mon, 02 May 2011 09:27:45 -0600 Subject: [Dovecot] Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection In-Reply-To: <4DBE8535.1010005@bellfamily.org.uk> References: <4DBE8535.1010005@bellfamily.org.uk> Message-ID: <4DBECD71.5080108@es2eng.com> On 05/02/2011 04:19 AM, Peter Bell wrote: > However, I'm just a little bit miffed that I can't get rid of this warning. > > My configuration: > root at Tower:~# doveconf -n > # 2.0.12: /usr/local/etc/dovecot/dovecot.conf > doveconf: Warning: SSL is disabled because global ssl=no, ignoring > ssl=yes for subsection > # OS: Linux 2.6.36.2-unRAID i686 Slackware 13.1.0 fuse.shfs > > Can someone point me to where the (implicit?) ssl=yes is coming from? Timo fixed this just a little while back (April 20th) Fixed: http://hg.dovecot.org/dovecot-2.0/rev/7d60cd847c70 From rob0 at gmx.co.uk Mon May 2 18:32:20 2011 From: rob0 at gmx.co.uk (/dev/rob0) Date: Mon, 2 May 2011 10:32:20 -0500 Subject: [Dovecot] is reverse dns down ? In-Reply-To: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> References: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> Message-ID: <20110502153218.GA7434@cardinal> On Mon, May 02, 2011 at 10:30:44PM +1100, Voytek Eymont wrote: > Hi guys, is that a genuine email from the list, I'm getting it > rejected as it's missing reverse hostname: > > May 2 21:21:41 postfix/smtpd[18033]: NOQUEUE: reject: RCPT > from unknown[194.89.34.45]: 450 4.7.1 Client host rejected: > cannot find your reverse hostname, [194.89.34.45]; > from= to= > proto=ESMTP helo= > > # host mkentta.iki.fi > mkentta.iki.fi has address 194.89.34.45 > mkentta.iki.fi mail is handled by 10 mkentta.iki.fi. > mkentta.iki.fi mail is handled by 100 smtp.menturagroup.com. > > # host 194.89.34.45 > Host 45.34.89.194.in-addr.arpa. not found: 3(NXDOMAIN) We discussed this the other day under Timo's thread about dovecot.org. It seems that ns.ripe.net., one of the NS hosts for 89.194.in-addr.arpa., is not returning the PTR for 45.34.89.194.in-addr.arpa. AFAICS the other NS hosts seem to be working fine, but if your resolver was unlucky enough to hit ns.ripe.net., you have a host with no PTR. It's like Russian roulette with rDNS. I suspect it might be a casualty of DNSSEC, but I get the same "noerror" response when querying with +dnssec and +nodnssec. At this point those who use the normally safe and reasonable reject_unknown_reverse_client_hostname restriction should consider whitelisting mkentta.iki.fi[194.89.34.45] in the MTA. And Timo needs to scream louder at the ISP. ;) -- Offlist mail to this address is discarded unless "/dev/rob0" or "not-spam" is in Subject: header From rick at havokmon.com Mon May 2 18:56:32 2011 From: rick at havokmon.com (Rick Romero) Date: Mon, 02 May 2011 10:56:32 -0500 Subject: [Dovecot] Restricting IMAP In-Reply-To: References: Message-ID: <20110502105632.Horde.5kV1OaPBW7JNvtQwEwpjRgA@beta.vfemail.net> Quoting Matt : > I want to restrict IMAP use too 127.0.0.1 and to only certain > usernames. Such as fred at my777domain.com would be allowed to use IMAP. > How would I do that with Dovecot or can I? Basically I want webmail > to work with IMAP regardless of username but I only want certain > usernames allowed to use IMAP remotely. You can use post-login scripting: http://wiki2.dovecot.org/PostLoginScripting Rick From helga.mayer at uni-hohenheim.de Tue May 3 11:26:24 2011 From: helga.mayer at uni-hohenheim.de (Helga Mayer) Date: Tue, 03 May 2011 10:26:24 +0200 Subject: [Dovecot] is reverse dns down ? In-Reply-To: <4DBE9E16.2060401@hardwarefreak.com> References: <0949afd68437eed7d07722c4c7868ac5.squirrel@sbt.net.au> <4DBE9E16.2060401@hardwarefreak.com> Message-ID: <20110503102624.10004t12hq3gyxww@webmail.uni-hohenheim.de> Quoting Stan Hoeppner : > On 5/2/2011 6:30 AM, Voytek Eymont wrote: > >> # host 194.89.34.45 >> Host 45.34.89.194.in-addr.arpa. not found: 3(NXDOMAIN) > > ~$ host 194.89.34.45 > 45.34.89.194.in-addr.arpa domain name pointer mkentta.iki.fi. > > ~$ prdns.pl 194.89.34.45/32 > 194.89.34.45: mkentta.iki.fi > > ~$ rdns-tool.pl 194.89.34.45/32 > using mask 32 > 194.89.34.45: mkentta.iki.fi > > Looks like there's a DNS issue on your end. Try flushing your > cache. For obvious reasons Postfix returns a 450 in this case, so > the list server will attempt delivery for a few days. > > If you don't run your own resolver on your Postfix MX I suggest you > do so. I use PowerDNS recursor on my MX MTAs. Works great. Setup > takes less than 5 minutes. Caching is in memory only, not disk, so > a restart clears everything. > > -- > Stan > got a mail from sonera today which says it's fixed. Helga Helga Mayer Universit?t Hohenheim Kommunikations-, Informations- und Medienzentrum (630) IT-Dienste | Mail Schloss-Westhof-S?d | 70599 Stuttgart Tel.: +49 711 459-22838 | Fax: +49 711 459-23449 https://kim.uni-hohenheim.de From p.heinlein at heinlein-support.de Tue May 3 13:50:20 2011 From: p.heinlein at heinlein-support.de (Peer Heinlein) Date: Tue, 3 May 2011 12:50:20 +0200 Subject: [Dovecot] Saving mails to +detail failed: Namespace error Message-ID: <201105031250.20947.p.heinlein@heinlein-support.de> We have the following namespace: namespace { inbox = yes list = yes location = prefix = INBOX/ separator = / subscriptions = yes type = private } namespace { list = children location = maildir:%%h:INDEX=%h/shared/%%u:CONTROL=%h/shared/%%u prefix = shared/%%u/ separator = / subscriptions = yes type = shared } and we set: lmtp_save_to_detail_mailbox = yes recipient_delimiter = + But sending Mails to user+detail is failing: May 3 12:40:06 dobby2 postfix/cleanup[8245]: 12E787756C: message- id=<201105031239.40804.p.heinlein at heinlein-support.de> May 3 12:40:06 dobby2 postfix/qmgr[23304]: 12E787756C: from=, size=1963, nrcpt=1 (queue active) May 3 12:40:06 dobby2 dovecot: lmtp(6537): Debug: auth input: p.heinlein at jpberlin.de home=/mail/jpberlin.de/p.heinlein/Maildir/ uid=10000 gid=10000 May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Effective uid=10000, gid=10000, home=/mail/jpberlin.de/p.heinlein/Maildir/ May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Namespace : type=private, prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~:INDEX=/cache/jpberlin.de/p.heinlein May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: maildir++: root=/mail/jpberlin.de/p.heinlein/Maildir/, index=/cache/jpberlin.de/p.heinlein, control=, inbox=/mail/jpberlin.de/p.heinlein/Maildir/ May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Namespace : type=shared, prefix=shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=maildir: %h:INDEX=/mail/jpberlin.de/p.heinlein/Maildir//shared/%u:CONTROL=/mail/jpberlin.de/p.heinlein/Maildir//shared/%u May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: shared: root=/var/run/dovecot/, index=, control=, inbox= May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Pg/fKrHav02JGQAAir+T1Q: sieve: user's script path /mail/jpberlin.de/p.heinlein/Maildir//../.dovecot.sieve doesn't exist (using global script path in stead) May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Pg/fKrHav02JGQAAir+T1Q: sieve: user has no valid personal script May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Pg/fKrHav02JGQAAir+T1Q: sieve: no scripts to execute: reverting to default delivery. May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Pg/fKrHav02JGQAAir+T1Q: msgid=<201105031239.40804.p.heinlein at heinlein- support.de>: save failed to Cong: Unknown namespace May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Pg/fKrHav02JGQAAir+T1Q: msgid=<201105031239.40804.p.heinlein at heinlein- support.de>: saved mail to INBOX May 3 12:40:06 dobby2 postfix/lmtp[8338]: 12E787756C: to=, relay=dobby.heinlein- support.de[private/lmtp-dovecot], delay=0.1, delays=0.06/0.02/0/0.02, dsn=2.0.0, status=sent (250 2.0.0 Pg/fKrHav02JGQAAir+T1Q Saved) But a folder named "Cong" exists: # ls -la .Cong -d drwx------ 5 vmail vmail 4096 30. Apr 04:46 .Cong # What's going wrong? My mistake or is it a bug? peer -- Die Mailserver-Konferenz: Das Know-how-Update f?r Postmaster 26./27. Mai 2011 - http://www.heinlein-support.de/mk Heinlein Professional Linux Support GmbH Linux: Akademie - Support - Hosting http://www.heinlein-support.de Tel: 030 / 40 50 51 - 0 Fax: 030 / 40 50 51 - 19 Zwangsangaben lt. ?35a GmbHG: HRB 93818 B / Amtsgericht Berlin-Charlottenburg, Gesch?ftsf?hrer: Peer Heinlein -- Sitz: Berlin From Leo.Baltus at omroep.nl Tue May 3 15:39:49 2011 From: Leo.Baltus at omroep.nl (Leo Baltus) Date: Tue, 3 May 2011 14:39:49 +0200 Subject: [Dovecot] listen = ipv4, ipv6 Message-ID: <20110503123949.GD28713@omroep.nl> Hi, We want dovecot to listen on a specific ip4 & ipv6 addresses like so: listen = 145.58.1.1, [2a02:458:1::1] But on startup it tells me: Fatal: service(managesieve-login) Can't resolve address [2a02:458:1::1]: Name or service not known Wether it is in the dns or not. If I however change the listen directive to: listen = f.qd.nl where f.qd.nl resolves to an ip4 and ipv6 address dovecot starts up and binds to these ipaddresses the way we expect it. However this makes it depend on DNS which is undesirable. Maybe I am overlooking something, but if not can this be changed so we can configure ipv4 & ipv6 with ip-addresses? -- Leo Baltus, internetbeheerder /\ NPO ICT Internet Services /NPO/\ Sumatralaan 45, 1217 GP Hilversum, Filmcentrum, west \ /\/ beheer at omroep.nl, 035-6773555 \/ From vtarhononu at eapps.com Tue May 3 15:40:30 2011 From: vtarhononu at eapps.com (Victor TARHON-ONU) Date: Tue, 3 May 2011 15:40:30 +0300 (EEST) Subject: [Dovecot] mbox/maildir mixed setup with system/virtual mixed users Message-ID: Hello Everyone, I'm using dovecot 1.0.7 (not sure how relevant it is though) configured to handle both sytem users and virtual users. The system users are handled by default (PAM), while the virtual users are handled pretty much like this: passdb passwd-file { args = /var/spool/vmail/%d/auth/%n } ...And mailbox and folder location settings: userdb static { args = uid=mail gid=mail home=/var/spool/vmail/%d/mail/%n mail=mbox:/var/spool/vmail/%d/imap/%n:INBOX=mbox:/var/spool/vmail/%d/mail/%n } Everything works perfectly with the inbox and mail foder in mbox format. Now, what I'm trying to accomplish is to reconfigure dovecot to create and handle the secondary mail folders (/home/user/mail for system users and /var/spool/vmail/domainname/imap/user/imap for virtual users) in maildir format. I tried to define some name spaces to make this happen, but whatever I to do make one work (either the virtual users or the system users) would make the other non-functional. By example, I have these name space definitions and the virtual users work fine with maildir: namespace private { separator = / prefix = "#mbox/" location = mbox:/var/spool/vmail/%d/imap/%n:INBOX=/var/spool/vmail/%d/mail/%n inbox = yes hidden = yes } namespace private { separator = / prefix = location = maildir:/var/spool/vmail/%d/imap/%n hidden = yes } Maybe I didn't fully understand the namespace concept, but I was unable to make them apply only to one location of the imap folders locations or another. Can anyone give me a hand with this, if this setup is even possible? -- From apm at one.com Tue May 3 16:19:22 2011 From: apm at one.com (Peter Mogensen) Date: Tue, 03 May 2011 15:19:22 +0200 Subject: [Dovecot] Spelling error in #define ? Message-ID: <4DC000DA.4060407@one.com> Hi, I stumbled over this define in lazy-expunge-plugin.h: #ifndef LAZY_EXPUNGE_PLUGIN_H #define TLAZY_EXPUNGE_PLUGIN_H Isn't there a "T" too much? http://hg.dovecot.org/dovecot-2.0/file/036260ae0261/src/plugins/lazy-expunge/lazy-expunge-plugin.h /Peter From berni at birkenwald.de Tue May 3 16:36:31 2011 From: berni at birkenwald.de (Bernhard Schmidt) Date: Tue, 3 May 2011 13:36:31 +0000 (UTC) Subject: [Dovecot] listen = ipv4, ipv6 References: <20110503123949.GD28713@omroep.nl> Message-ID: Leo Baltus wrote: Hello Leo, > We want dovecot to listen on a specific ip4 & ipv6 addresses like so: > > listen = 145.58.1.1, [2a02:458:1::1] > > But on startup it tells me: > > Fatal: service(managesieve-login) Can't resolve address [2a02:458:1::1]: Name or service not known Try without the []. listen = 83.170.6.69, 2001:1b10:1000::110:1:1 works just perfect for me. Bernhard From Leo.Baltus at omroep.nl Tue May 3 17:41:01 2011 From: Leo.Baltus at omroep.nl (Leo Baltus) Date: Tue, 3 May 2011 16:41:01 +0200 Subject: [Dovecot] listen = ipv4, ipv6 In-Reply-To: References: <20110503123949.GD28713@omroep.nl> Message-ID: <20110503144101.GB2075@omroep.nl> Op 03/05/2011 om 13:36:31 +0000, schreef Bernhard Schmidt: > Leo Baltus wrote: > > Hello Leo, > > > We want dovecot to listen on a specific ip4 & ipv6 addresses like so: > > > > listen = 145.58.1.1, [2a02:458:1::1] > > > > But on startup it tells me: > > > > Fatal: service(managesieve-login) Can't resolve address [2a02:458:1::1]: Name or service not known > > Try without the []. > > listen = 83.170.6.69, 2001:1b10:1000::110:1:1 > > works just perfect for me. Argh, I rtfm first, stupid me :) In my weak defense: it's still in the tarball: wiki/Upgrading.1.1.txt -- Leo Baltus, internetbeheerder /\ NPO ICT Internet Services /NPO/\ Sumatralaan 45, 1217 GP Hilversum, Filmcentrum, west \ /\/ beheer at omroep.nl, 035-6773555 \/ From CMarcus at Media-Brokers.com Wed May 4 00:13:11 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Tue, 03 May 2011 17:13:11 -0400 Subject: [Dovecot] dovecot Digest, Vol 96, Issue 61 In-Reply-To: <003201cc0707$a89d2c20$f9d78460$@net> References: <003201cc0707$a89d2c20$f9d78460$@net> Message-ID: <4DC06FE7.8050306@Media-Brokers.com> On 2011-04-30 3:24 AM, Ceyhun Ganioglu wrote: > "Choosing the IMAP sent folder as account's sent items folder" is not > working. That was the problem. But I fixed the problem using a "copy on > send" rule. Many thanks That isn't fixing the problem, it is working around something that is broken. -- Best regards, Charles From bmihulka at gmail.com Wed May 4 00:22:28 2011 From: bmihulka at gmail.com (Brian Mihulka) Date: Tue, 3 May 2011 16:22:28 -0500 Subject: [Dovecot] Forwarding loop Message-ID: I used to filter my mail through gmail with the following sieve rule. if not header :contains "X-Forwarded-To" "bmihulka at hulkster.net"{ redirect "bmihulka at gmail.com"; } With the gmail account set to forward to bmihulka at hulkster.net After upgrading to dovecot 1.2.9 and postfix 2.7.0 from whatever was with debian etch. I get a forwarding loop error. I don't know if this is a dovecot issue or postfix issue so I'm starting here. If anyone has any ideas or a better place to ask about this please let me know. Thanks Brian Mihulka From schulzj at gmail.com Wed May 4 00:43:30 2011 From: schulzj at gmail.com (Jason Schulz) Date: Tue, 3 May 2011 17:43:30 -0400 Subject: [Dovecot] Forwarding loop In-Reply-To: References: Message-ID: Just a shot in the dark, but perhaps something changed in your gmail filtering rules? -Jason On Tue, May 3, 2011 at 5:22 PM, Brian Mihulka wrote: > I used to filter my mail through gmail with the following sieve rule. > > if not header :contains "X-Forwarded-To" "bmihulka at hulkster.net"{ > redirect "bmihulka at gmail.com"; > } > > With the gmail account set to forward to bmihulka at hulkster.net > > After upgrading to dovecot 1.2.9 and postfix 2.7.0 from whatever was with > debian etch. I get a forwarding loop error. I don't know if this is a > dovecot issue or postfix issue so I'm starting here. If anyone has any > ideas or a better place to ask about this please let me know. > > Thanks > Brian Mihulka > From dovecot.user at seibercom.net Wed May 4 01:54:38 2011 From: dovecot.user at seibercom.net (Jerry) Date: Tue, 3 May 2011 18:54:38 -0400 Subject: [Dovecot] Forwarding loop In-Reply-To: References: Message-ID: <20110503185438.36532ceb@scorpio> On Tue, 3 May 2011 16:22:28 -0500 Brian Mihulka articulated: > I used to filter my mail through gmail with the following sieve rule. > > if not header :contains "X-Forwarded-To" "bmihulka at hulkster.net"{ > redirect "bmihulka at gmail.com"; > } > > With the gmail account set to forward to bmihulka at hulkster.net > > After upgrading to dovecot 1.2.9 and postfix 2.7.0 from whatever was > with debian etch. I get a forwarding loop error. I don't know if > this is a dovecot issue or postfix issue so I'm starting here. If > anyone has any ideas or a better place to ask about this please let > me know. Brian, I have endured problems like that before. Without more specific information, all answers would be at most guesswork. To debug the problem, post the output of "postconf -n" and the log entries pertaining to the message that was creating the forwarding loop. Exacting how is the mail being delivered to your mail server anyway? -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From joseba.torre at ehu.es Wed May 4 10:47:27 2011 From: joseba.torre at ehu.es (Joseba Torre) Date: Wed, 4 May 2011 09:47:27 +0200 Subject: [Dovecot] Forwarding loop In-Reply-To: References: Message-ID: <201105040947.27766.joseba.torre@ehu.es> On Martes 03 Mayo 2011 23:43:30 Jason Schulz escribi?: > Just a shot in the dark, but perhaps something changed in your gmail > filtering rules? > This has happened to some of my users before. For some unknown reason, the "Resend a copy of the incoming e-mail" [1] gets activated every now and then, and this is the mail reason for my "Mail forwarding loop" issues. HTH [1] Or something like that, I use gmail in spanish -- Joseba Torre. Vicegerencia de TICs, ?rea de Explotaci?n From alexwbaule at gmail.com Wed May 4 20:05:53 2011 From: alexwbaule at gmail.com (Alex Baule) Date: Wed, 4 May 2011 14:05:53 -0300 Subject: [Dovecot] Importing emails from mounted NFS to dovecot using doveadm Message-ID: Hello Timo.... I try to import emails using doveadm, but i found one little issue to me, my driver in auth is auth_default_realm = exemplo.com.br auth_mechanisms = LOGIN PLAIN passdb { driver = pam } userdb { driver = static args = uid=mail gid=mail home=/storage/gss/emexis/messages/%d/%n allow_all_users=yes } but my emails to import in NFS i cant change the UID-GID to mail:mail, because is in use by another IMAP (in one machine uid X is different from another machine) There is a way to import emails with doveadm without change the owner from my emails to import ? From kevingoodsell.lists at gmail.com Wed May 4 20:39:39 2011 From: kevingoodsell.lists at gmail.com (Kevin Goodsell) Date: Wed, 4 May 2011 10:39:39 -0700 Subject: [Dovecot] Bug Report: Failure delay config is ignored Message-ID: I have a set of automated tests for a system that can authenticate a user by forwarding authentication details to a server. That is, in order to authenticate a user, this system logs on to, e.g., an IMAP server using the credentials supplied by the user to verify the correctness of those credentials. I've been using dovecot as the authentication server to test IMAP, IMAPs, POP3, and APOP. To run the tests (most of which are authentication failures), I configure dovecot without authentication failure delays, since obviously I don't want to wait several minutes for the tests to finish. Setting the configuration variable auth_failure_delay to 0 worked fine in Dovecot 1.2, but since Debian updated to Dovecot 2.0 it no longer works. The tests take a very long time to run. I tried changing my passwd file to include nodelay=y, but this only works in a very limited way. For the set of tests which use the correct username, but an incorrect password, this successfully disables the failure delay. However, for the set of tests which use incorrect usernames (names not found in the user database or the password database, and which therefore don't have the extra nodelay field), the failure delay still occurs. There seems to be at least two problems here. The first is that it isn't clear what effect auth_failure_delay has. The comment in the sample config file just says "Time to delay before replying to failed authentications", which is certainly an incomplete description if not totally inaccurate. This setting seems to be completely unmentioned in the 2.0 wiki. The second problem is that the nodelay extra field can only be applied on a per-user basis. There doesn't seem to be any way to apply it to all users, or to apply it to authentication attempts for non-existent users. It seems to me that the failure delay that is actually used should either be 1) the actual value of auth_failure_delay (ideally with some random variance for extra security, but recognizing 0 as meaning disabled) or 2) some multiple of auth_failure_delay, where the multiplier increases with subsequent failures up to some max delay, with 0 still giving no delay. Config information follows. Thanks. -Kevin $ dovecot -n # 2.0.12: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-5-686 i686 Debian wheezy/sid auth_debug = yes auth_failure_delay = 0 auth_mechanisms = plain apop auth_verbose = yes listen = 127.0.0.1 log_path = /var/log/dovecot mail_location = maildir:~/Maildir passdb { args = /etc/dovecot/passwd driver = passwd-file } protocols = " imap pop3" ssl_cert = # 2.0.11: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 8.2-STABLE amd64 Dovecot stops with the following logged: - master: Fatal: kevent(): Invalid argument I have found that a diff was created for "src/lib/ioloop-kqueue.c" for a similar issue: http://dovecot.org/pipermail/dovecot/2010-November/054855.html I have patched my system with this and haven't seen the problem since, but I don't know if this is a coincidence. Could you please explain if the diff should actually fix anything or just add some more logging in case it stops again? Best regards Henrik Larsson From f.bonnet at esiee.fr Thu May 5 08:25:00 2011 From: f.bonnet at esiee.fr (Frank Bonnet) Date: Thu, 05 May 2011 07:25:00 +0200 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds Message-ID: <4DC234AC.5090002@esiee.fr> Hello I get this warning in dovecot.log the machine is running ntpd so this is a bit strange ... From ronny.becker at bioscientia.de Thu May 5 11:04:54 2011 From: ronny.becker at bioscientia.de (Becker, Ronny) Date: Thu, 05 May 2011 10:04:54 +0200 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders Message-ID: <4DC25A26.3000808@bioscientia.de> Hello, I am using Dovecot 1.2.9 on a 32bit on Ubuntu 10.04.2 LTS. We got one user who uses folders in an "exessive" way. He has got 704 subscribed folders. That means about nearly 3000 folders on the filesystem. Since ~ a week the user couldn't work because of timeouts when connecting to Dovecot (IMAP). Thunderbird doesn't show any folders - timeout - the webmail System (Groupoffice) only presents the INBOX. I did some debugging and found that a lsub "" "*" that is used by Thunderbird takes > 5 minutes. Thunderbird disconnects after ~1 Minute showing the timeout. I entered the command directly via port communication. So this is no clientside problem. But there is no error message or something else in any logs. I did some debugging with strace, too. It's about 22MB only for running the lsub command !? The Mailbox size is about ~2.2GB, so this should be no problem. The maximum subfolder level is about 13 - could this be a problem? You can find the structure (simply shown) attached. Thanks for any help!! Best regards Ronny Becker -- Mit freundlichen Gr??en, Ronny Becker Institut f?r Medizinische Diagnostik GmbH Ingelheim / Datenverarbeitung Konrad Adenauer Strasse 17 55218 Ingelheim Telefon: 06132 781 249 Fax: 06132 781 9 249 ronny.becker at bioscientia.de www.bioscientia.de Gesellschaft mit beschr?nkter Haftung mit Sitz in 55218 Ingelheim am Rhein, eingetragen im Handelsregister des Amtsgerichts Mainz unter HRB 21166. Gesch?ftsf?hrer: PD. Dr. med. Markus Nauck und Dipl.-Vw. Johannes Brill. Vorsitzender des Aufsichtsrates: Prof. Dr. med. Bernd Heicke. Diese E-Mail kann vertrauliche oder auf andere Weise gesch?tzte Informationen enthalten. Sollten Sie diese E-Mail irrt?mlich erhalten haben, l?schen Sie diese bitte von Ihrem System und setzen Sie uns unverz?glich von dem Vorfall in Kenntnis. USt-ID-Nr. DE 811138229 ___ Limited liability company with registered office in 55218 Ingelheim am Rhein, registered with the commercial register of the local court of Mainz under HRB 21166. Managing directors: PD Dr. med. Markus Nauck and Dipl.-Vw. Johannes Brill. Chairman of the supervisory board: Prof. Dr. med. Bernd Heicke. This e-mail may contain confidential or otherwise privileged information. If you are not the intended recipient, please inform us immediately and delete the e-mail from your system. VAT-ID-Nr. DE 811138229 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: subfolder_structure.txt URL: From tss at iki.fi Thu May 5 11:19:00 2011 From: tss at iki.fi (Timo Sirainen) Date: Thu, 5 May 2011 10:19:00 +0200 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: <4DC25A26.3000808@bioscientia.de> References: <4DC25A26.3000808@bioscientia.de> Message-ID: <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> On 5.5.2011, at 10.04, Becker, Ronny wrote: > I did some debugging and found that a lsub "" "*" that is used by Thunderbird takes > 5 minutes. Something's very wrong. I just tested with 1000 folders in a subscriptions file and it lists it in less than a second. > I did some debugging with strace, too. It's about 22MB only for running the lsub command !? Run it with strace -tt and send me the output compressed? Also dovecot -n output could be useful. From tss at iki.fi Thu May 5 11:44:58 2011 From: tss at iki.fi (Timo Sirainen) Date: Thu, 5 May 2011 10:44:58 +0200 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> References: <4DC25A26.3000808@bioscientia.de> <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> Message-ID: On 5.5.2011, at 10.19, Timo Sirainen wrote: >> I did some debugging with strace, too. It's about 22MB only for running the lsub command !? > > Run it with strace -tt and send me the output compressed? Ah, you have ACLs enabled. With ACLs it's looking up dovecot-acl file from each folder before returning it. This shouldn't be necessary with LSUB I think. I suppose some kind of an ACL cache could be a good idea some day too. And maybe a setting not to bother looking up ACLs for mailboxes in private namespaces. I'll try to do something about those within a few days.. From ronny.becker at bioscientia.de Thu May 5 12:26:23 2011 From: ronny.becker at bioscientia.de (Becker, Ronny) Date: Thu, 05 May 2011 11:26:23 +0200 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: References: <4DC25A26.3000808@bioscientia.de> <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> Message-ID: <4DC26D3F.5020103@bioscientia.de> Am 05.05.2011 10:44, schrieb Timo Sirainen: > On 5.5.2011, at 10.19, Timo Sirainen wrote: > >>> I did some debugging with strace, too. It's about 22MB only for running the lsub command !? >> Run it with strace -tt and send me the output compressed? > Ah, you have ACLs enabled. With ACLs it's looking up dovecot-acl file from each folder before returning it. This shouldn't be necessary with LSUB I think. I suppose some kind of an ACL cache could be a good idea some day too. And maybe a setting not to bother looking up ACLs for mailboxes in private namespaces. Ok, so for getting off this problem I will disable acl support. > I'll try to do something about those within a few days.. > I think it would be really a good thing to optimize dovecot this way. So you can reduce a lot of I/O. Hopefully I can get this fix - if available-, because I am using the Ubuntu packages !?!? Gesellschaft mit beschr?nkter Haftung mit Sitz in 55218 Ingelheim am Rhein, eingetragen im Handelsregister des Amtsgerichts Mainz unter HRB 21166. Gesch?ftsf?hrer: PD. Dr. med. Markus Nauck und Dipl.-Vw. Johannes Brill. Vorsitzender des Aufsichtsrates: Prof. Dr. med. Bernd Heicke. Diese E-Mail kann vertrauliche oder auf andere Weise gesch?tzte Informationen enthalten. Sollten Sie diese E-Mail irrt?mlich erhalten haben, l?schen Sie diese bitte von Ihrem System und setzen Sie uns unverz?glich von dem Vorfall in Kenntnis. USt-ID-Nr. DE 811138229 ___ Limited liability company with registered office in 55218 Ingelheim am Rhein, registered with the commercial register of the local court of Mainz under HRB 21166. Managing directors: PD Dr. med. Markus Nauck and Dipl.-Vw. Johannes Brill. Chairman of the supervisory board: Prof. Dr. med. Bernd Heicke. This e-mail may contain confidential or otherwise privileged information. If you are not the intended recipient, please inform us immediately and delete the e-mail from your system. VAT-ID-Nr. DE 811138229 From Ralf.Hildebrandt at charite.de Thu May 5 12:26:50 2011 From: Ralf.Hildebrandt at charite.de (Ralf Hildebrandt) Date: Thu, 5 May 2011 11:26:50 +0200 Subject: [Dovecot] Backtrace:dovecot/imap with 2.0.9 hg checkout from 1st of Febrauary In-Reply-To: <20110203090827.GC12879@charite.de> References: <20110202085907.GD2120@charite.de> <1296685692.18488.322.camel@hurina> <20110203090827.GC12879@charite.de> Message-ID: <20110505092649.GD23316@charite.de> * Ralf Hildebrandt : > Maybe it's a accidentially doubly gzipped mail :( It is! > > There's anyway a bug since it shouldn't be crashing even with garbage > > input. > > Yes, indeed. > > > Do you still have this message available? You can probably find it with: > > > > doveadm fetch -u username 'mailbox size.virtual' uid 37 > > > > And seeing if that's a >130k message somewhere in the list. If that's a > > spam or otherwise a message you can send me, it would help fixing this. Can dovecot changed in a way that it doesn't crash when it encounters a accidentially doubly gzipped mail? -- Ralf Hildebrandt Gesch?ftsbereich IT | Abteilung Netzwerk Charit? - Universit?tsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt at charite.de | http://www.charite.de From mobile at janantha.net Thu May 5 13:23:29 2011 From: mobile at janantha.net (Janantha Marasinghe) Date: Thu, 5 May 2011 15:53:29 +0530 Subject: [Dovecot] IMAP push Message-ID: Dear all, Im running dovecot v2 and want to know if it supports IMAP push capabilities. I have a few client who has blackberries, iphones and tabs. Please let me know. Sent via Mobile From dg at dguhl.org Thu May 5 13:58:44 2011 From: dg at dguhl.org (Dennis Guhl) Date: Thu, 5 May 2011 12:58:44 +0200 Subject: [Dovecot] IMAP push In-Reply-To: References: Message-ID: <20110505105843.GA25050@laptop-dg.leere.eu> On Thu, May 05, 2011 at 03:53:29PM +0530, Janantha Marasinghe wrote: > Dear all, > Im running dovecot v2 and want to know if it supports IMAP push capabilities. Dovecot supports IMAP IDLE as in RFC 2177 (http://tools.ietf.org/html/rfc2177). > I have a few client who has blackberries, iphones and tabs. Blackberries are using their own proprietary form of push service in conjunction a Blackberry Enterprise Server. None the less they are able to use IMAP IDLE like iPhones and other smartphones or tablet PCs. Dennis From robert at schetterer.org Thu May 5 16:27:11 2011 From: robert at schetterer.org (Robert Schetterer) Date: Thu, 05 May 2011 15:27:11 +0200 Subject: [Dovecot] Post-login scripting last login question Message-ID: <4DC2A5AF.90105@schetterer.org> Hi Timo, is there any relation between Post-login scripting i.e like last_login writing and imap/pop3 performance i.e on cluster file systems like ocfs2 etc ? -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From CMarcus at Media-Brokers.com Thu May 5 16:32:58 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Thu, 05 May 2011 09:32:58 -0400 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <4DC234AC.5090002@esiee.fr> References: <4DC234AC.5090002@esiee.fr> Message-ID: <4DC2A70A.2070101@Media-Brokers.com> On 2011-05-05 1:25 AM, Frank Bonnet wrote: > Hello > > I get this warning in dovecot.log > > the machine is running ntpd so this is > a bit strange ... How are you using it? It obviously isn't working correctly if your server isn't staying in time. -- Best regards, Charles From sarder.kamal at parlicentre.org Thu May 5 19:05:36 2011 From: sarder.kamal at parlicentre.org (Sarder Kamal) Date: Thu, 05 May 2011 17:05:36 +0100 Subject: [Dovecot] how to cat / grep from dbox files Message-ID: <4DC2CAD0.60601@parlicentre.org> Dear List members I am new to dovecot and am looking for a solution. I have googled as much as I could, but most likely my search criteria was wrong, and hence asking here. I am familiar with maildir format, and could easily do cat / grep / sed on those files to extract data. The server I am looking at now uses dbox format, which seems to store data in a different way. just to give you an example, when I do cat Drafts/dbox-Mails/u.11 I get the following output 2 M1e C4daa51f6 N 000000000000030A ?Tmo?6??_q?0`?B?r?D?? ??tF?5X??HI'??D??T??=*^?u??M?A?x/?=??E ???4?d??M_4?Z?.??mt??e??U?=?=1?s?B?^?0?_?_& ?"??H??eehuCA?1?I]a????p???????)\?-??H ???t4??E,???I?P?G????+???I??K+??u;9Z-???)ri????????un ????W?@?m?l?P?'??.??|???6?????)?S?C?T???>??n????U?r????]X9R???u?=?T??S_?:6??]?4hak??JWpkMe%???P_???~O~MW?jOU?F}?b? 3?]?~?/??8?_"??}L??????|L?}6hE'?7 ??^?q?-Y?I???.f???_ References: <4DC234AC.5090002@esiee.fr> Message-ID: <20110505120732.Horde.KKIIO5LnE6FNwstEF1LlrnA@mail.patrickdk.com> ntp isn't a magical fix. You need a good selection of source servers, or local time sources for it to pick a steady reliable time to use. Also, if the clock in your computer drifts too much, ntp will refuse to correct it or keep it in sync at all. Quoting Frank Bonnet : > Hello > > I get this warning in dovecot.log > > the machine is running ntpd so this is > a bit strange ... From tss at iki.fi Thu May 5 19:18:25 2011 From: tss at iki.fi (Timo Sirainen) Date: Thu, 5 May 2011 18:18:25 +0200 Subject: [Dovecot] how to cat / grep from dbox files In-Reply-To: <4DC2CAD0.60601@parlicentre.org> References: <4DC2CAD0.60601@parlicentre.org> Message-ID: On 5.5.2011, at 18.05, Sarder Kamal wrote: > Drafts/dbox-Mails/u.11 > I get the following output > 2 M1e C4daa51f6 > N 000000000000030A > ?Tmo?6??_q?0`?B?r?D?? ??tF?5X??HI'??D??T??=*^?u??M?A?x/?=??E .. > As it is quite evident, the output is in binary format, but I need it in text (even if that means I use some other command and pipe the output to cat / grep / sed) -- can this be done? The output is binary because the mail is stored compressed. Otherwise it would have been in text. > This server was configured and maintained by someone else, and I am very new to dovecot or this dbox format (I used to use courier-imap). would appreciate if anyone could please suggest what could/should be done to get to my objectives. All pointers/suggestions appreciated. man doveadm-fetch man doveadm-search-query example: doveadm fetch -u user 'uid text' mailbox INBOX body "hello world" From stsiol at yahoo.co.uk Thu May 5 21:45:59 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Thu, 5 May 2011 19:45:59 +0100 (BST) Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds Message-ID: <351536.71255.qm@web27205.mail.ukl.yahoo.com> Hello, You say ntpd is running. Is it running as a daemon ? AFAIK, to keep good time on a linux machine inside the network, you need to run "ntpdate" and not "ntpd". I had _exactly_ the same problem and I was running an ntp daemon. I wasn't actually syncing to anything. So,I did some searching and found out that I need to run "ntpdate ntp.server.fqdn", then add this same line to cron. HTH, s. ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From tss at iki.fi Thu May 5 21:49:33 2011 From: tss at iki.fi (Timo Sirainen) Date: Thu, 5 May 2011 20:49:33 +0200 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <351536.71255.qm@web27205.mail.ukl.yahoo.com> References: <351536.71255.qm@web27205.mail.ukl.yahoo.com> Message-ID: <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> On 5.5.2011, at 20.45, Spyros Tsiolis wrote: > AFAIK, to keep good time on a linux machine inside the network, > you need to run "ntpdate" and not "ntpd". No no no! That just makes things worse! It's the most common reason for these "Time jumped forwards/backwards" warnings. From stsiol at yahoo.co.uk Thu May 5 21:54:50 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Thu, 5 May 2011 19:54:50 +0100 (BST) Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> Message-ID: <89819.25453.qm@web27208.mail.ukl.yahoo.com> --- On Thu, 5/5/11, Timo Sirainen wrote: > From: Timo Sirainen > Subject: Re: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds > To: "Spyros Tsiolis" > Cc: f.bonnet at esiee.fr, "Dovecot" > Date: Thursday, 5 May, 2011, 21:49 > On 5.5.2011, at 20.45, Spyros Tsiolis > wrote: > > > AFAIK, to keep good time on a linux machine inside the > network, > > you need to run "ntpdate" and not "ntpd". > > No no no! That just makes things worse! It's the most > common reason for these "Time jumped forwards/backwards" > warnings. > > ! Seriously ? .s ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From noeldude at gmail.com Thu May 5 22:18:48 2011 From: noeldude at gmail.com (Noel) Date: Thu, 05 May 2011 14:18:48 -0500 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <89819.25453.qm@web27208.mail.ukl.yahoo.com> References: <89819.25453.qm@web27208.mail.ukl.yahoo.com> Message-ID: <4DC2F818.2030809@gmail.com> On 5/5/2011 1:54 PM, Spyros Tsiolis wrote: > --- On Thu, 5/5/11, Timo Sirainen wrote: > >> From: Timo Sirainen >> Subject: Re: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds >> To: "Spyros Tsiolis" >> Cc: f.bonnet at esiee.fr, "Dovecot" >> Date: Thursday, 5 May, 2011, 21:49 >> On 5.5.2011, at 20.45, Spyros Tsiolis >> wrote: >> >>> AFAIK, to keep good time on a linux machine inside the >> network, >>> you need to run "ntpdate" and not "ntpd". >> No no no! That just makes things worse! It's the most >> common reason for these "Time jumped forwards/backwards" >> warnings. >> >> > ! > > Seriously ? > Definitely you should run ntpd -- but you need to make sure that it's configured correctly and working. Running "ntpdate" will cause time to jump. -- Noel Jones From rick at havokmon.com Thu May 5 22:27:10 2011 From: rick at havokmon.com (Rick Romero) Date: Thu, 05 May 2011 14:27:10 -0500 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <4DC2F818.2030809@gmail.com> References: <89819.25453.qm@web27208.mail.ukl.yahoo.com> <4DC2F818.2030809@gmail.com> Message-ID: <20110505142710.Horde.16ufQqPBW7JNwvoOlWuBFv8@beta.vfemail.net> Quoting Noel : > On 5/5/2011 1:54 PM, Spyros Tsiolis wrote: >> --- On Thu, 5/5/11, Timo Sirainen wrote: >> >>> From: Timo Sirainen >>> Subject: Re: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped >>> forwards 16 seconds >>> To: "Spyros Tsiolis" >>> Cc: f.bonnet at esiee.fr, "Dovecot" >>> Date: Thursday, 5 May, 2011, 21:49 >>> On 5.5.2011, at 20.45, Spyros Tsiolis >>> wrote: >>> >>>> AFAIK, to keep good time on a linux machine inside the >>> network, >>>> you need to run "ntpdate" and not "ntpd". >>> No no no! That just makes things worse! It's the most >>> common reason for these "Time jumped forwards/backwards" >>> warnings. >>> >>> >> ! >> >> Seriously ? >> > > Definitely you should run ntpd -- but you need to make sure that > it's configured correctly and working. Running "ntpdate" will cause > time to jump. > I thought everyone knew that if you removed the 1.55v watch battery from the motherboard, you could put in a 1.6v battery and time will run faster. Then just use ntpdate - time will never jump forward, and dovecot won't crash. :D From smt at vgersoft.com Thu May 5 22:42:59 2011 From: smt at vgersoft.com (Steve Thompson) Date: Thu, 5 May 2011 15:42:59 -0400 (EDT) Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> References: <4DC25A26.3000808@bioscientia.de> <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> Message-ID: On Thu, 5 May 2011, Timo Sirainen wrote: > On 5.5.2011, at 10.04, Becker, Ronny wrote: > >> I did some debugging and found that a lsub "" "*" that is used by Thunderbird takes > 5 minutes. > > Something's very wrong. I just tested with 1000 folders in a > subscriptions file and it lists it in less than a second. Interesting. I just converted a system from Courier IMAP to Dovecot, and found a massive performance increase. My own personal account has 655 subscribed folders containing about 1.3 million messages. An LSUB "" "*" command takes of the order of about 0.1 second (the IMAP server has SATA disks and an Xeon E5345's at 2.33 GHz). Using alpine as client, a full scan of all messages to find unread messages (";puz") takes about 10 seconds - with Courier, this takes over a minute. I don't know of a way to do the same test in tbird. Steve From ssilva at sgvwater.com Thu May 5 23:24:32 2011 From: ssilva at sgvwater.com (Scott Silva) Date: Thu, 05 May 2011 13:24:32 -0700 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: <4DC25A26.3000808@bioscientia.de> References: <4DC25A26.3000808@bioscientia.de> Message-ID: on 5/5/2011 1:04 AM Becker, Ronny spake the following: > Hello, > I am using Dovecot 1.2.9 on a 32bit on Ubuntu 10.04.2 LTS. > > We got one user who uses folders in an "exessive" way. He has got 704 > subscribed folders. That means about nearly 3000 folders on the filesystem. > Since ~ a week the user couldn't work because of timeouts when connecting to > Dovecot (IMAP). Thunderbird doesn't show any folders - timeout - the webmail > System (Groupoffice) only presents the INBOX. > > I did some debugging and found that a lsub "" "*" that is used by Thunderbird > takes > 5 minutes. Thunderbird disconnects after ~1 Minute showing the > timeout. I entered the command directly via port communication. So this is no > clientside problem. But there is no error message or something else in any logs. > > I did some debugging with strace, too. It's about 22MB only for running the > lsub command !? The Mailbox size is about ~2.2GB, so this should be no > problem. The maximum subfolder level is about 13 - could this be a problem? > You can find the structure (simply shown) attached. > > > Thanks for any help!! > > > Best regards > Ronny Becker > > What is the underlying filesystem, and if its ext3, is dir_index set on? From jayw at interoceansystems.com Thu May 5 23:28:03 2011 From: jayw at interoceansystems.com (Jay Welch) Date: Thu, 05 May 2011 13:28:03 -0700 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <20110505142710.Horde.16ufQqPBW7JNwvoOlWuBFv8@beta.vfemail.net> References: <89819.25453.qm@web27208.mail.ukl.yahoo.com> <4DC2F818.2030809@gmail.com> <20110505142710.Horde.16ufQqPBW7JNwvoOlWuBFv8@beta.vfemail.net> Message-ID: <4DC30853.10804@interoceansystems.com> I had the same problem. If you are running dovecot on a virtual machine this is what I did and the issue was fixed: http://nbevans.wordpress.com/2011/02/21/centos-5-5-losing-time-synchronisation-on-hyper-v-r2/ On 5/5/2011 12:27 PM, Rick Romero wrote: > > Quoting Noel : > >> On 5/5/2011 1:54 PM, Spyros Tsiolis wrote: >>> --- On Thu, 5/5/11, Timo Sirainen wrote: >>> >>>> From: Timo Sirainen >>>> Subject: Re: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped >>>> forwards 16 seconds >>>> To: "Spyros Tsiolis" >>>> Cc: f.bonnet at esiee.fr, "Dovecot" >>>> Date: Thursday, 5 May, 2011, 21:49 >>>> On 5.5.2011, at 20.45, Spyros Tsiolis >>>> wrote: >>>> >>>>> AFAIK, to keep good time on a linux machine inside the >>>> network, >>>>> you need to run "ntpdate" and not "ntpd". >>>> No no no! That just makes things worse! It's the most >>>> common reason for these "Time jumped forwards/backwards" >>>> warnings. >>>> >>>> >>> ! >>> >>> Seriously ? >>> >> >> Definitely you should run ntpd -- but you need to make sure that it's >> configured correctly and working. Running "ntpdate" will cause time >> to jump. >> > > I thought everyone knew that if you removed the 1.55v watch battery > from the motherboard, you could put in a 1.6v battery and time will > run faster. Then just use ntpdate - time will never jump forward, and > dovecot won't crash. > > > :D > > > > From Bruno.Treguier at shom.fr Fri May 6 00:13:23 2011 From: Bruno.Treguier at shom.fr (=?UTF-8?B?QnJ1bm8gVHLDqWd1aWVy?=) Date: Thu, 05 May 2011 23:13:23 +0200 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <20110505142710.Horde.16ufQqPBW7JNwvoOlWuBFv8@beta.vfemail.net> References: <89819.25453.qm@web27208.mail.ukl.yahoo.com> <4DC2F818.2030809@gmail.com> <20110505142710.Horde.16ufQqPBW7JNwvoOlWuBFv8@beta.vfemail.net> Message-ID: <4DC312F3.7080402@shom.fr> Le 05/05/2011 ? 21:27, Rick Romero a ?crit : > I thought everyone knew that if you removed the 1.55v watch battery from > the motherboard, you could put in a 1.6v battery and time will run > faster. Then just use ntpdate - time will never jump forward, and > dovecot won't crash. > > > :D Hi, As Timo just stated, you definitely should run ntpd, which tries to adjust the clock's pace smoothly, instead of ntpdate, which abruptly changes the clock and should only be used *before* starting ntpd (typically at service startup), to catch up a difference too big for ntpd to handle in a reasonable time. If time moves backwards, Dovecot will not crash, but will kill itself, which in the end amounts to pretty much the same. ;-) http://wiki2.dovecot.org/TimeMovedBackwards Best regards, Bruno -- - Service Hydrographique et Oceanographique de la Marine - DO/MGS/INF - 13, rue du Chatellier - CS 92803 - 29228 Brest Cedex 2, FRANCE - Phone: +33 2 98 22 17 49 - Email: Bruno.Treguier at shom.fr From upendra.gandhi at gmail.com Fri May 6 00:43:22 2011 From: upendra.gandhi at gmail.com (upen) Date: Thu, 5 May 2011 16:43:22 -0500 Subject: [Dovecot] alpine + Maildir Message-ID: Hello, I am trying to configure pine.conf for all users and running into an issue. In this setup, Mailbox format is Maildir and Maildir location is /Mail/Username/{new,cur,..etc} First thing required in alpine was patch for maildir and this has already been done. After that I have tried setting up folder-collection Mail #md ../../Mail/username and also tried using #mc (not sure which one is correct #md or #mc). Nothing worked. If maildir support in alpine does not work like it does for mbox then I'll have to configure IMAP setings in pine.conf for alpine users. I must say that alpine is installed on mail server :). Although IMAP setting may work fine, it will prompt user for password initially when checking email and while sending first email. I'd like to avoid this by using #md or #mc. If anyone has any useful inputs please let me know. Thank you! UG. From dovecot.fdop at tagged.lorens.org Fri May 6 00:43:25 2011 From: dovecot.fdop at tagged.lorens.org (Lorens Kockum) Date: Thu, 5 May 2011 23:43:25 +0200 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <89819.25453.qm@web27208.mail.ukl.yahoo.com> References: <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> <89819.25453.qm@web27208.mail.ukl.yahoo.com> Message-ID: <20110505214325.GA27864@tagged.lorens.org> On Thu, May 05, 2011 at 07:54:50PM +0100, Spyros Tsiolis wrote: > > Seriously ? Yes, Timo was (of course) both serious and correct. ntpdate takes one or more NTP servers as parameters, and sets your server's time to match that of the NTP servers. That may well cause a jump, even a massive jump. ntpd takes a list of NTP servers in its configuration file, and uses them to make continual small adjustments. I seem to remember that in some cases it is even capable of adjusting the speed of your system clock according to its measurements. If the difference is too great it will refuse to function and exit with an error. The usual way is to run ntpdate with -b option once at boot (just after the network comes up and long before things like dovecot and MTAs get started), and then start up ntpd. The other way is to run ntpdate frequently, against an NTP server you trust. It's not as good, but sometimes there may be objections against running daemons, and if you're aiming at a well-behaved NTP server the jumps should be minimal. When running ntpd, the essential thing is to check that it's actually doing its job. You do that with the command "ntpdc". That will drop you to a prompt. The essential commands are sysinfo peers server x.x.x.x sysinfo quit sysinfo should give your stratum as somwhere between 3 and 5 (if it's less you're probably doing something wrong, and if it's 16 you're not synchronized). peers should give one * sign in the first column and some number of + signs. After that overview, man ntpdate, man ntpd, and google :-) HTH. From dovecot-user at spambox.dk Fri May 6 01:03:56 2011 From: dovecot-user at spambox.dk (Henrik Larsson) Date: Fri, 06 May 2011 00:03:56 +0200 Subject: [Dovecot] Dovecot stops with "Fatal: kevent(): Invalid argument" In-Reply-To: <4DC1D95D.3070603@spambox.dk> References: <4DC1D95D.3070603@spambox.dk> Message-ID: <4DC31ECC.1050901@spambox.dk> > # 2.0.11: /usr/local/etc/dovecot/dovecot.conf > # OS: FreeBSD 8.2-STABLE amd64 > > Dovecot stops with the following logged: > - master: Fatal: kevent(): Invalid argument > > I have found that a diff was created for "src/lib/ioloop-kqueue.c" for > a similar issue: > http://dovecot.org/pipermail/dovecot/2010-November/054855.html > > I have patched my system with this and haven't seen the problem since, > but I don't know if this is a coincidence. Could you please explain if > the diff should actually fix anything or just add some more logging in > case it stops again? And if this is a fix, why isn't it included in 2.0.11, I think it was created for 2.0.6. Best regards Henrik Larsson From dovecot.user at seibercom.net Fri May 6 01:30:32 2011 From: dovecot.user at seibercom.net (Jerry) Date: Thu, 5 May 2011 18:30:32 -0400 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <20110505214325.GA27864@tagged.lorens.org> References: <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> <89819.25453.qm@web27208.mail.ukl.yahoo.com> <20110505214325.GA27864@tagged.lorens.org> Message-ID: <20110505183032.6d77fb6b@scorpio> On Thu, 5 May 2011 23:43:25 +0200 Lorens Kockum articulated: > On Thu, May 05, 2011 at 07:54:50PM +0100, Spyros Tsiolis wrote: > > > > Seriously ? > > Yes, Timo was (of course) both serious and correct. > > ntpdate takes one or more NTP servers as parameters, and sets > your server's time to match that of the NTP servers. That may > well cause a jump, even a massive jump. > > ntpd takes a list of NTP servers in its configuration file, > and uses them to make continual small adjustments. I seem to > remember that in some cases it is even capable of adjusting the > speed of your system clock according to its measurements. If the > difference is too great it will refuse to function and exit with > an error. > > The usual way is to run ntpdate with -b option once at boot > (just after the network comes up and long before things like > dovecot and MTAs get started), and then start up ntpd. > > The other way is to run ntpdate frequently, against an NTP > server you trust. It's not as good, but sometimes there may be > objections against running daemons, and if you're aiming at a > well-behaved NTP server the jumps should be minimal. > > When running ntpd, the essential thing is to check that > it's actually doing its job. You do that with the command > "ntpdc". That will drop you to a prompt. The essential commands > are > > sysinfo > peers > server x.x.x.x > sysinfo > quit > > sysinfo should give your stratum as somwhere between 3 and 5 (if > it's less you're probably doing something wrong, and if it's 16 > you're not synchronized). peers should give one * sign in the > first column and some number of + signs. > > After that overview, man ntpdate, man ntpd, and google :-) > > HTH. On a FreeBSD machine, putting the following two lines into the "/etc/rc.conf" file will cause "ntp" to be started and force it to synchronize the time regardless of how far out of sync it actually is. ntpd_enable="YES" # Start time server ntpd_sync_on_start="YES" # Synchronize on start Of course, you still need to have a default ntp.conf file. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From alietsantiesteban at gmail.com Fri May 6 02:55:35 2011 From: alietsantiesteban at gmail.com (Aliet Santiesteban Sifontes) Date: Thu, 5 May 2011 19:55:35 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results Message-ID: We have done some benchmarking tests using dovecot 2.0.12 to find the best shared filesystem for hosting many users, here I share with you the results, notice the bad perfomance of all the shared filesystems against the local storage. Is there any specific optimization/tunning on dovecot for use GFS2 on rhel6??, we have configured the director to make the user mailbox persistent in a node, we will thank's any help from you. we are interested in using GFS2 or NFS, we believe the problem is the locks, how can we improve this?? best regards, Aliet The results rhel 4.8 x86_64/GFS1 two nodes, shared FC lun on a SAN Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 1- 2608 1321 1311 2608 2508 3545 547 2001 2493 2702 5282 2- 2810 1440 1430 2810 2688 3835 403 2154 2679 2925 5706 3- 2913 1457 1441 2908 2778 3913 417 2253 2773 3034 5924 4- 2814 1448 1412 2812 2695 3910 401 2186 2686 2929 5712 5- 2789 1464 1432 2787 2652 3774 427 2112 2649 2879 5676 6- 2843 1460 1444 2839 2722 3948 422 2164 2713 2957 5778 rhel6 x86_64/GFS2 two nodes, shared FC lun on a SAN(Used RDM in VMWare vSphere for GFS2 lun) Tunned cluster suite cluster.conf + Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 1- 2730 1340 1356 2704 2644 3748 522 2125 2643 2662 5422 2- 3309 1618 1659 3294 3223 4658 531 2563 3221 3239 6596 3- 2131 1046 1017 2055 2025 2911 381 1608 2024 2052 4256 4- 2176 1055 1039 2082 2058 2947 377 1671 2058 2078 4344 5- 1859 928 931 1859 1800 2626 304 1454 1799 1801 3706 6- 2672 1322 1329 2672 2607 3758 464 2097 2606 2615 5326 rhel6 x86_64/GFS2 two nodes, shared FC lun on a SAN(Used RDM in VMWare vSphere for GFS2 lun) Cluster suite defaults configs for plocks Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 1- 1417 644 676 1325 1305 1872 308 1048 1302 1318 2824 2- 837 378 392 742 726 1050 117 588 722 734 1658 3- 803 363 347 752 745 1069 153 597 744 750 1658 4- 1682 802 811 1587 1569 2261 291 1299 1569 1585 3360 5- 1146 583 564 1146 1037 1500 213 811 1037 1049 2290 6- 838 403 366 744 734 1057 152 561 731 736 1664 rhel6 x86_64 two nodes used NFS(NAS Freenas 0.8, nfsvers 3) Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 1- 1382 699 691 1357 1063 1500 224 861 1053 1313 2694 2- 1634 785 799 1610 1459 2120 311 1192 1451 1570 3204 2- 1635 826 806 1611 1463 2088 345 1159 1459 1568 3190 3- 1574 758 781 1537 1403 2060 324 1135 1396 1504 3090 4- 1685 842 807 1653 1506 2135 349 1215 1504 1634 3344 5- 1766 850 893 1737 1582 2289 335 1288 1579 1705 3480 6- 1597 797 769 1572 1423 2007 313 1133 1420 1536 3142 rhel6 x86_64 local storage Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 1- 7798 3868 3889 7706 7566 10713 1080 6089 7559 7688 15562 2- 7806 3879 3874 7716 7585 10873 1114 6018 7578 7696 15572 3- 7866 3910 3855 7773 7748 11053 1076 6253 7747 7761 15710 4- 7893 3978 3931 7802 7772 10988 1117 6197 7767 7789 15760 5- 7775 3853 3809 7683 7654 10897 1081 6142 7651 7675 15534 6- 7877 3919 3872 7789 7758 10986 1085 6218 7755 7773 15720 From alietsantiesteban at gmail.com Fri May 6 02:56:55 2011 From: alietsantiesteban at gmail.com (Aliet Santiesteban Sifontes) Date: Thu, 5 May 2011 19:56:55 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: References: Message-ID: We have used sdbox as mailbox format, and all the user data is configured in LDAP Servers 2011/5/5 Aliet Santiesteban Sifontes > We have done some benchmarking tests using dovecot 2.0.12 to find the best > shared filesystem for hosting many users, here I share with you the results, > notice the bad perfomance of all the shared filesystems against the local > storage. > Is there any specific optimization/tunning on dovecot for use GFS2 on > rhel6??, we have configured the director to make the user mailbox persistent > in a node, we will thank's any help from you. > we are interested in using GFS2 or NFS, we believe the problem is the > locks, how can we improve this?? > > best regards, Aliet > > The results > > rhel 4.8 x86_64/GFS1 two nodes, shared FC lun on a SAN > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 1- 2608 1321 1311 2608 2508 3545 547 2001 2493 2702 5282 > 2- 2810 1440 1430 2810 2688 3835 403 2154 2679 2925 5706 > 3- 2913 1457 1441 2908 2778 3913 417 2253 2773 3034 5924 > 4- 2814 1448 1412 2812 2695 3910 401 2186 2686 2929 5712 > 5- 2789 1464 1432 2787 2652 3774 427 2112 2649 2879 5676 > 6- 2843 1460 1444 2839 2722 3948 422 2164 2713 2957 5778 > > rhel6 x86_64/GFS2 two nodes, shared FC lun on a SAN(Used RDM in VMWare > vSphere for GFS2 lun) > Tunned cluster suite cluster.conf + plock_rate_limit="0"/> > > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 1- 2730 1340 1356 2704 2644 3748 522 2125 2643 2662 5422 > 2- 3309 1618 1659 3294 3223 4658 531 2563 3221 3239 6596 > 3- 2131 1046 1017 2055 2025 2911 381 1608 2024 2052 4256 > 4- 2176 1055 1039 2082 2058 2947 377 1671 2058 2078 4344 > 5- 1859 928 931 1859 1800 2626 304 1454 1799 1801 3706 > 6- 2672 1322 1329 2672 2607 3758 464 2097 2606 2615 5326 > > > rhel6 x86_64/GFS2 two nodes, shared FC lun on a SAN(Used RDM in VMWare > vSphere for GFS2 lun) > Cluster suite defaults configs for plocks > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 1- 1417 644 676 1325 1305 1872 308 1048 1302 1318 2824 > 2- 837 378 392 742 726 1050 117 588 722 734 1658 > 3- 803 363 347 752 745 1069 153 597 744 750 1658 > 4- 1682 802 811 1587 1569 2261 291 1299 1569 1585 3360 > 5- 1146 583 564 1146 1037 1500 213 811 1037 1049 2290 > 6- 838 403 366 744 734 1057 152 561 731 736 1664 > > rhel6 x86_64 two nodes used NFS(NAS Freenas 0.8, nfsvers 3) > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 1- 1382 699 691 1357 1063 1500 224 861 1053 1313 2694 > 2- 1634 785 799 1610 1459 2120 311 1192 1451 1570 3204 > 2- 1635 826 806 1611 1463 2088 345 1159 1459 1568 3190 > 3- 1574 758 781 1537 1403 2060 324 1135 1396 1504 3090 > 4- 1685 842 807 1653 1506 2135 349 1215 1504 1634 3344 > 5- 1766 850 893 1737 1582 2289 335 1288 1579 1705 3480 > 6- 1597 797 769 1572 1423 2007 313 1133 1420 1536 3142 > > rhel6 x86_64 local storage > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 1- 7798 3868 3889 7706 7566 10713 1080 6089 7559 7688 15562 > 2- 7806 3879 3874 7716 7585 10873 1114 6018 7578 7696 15572 > 3- 7866 3910 3855 7773 7748 11053 1076 6253 7747 7761 15710 > 4- 7893 3978 3931 7802 7772 10988 1117 6197 7767 7789 15760 > 5- 7775 3853 3809 7683 7654 10897 1081 6142 7651 7675 15534 > 6- 7877 3919 3872 7789 7758 10986 1085 6218 7755 7773 15720 > From f.bonnet at esiee.fr Fri May 6 07:05:04 2011 From: f.bonnet at esiee.fr (Frank Bonnet) Date: Fri, 06 May 2011 06:05:04 +0200 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> References: <351536.71255.qm@web27205.mail.ukl.yahoo.com> <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> Message-ID: <4DC37370.1000008@esiee.fr> Le 05/05/2011 20:49, Timo Sirainen a ?crit : > On 5.5.2011, at 20.45, Spyros Tsiolis wrote: > >> AFAIK, to keep good time on a linux machine inside the network, >> you need to run "ntpdate" and not "ntpd". > > No no no! That just makes things worse! It's the most common reason for these "Time jumped forwards/backwards" warnings. > The machine runs FreeBSD not Linux :-) it runs ntpd pointing to several reliables NTP servers since 5 years From Bartlomiej.Solarz-Niesluchowski at wit.edu.pl Fri May 6 09:32:55 2011 From: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl (=?UTF-8?B?QmFydMWCb21pZWogU29sYXJ6LU5pZXPFgnVjaG93c2tp?=) Date: Fri, 06 May 2011 08:32:55 +0200 Subject: [Dovecot] alpine + Maildir In-Reply-To: References: Message-ID: <4DC39617.2050103@wit.edu.pl> W dniu 2011-05-05 23:43, upen pisze: > Hello, > > I am trying to configure pine.conf for all users and running into an > issue. In this setup, Mailbox format is Maildir and Maildir location > is /Mail/Username/{new,cur,..etc} > > First thing required in alpine was patch for maildir and this has > already been done. After that I have tried setting up > folder-collection Mail #md ../../Mail/username and also tried using > #mc (not sure which one is correct #md or #mc). Nothing worked. > > If maildir support in alpine does not work like it does for mbox then > I'll have to configure IMAP setings in pine.conf for alpine users. I > must say that alpine is installed on mail server :). Although IMAP > setting may work fine, it will prompt user for password initially when > checking email and while sending first email. I'd like to avoid this > by using #md or #mc. > > If anyone has any useful inputs please let me know. on my alpine in pine.conf we have settings: inbox-path=#md//var/spool/mail/$USER and alpine is: oceanic:~# rpm -qa alpine alpine-2.02-1.fc14.x86_64 and it works. > Thank you! > UG. -- Bart?omiej Solarz-Nies?uchowski, Administrator WSISiZ e-mail: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl tel. 223486547, fax 223486501 JID: solarz at jabber.wit.edu.pl 01-447 Warszawa, ul. Newelska 6, pok?j 404, pon.-pt. 8-16 Motto - Jak sobie po?cielisz tak sie wy?pisz -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6020 bytes Desc: S/MIME Cryptographic Signature URL: From tss at iki.fi Fri May 6 10:09:13 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 6 May 2011 09:09:13 +0200 Subject: [Dovecot] Dovecot stops with "Fatal: kevent(): Invalid argument" In-Reply-To: <4DC1D95D.3070603@spambox.dk> References: <4DC1D95D.3070603@spambox.dk> Message-ID: On 5.5.2011, at 0.55, Henrik Larsson wrote: > Dovecot stops with the following logged: > - master: Fatal: kevent(): Invalid argument > > I have found that a diff was created for "src/lib/ioloop-kqueue.c" for a similar issue: > http://dovecot.org/pipermail/dovecot/2010-November/054855.html > > I have patched my system with this and haven't seen the problem since, but I don't know if this is a coincidence. Could you please explain if the diff should actually fix anything or just add some more logging in case it stops again? That patch doesn't fix anything. It only changes the error message to be more informative so I could figure out what is causing it. If you haven't seen any more errors, it's just a coincidence. From tss at iki.fi Fri May 6 10:11:45 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 6 May 2011 09:11:45 +0200 Subject: [Dovecot] alpine + Maildir In-Reply-To: References: Message-ID: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> On 5.5.2011, at 23.43, upen wrote: > If maildir support in alpine does not work like it does for mbox then > I'll have to configure IMAP setings in pine.conf for alpine users. I > must say that alpine is installed on mail server :). Although IMAP > setting may work fine, it will prompt user for password initially when > checking email and while sending first email. I'd like to avoid this > by using #md or #mc. You can configure Alpine to execute Dovecot's imap binary and talk to it. That makes it work nicely with Dovecot and won't prompt the user for a password. If you're using v1.x you can run "dovecot --exec-mail imap" and with v2.0 you just need to run "imap". I don't know specifically what this setting in Alpine is called. From moiseev at mezonplus.ru Fri May 6 10:34:06 2011 From: moiseev at mezonplus.ru (Alexander Moisseev) Date: Fri, 06 May 2011 11:34:06 +0400 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: References: Message-ID: <4DC3A46E.1080702@mezonplus.ru> Are you got this warnings only after OS reboot? -- Alexander Moisseev From erevilla at yaco.es Fri May 6 13:20:38 2011 From: erevilla at yaco.es (Ernesto Revilla Derksen) Date: Fri, 6 May 2011 12:20:38 +0200 Subject: [Dovecot] Encoding dovecot keywords In-Reply-To: <6B0FEF8E-F91F-4FD3-A76A-229D8BD9C87F@iki.fi> References: <20110408155009.Horde.z3uieoF5lbhNn4MR6sYHxaA@bigworm.curecanti.org> <6B0FEF8E-F91F-4FD3-A76A-229D8BD9C87F@iki.fi> Message-ID: Hi. 2011/4/10 Timo Sirainen > On 9.4.2011, at 13.41, ??????? ???????? wrote: > > > Ok, but if I write my own MUA application? If different MUA use it's > > own encoding format I think it's bad, very very bad way. Because > > application can't decode keywords written by another application. > > Yeah, it sucks. > Well, it could be worse. Dovecot's max length is configurable. We just need atom compatible keywords. For latin written languages, this could be doable. For other languages, it sucks. It would be better if keywords were that UTF-7 modified thing, just like folder names, but that is not the standard :-( > > Can someone known a solution to this problem? > > No. You could try proposing a standard though. > http://www.washington.edu/imap/lists/imap-protocol.html This is cool! Well, changing IMAP keywords to UTF-7-mod + specifiying min size supported by IMAP servers and max size in capabilities anyhow would be a not too intrusive change, right? Regards. Erny > > > 2011/4/9 Michael M Slusarz : > >> Quoting ??????? ???????? : > >> > >>> But I can't understand what encoding use dovecot for keywords? I set > >>> "????" (number 5) keyword: > >>> > >>> cat dovecot-keywords > >>> 0 &bcienqrbbeiepgqybdaetw-_&bdwenqrcbdoema- > >>> 1 test > >>> 2 $label1 > >>> 3 $label2 > >>> 4 $label3 > >>> 5 &beienqq6beeeqg- > >>> > >>> but "&beienqq6beeeqg-" do not convert to "????". Why? > >> > >> Because only mailboxes are encoded in Modified UTF-7. There is no > >> equivalent encoding for keywords. Keywords are *not* meant to be > directly > >> viewable by an end-user. Converting between a keyword and the > >> representation displayed to the user is the job of the MUA. > >> > >> michael > >> > >> > > > > From erevilla at yaco.es Fri May 6 13:26:25 2011 From: erevilla at yaco.es (Ernesto Revilla Derksen) Date: Fri, 6 May 2011 12:26:25 +0200 Subject: [Dovecot] Delete unused IMAP keywords from permanetflags Message-ID: Hi. I'm using dovecot 2.0.9. Is there already a way to remove unused IMAP keywords from a folder? I searched in google, wiki, etc. but didn't find anything useful. Thanx. Regards Erny From CMarcus at Media-Brokers.com Fri May 6 13:49:53 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Fri, 06 May 2011 06:49:53 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: References: Message-ID: <4DC3D251.4050004@Media-Brokers.com> On 2011-05-05 7:56 PM, Aliet Santiesteban Sifontes wrote: > We have used sdbox as mailbox format, and all the user data is configured in > LDAP Servers It might help Timo to provide some suggestions if you also provide dovecot -n output... ;) -- Best regards, Charles From CMarcus at Media-Brokers.com Fri May 6 13:53:13 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Fri, 06 May 2011 06:53:13 -0400 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <4DC37370.1000008@esiee.fr> References: <351536.71255.qm@web27205.mail.ukl.yahoo.com> <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> <4DC37370.1000008@esiee.fr> Message-ID: <4DC3D319.9030603@Media-Brokers.com> On 2011-05-06 12:05 AM, Frank Bonnet wrote: > Le 05/05/2011 20:49, Timo Sirainen a ?crit : >> On 5.5.2011, at 20.45, Spyros Tsiolis wrote: >>> AFAIK, to keep good time on a linux machine inside the network, >>> you need to run "ntpdate" and not "ntpd". >> No no no! That just makes things worse! It's the most common reason >> for these "Time jumped forwards/backwards" warnings. > The machine runs FreeBSD not Linux :-) So? The basic premise is still the same... the system clock should NEVER jump time like that during normal operations, if it does, something is seriously broken. ntpdate, which causes large jumps, should only be used at boot time BEFORE server processes are started, then ntp CLIENT keeps the systems clock in sync using tiny increments, usually less than a second. > it runs ntpd pointing to several reliables NTP servers > since 5 years So something changed/broke? Happens all the time... -- Best regards, Charles From hans.moser at ofd-z.niedersachsen.de Fri May 6 14:11:09 2011 From: hans.moser at ofd-z.niedersachsen.de (Marc Patermann) Date: Fri, 6 May 2011 13:11:09 +0200 Subject: [Dovecot] IMAP push In-Reply-To: <20110505105843.GA25050@laptop-dg.leere.eu> References: <20110505105843.GA25050@laptop-dg.leere.eu> Message-ID: <4DC3D74D.2040804@ofd-z.niedersachsen.de> Hi, Dennis Guhl schrieb am 05.05.2011 12:58 Uhr: > On Thu, May 05, 2011 at 03:53:29PM +0530, Janantha Marasinghe wrote: >> Im running dovecot v2 and want to know if it supports IMAP push capabilities. > > Dovecot supports IMAP IDLE as in RFC 2177 > (http://tools.ietf.org/html/rfc2177). > >> I have a few client who has blackberries, iphones and tabs. > > Blackberries are using their own proprietary form of push service in > conjunction a Blackberry Enterprise Server. None the less they are > able to use IMAP IDLE like iPhones and other smartphones or tablet PCs. There ist Z-Push, which I haven't tested, yet. http://z-push.sourceforge.net/soswp/ There is even a session called "Connecting mobile Devices with Z-Push and Zarafa/Dovecot" at the "Mailserver-Konferenz", Berlin 26th of May. :) http://www.heinlein-support.de/mailserver-konferenz/2011/vortrag/mobile-geraete-mit-z-push-und-zarafa-dovecot Marc From dovecot.user at seibercom.net Fri May 6 14:35:03 2011 From: dovecot.user at seibercom.net (Jerry) Date: Fri, 6 May 2011 07:35:03 -0400 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <4DC3D319.9030603@Media-Brokers.com> References: <351536.71255.qm@web27205.mail.ukl.yahoo.com> <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> <4DC37370.1000008@esiee.fr> <4DC3D319.9030603@Media-Brokers.com> Message-ID: <20110506073503.76d705fc@scorpio> On Fri, 06 May 2011 06:53:13 -0400 Charles Marcus articulated: > On 2011-05-06 12:05 AM, Frank Bonnet wrote: > > Le 05/05/2011 20:49, Timo Sirainen a ?crit : > >> On 5.5.2011, at 20.45, Spyros Tsiolis wrote: > >>> AFAIK, to keep good time on a linux machine inside the network, > >>> you need to run "ntpdate" and not "ntpd". > > >> No no no! That just makes things worse! It's the most common reason > >> for these "Time jumped forwards/backwards" warnings. > > > The machine runs FreeBSD not Linux :-) > > So? The basic premise is still the same... the system clock should > NEVER jump time like that during normal operations, if it does, > something is seriously broken. > > ntpdate, which causes large jumps, should only be used at boot time > BEFORE server processes are started, then ntp CLIENT keeps the systems > clock in sync using tiny increments, usually less than a second. > > > it runs ntpd pointing to several reliables NTP servers > > since 5 years > > So something changed/broke? Happens all the time... Sorry, I missed some of this thread; however, I was wondering if anyone suggested replacing the battery. I have seen a phenomena like this once before on an old PC with a dying battery. I did post about a possible solution with ntp on a FreeBSD machine. I am not sure if the OP has tried that procedure or not. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From noeldude at gmail.com Fri May 6 14:42:10 2011 From: noeldude at gmail.com (Noel) Date: Fri, 06 May 2011 06:42:10 -0500 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <4DC3D319.9030603@Media-Brokers.com> References: <351536.71255.qm@web27205.mail.ukl.yahoo.com> <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> <4DC37370.1000008@esiee.fr> <4DC3D319.9030603@Media-Brokers.com> Message-ID: <4DC3DE92.2030500@gmail.com> On 5/6/2011 5:53 AM, Charles Marcus wrote: > ntpdate, which causes large jumps, should only be used at > boot time > BEFORE server processes are started, then ntp CLIENT keeps the systems > clock in sync using tiny increments, usually less than a second. > No, ntpd adjusts the clock frequency to keep the system in close sync with a reliable time source. To work properly, ntpd expects to be a long-running process so it can figure out the local clock drift and properly adjust it. Anyway, drifting off topic here. Bottom line is that your server needs stable time, which ntpd can provide. Exceptions are virtual machines, which have their own time tools, and "personal" devices that sleep/resume frequently, AFAIK no reliable solution for these. -- Noel Jones From zubator at gmail.com Fri May 6 16:03:39 2011 From: zubator at gmail.com (Alexey Eropkin) Date: Fri, 6 May 2011 17:03:39 +0400 Subject: [Dovecot] dovecot+shared folders Message-ID: Hi all. I have dovecot 1.2.15 on debian + mysql+shared folders. My config login_process_size = 128 login_processes_count = 10 login_process_per_connection = no login_max_connections = 3000 login_max_processes_count = 1000 mail_process_size = 1024 protocols = imap imaps pop3 pop3s managesieve protocol managesieve { login_executable = /usr/lib/dovecot/managesieve-login mail_executable = /usr/lib/dovecot/managesieve } disable_plaintext_auth = no log_timestamp = "%Y-%m-%d %H:%M:%S " mail_location = maildir:~ namespace private { separator = / prefix = inbox = yes hidden = no subscriptions = yes } namespace shared { separator = / prefix = shared/%%u/ location = maildir:%%h:INDEX=~/shared/%%u:CONTROL=~/shared/%%u inbox = no hidden = no subscriptions = no list = children } mail_privileged_group = vmail first_valid_uid = 500 last_valid_uid = 50000 first_valid_gid = 500 last_valid_gid = 50000 protocol imap { imap_client_workarounds = outlook-idle mail_plugins = acl imap_acl } protocol pop3 { pop3_uidl_format = %08Xu%08Xv } protocol managesieve { mail_location = mbox:~/ } protocol lda { postmaster_address = postmasterk at chronopay.ru mail_plugin_dir = /usr/lib/dovecot/modules/lda auth_socket_path = /var/run/dovecot/auth-master mail_plugins = acl sieve } auth default { mechanisms = plain login #digest-md5 cram-md5 passdb ldap { args = /etc/dovecot/dovecot-ldap.conf } passdb sql { args = /etc/dovecot/dovecot-sql.conf } #userdb ldap { # args = /etc/dovecot/dovecot-ldap.conf # } userdb static { args = uid=5000 gid=5000 home=/.mail/%d/%n } user = root socket listen { master { path = /var/run/dovecot/auth-master mode = 0660 user = vmail # User running Dovecot LDA group = vmail # Or alternatively mode 0660 + LDA user in this group } client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } } plugin { sieve = ~/.dovecot.sieve sieve_dir=~/sieve acl = vfile acl_shared_dict = file:/.mail/%d/shared-mailboxes.db } And all seems ok, but I cannot understand how to make delet flag per user. If I permit t and e in ACL, users delet message forever for all. -- Software is like sex, it is better when it's free From upendra.gandhi at gmail.com Fri May 6 16:31:44 2011 From: upendra.gandhi at gmail.com (upen) Date: Fri, 6 May 2011 08:31:44 -0500 Subject: [Dovecot] alpine + Maildir In-Reply-To: <4DC39617.2050103@wit.edu.pl> References: <4DC39617.2050103@wit.edu.pl> Message-ID: > on my alpine in pine.conf we have settings: > inbox-path=#md//var/spool/mail/$USER > > and alpine is: > oceanic:~# rpm -qa alpine > alpine-2.02-1.fc14.x86_64 > > and it works. Thanks for helping out. Just want to confirm. Is /var/spool/mail/$USER maildir format or mbox I have read that mailbox location generally used for mbox format. If it is maildir format, then one more question, are you able to see all folders in the maildir or just INBOX using that setting? Thanks, UG 2011/5/6 Bart?omiej Solarz-Nies?uchowski : > W dniu 2011-05-05 23:43, upen pisze: >> >> Hello, >> >> I am trying to configure pine.conf for all users and running into an >> issue. In this setup, Mailbox format is Maildir and Maildir location >> is /Mail/Username/{new,cur,..etc} >> >> First thing required in alpine was patch for maildir and this has >> already been done. After that I have tried setting up >> folder-collection Mail ?#md ../../Mail/username and also tried using >> #mc (not sure which one is correct #md or #mc). Nothing worked. >> >> If maildir support in alpine does not work like it does for mbox then >> I'll have to configure IMAP setings in pine.conf for alpine users. I >> must say that alpine is installed on mail server :). Although IMAP >> setting may work fine, it will prompt user for password initially when >> checking email and while sending first email. I'd like to avoid this >> by using #md or #mc. >> >> If anyone has any useful inputs please let me know. > > on my alpine in pine.conf we have settings: > inbox-path=#md//var/spool/mail/$USER > > and alpine is: > oceanic:~# rpm -qa alpine > alpine-2.02-1.fc14.x86_64 > > and it works. >> >> Thank you! >> UG. > > > -- > Bart?omiej Solarz-Nies?uchowski, Administrator WSISiZ > e-mail: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl > tel. 223486547, fax 223486501 > JID: solarz at jabber.wit.edu.pl > 01-447 Warszawa, ul. Newelska 6, pok?j 404, pon.-pt. 8-16 > Motto - Jak sobie po?cielisz tak sie wy?pisz > > > -- upen, emerge -uD life (Upgrade Life with dependencies) From upendra.gandhi at gmail.com Fri May 6 16:35:40 2011 From: upendra.gandhi at gmail.com (upen) Date: Fri, 6 May 2011 08:35:40 -0500 Subject: [Dovecot] alpine + Maildir In-Reply-To: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> Message-ID: > You can configure Alpine to execute Dovecot's imap binary and talk to it. That makes it work nicely with Dovecot and won't prompt >the user for a password. If you're using v1.x you can run "dovecot --exec-mail imap" and with v2.0 you just need to run "imap". I don't >know specifically what this setting in Alpine is called. I am running dovecot 2.0-0.10.beta6.20100630.el6.x86_64. Now this is new to me that you can call a dovecot-imap binary from alpine but how and where does this setting go is a question for me now. I will try going through pine.conf. Thanks for your advice. ~UG On Fri, May 6, 2011 at 2:11 AM, Timo Sirainen wrote: > On 5.5.2011, at 23.43, upen wrote: > >> If maildir support in alpine does not work like it does for mbox then >> I'll have to configure IMAP setings in pine.conf for alpine users. I >> must say that alpine is installed on mail server :). Although IMAP >> setting may work fine, it will prompt user for password initially when >> checking email and while sending first email. I'd like to avoid this >> by using #md or #mc. > > You can configure Alpine to execute Dovecot's imap binary and talk to it. That makes it work nicely with Dovecot and won't prompt the user for a password. If you're using v1.x you can run "dovecot --exec-mail imap" and with v2.0 you just need to run "imap". I don't know specifically what this setting in Alpine is called. > > -- upen, emerge -uD life (Upgrade Life with dependencies) From Bartlomiej.Solarz-Niesluchowski at wit.edu.pl Fri May 6 16:45:31 2011 From: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl (=?ISO-8859-2?Q?Bart=B3omiej_Solarz-Nies=B3uchowski?=) Date: Fri, 06 May 2011 15:45:31 +0200 Subject: [Dovecot] alpine + Maildir In-Reply-To: References: <4DC39617.2050103@wit.edu.pl> Message-ID: <4DC3FB7B.3010003@wit.edu.pl> W dniu 2011-05-06 15:31, upen pisze: >> on my alpine in pine.conf we have settings: >> inbox-path=#md//var/spool/mail/$USER >> >> and alpine is: >> oceanic:~# rpm -qa alpine >> alpine-2.02-1.fc14.x86_64 >> >> and it works. > Thanks for helping out. Just want to confirm. > > Is /var/spool/mail/$USER maildir format or mbox I have read that > mailbox location generally used for mbox format. maildir > If it is maildir format, then one more question, are you able to see > all folders in the maildir or just INBOX using that setting? folder-collections=Mail #md/Maildir/.mail.[] > Thanks, > UG > > 2011/5/6 Bart?omiej Solarz-Nies?uchowski > : >> W dniu 2011-05-05 23:43, upen pisze: >>> Hello, >>> >>> I am trying to configure pine.conf for all users and running into an >>> issue. In this setup, Mailbox format is Maildir and Maildir location >>> is /Mail/Username/{new,cur,..etc} >>> >>> First thing required in alpine was patch for maildir and this has >>> already been done. After that I have tried setting up >>> folder-collection Mail #md ../../Mail/username and also tried using >>> #mc (not sure which one is correct #md or #mc). Nothing worked. >>> >>> If maildir support in alpine does not work like it does for mbox then >>> I'll have to configure IMAP setings in pine.conf for alpine users. I >>> must say that alpine is installed on mail server :). Although IMAP >>> setting may work fine, it will prompt user for password initially when >>> checking email and while sending first email. I'd like to avoid this >>> by using #md or #mc. >>> >>> If anyone has any useful inputs please let me know. >> on my alpine in pine.conf we have settings: >> inbox-path=#md//var/spool/mail/$USER >> >> and alpine is: >> oceanic:~# rpm -qa alpine >> alpine-2.02-1.fc14.x86_64 >> >> and it works. >>> Thank you! >>> UG. >> >> -- >> Bart?omiej Solarz-Nies?uchowski, Administrator WSISiZ >> e-mail: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl >> tel. 223486547, fax 223486501 >> JID: solarz at jabber.wit.edu.pl >> 01-447 Warszawa, ul. Newelska 6, pok?j 404, pon.-pt. 8-16 >> Motto - Jak sobie po?cielisz tak sie wy?pisz >> >> >> > > -- Bart?omiej Solarz-Nies?uchowski, Administrator WSISiZ e-mail: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl tel. 223486547, fax 223486501 JID: solarz at jabber.wit.edu.pl 01-447 Warszawa, ul. Newelska 6, pok?j 404, pon.-pt. 8-16 Motto - Jak sobie po?cielisz tak sie wy?pisz -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6020 bytes Desc: S/MIME Cryptographic Signature URL: From robert at schetterer.org Fri May 6 16:57:23 2011 From: robert at schetterer.org (Robert Schetterer) Date: Fri, 06 May 2011 15:57:23 +0200 Subject: [Dovecot] IMAP push In-Reply-To: <4DC3D74D.2040804@ofd-z.niedersachsen.de> References: <20110505105843.GA25050@laptop-dg.leere.eu> <4DC3D74D.2040804@ofd-z.niedersachsen.de> Message-ID: <4DC3FE43.1020200@schetterer.org> Am 06.05.2011 13:11, schrieb Marc Patermann: > Hi, > > Dennis Guhl schrieb am 05.05.2011 12:58 Uhr: >> On Thu, May 05, 2011 at 03:53:29PM +0530, Janantha Marasinghe wrote: >>> Im running dovecot v2 and want to know if it supports IMAP push >>> capabilities. >> >> Dovecot supports IMAP IDLE as in RFC 2177 >> (http://tools.ietf.org/html/rfc2177). >> >>> I have a few client who has blackberries, iphones and tabs. >> >> Blackberries are using their own proprietary form of push service in >> conjunction a Blackberry Enterprise Server. None the less they are >> able to use IMAP IDLE like iPhones and other smartphones or tablet PCs. > There ist Z-Push, which I haven't tested, yet. > http://z-push.sourceforge.net/soswp/ > There is even a session called "Connecting mobile Devices with Z-Push > and Zarafa/Dovecot" at the "Mailserver-Konferenz", Berlin 26th of May. > :) > http://www.heinlein-support.de/mailserver-konferenz/2011/vortrag/mobile-geraete-mit-z-push-und-zarafa-dovecot > > > Marc imap push means something like imap lemonade http://www.lemonadeformobiles.com/ which is in the roadmap for dovecot , but not urgent unless there not so many clients using it meanwhile z-push is a good alternative, normally install with apache webserver php on the dovecot server on android use k9 mail as best imap solution ( no need for z-push etc ) dont know about good alternative imap clients vor iphone or blackberry -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From upendra.gandhi at gmail.com Fri May 6 17:36:29 2011 From: upendra.gandhi at gmail.com (upen) Date: Fri, 6 May 2011 09:36:29 -0500 Subject: [Dovecot] alpine + Maildir In-Reply-To: <4DC3FB7B.3010003@wit.edu.pl> References: <4DC39617.2050103@wit.edu.pl> <4DC3FB7B.3010003@wit.edu.pl> Message-ID: >> >> Is /var/spool/mail/$USER maildir format or mbox I have read that >> mailbox location generally used for mbox format. > > maildir >> >> If it is maildir format, then one more question, are you able to see >> all folders in the maildir or just INBOX using that setting? > > folder-collections=Mail #md/Maildir/.mail.[] Thank you very much for the quick confirmation. If I use #md in my configuration then alpine would show below error message [Can't open folder #md../../Maildir/mail/username/: no such folder] So I changed settings as below,(Note: maildir location in dovecot is /Maildir/mail/username and mail gets dropped there so there is no ~Maildir in users home directory) inbox-path=../../Maildir/mail/username/ maildir-location=../Maildir/mail/username folder-collections=Mail /Maildir/mail/username/.[] Now pine does not complain and I can read inbox and see folders, however one issue : [/] as a folder after every other actual folder , as below INBOX ABCD[/] Drafts[/] Queue[/] Saved[/] Sent[/] Trash[/] hello[/] I wonder if there is a way to configure such that [/] folder will not appear as this way user will have to hit tab twice to see next folder. If I hit enter key on [/] then there is nothing inside but a note saying it is a maildirfolder. If I select ABCD then it works as expected. Any idea? Thanks, UG From alietsantiesteban at gmail.com Fri May 6 17:38:53 2011 From: alietsantiesteban at gmail.com (Aliet Santiesteban Sifontes) Date: Fri, 6 May 2011 10:38:53 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: <4DC3D251.4050004@Media-Brokers.com> References: <4DC3D251.4050004@Media-Brokers.com> Message-ID: the configs: [root at n02 ~]# dovecot -n # 2.0.12: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.24.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 6.0 (Santiago) auth_cache_size = 15 M auth_default_realm = test.com auth_mechanisms = plain login auth_worker_max_count = 60 disable_plaintext_auth = no login_greeting = Server ready. mail_fsync = never mail_location = sdbox:~/sdbox:INDEX=/vmail/index/%n mail_plugins = quota zlib managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mbox_write_locks = fcntl mmap_disable = yes namespace { inbox = yes location = prefix = separator = / } passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { autocreate = Sent autocreate2 = Trash autocreate3 = Drafts autocreate4 = Junk autocreate5 = Archives autocreate6 = Templates autosubscribe = Sent autosubscribe2 = Trash autosubscribe3 = Drafts autosubscribe4 = Junk autosubscribe5 = Archives autosubscribe6 = Templates quota = dict:User quota::file:%h/sdbox/dovecot-quota quota_rule = *:storage=250M quota_rule2 = Trash:storage=+50M quota_rule3 = Spam:storage=+25M quota_rule4 = Sent:ignore sieve = ~/.dovecot.sieve sieve_before = /var/vmail/sievescripts/before.d sieve_dir = ~/sieve zlib_save = gz zlib_save_level = 6 } postmaster_address = postmaster at test.com protocols = imap pop3 lmtp sieve service auth { unix_listener auth-userdb { group = vmail mode = 0660 user = root } } service imap-login { service_count = 0 } best regards 2011/5/6 Charles Marcus > On 2011-05-05 7:56 PM, Aliet Santiesteban Sifontes wrote: > > We have used sdbox as mailbox format, and all the user data is configured > in > > LDAP Servers > > It might help Timo to provide some suggestions if you also provide > dovecot -n output... ;) > > -- > > Best regards, > > Charles > From dg at dguhl.org Fri May 6 18:02:26 2011 From: dg at dguhl.org (Dennis Guhl) Date: Fri, 6 May 2011 17:02:26 +0200 Subject: [Dovecot] IMAP push In-Reply-To: <4DC3FE43.1020200@schetterer.org> References: <20110505105843.GA25050@laptop-dg.leere.eu> <4DC3D74D.2040804@ofd-z.niedersachsen.de> <4DC3FE43.1020200@schetterer.org> Message-ID: <20110506150226.GB27485@PC211.ikt.de> On Fri, May 06, 2011 at 03:57:23PM +0200, Robert Schetterer wrote: [..] > >> On Thu, May 05, 2011 at 03:53:29PM +0530, Janantha Marasinghe wrote: > >>> Im running dovecot v2 and want to know if it supports IMAP push > >>> capabilities. [..] > imap push means something like imap lemonade No, the LEMONADE profile (RFC 4550) is a set of extensions for IMAP. The focus is on saving bandwith and CPU while working with email on mobile devices and similar limited items. For this it describes how to handle email without the need to completely download it for replying or forwarding. There is nothing about push mail. Howerver IDLE is mentioned as an additionally extension which must be supportet. If you take a look on the website, you will see the push functionality is only a reference to IMAP IDLE as in RFC 2177. [..] > on android use k9 mail as best imap solution ( no need for z-push etc ) > dont know about good alternative imap clients vor iphone or blackberry I don't know about iPhones IMAP client but the default IMAP client for Blackberries is very good -- even better then K9, which I use on my Android. Dennis From CMarcus at Media-Brokers.com Fri May 6 18:04:26 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Fri, 06 May 2011 11:04:26 -0400 Subject: [Dovecot] alpine + Maildir In-Reply-To: References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> Message-ID: <4DC40DFA.8060209@Media-Brokers.com> On 2011-05-06 9:35 AM, upen wrote: > I am running dovecot 2.0-0.10.beta6.20100630.el6.x86_64 A very early beta of 2.0... first thing on our list of action items is (or should be) to update to the latest stable RELEASE version. -- Best regards, Charles From upendra.gandhi at gmail.com Fri May 6 18:10:15 2011 From: upendra.gandhi at gmail.com (upen) Date: Fri, 6 May 2011 10:10:15 -0500 Subject: [Dovecot] alpine + Maildir In-Reply-To: <4DC40DFA.8060209@Media-Brokers.com> References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> <4DC40DFA.8060209@Media-Brokers.com> Message-ID: On Fri, May 6, 2011 at 10:04 AM, Charles Marcus wrote: > On 2011-05-06 9:35 AM, upen wrote: >> I am running dovecot 2.0-0.10.beta6.20100630.el6.x86_64 > > A very early beta of 2.0... first thing on our list of action items is > (or should be) to update to the latest stable RELEASE version. > Well, this is what RHEL 6 's stable repo currently offers and I want to stick with repo assuming this version is stable on RHEL 6 atleast. yum info dovecot Loaded plugins: downloadonly, rhnplugin Installed Packages Name : dovecot Arch : x86_64 Epoch : 1 Version : 2.0 Release : 0.10.beta6.20100630.el6 Any idea on pine ? I guess there not many alpine users on this list..:) From dovecot.fdop at tagged.lorens.org Fri May 6 18:14:45 2011 From: dovecot.fdop at tagged.lorens.org (Lorens Kockum) Date: Fri, 6 May 2011 17:14:45 +0200 Subject: [Dovecot] May 05 07:20:21 imap: Warning: Time jumped forwards 16 seconds In-Reply-To: <20110505214325.GA27864@tagged.lorens.org> References: <027D893B-1006-415B-8B18-C7C5A38BEBBC@iki.fi> <89819.25453.qm@web27208.mail.ukl.yahoo.com> <20110505214325.GA27864@tagged.lorens.org> <20110506112830.GI22116579@CIS.FU-Berlin.DE> Message-ID: <20110506151445.GA8245@tagged.lorens.org> I did leave a little almost on-purpose dangling hint that got me an off-list query... Since I'm replying, I might as well reply on-list for the record, even if this is getting off-topic. I've just about exhausted my knowledge on the subject, so further questions will probably find a more attentive audience on some NTP list :-) A reader wrote: > You wrote "probably" but isn't it common to sync against a stratum 1 server > having some GPS clock attached? I assume that most computer centers operate > a stratum 1 time server today and stratum of clients should be between > 2 (!) and 5. Most scientific computing centers maybe, but business people probably don't. In my experience most people who run stratum-1 servers impose limitations on their clients, like asking for permission, registering, signing up for their mailing list, running public stratum-2 servers... or being in the same organization as them, which certainly seems to be your case :-) I suppose the most common reason for restrictions like these would be that with more than n clients, the server will start having problems, bandwidth, latency, whatever. Maybe n is a large number, but then again maybe not, after all we're talking about milliseconds. I'm not sure what it would take to run a stratum-1 service with under one hundredth of second of jitter if that service gets used as the default for new Debian or RedHat installs, but I'm quite certain I don't want to pay for the hardware or the bandwidth! Registering for a mailing list is also important when the service is really really important. You don't need to take my word for it: http://support.ntp.org/bin/view/Servers/RulesOfEngagement As for stratum-2 servers, there are lots of public ones with no restrictions other than running a reasonably well-behaved ntp implementation. The difference being synced to a stratum-1 or a stratum-2 is negligeable; and most people who have reasons for milli-second accuracy want it between their own servers. They will run a set of NTP servers, stratum 1, 2 or 3, and sync all of their other servers to them. For many or even most uses it won't matter if they are a several milli-seconds off with respect to some atomic clock as long as they are internally consistent. It is my opinion that someone like the OP, who wants his servers to be on time but who does not seem professionally interested in running an NTP server or in having milli-second accuracy, should not be peering with a stratum-1 server. That is the reason I wrote stratum-3 and not stratum-2 :-) Just to be complete, on the other side of the spectrum, I think we agree that with such a lot of stratum-2 servers to choose from, it seems unnecessary to have a stratum above 5. You'd be at 5 if you sync to your organization's stratum-4 syncing to your ISP's stratum-3 syncing to public stratum-2s... maybe a multi-site organization would run an NTP service for every site, but then they'd probably sync their main servers directly to stratum-2 servers instead of to their ISP, so that'd cancel out. HTH From tss at iki.fi Fri May 6 20:28:04 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 6 May 2011 19:28:04 +0200 Subject: [Dovecot] Delete unused IMAP keywords from permanetflags In-Reply-To: References: Message-ID: On 6.5.2011, at 12.26, Ernesto Revilla Derksen wrote: > I'm using dovecot 2.0.9. Is there already a way to remove unused IMAP > keywords from a folder? I've thought about implementing it, but haven't yet. I thought that maybe it could remove them only when adding a new keyword, or possibly after it hadn't been used for n days (e.g. a month). Also I had thought about adding new IMAP commands to add/remove keywords. From CMarcus at Media-Brokers.com Fri May 6 20:42:45 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Fri, 06 May 2011 13:42:45 -0400 Subject: [Dovecot] alpine + Maildir In-Reply-To: References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> <4DC40DFA.8060209@Media-Brokers.com> Message-ID: <4DC43315.4060708@Media-Brokers.com> On 2011-05-06 11:10 AM, upen wrote: > Well, this is what RHEL 6 's stable repo currently offers Well, if you're not willing to upgrade to at least a reasonably stable RELEASE version, don't be surprised if you get little to no help. I'll never understand this attitude... -- Best regards, Charles From upendra.gandhi at gmail.com Fri May 6 21:08:15 2011 From: upendra.gandhi at gmail.com (upen) Date: Fri, 6 May 2011 13:08:15 -0500 Subject: [Dovecot] alpine + Maildir In-Reply-To: <4DC43315.4060708@Media-Brokers.com> References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> <4DC40DFA.8060209@Media-Brokers.com> <4DC43315.4060708@Media-Brokers.com> Message-ID: On Fri, May 6, 2011 at 12:42 PM, Charles Marcus wrote: > On 2011-05-06 11:10 AM, upen wrote: >> Well, this is what RHEL 6 's stable repo currently offers > > Well, if you're not willing to upgrade to at least a reasonably stable > RELEASE version, don't be surprised if you get little to no help. > > I'll never understand this attitude... All I understand is that the issue I am having is not due to the version of dovecotthat is installed. If I know that this is not working due to beta version then I am willing to upgrade. Thanks for your opinion. From kjonca at o2.pl Fri May 6 23:07:35 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Fri, 06 May 2011 22:07:35 +0200 Subject: [Dovecot] compressed mboxes very slow Message-ID: <87iptnoans.fsf@alfa.kjonca> I have some archive mails in gzipped mboxes. I could use them with dovecot 1.x without problems. But recently I have installed dovecot 2.0.12, and they are slow. very slow. Creating index files takes about 10 minutes for ~20M file with 560 messages for bzipped mbox, for gzipped is little better but still unusable :( Stracing dovecot process shows that every ~ 20 messages it rereads complete mbox file. Am I doing something wrong? KJ -- http://modnebzdury.wordpress.com/2009/10/01/niewiarygodny-list-prof-majewskiej-wprowadzenie/ From pllis at educ.ar Fri May 6 23:14:44 2011 From: pllis at educ.ar (Pablo Luchetti) Date: Fri, 06 May 2011 17:14:44 -0300 Subject: [Dovecot] vacation problem with sieve and sogo Message-ID: <4DC456B4.7000205@educ.ar> Hi, I have a problem with dovecot's sieve and SOGo ( http://www.sogo.nu/ ) I have installed last version of sogo ( 1.3.6) in one virtual machine with ubuntu, lucid. In another virtualmachine with ubuntu jaunty is running dovecot ( 1:1.1.11-0ubuntu4.1 ) When try to activate vacation function, after the "PUTSCRIPT "sogo" command, the manage-sieve answer: NO "Script name 'sogo' is reserved for internal use." And fails. But I found, telneting the mail server on port 2000 that if I change script name, all works fine: SETACTIVE "" OK "No scripts currently active." PUTSCRIPT "prueba" {536+} require ["vacation"]; if allof ( not exists ["list-help", "list-unsubscribe", "list-subscribe", "list-owner", "list-post", "list-archive", "list-id", "Mailing-List"], not header :comparator "i;ascii-casemap" :is "Precedence" ["list", "bulk", "junk"], not header :comparator "i;ascii-casemap" :matches "To" "Multiple recipients of*" ) {vacation :days 1 :addresses ["pluchetti at example.org", "pablo.luchetti at example.org"] text: hoy es 27 de abril de 2011, y estoy probando el nuevo sogo. 10:40 . ; } redirect "pllis at educ.ar"; keep; OK "Putscript completed." SETACTIVE "prueba" OK "Setactive completed." logout OK "Logout completed." Connection closed by foreign host. So, the question is: Why does this happen? How can I fix it ? Any ideas? Here are dovecot's version and config: # dovecot --version 1.1.11 # dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-18-server i686 Ubuntu 9.04 log_path: /var/log/mail/dovecot-msa.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/local/WILD.jil_01+CHAIN.crt ssl_key_file: /etc/ssl/private/WILD.jil_01.key login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_greeting: JIL mail server ready. first_valid_uid: 106 last_valid_uid: 106 first_valid_gid: 112 last_valid_gid: 112 mail_privileged_group: mail mail_uid: vmail mail_gid: vmail mail_location: maildir:~ mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 auth default: mechanisms: plain login user: vmailauth passdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf userdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf socket: type: listen client: path: /var/spool/postfix/private/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: sieve: ~/sieve/s0g0.sieve Thanks!! Pablo. From matt at gr-lakes.com Sat May 7 01:54:05 2011 From: matt at gr-lakes.com (Matt Mc Namara) Date: Fri, 6 May 2011 18:54:05 -0400 (EDT) Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working Message-ID: Hi, I'm trying to get sieve working with dovecot. I seem to have everything enabled but my scripts done seem to work. both sieve-filter (2000) and sieve (4190) are running along with pop3 and imap. I have a simple script which checks the email address and moves it to a folder. I'm at a loss as to what to check next. Thanks in advance, Matt From trish.programmer at gmail.com Sat May 7 05:58:21 2011 From: trish.programmer at gmail.com (Trish) Date: Fri, 06 May 2011 19:58:21 -0700 Subject: [Dovecot] could someone check my conf files for dovecot and postfix In-Reply-To: <4DC4B36D.4090708@gmail.com> References: <4DC4B36D.4090708@gmail.com> Message-ID: <4DC4B54D.3090008@gmail.com> *> dovecot -n* # 1.2.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-31-generic i686 Ubuntu 10.04.2 LTS log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap pop3 imaps pop3s disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login mail_privileged_group: mail mail_location: maildir:~/Maildir mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 auth default: passdb: driver: pam userdb: driver: passwd I get this error in my log May 6 20:33:00 craftboard dovecot: IMAP(support.perlygates.com): mail_location: maildir: Unknown setting: mbox May 6 20:33:00 craftboard dovecot: IMAP(support.perlygates.com): Fatal: Namespace initialization failed I'm not sure what mbox is. But I am using the Maildir/ in conf file Where is mbox set at? From alietsantiesteban at gmail.com Sat May 7 06:01:09 2011 From: alietsantiesteban at gmail.com (Aliet Santiesteban Sifontes) Date: Fri, 6 May 2011 23:01:09 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: References: <4DC3D251.4050004@Media-Brokers.com> Message-ID: New results, now with all plugins disabled: os rhel6 x86_64, GFS2 Lun Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 1- 4514 2189 2250 4514 4264 6163 709 3403 4260 4292 8726 2- 2827 1409 1389 2827 2765 3951 495 2168 2765 2777 5644 3- 2711 1409 1368 2711 2649 3833 512 2145 2647 2662 5396 4- 1799 912 890 1799 1720 2492 360 1370 1719 1735 3592 5- 3817 1869 1896 3760 3717 5313 575 3026 3715 3737 7616 6- 3296 1583 1628 3296 3215 4585 523 2600 3215 3238 6584 2011/5/6 Aliet Santiesteban Sifontes > the configs: > > [root at n02 ~]# dovecot -n > # 2.0.12: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.32-71.24.1.el6.x86_64 x86_64 Red Hat Enterprise Linux > Server release 6.0 (Santiago) > auth_cache_size = 15 M > auth_default_realm = test.com > auth_mechanisms = plain login > auth_worker_max_count = 60 > disable_plaintext_auth = no > login_greeting = Server ready. > mail_fsync = never > mail_location = sdbox:~/sdbox:INDEX=/vmail/index/%n > mail_plugins = quota zlib > managesieve_notify_capability = mailto > managesieve_sieve_capability = fileinto reject envelope encoded-character > vacation subaddress comparator-i;ascii-numeric relational regex imap4flags > copy include variables body enotify environment mailbox date > mbox_write_locks = fcntl > mmap_disable = yes > namespace { > inbox = yes > location = > prefix = > separator = / > } > passdb { > args = /etc/dovecot/dovecot-ldap.conf.ext > driver = ldap > } > plugin { > autocreate = Sent > autocreate2 = Trash > autocreate3 = Drafts > autocreate4 = Junk > autocreate5 = Archives > autocreate6 = Templates > autosubscribe = Sent > autosubscribe2 = Trash > autosubscribe3 = Drafts > autosubscribe4 = Junk > autosubscribe5 = Archives > autosubscribe6 = Templates > quota = dict:User quota::file:%h/sdbox/dovecot-quota > quota_rule = *:storage=250M > quota_rule2 = Trash:storage=+50M > quota_rule3 = Spam:storage=+25M > quota_rule4 = Sent:ignore > sieve = ~/.dovecot.sieve > sieve_before = /var/vmail/sievescripts/before.d > sieve_dir = ~/sieve > zlib_save = gz > zlib_save_level = 6 > } > postmaster_address = postmaster at test.com > protocols = imap pop3 lmtp sieve > service auth { > unix_listener auth-userdb { > group = vmail > mode = 0660 > user = root > } > } > service imap-login { > service_count = 0 > } > > best regards > > > 2011/5/6 Charles Marcus > >> On 2011-05-05 7:56 PM, Aliet Santiesteban Sifontes wrote: >> > We have used sdbox as mailbox format, and all the user data is >> configured in >> > LDAP Servers >> >> It might help Timo to provide some suggestions if you also provide >> dovecot -n output... ;) >> >> -- >> >> Best regards, >> >> Charles >> > > From robert.spam.me.senseless at gmail.com Sat May 7 07:08:07 2011 From: robert.spam.me.senseless at gmail.com (Robert S) Date: Sat, 7 May 2011 14:08:07 +1000 Subject: [Dovecot] Modified dovecot_deleted_to_trash-0.3.ebuild plugin Message-ID: I have just upgraded my gentoo system to dovecot 2.0.11. The ebuild on http://wiki2.dovecot.org/Plugins/deleted-to-trash does not compile. I have modified this to a working version - see below. # cat dovecot_deleted_to_trash-0.3.ebuild EAPI="2" DESCRIPTION="Deleted to trash IMAP plugin for Dovecot" HOMEPAGE="http://wiki2.dovecot.org/Plugins/deleted-to-trash" RESTRICT="nomirror" SRC_URI="http://wiki2.dovecot.org/Plugins/deleted-to-trash?action=AttachFile&do=get&target=deleted-to-trash-plugin_0.3_for_dovecot_2.tar -> ${P}.tar" LICENSE="" KEYWORDS="~amd64 ~x86" SLOT="0" IUSE="" RDEPEND="net-mail/dovecot" src_unpack() { unpack ${A} sed -i "8s|DOVECOT_IMAP_PLUGIN_PATH\ \=\ /usr/lib/dovecot/imap|DOVECOT_IMAP_PLUGIN_PATH\ \=\ /usr/lib/dovecot|" Makefile } src_install() { emake DESTDIR="${D}" install || die } From robert at schetterer.org Sat May 7 09:55:34 2011 From: robert at schetterer.org (Robert Schetterer) Date: Sat, 07 May 2011 08:55:34 +0200 Subject: [Dovecot] IMAP push In-Reply-To: <20110506150226.GB27485@PC211.ikt.de> References: <20110505105843.GA25050@laptop-dg.leere.eu> <4DC3D74D.2040804@ofd-z.niedersachsen.de> <4DC3FE43.1020200@schetterer.org> <20110506150226.GB27485@PC211.ikt.de> Message-ID: <4DC4ECE6.6070607@schetterer.org> Am 06.05.2011 17:02, schrieb Dennis Guhl: > On Fri, May 06, 2011 at 03:57:23PM +0200, Robert Schetterer wrote: > > [..] > >>>> On Thu, May 05, 2011 at 03:53:29PM +0530, Janantha Marasinghe wrote: >>>>> Im running dovecot v2 and want to know if it supports IMAP push >>>>> capabilities. > > [..] > >> imap push means something like imap lemonade > > No, the LEMONADE profile (RFC 4550) is a set of extensions for IMAP. > The focus is on saving bandwith and CPU while working with email on > mobile devices and similar limited items. For this it describes how to > handle email without the need to completely download it for replying > or forwarding. There is nothing about push mail. Howerver IDLE is > mentioned as an additionally extension which must be supportet. > > If you take a look on the website, you will see the push functionality > is only a reference to IMAP IDLE as in RFC 2177. > > [..] > >> on android use k9 mail as best imap solution ( no need for z-push etc ) >> dont know about good alternative imap clients vor iphone or blackberry > > I don't know about iPhones IMAP client but the default IMAP client for > Blackberries is very good -- even better then K9, which I use on my > Android. > > Dennis notice i wrote "like" not "it is" http://www.lemonadeformobiles.com/quick.html --snip 'Push' Email (via IMAP-IDLE) When there is ongoing activity between the client and the server, IMAP will automatically inform the client of the presence of new messages. The IMAP IDLE command, which is a widely implemented standard extension to the core IMAP protocol and contained within the LEMONADE Profile, ensures that the server will inform the client of new messages even when there is no other activity taking place between client and server. IDLE maintains the connection by issuing a 'NOOP' command, usually every 15 minutes, to ensure that the connection isn't disrupted by a timeout. The main types of timeouts that usually occur are: IMAP server timeout: Typically occurs after 30 minutes with no activity. Underlying TCP connection timeout: Usually after a few hours. NAT Gateway timeout: Most mobile devices access the Internet through a device operated by the mobile service provider called a NAT (Network Address Translation) gateway. These will typically time out an idle connection after 15 minutes. NOOP (No Operation) performs no action other than having the server send an 'OK' reply and exchanges a bandwidth efficient few bytes of data. --snip-end -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From stephan at rename-it.nl Sat May 7 10:05:55 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Sat, 07 May 2011 09:05:55 +0200 Subject: [Dovecot] vacation problem with sieve and sogo In-Reply-To: <4DC456B4.7000205@educ.ar> References: <4DC456B4.7000205@educ.ar> Message-ID: <4DC4EF53.2050108@rename-it.nl> On 5/6/2011 10:14 PM, Pablo Luchetti wrote: > Hi, I have a problem with dovecot's sieve and SOGo ( > http://www.sogo.nu/ ) > > I have installed last version of sogo ( 1.3.6) in one virtual machine > with ubuntu, lucid. > In another virtualmachine with ubuntu jaunty is running dovecot ( > 1:1.1.11-0ubuntu4.1 ) > > When try to activate vacation function, after the "PUTSCRIPT "sogo" > command, the manage-sieve answer: > > NO "Script name 'sogo' is reserved for internal use." > plugin: > sieve: ~/sieve/s0g0.sieve > The default for sieve_dir is '~/sieve/', so now you are putting the active script symlink (as configured with sieve=) in the sieve storage. This is never a good idea, because that symlink may be confused with a normal script. To prevent issues, the ManageSieve daemon prevents you from using the symlink as a scriptname. Why did you configure it like that? If you remove the above line, or change it to something sensible, like the default value sieve=~/.dovecot.sieve, it will work normally. Regards, Stephan. From stephan at rename-it.nl Sat May 7 10:31:52 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Sat, 07 May 2011 09:31:52 +0200 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working In-Reply-To: References: Message-ID: <4DC4F568.5070204@rename-it.nl> On 5/7/2011 12:54 AM, Matt Mc Namara wrote: > Hi, > > I'm trying to get sieve working with dovecot. I seem to have > everything enabled but my scripts done seem to work. > both sieve-filter (2000) and sieve (4190) are running > Uh, what do you mean with sieve-filter in this case? Regarding your problem: - Make sure you are using the Dovecot LDA (http://wiki2.dovecot.org/LDA) and/or LMTP (http://wiki2.dovecot.org/LMTP). - Make sure the LDA Sieve plugin is enabled (http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration) - Make sure that the sieve scripts are found. You can obtain more information by enabling mail_debug. If the above does not solve your problem, it is important to post your dovecot -n output here. Regards, Stephan. From dg at dguhl.org Sat May 7 10:47:06 2011 From: dg at dguhl.org (Dennis Guhl) Date: Sat, 7 May 2011 09:47:06 +0200 Subject: [Dovecot] OT: Re: IMAP push In-Reply-To: <4DC4ECE6.6070607@schetterer.org> References: <20110505105843.GA25050@laptop-dg.leere.eu> <4DC3D74D.2040804@ofd-z.niedersachsen.de> <4DC3FE43.1020200@schetterer.org> <20110506150226.GB27485@PC211.ikt.de> <4DC4ECE6.6070607@schetterer.org> Message-ID: <20110507074705.GA4152@laptop-dg.leere.eu> This is going far off topic, let's take it off list. On Sat, May 07, 2011 at 08:55:34AM +0200, Robert Schetterer wrote: > Am 06.05.2011 17:02, schrieb Dennis Guhl: > > On Fri, May 06, 2011 at 03:57:23PM +0200, Robert Schetterer wrote: [..] > >> imap push means something like imap lemonade > > > > No, the LEMONADE profile (RFC 4550) is a set of extensions for IMAP. > > The focus is on saving bandwith and CPU while working with email on > > mobile devices and similar limited items. For this it describes how to > > handle email without the need to completely download it for replying > > or forwarding. There is nothing about push mail. Howerver IDLE is > > mentioned as an additionally extension which must be supportet. > > > > If you take a look on the website, you will see the push functionality > > is only a reference to IMAP IDLE as in RFC 2177. [..] > notice i wrote "like" not "it is" I know what you wrote and it still is not correct. > http://www.lemonadeformobiles.com/quick.html This sounds like my abstract of the LEMONADE profile, just more verbose. [abstract_(peroration)_of_RFC2177] This is the reference to IMAP IDLE I talked about earlier. Dennis From robert at schetterer.org Sat May 7 10:57:25 2011 From: robert at schetterer.org (Robert Schetterer) Date: Sat, 07 May 2011 09:57:25 +0200 Subject: [Dovecot] OT: Re: IMAP push In-Reply-To: <20110507074705.GA4152@laptop-dg.leere.eu> References: <20110505105843.GA25050@laptop-dg.leere.eu> <4DC3D74D.2040804@ofd-z.niedersachsen.de> <4DC3FE43.1020200@schetterer.org> <20110506150226.GB27485@PC211.ikt.de> <4DC4ECE6.6070607@schetterer.org> <20110507074705.GA4152@laptop-dg.leere.eu> Message-ID: <4DC4FB65.3030204@schetterer.org> Am 07.05.2011 09:47, schrieb Dennis Guhl: > This is going far off topic, let's take it off list. > > On Sat, May 07, 2011 at 08:55:34AM +0200, Robert Schetterer wrote: >> Am 06.05.2011 17:02, schrieb Dennis Guhl: >>> On Fri, May 06, 2011 at 03:57:23PM +0200, Robert Schetterer wrote: > > [..] > >>>> imap push means something like imap lemonade >>> >>> No, the LEMONADE profile (RFC 4550) is a set of extensions for IMAP. >>> The focus is on saving bandwith and CPU while working with email on >>> mobile devices and similar limited items. For this it describes how to >>> handle email without the need to completely download it for replying >>> or forwarding. There is nothing about push mail. Howerver IDLE is >>> mentioned as an additionally extension which must be supportet. >>> >>> If you take a look on the website, you will see the push functionality >>> is only a reference to IMAP IDLE as in RFC 2177. > > [..] > >> notice i wrote "like" not "it is" > > I know what you wrote and it still is not correct. > >> http://www.lemonadeformobiles.com/quick.html > > This sounds like my abstract of the LEMONADE profile, just more > verbose. > > [abstract_(peroration)_of_RFC2177] > > This is the reference to IMAP IDLE I talked about earlier. > > Dennis anyway the result should look like push mail to the client , and that might will be the interest thing for the user , no need to flame -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From anfi at onet.eu Sat May 7 15:23:08 2011 From: anfi at onet.eu (Andrzej Adam Filip) Date: Sat, 07 May 2011 14:23:08 +0200 Subject: [Dovecot] Dovecot2 - equivalent of "dovecot --exec-mail imap" with custom configuration file Message-ID: Is it possible in dovecot2 to run "imap via stdin&stdout" *WITH* custom configuration file? http://wiki2.dovecot.org/Upgrading/2.0 * "dovecot --exec-mail imap" has been replaced by simply running "imap" binary. ... -- [pl>en: Andrew] Andrzej Adam Filip : anfi at onet.eu Love is the only game that is not called on account of darkness. -- M. Hirschfield From jcblanco at fi.upm.es Sat May 7 19:32:49 2011 From: jcblanco at fi.upm.es (Juan C. Blanco) Date: Sat, 07 May 2011 18:32:49 +0200 Subject: [Dovecot] Shared mailboxes and acl Message-ID: <4DC57431.1070802@fi.upm.es> Hello, I've finally upgrade to dovecot 2.0.12 and I'm doing some test with shared mailboxes and acl. I've read http://wiki2.dovecot.org/SharedMailboxes/Shared and changed the dovecot config as recommended, I'm using Horde/IMP as imap_acl client Seems that the acl files in user mailbox where updated correctly. I've defined also a shared mailbox dictionary and if I've understood right from the wiki page this file is supposed to be also updated with the imap_acl commands, is this right? In my case this file is never updated, I don't know if this file must have any special format or is a simple text file. Any help will be appreciated Regards Juan C. Blanco From jcblanco at fi.upm.es Sat May 7 20:40:44 2011 From: jcblanco at fi.upm.es (Juan C. Blanco) Date: Sat, 07 May 2011 19:40:44 +0200 Subject: [Dovecot] Shared mailboxes and acl In-Reply-To: <4DC57431.1070802@fi.upm.es> References: <4DC57431.1070802@fi.upm.es> Message-ID: <4DC5841C.1080101@fi.upm.es> On 07/05/2011 18:32, Juan C. Blanco wrote: > Hello, I've finally upgrade to dovecot 2.0.12 and I'm doing some test > with shared mailboxes and acl. > > I've read http://wiki2.dovecot.org/SharedMailboxes/Shared and changed > the dovecot config as recommended, I'm using Horde/IMP as imap_acl client > > Seems that the acl files in user mailbox where updated correctly. > > I've defined also a shared mailbox dictionary and if I've understood > right from the wiki page this file is supposed to be also updated with > the imap_acl commands, is this right? > > In my case this file is never updated, I don't know if this file must > have any special format or is a simple text file. Solved, finally it was a permission problem, I've setup the shared mailbox dict in /var/lib/dovecot/shaed-mailboxes and even I've granted permission to this file to the vamil user there was a problem creating the dotlock when updating the file. I have had to create a directory there and change the owner of it to vmail As I've debug active I was losing the error in the log file. Regards Juan C. Blanco > > Any help will be appreciated > Regards > Juan C. Blanco From dovecot at asheesh.org Sat May 7 21:20:43 2011 From: dovecot at asheesh.org (Asheesh Laroia) Date: Sat, 7 May 2011 14:20:43 -0400 (EDT) Subject: [Dovecot] alpine + Maildir In-Reply-To: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> Message-ID: On Fri, 6 May 2011, Timo Sirainen wrote: > On 5.5.2011, at 23.43, upen wrote: > >> If maildir support in alpine does not work like it does for mbox then >> I'll have to configure IMAP setings in pine.conf for alpine users. I >> must say that alpine is installed on mail server :). Although IMAP >> setting may work fine, it will prompt user for password initially when >> checking email and while sending first email. I'd like to avoid this >> by using #md or #mc. > > You can configure Alpine to execute Dovecot's imap binary and talk to > it. That makes it work nicely with Dovecot and won't prompt the user for > a password. If you're using v1.x you can run "dovecot --exec-mail imap" > and with v2.0 you just need to run "imap". I don't know specifically > what this setting in Alpine is called. This is what I am doing right now. http://www.asheesh.org/note/sysop/passwordless-alpine.html says a little more. I strongly recommend this. In fact, I think I should someday talk to the re-alpine team and figure out how to make this easier to configure. It's already reasonably easy, but it can require some fiddling. -- -- Asheesh. http://asheesh.org/ You're not my type. For that matter, you're not even my species!!! From tss at iki.fi Sat May 7 22:45:57 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 7 May 2011 22:45:57 +0300 Subject: [Dovecot] Dovecot2 - equivalent of "dovecot --exec-mail imap" with custom configuration file In-Reply-To: References: Message-ID: <4C3A74EE-3653-41F8-B0B2-9651D0E63211@iki.fi> On 7.5.2011, at 15.23, Andrzej Adam Filip wrote: > Is it possible in dovecot2 to run "imap via stdin&stdout" *WITH* custom > configuration file? imap -c ~/dovecot.conf From anfi at onet.eu Sun May 8 00:23:31 2011 From: anfi at onet.eu (Andrzej Adam Filip) Date: Sat, 07 May 2011 23:23:31 +0200 Subject: [Dovecot] Dovecot2 - equivalent of "dovecot --exec-mail imap" with custom configuration file In-Reply-To: <4C3A74EE-3653-41F8-B0B2-9651D0E63211@iki.fi> (Timo Sirainen's message of "Sat, 7 May 2011 22:45:57 +0300") References: <4C3A74EE-3653-41F8-B0B2-9651D0E63211@iki.fi> Message-ID: Timo Sirainen wrote: > On 7.5.2011, at 15.23, Andrzej Adam Filip wrote: > >> Is it possible in dovecot2 to run "imap via stdin&stdout" *WITH* custom >> configuration file? > > imap -c ~/dovecot.conf Thank you for promptly filling "the man(page) gap" :-) P.S. Debian testing (whezzy) pushed dovecot-2 on Saturday. I am sure I will praise dovecot-2 a lot next weekend but today I had a lot o small migration glitches to fix :-) [ I have used dovecot in "quite atypical" ways ;-) ] I have a few (non critical) "nuisances" left to fix/ask. -- [pl>en: Andrew] Andrzej Adam Filip : anfi at onet.eu Usually, when a lot of men get together, it's called a war. -- Mel Brooks, "The Listener" From stan at hardwarefreak.com Sun May 8 00:37:53 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Sat, 07 May 2011 16:37:53 -0500 Subject: [Dovecot] compressed mboxes very slow In-Reply-To: <87iptnoans.fsf@alfa.kjonca> References: <87iptnoans.fsf@alfa.kjonca> Message-ID: <4DC5BBB1.1030005@hardwarefreak.com> On 5/6/2011 3:07 PM, Kamil Jo?ca wrote: > > I have some archive mails in gzipped mboxes. I could use them with > dovecot 1.x without problems. > But recently I have installed dovecot 2.0.12, and they are slow. very > slow. > > Creating index files takes about 10 minutes for ~20M file with 560 > messages for bzipped mbox, for gzipped is little better but still > unusable :( What other software, if any, was also upgraded/changed when you upgraded to Dovecot 2.0.12? Libraries? Filesystem? Daemons? What OS/version? Was the OS upgraded? Is this a new machine as well as new software? If so how did you copy the files to the new system? Could they have been mildly corrupted along the way? Did this bad behavior start directly after the upgrade or did 2.0.12 run the zipped mbox files at acceptable speed for a while? Did you add/enable any new Dovecot plugins that you weren't running in 1.2.x? > Stracing dovecot process shows that every ~ 20 messages it rereads > complete mbox file. Can you be a bit more specific here? What do you mean by "rereads complete mbox file"? I'm not a dev, but that sounds suspiciously like an error handling mechanism. I.e. an error occurred while processing, or the file may have changed while processing, so we start over. Could you have a buggy inotify/dnotify or something along those lines? Do you now have something else running say, at the filesystem level, that that is making Dovecot think the file has changed even though it hasn't? Are you zipping these mbox files via a cron job that is running every few seconds instead of every few hours or days? Something is apparently causing Dovecot to reread these files regularly, and I'd guess it's probably not a Dovecot bug. Did you run strace when accessing a non-compressed mbox file for comparison? -- Stan From pllis at educ.ar Sun May 8 02:47:14 2011 From: pllis at educ.ar (Pablo Luchetti) Date: Sat, 07 May 2011 20:47:14 -0300 Subject: [Dovecot] vacation problem with sieve and sogo In-Reply-To: <4DC4EF53.2050108@rename-it.nl> References: <4DC456B4.7000205@educ.ar> <4DC4EF53.2050108@rename-it.nl> Message-ID: <4DC5DA02.5020604@educ.ar> Thanks Stephan, but doesn't work. I try both plugin: sieve: ~/sieve/ and plugin: sieve: ~/.dovecot.sieve But still have message: NO "Script name 'sogo' is reserved for internal use." Regards, Stephan Bosch wrote: > On 5/6/2011 10:14 PM, Pablo Luchetti wrote: >> Hi, I have a problem with dovecot's sieve and SOGo ( >> http://www.sogo.nu/ ) >> >> I have installed last version of sogo ( 1.3.6) in one virtual machine >> with ubuntu, lucid. >> In another virtualmachine with ubuntu jaunty is running dovecot ( >> 1:1.1.11-0ubuntu4.1 ) >> >> When try to activate vacation function, after the "PUTSCRIPT "sogo" >> command, the manage-sieve answer: >> >> NO "Script name 'sogo' is reserved for internal use." > > >> plugin: >> sieve: ~/sieve/s0g0.sieve >> > > The default for sieve_dir is '~/sieve/', so now you are putting the > active script symlink (as configured with sieve=) in the sieve > storage. This is never a good idea, because that symlink may be > confused with a normal script. To prevent issues, the ManageSieve > daemon prevents you from using the symlink as a scriptname. > > Why did you configure it like that? If you remove the above line, or > change it to something sensible, like the default value > sieve=~/.dovecot.sieve, it will work normally. > > Regards, > > Stephan. > From voytek at sbt.net.au Sun May 8 04:03:21 2011 From: voytek at sbt.net.au (Voytek Eymont) Date: Sun, 08 May 2011 11:03:21 +1000 Subject: [Dovecot] exceeded mail_max_userip_connections Message-ID: <54080-SnapperMsg4C0B0CBDC9EB9C5D@[192.168.0.3]> Dumb Q I just got this in my Snapper client log I can't acces server log at this point dovecot 1.x I can access another account OK what it means, what I need do? (is this as I have K-9 client access same mail?) ---------- START MANUAL: 8/5/11 10:55 am RECEIVE: ACCOUNT: voytek SSL: Connection secure. IMAP Server: Maximum number of connections from user+IP exceeded (mail_max_userip_connections) Invalid login. Check username and password. DURATION: 3 END: 8/5/11 10:55 am Voytek Eymont ___ Sent from my iPalm/A with SnapperMail ?? www.snappermail.com From peter at bellfamily.org.uk Sun May 8 04:39:02 2011 From: peter at bellfamily.org.uk (Peter Bell) Date: Sun, 08 May 2011 09:39:02 +0800 Subject: [Dovecot] Building Pigeonhole Message-ID: <4DC5F436.9020001@bellfamily.org.uk> I'm attempting to build Pigeonhole 0.2.3 for use with my Dovecot 2.0.12 installation on Slackware. I've downloaded the sources and unzipped into a folder which sits alongside the folder in which I built Dovecot. When I ./configure, the configuration appears to complete without error. However, when I make, the compiler throws lots of errors all stemming, I believe from its failure to find a set of include files: cmd-vacation.c:4:17: error: lib.h: No such file or directory cmd-vacation.c:5:17: error: str.h: No such file or directory cmd-vacation.c:6:22: error: strfuncs.h: No such file or directory cmd-vacation.c:7:17: error: md5.h: No such file or directory cmd-vacation.c:8:21: error: hostpid.h: No such file or directory cmd-vacation.c:9:26: error: str-sanitize.h: No such file or directory cmd-vacation.c:10:29: error: message-address.h: No such file or directory cmd-vacation.c:11:26: error: message-date.h: No such file or directory cmd-vacation.c:12:20: error: ioloop.h: No such file or directory I believe that these files are all part of the main Dovecot - what am I meant to be doing so that the Pigeonhole build process can find them? Peter. -- ------------------------------------------------------------------- Peter Bell Mob: +63 (0) 9287 340 343 Tagum City, Philippines. Tel: +63 (0) 84 400 5085 email/msn: peter at bellfamily.org.uk Tel: +44 (0) 118 331 0000 From voytek at sbt.net.au Sun May 8 09:09:03 2011 From: voytek at sbt.net.au (Voytek Eymont) Date: Sun, 8 May 2011 17:09:03 +1100 Subject: [Dovecot] exceeded mail_max_userip_connections In-Reply-To: <54080-SnapperMsg4C0B0CBDC9EB9C5D@[192.168.0.3]> References: <54080-SnapperMsg4C0B0CBDC9EB9C5D@[192.168.0.3]> Message-ID: On Sun, May 8, 2011 12:03 pm, Voytek Eymont wrote: > SSL: Connection secure. > IMAP Server: Maximum number of connections from user+IP exceeded > (mail_max_userip_connections) so if I have Squirell logged in all the time, plus K-9 running, plus occasionally use IMAP client on my Palm, how many connections should I allow ? -- Voytek From f.bonnet at esiee.fr Sun May 8 10:25:18 2011 From: f.bonnet at esiee.fr (Frank Bonnet) Date: Sun, 08 May 2011 09:25:18 +0200 Subject: [Dovecot] Building Pigeonhole In-Reply-To: <4DC5F436.9020001@bellfamily.org.uk> References: <4DC5F436.9020001@bellfamily.org.uk> Message-ID: <4DC6455E.7040709@esiee.fr> hello You might include ( -I /usr/.../somewhere/include/dovecot ) Dovecot2 include files at compilation Le 08/05/2011 03:39, Peter Bell a ?crit : > I'm attempting to build Pigeonhole 0.2.3 for use with my Dovecot 2.0.12 > installation on Slackware. > > I've downloaded the sources and unzipped into a folder which sits > alongside the folder in which I built Dovecot. > > When I ./configure, the configuration appears to complete without error. > However, when I make, the compiler throws lots of errors all stemming, I > believe from its failure to find a set of include files: > > cmd-vacation.c:4:17: error: lib.h: No such file or directory > cmd-vacation.c:5:17: error: str.h: No such file or directory > cmd-vacation.c:6:22: error: strfuncs.h: No such file or directory > cmd-vacation.c:7:17: error: md5.h: No such file or directory > cmd-vacation.c:8:21: error: hostpid.h: No such file or directory > cmd-vacation.c:9:26: error: str-sanitize.h: No such file or directory > cmd-vacation.c:10:29: error: message-address.h: No such file or directory > cmd-vacation.c:11:26: error: message-date.h: No such file or directory > cmd-vacation.c:12:20: error: ioloop.h: No such file or directory > > I believe that these files are all part of the main Dovecot - what am I > meant to be doing so that the Pigeonhole build process can find them? > > Peter. > From cb at lim.nl Sun May 8 12:56:17 2011 From: cb at lim.nl (Colin Brace) Date: Sun, 8 May 2011 02:56:17 -0700 (PDT) Subject: [Dovecot] sieve filters not being invoked Message-ID: <31569757.post@talk.nabble.com> Hi all, Similar to someone who posted here yesterday, I am having trouble getting sieve filters working. I have installed pigeonhole. I can create, edit, and save scripts from both the Thunderbird sieve extension as well as the Roundcube sieve plugin via managesieve running on port 4190. The .sieve file is properly saved in ~/sieve with a symlink from ~/.dovecot.sieve. But the filters are not being invoked on incoming mail. I have mail_debug enabled, but I don't see anything useful in /var/log/dovecot. Anyone have any ideas? Thanks $ dovecot -n # 2.0.11: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 8.1-RELEASE amd64 ufs auth_verbose = yes base_dir = /var/run/dovecot/ disable_plaintext_auth = no first_valid_gid = 0 info_log_path = /var/log/dovecot log_path = /var/log/dovecot mail_access_groups = mail mail_debug = yes mail_location = maildir:/home/colin/vmail/%d/%n managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date passdb { args = /usr/local/etc/dovecot-passwd driver = passwd-file } plugin/sieve = ~/.dovecot.sieve plugin/sieve_dir = ~/sieve plugin/sieve_global_dir = /var/lib/dovecot/sieve/global/ plugin/sieve_global_path = /var/lib/dovecot/sieve/default.sieve protocols = imap sieve service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-master { group = mail mode = 0660 user = vmail } user = root } service imap-login { executable = /usr/local/libexec/dovecot/imap-login vsz_limit = 64 M } service managesieve-login { inet_listener sieve { port = 4190 } } service pop3-login { executable = /usr/local/libexec/dovecot/imap-login vsz_limit = 64 M } ssl_cert = OK, So what you people say is : 1. Run "ntpdate" during startup only once 2. After that, keep time with ntpd Right ? Regards, spyros ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From kjonca at o2.pl Sun May 8 13:21:27 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Sun, 08 May 2011 12:21:27 +0200 Subject: [Dovecot] compressed mboxes very slow References: <87iptnoans.fsf@alfa.kjonca> <4DC5BBB1.1030005@hardwarefreak.com> Message-ID: <87vcxla3x4.fsf@alfa.kjonca> Stan Hoeppner writes: > On 5/6/2011 3:07 PM, Kamil Jo?ca wrote: >> >> I have some archive mails in gzipped mboxes. I could use them with >> dovecot 1.x without problems. >> But recently I have installed dovecot 2.0.12, and they are slow. very >> slow. >> >> Creating index files takes about 10 minutes for ~20M file with 560 >> messages for bzipped mbox, for gzipped is little better but still >> unusable :( > > What other software, if any, was also upgraded/changed when you > upgraded to Dovecot 2.0.12? Libraries? Filesystem? Daemons? What IIRC only dovecot - I simply upgrade debian package via aptitude. > they have been mildly corrupted along the way? Did this bad behavior > start directly after the upgrade or did 2.0.12 run the zipped mbox Yes, immediately after upgrade. > files at acceptable speed for a while? Did you add/enable any new > Dovecot plugins that you weren't running in 1.2.x? > No, the only thing was converting old config to dovecot-2 config. >> Stracing dovecot process shows that every ~ 20 messages it rereads >> complete mbox file. > > Can you be a bit more specific here? What do you mean by "rereads > complete mbox file"? I'm not a dev, but that sounds suspiciously like Sorry, my fault, more correctly is to say: "regularly". > an error handling mechanism. I.e. an error occurred while processing, > or the file may have changed while processing, so we start over. I'm almost sure that file is not changed. > Could you have a buggy inotify/dnotify or something along those lines? How to check it? > Do you now have something else running say, at the filesystem level, > that that is making Dovecot think the file has changed even though it > hasn't? Are you zipping these mbox files via a cron job that is > running every few seconds instead of every few hours or days? No. These files were compressed once by mutt, and then only read as archive via dovecot. > > Something is apparently causing Dovecot to reread these files > regularly, and I'd guess it's probably not a Dovecot bug. Did you run > strace when accessing a non-compressed mbox file for comparison? http://strony.aster.pl/kjonca/dovecot.log.gz <- uncompressed mbox http://strony.aster.pl/kjonca/dovecot.gz.log.gz <- gzipped mbox KJ -- http://blogdebart.pl/2009/12/22/mamy-chorych-dzieci/ KRETYNIZM - u?omno?? predysponuj?ca cz?sto do wampiryzmu (J.Collin de Plancy "S?ownik wiedzy tajemnej") From dovecot.user at seibercom.net Sun May 8 13:45:01 2011 From: dovecot.user at seibercom.net (Jerry) Date: Sun, 8 May 2011 06:45:01 -0400 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <710190.16207.qm@web27203.mail.ukl.yahoo.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> Message-ID: <20110508064501.52e96775@scorpio> On Sun, 8 May 2011 11:07:04 +0100 (BST) Spyros Tsiolis articulated: > So what you people say is : > > 1. Run "ntpdate" during startup only once > 2. After that, keep time with ntpd As I posted earlier using the technique I showed, on a FreeBSD system, there would be absolutely no reason to do so; however, I cannot vouch for that on other systems. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From dovecot.fdop at tagged.lorens.org Sun May 8 14:53:12 2011 From: dovecot.fdop at tagged.lorens.org (Lorens Kockum) Date: Sun, 8 May 2011 13:53:12 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <20110508064501.52e96775@scorpio> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <20110508064501.52e96775@scorpio> Message-ID: <20110508115312.GA28585@tagged.lorens.org> On Sun, May 08, 2011 at 06:45:01AM -0400, Jerry wrote: > On Sun, 8 May 2011 11:07:04 +0100 (BST) > Spyros Tsiolis articulated: > > > So what you people say is : > > > > 1. Run "ntpdate" during startup only once > > 2. After that, keep time with ntpd > > As I posted earlier using the technique I showed, on a FreeBSD system, > there would be absolutely no reason to do so; however, I cannot vouch > for that on other systems. Right. As for running ntpdate, the years have passed and the debian manual now says: -g Normally, ntpd exits with a message to the system log if the offset exceeds the panic threshold, which is 1000 s by default. This option allows the time to be set to any value without restriction; however, this can happen only once. If the threshold is exceeded after that, ntpd will exit with a message to the system log. This option can be used with the -q and -x options. -q Exit the ntpd just after the first time the clock is set. This behavior mimics that of the ntpdate program, which is to be retired. So, ntpdate is to be retired. In boot scripts either simply run ntpd -g or, probably better: ntpd -gqx ntpd In FreeBSD, AFAICS, setting ntpd_enable="YES" # Start time server ntpd_sync_on_start="YES" # Synchronize on start in /etc/rc.d corresponds to the second of the two, at least as of FreeBSD 6.4, since before 6.4 the -x was apparently missing, which would not correct big offsets, see: http://lists.freebsd.org/pipermail/freebsd-bugs/2009-March/034439.html From japc at co.sapo.pt Sun May 8 15:36:46 2011 From: japc at co.sapo.pt (Jose Celestino) Date: Sun, 08 May 2011 13:36:46 +0100 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <710190.16207.qm@web27203.mail.ukl.yahoo.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> Message-ID: <1304858206.3374.7.camel@morgoth> On Dom, 2011-05-08 at 11:07 +0100, Spyros Tsiolis wrote: > OK, > > So what you people say is : > > 1. Run "ntpdate" during startup only once > 2. After that, keep time with ntpd > > Right ? > Right, that ensures that time is correct (ntpdate run at startup) and that it is kept correct without the clock going back (ntp running as daemon). -- Jose Celestino | http://japc.uncovering.org/files/japc-pgpkey.asc ---------------------------------------------------------------- "Assumption is the Mother of Screw-Up" -- Mr. John Elwood Hale From nebano at gmail.com Sun May 8 16:17:46 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Sun, 8 May 2011 15:17:46 +0200 Subject: [Dovecot] mail_max_lock_timeout setup Message-ID: hi all in wich section most mail_max_lock_timeout be set up? Thanks. From matt at gr-lakes.com Sun May 8 16:50:24 2011 From: matt at gr-lakes.com (Matt Mc Namara) Date: Sun, 8 May 2011 09:50:24 -0400 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working References: <4DC4F568.5070204@rename-it.nl> Message-ID: <2895CA51FD8B45F0B15340E98A94FE23@HPDC7600> Thanks for your response. Regarding the ports, I was referring to the services. Which I verified they are running. What would cause the scripts to run but do nothing? service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } the LDA is enabled and the changes have been made to sendmail. I created a new sendmail.cf file and the added lines are in there. When I receive an email the .dovecot.sieve is executed but does nothing. I've attached the output of dovecot -n. # 2.0.12: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.35.12-88.fc14.i686 i686 Fedora release 14 (Laughlin) auth_mechanisms = plain login disable_plaintext_auth = no listen = * mail_location = mbox:~/mail:INBOX=/var/mail/%u mail_privileged_group = mail maildir_very_dirty_syncs = yes mbox_write_locks = fcntl passdb { driver = pam } service imap-login { inet_listener imap { port = 143 } } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { ssl = no } } ssl_cert = To: Sent: Saturday, May 07, 2011 3:31 AM Subject: Re: [Dovecot] DOVECOT v2.0.11 using SIEVE not working > On 5/7/2011 12:54 AM, Matt Mc Namara wrote: >> Hi, >> >> I'm trying to get sieve working with dovecot. I seem to have everything >> enabled but my scripts done seem to work. > > >> both sieve-filter (2000) and sieve (4190) are running >> > Uh, what do you mean with sieve-filter in this case? > > Regarding your problem: > - Make sure you are using the Dovecot LDA > (http://wiki2.dovecot.org/LDA) and/or LMTP > (http://wiki2.dovecot.org/LMTP). > - Make sure the LDA Sieve plugin is enabled > (http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration) > - Make sure that the sieve scripts are found. You can obtain more > information by enabling mail_debug. > > If the above does not solve your problem, it is important to post your > dovecot -n output here. > > Regards, > > Stephan. From mark at msapiro.net Sun May 8 18:09:10 2011 From: mark at msapiro.net (Mark Sapiro) Date: Sun, 08 May 2011 08:09:10 -0700 Subject: [Dovecot] exceeded mail_max_userip_connections In-Reply-To: References: <54080-SnapperMsg4C0B0CBDC9EB9C5D@[192.168.0.3]> Message-ID: <4DC6B216.6080900@msapiro.net> On 11:59 AM, Voytek Eymont wrote: > > On Sun, May 8, 2011 12:03 pm, Voytek Eymont wrote: > >> SSL: Connection secure. >> IMAP Server: Maximum number of connections from user+IP exceeded >> (mail_max_userip_connections) > > so if I have Squirell logged in all the time, plus K-9 running, plus > occasionally use IMAP client on my Palm, how many connections should I > allow ? As many as one per client per subscribed folder, but ... Possibly Squirell is using a different IP (localhost, 127.0.0.1) and doesn't count. I suspect the issue is with K-9. I had similar issues with older versions of K-9. They went away at some point. I'm currently using K-9 3.604. If you are using an older version of K-9, particularly a 2.xxx version, I suggest you upgrade. -- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan From noeldude at gmail.com Sun May 8 18:20:08 2011 From: noeldude at gmail.com (Noel) Date: Sun, 08 May 2011 10:20:08 -0500 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <710190.16207.qm@web27203.mail.ukl.yahoo.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> Message-ID: <4DC6B4A8.7050602@gmail.com> On 5/8/2011 5:07 AM, Spyros Tsiolis wrote: > OK, > > So what you people say is : > > 1. Run "ntpdate" during startup only once > 2. After that, keep time with ntpd > > Right ? Yes, or run ntpd with the -g option. You don't want to use the -x option (as some might have suggested) as that can cause ntpd to take up to 2 weeks to synchronize the time. Detailed ntp setup is OT for this list, but make sure your ntp.conf lists at least three servers. Typically the ntp.org pool servers will work fine, eg. server 0.uk.pool.ntp.org server 1.uk.pool.ntp.org server 2.uk.pool.ntp.org server 3.uk.pool.ntp.org Then once in a while make sure ntp is running and syncronised. I like "ntpq -p" which will show the peerlist with a "*" next to the current master. ntpd works best on a long-running server, and typically shouldn't be used on a virtual server. Virtual environments have their own time service. -- Noel Jones From stan at hardwarefreak.com Sun May 8 20:25:11 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Sun, 08 May 2011 12:25:11 -0500 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <710190.16207.qm@web27203.mail.ukl.yahoo.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> Message-ID: <4DC6D1F7.7050103@hardwarefreak.com> On 5/8/2011 5:07 AM, Spyros Tsiolis wrote: > > OK, > > So what you people say is : > > 1. Run "ntpdate" during startup only once > 2. After that, keep time with ntpd > > Right ? When running ntpd don't run ntpdate at startup, or any time. Use one or the other, not both (if you incorrectly use both, ntpdate will throw off drift calculations in ntpd). This is the proper setup for bare metal hosts. I didn't pay attention to earlier posts in this thread. So, if you're talking about a guest running inside a virtual machine then the setup is entirely different, and may vary depending on your underlying hypervisor and other factors. -- Stan From kevingoodsell.lists at gmail.com Sun May 8 20:30:33 2011 From: kevingoodsell.lists at gmail.com (Kevin Goodsell) Date: Sun, 8 May 2011 10:30:33 -0700 Subject: [Dovecot] Issues with authentication failure delays Message-ID: There are two rather clear issues with the state of authentication failure delays. First, the delay length isn't what was (presumably) intended. Second, there is a new way of doing failure delays in Dovecot 2 which was added *in addition to* the old method, rather than replacing it. As a result delays may not be the expected length and settings don't have the expected effect. First, the length of the failure delays. Based on auth/auth-penalty.c and auth/auth-penalty.h, it seems rather clear that the delay time (for the newer type of failure delay) was intended to start at 2 seconds and double for each failure (see auth_penalty_to_secs), but be capped at 15 seconds. However, a simple test which tries to log in 5 times with a random password and times each attempt shows something different: $ cat authtest.py import imaplib import time import random conn = imaplib.IMAP4('localhost') for i in range(5): try: start = time.time() conn.login('testusers', str(random.random())) except Exception, e: print e print time.time() - start $ python authtest.py [AUTHENTICATIONFAILED] Authentication failed. 0.502058982849 [AUTHENTICATIONFAILED] Authentication failed. 4.50464391708 [AUTHENTICATIONFAILED] Authentication failed. 8.50679802895 [AUTHENTICATIONFAILED] Authentication failed. 15.5040819645 [AUTHENTICATIONFAILED] Authentication failed. 15.5039038658 (Note that these results are with auth_failure_delay set to 0, more on that in a bit.) Aside from the extra half second on each attempt (which I have no clue about), there is no delay on the first attempt. Subsequent delays seem to have the correct timing. I *think* this is because auth_penalty_lookup is called from auth_request_handler_auth_begin, that is, at the *beginning* of an authentication attempt, therefore not affecting the first failed attempt. This may be too minor an issue to worry much about, but it certainly looks to me like it's not doing quite what was intended. Moving on to the second issue. Revision fbff8ca77d2e added a new style of authentication failure delay, but left the existing failure delay mechanism in place. The old failure delay uses the auth_failure_delay setting, and could be disabled by using a value of 0 for that setting. Its remnants are in auth/auth-request-handler.c in the function auth_request_handler_flush_failures. It looks like much of the code in that file could be removed or simplified by eliminating this older failure delay system. Better still, I would like to see the auth_failure_delay setting retained and used in the new system. The value of the setting could be used in place of AUTH_PENALTY_INIT_SECS, allowing similar configurability to what the old system offered. -Kevin From stan at hardwarefreak.com Sun May 8 20:39:28 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Sun, 08 May 2011 12:39:28 -0500 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <1304858206.3374.7.camel@morgoth> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> Message-ID: <4DC6D550.7000406@hardwarefreak.com> On 5/8/2011 7:36 AM, Jose Celestino wrote: > On Dom, 2011-05-08 at 11:07 +0100, Spyros Tsiolis wrote: >> OK, >> >> So what you people say is : >> >> 1. Run "ntpdate" during startup only once >> 2. After that, keep time with ntpd >> >> Right ? >> > > Right, that ensures that time is correct (ntpdate run at startup) and > that it is kept correct without the clock going back (ntp running as > daemon). This is not correct. You're assuming that ntpd doesn't perform sanity checks on the system time when the daemon starts, which is not the case. Again, use ntpd or ntpdate, not both. Preferably, today, in 2011, and for many years now, only use ntpd, except in guests sitting atop a hypervisor. In the virtual environment case you run ntpd in the hypervisor and configure the guest kernels appropriately. There is a plethora of platform specific documentation out there covering the VM time keeping case so I won't attempt to repeat it all here, except to say that with Linux the first/best step is running a tickless kernel, which is now the default on many distros, as it helps both laptops/netbooks when in sleep mode and VM guests when they get time sliced into what is in essence a sleep state as far as the kernel sees system clock ticks. -- Stan From smt at vgersoft.com Sun May 8 20:41:45 2011 From: smt at vgersoft.com (Steve Thompson) Date: Sun, 8 May 2011 13:41:45 -0400 (EDT) Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <4DC6D1F7.7050103@hardwarefreak.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <4DC6D1F7.7050103@hardwarefreak.com> Message-ID: On Sun, 8 May 2011, Stan Hoeppner wrote: > On 5/8/2011 5:07 AM, Spyros Tsiolis wrote: > So, if you're talking about a guest running inside a virtual machine > then the setup is entirely different, and may vary depending on your > underlying hypervisor and other factors. Certainly I run ntpd on all my KVM-based virtual machines, since KVM provides each guest with a virtualized hardware clock. With Xen, this can also be done if using a Xen-enabled kernel in the guest, using the Xen independent wallclock. Otherwise you usually have to run ntpdate periodically through cron. Steve From stan at hardwarefreak.com Sun May 8 21:57:05 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Sun, 08 May 2011 13:57:05 -0500 Subject: [Dovecot] compressed mboxes very slow In-Reply-To: <87vcxla3x4.fsf@alfa.kjonca> References: <87iptnoans.fsf@alfa.kjonca> <4DC5BBB1.1030005@hardwarefreak.com> <87vcxla3x4.fsf@alfa.kjonca> Message-ID: <4DC6E781.60503@hardwarefreak.com> On 5/8/2011 5:21 AM, Kamil Jo?ca wrote: > Stan Hoeppner writes: > >> On 5/6/2011 3:07 PM, Kamil Jo?ca wrote: >>> >>> I have some archive mails in gzipped mboxes. I could use them with >>> dovecot 1.x without problems. >>> But recently I have installed dovecot 2.0.12, and they are slow. very >>> slow. >>> >>> Creating index files takes about 10 minutes for ~20M file with 560 >>> messages for bzipped mbox, for gzipped is little better but still >>> unusable :( >> >> What other software, if any, was also upgraded/changed when you >> upgraded to Dovecot 2.0.12? Libraries? Filesystem? Daemons? What > > IIRC only dovecot - I simply upgrade debian package via aptitude. The latest Debian stable dovecot package is 1.2.15-4. If 'aptitude upgrade' pulled 2.0.12 then you are running either testing or unstable, or you're using non-official mirrors. Either way, you can expect to have some problems. Also, you probably need to be asking on debian-user or asking the maintainers directly. And you need to be able to give them an actual bug report. I'm guessing the problem is Debian specific and not vanilla Dovecot 2.0.12 specific. Timo hasn't responded to you yet, which may be a good indication of this. >> they have been mildly corrupted along the way? Did this bad behavior >> start directly after the upgrade or did 2.0.12 run the zipped mbox > Yes, immediately after upgrade. Look at your aptitude and/or dkpg logs to see what other packages, if any, got upgraded/replaced when you installed dovecot. >> files at acceptable speed for a while? Did you add/enable any new >> Dovecot plugins that you weren't running in 1.2.x? >> > No, the only thing was converting old config to dovecot-2 config. > >>> Stracing dovecot process shows that every ~ 20 messages it rereads >>> complete mbox file. >> >> Can you be a bit more specific here? What do you mean by "rereads >> complete mbox file"? I'm not a dev, but that sounds suspiciously like > > Sorry, my fault, more correctly is to say: "regularly". > >> an error handling mechanism. I.e. an error occurred while processing, >> or the file may have changed while processing, so we start over. > > I'm almost sure that file is not changed. It probably didn't, given the fact that Dovecot won't write to zipped mbox files, period. But if you have a broken inotify/dnotify setup it may appear to Dovecot that the file has changed. Such things are common with testing/unstable distros. Changes to the kernel, APIs, and apps occur rapidly. Such distros are meant for developers and end users with the knowledge and ability to file concise bug reports after identifying problems. Inotify may not be the problem at all, but it seems a possibility given that Dovecot is apparently stopping decompression and rereading the file multiple times until finished. I've not looked at the Dovecot source, but this seems a likely cause of the reread. >> Could you have a buggy inotify/dnotify or something along those lines? > How to check it? If you're running testing/unstable you should already know how to check this. Inotify is a kernel API. For Debian Dovecot to use inotify it must be compiled with the build option 'notify=inotify'. You'll need to see the package maintainer's build script. You'll also need to look at the kernel .config used to build your kernel as inotify must be built into your kernel. >> Do you now have something else running say, at the filesystem level, >> that that is making Dovecot think the file has changed even though it >> hasn't? Are you zipping these mbox files via a cron job that is >> running every few seconds instead of every few hours or days? > No. These files were compressed once by mutt, and then only read as > archive via dovecot. Was mutt upgraded along with dovecot when you ran 'aptitude --safe upgrade'? Have you tested any other IMAP client such as Thunderbird to eliminate mutt as the cause of the problem? >> Something is apparently causing Dovecot to reread these files >> regularly, and I'd guess it's probably not a Dovecot bug. Did you run >> strace when accessing a non-compressed mbox file for comparison? > > http://strony.aster.pl/kjonca/dovecot.log.gz<- uncompressed mbox > http://strony.aster.pl/kjonca/dovecot.gz.log.gz<- gzipped mbox I didn't ask for the files but the results of your analysis. This is your system and it's your job to troubleshoot it. I'm simply trying to assist you in your efforts. If this is a production system I suggest you downgrade to your previous Dovecot version that was working properly, then build a test rig to troubleshoot this. If that's not in your cards, I suggest sticking with Debian Stable and newer Dovecot backports as they become available. -- Stan From Harlan.Stenn at pfcs.com Sun May 8 22:58:30 2011 From: Harlan.Stenn at pfcs.com (Harlan Stenn) Date: Sun, 08 May 2011 15:58:30 -0400 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <710190.16207.qm@web27203.mail.ukl.yahoo.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> Message-ID: <20110508195830.600732844C@gwc.pfcs.com> Spyros wrote > OK, > > So what you people say is : > > 1. Run "ntpdate" during startup only once > 2. After that, keep time with ntpd > > Right ? https://support.ntp.org/bin/view/Support/StartingNTP4 says: - Start ntd as early as possible - - "ntpd -g ..." is better than "ntpdate ... ; ntpd ..." - Wait before starting time-sensitive services - - As last as possible in the boot sequence, run 'ntp-wait -v', and start time-sensitive services after it successfully returns. I'm fairly certain the above is excellent advice, and BCP. H From voytek at sbt.net.au Mon May 9 06:16:49 2011 From: voytek at sbt.net.au (Voytek Eymont) Date: Mon, 9 May 2011 14:16:49 +1100 Subject: [Dovecot] exceeded mail_max_userip_connections In-Reply-To: References: Message-ID: <8bb7ea15b730bbbd456b06aa8606203f.squirrel@sbt.net.au> On Mon, May 9, 2011 11:51 am, Mark Sapiro wrote: > Voytek Eymont wrote: >> I thought it was 3.6x, I installed off market abt one week ago > If you got it a week ago from the market, it's probably 3.604. thanks, 3.605 -- Voytek From per at computer.org Mon May 9 09:28:38 2011 From: per at computer.org (Per Jessen) Date: Mon, 09 May 2011 08:28:38 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <4DC6D1F7.7050103@hardwarefreak.com> Message-ID: Stan Hoeppner wrote: > On 5/8/2011 5:07 AM, Spyros Tsiolis wrote: >> >> OK, >> >> So what you people say is : >> >> 1. Run "ntpdate" during startup only once >> 2. After that, keep time with ntpd >> >> Right ? > > When running ntpd don't run ntpdate at startup, or any time. Use one > or the other, not both (if you incorrectly use both, ntpdate will > throw off drift calculations in ntpd). This is the proper setup for > bare metal hosts. The usual setup is to do exactly that though - ntpdate (now sntp) at startup to make sure the initial setting is reasonable, then ntpd to keep it in sync. /Per Jessen, Z?rich From per at computer.org Mon May 9 09:31:17 2011 From: per at computer.org (Per Jessen) Date: Mon, 09 May 2011 08:31:17 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> Message-ID: Stan Hoeppner wrote: > On 5/8/2011 7:36 AM, Jose Celestino wrote: >> On Dom, 2011-05-08 at 11:07 +0100, Spyros Tsiolis wrote: >>> OK, >>> >>> So what you people say is : >>> >>> 1. Run "ntpdate" during startup only once >>> 2. After that, keep time with ntpd >>> >>> Right ? >>> >> >> Right, that ensures that time is correct (ntpdate run at startup) and >> that it is kept correct without the clock going back (ntp running as >> daemon). > > This is not correct. You're assuming that ntpd doesn't perform sanity > checks on the system time when the daemon starts, which is not the > case. The sanity check may be disabled with -g in which case using ntpdate/sntp/ntpd -q at start up becomes pointless. /Per Jessen, Z?rich From lists at luigirosa.com Mon May 9 09:36:24 2011 From: lists at luigirosa.com (Luigi Rosa) Date: Mon, 09 May 2011 08:36:24 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <20110508195830.600732844C@gwc.pfcs.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <20110508195830.600732844C@gwc.pfcs.com> Message-ID: <4DC78B68.60704@luigirosa.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Harlan Stenn said the following on 08/05/11 21:58: > - Start ntd as early as possible > - - "ntpd -g ..." is better than "ntpdate ... ; ntpd ..." > - Wait before starting time-sensitive services > - - As last as possible in the boot sequence, run 'ntp-wait -v', and > start time-sensitive services after it successfully returns. What happens if the server starts with a date very far in the past due to hardware clock reset or something like that? I mean: if a Linux starts with the hardware clock set to 1/1/2000 how much does it take to get the real date? I'm asking for curiosity, never tried this scenario. Ciao, luigi - -- / +--[Luigi Rosa]-- \ All in all it's just another brick in the wall... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3Hi2UACgkQ3kWu7Tfl6ZSCvwCfVP1yO2lI+QANxqwhrYry1ipW vjYAni8rivcpirUCy63k6IIts2K4Hdls =2Ob0 -----END PGP SIGNATURE----- From stsiol at yahoo.co.uk Mon May 9 10:31:18 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Mon, 9 May 2011 08:31:18 +0100 (BST) Subject: [Dovecot] dovecot user lost entire folder Message-ID: <918853.10927.qm@web27203.mail.ukl.yahoo.com> Hello kind people, OK, today is a bad day for me. A user from a clients' site called early in the morning to inform me that she lost an entire folder on thunderbird with (naturally) important stuff in it. I am trying to find the lost folder, but there is nowhere to be found. Any ideas would greatly appreciated. Regards, Spyros "dovecot -n" : ------------------------------------------------- # 1.2.16: /etc/dovecot/dovecot.conf # OS: Linux 2.6.18-194.17.4.el5 i686 CentOS release 5.5 (Final) ext3 base_dir: /var/run/dovecot/ log_path: /var/log/dovecot/dovecot.log info_log_path: /var/log/dovecot/dovecot-info.log ssl_parameters_regenerate: 48 verbose_ssl: yes login_dir: /var/run/dovecot//login login_executable: /usr/local/dovecot/libexec/dovecot/imap-login login_greeting: * Dovecot ready * login_max_processes_count: 64 mail_location: maildir:/var/MailRoot/domains/%d/%n/Maildir mail_plugins: zlib auth default: verbose: yes debug: yes debug_passwords: yes passdb: driver: passwd-file args: /etc/dovecot/passwd passdb: driver: pam userdb: driver: static args: uid=vmail gid=vmail home=/home/vmail/%u userdb: driver: passwd ------------------------------------------------- ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From helge at monsternett.no Mon May 9 10:44:58 2011 From: helge at monsternett.no (Helge Milde) Date: Mon, 9 May 2011 09:44:58 +0200 Subject: [Dovecot] Renaming maildir files, UIDs and mail clients Message-ID: <20110509074458.GA31982@monsternett.no> Hi! First a little background: I'm thinking of compressing my Maildir's using dovecot's zlib support, and have run into a couple of problems. First of all, my files use the following formats: 1. 1260386673.000002.mbox:2,S 2. 1304920966.M241434P17342.mail,W=3152:2,S As you can see, both lack the S= "basename flag", but the latter does have W=. Reading http://wiki.dovecot.org/Plugins/Zlib, I get the impression that I really need S= in the filenames (".. otherwise there will be problems with quota calculation as well as other potential random failures."). I have made a script that compresses my files, adds S= if it's missing (using wc -c before gzip), and appends the Z flag. As I understand it, adding S= will change the UID of the email, while appending Z won't. Now for my questions: 1. How crucial is it to have the S= in the basename when using zlib? The wiki page mentions quota problems, which we're not using, but also "random failures"... 2. Would W= suffice in this regard? I.e. would I be able to compress files of the latter format safely, without adding S= (only appending the Z flag)? 3. If S= *is* needed, is there a way to minimize the effect from the mail client's perspective? From my testruns, it seems Mutt have no problems after I rename the basename, but Thunderbird will refetch the emails, and not delete the old ones, showing duplicate emails. Refetching emails is not a big problem, I think, but only if the email clients understand that the old ones doesn't exist anymore. And if anyone has ideas on how to convert to using zlib without the users knowing, I would be glad to hear it! -- Helge Milde www.monsternett.no From p.heinlein at heinlein-support.de Mon May 9 10:55:41 2011 From: p.heinlein at heinlein-support.de (Peer Heinlein) Date: Mon, 9 May 2011 09:55:41 +0200 Subject: [Dovecot] Fwd: Saving mails to +detail failed: Namespace error Message-ID: <201105090955.41353.p.heinlein@heinlein-support.de> Hi! Since our mails aren't saved correctly since we updated to 2.xx I'd really appreciate some help. What's going wrong? My mistake? Bug? Peer ---------- Weitergeleitete Nachricht ---------- Betreff: [Dovecot] Saving mails to +detail failed: Namespace error Datum: Dienstag, 3. Mai 2011, 12:50:20 Von: Peer Heinlein An: dovecot at dovecot.org We have the following namespace: namespace { inbox = yes list = yes location = prefix = INBOX/ separator = / subscriptions = yes type = private } namespace { list = children location = maildir:%%h:INDEX=%h/shared/%%u:CONTROL=%h/shared/%%u prefix = shared/%%u/ separator = / subscriptions = yes type = shared } and we set: lmtp_save_to_detail_mailbox = yes recipient_delimiter = + But sending Mails to user+detail is failing: May 3 12:40:06 dobby2 postfix/cleanup[8245]: 12E787756C: message- id=<201105031239.40804.p.heinlein at heinlein-support.de> May 3 12:40:06 dobby2 postfix/qmgr[23304]: 12E787756C: from=, size=1963, nrcpt=1 (queue active) May 3 12:40:06 dobby2 dovecot: lmtp(6537): Debug: auth input: p.heinlein at jpberlin.de home=/mail/jpberlin.de/p.heinlein/Maildir/ uid=10000 gid=10000 May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Effective uid=10000, gid=10000, home=/mail/jpberlin.de/p.heinlein/Maildir/ May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Namespace : type=private, prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~:INDEX=/cache/jpberlin.de/p.heinlein May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: maildir++: root=/mail/jpberlin.de/p.heinlein/Maildir/, index=/cache/jpberlin.de/p.heinlein, control=, inbox=/mail/jpberlin.de/p.heinlein/Maildir/ May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Namespace : type=shared, prefix=shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=maildir: %h:INDEX=/mail/jpberlin.de/p.heinlein/Maildir//shared/%u:CONTROL=/mail/jpberlin.de/p.heinlein/Maildir//shared/%u May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: shared: root=/var/run/dovecot/, index=, control=, inbox= May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Pg/fKrHav02JGQAAir+T1Q: sieve: user's script path /mail/jpberlin.de/p.heinlein/Maildir//../.dovecot.sieve doesn't exist (using global script path in stead) May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Pg/fKrHav02JGQAAir+T1Q: sieve: user has no valid personal script May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Debug: Pg/fKrHav02JGQAAir+T1Q: sieve: no scripts to execute: reverting to default delivery. May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Pg/fKrHav02JGQAAir+T1Q: msgid=<201105031239.40804.p.heinlein at heinlein- support.de>: save failed to Cong: Unknown namespace May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): Pg/fKrHav02JGQAAir+T1Q: msgid=<201105031239.40804.p.heinlein at heinlein- support.de>: saved mail to INBOX May 3 12:40:06 dobby2 postfix/lmtp[8338]: 12E787756C: to=, relay=dobby.heinlein- support.de[private/lmtp-dovecot], delay=0.1, delays=0.06/0.02/0/0.02, dsn=2.0.0, status=sent (250 2.0.0 Pg/fKrHav02JGQAAir+T1Q Saved) But a folder named "Cong" exists: # ls -la .Cong -d drwx------ 5 vmail vmail 4096 30. Apr 04:46 .Cong # What's going wrong? My mistake or is it a bug? peer -- Heinlein Professional Linux Support GmbH Linux: Akademie - Support - Hosting http://www.heinlein-support.de Tel: 030/405051-42 Fax: 030/405051-19 Zwangsangaben lt. ?35a GmbHG: HRB 93818 B / Amtsgericht Berlin-Charlottenburg, Gesch?ftsf?hrer: Peer Heinlein -- Sitz: Berlin From stan at hardwarefreak.com Mon May 9 10:57:46 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Mon, 09 May 2011 02:57:46 -0500 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> Message-ID: <4DC79E7A.5080700@hardwarefreak.com> On 5/9/2011 1:31 AM, Per Jessen wrote: > Stan Hoeppner wrote: >> This is not correct. You're assuming that ntpd doesn't perform sanity >> checks on the system time when the daemon starts, which is not the >> case. > > The sanity check may be disabled with -g in which case using > ntpdate/sntp/ntpd -q at start up becomes pointless. 'ntpdate -q' has always been 'pointless', unless you just want to look at the offset without modifying the clock. I do so on occasion to see how accurately my local ntp server is keeping time. For instance: /$ ntpdate -q tick.wustl.edu ntp.okstate.edu tick.uh.edu server 128.252.19.1, stratum 1, offset -0.003486, delay 0.09729 server 139.78.135.14, stratum 1, offset 0.003479, delay 0.11545 server 129.7.1.66, stratum 1, offset -0.003950, delay 0.13434 9 May 02:39:55 ntpdate[31040]: adjust time server 128.252.19.1 offset -0.003486 sec Mt nptd server is Debian Squeeze atop kernel 2.6.34.1, running ntp 4.2.6.p2+dfsg-1+b1. The machine is home grown w/ an 11 year old Abit main board. 0.003 seconds offset, not too shabby. ;) I've seen offset with 4 leading zeros (after the decimal) in the past. I've never seen less than two leading zeros. For most applications on my network, time this accurate is overkill, but it's nice to have. I acquired 'special' permission many years ago to use a few stratum 1 USNO servers mostly because at that time I lived in a city where one of them is located, and because I only have one client querying infrequently. USNO is the official time keeper for the US Military and the US Government, including ships at sea via GPS. USNO has the most accurate timekeeping devices on the planet--atomic clocks. Most (if not all) of the stratum 2 servers in the US query the USNO stratum 1 servers. -- Stan From tlx at leuxner.net Mon May 9 11:03:36 2011 From: tlx at leuxner.net (Thomas Leuxner) Date: Mon, 9 May 2011 10:03:36 +0200 Subject: [Dovecot] dovecot user lost entire folder In-Reply-To: <918853.10927.qm@web27203.mail.ukl.yahoo.com> References: <918853.10927.qm@web27203.mail.ukl.yahoo.com> Message-ID: <20110509080336.GA30236@nihlus.leuxner.net> On Mon, May 09, 2011 at 08:31:18AM +0100, Spyros Tsiolis wrote: > mail_location: maildir:/var/MailRoot/domains/%d/%n/Maildir Did you verify in the Maildir structure for that user? Maildir/.folder Maildir/.folder.subfolder http://wiki.dovecot.org/MailLocation/Maildir Regards Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From per at computer.org Mon May 9 11:25:35 2011 From: per at computer.org (Per Jessen) Date: Mon, 09 May 2011 10:25:35 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> <4DC79E7A.5080700@hardwarefreak.com> Message-ID: Stan Hoeppner wrote: > On 5/9/2011 1:31 AM, Per Jessen wrote: >> Stan Hoeppner wrote: > >>> This is not correct. You're assuming that ntpd doesn't perform >>> sanity checks on the system time when the daemon starts, which is >>> not the case. >> >> The sanity check may be disabled with -g in which case using >> ntpdate/sntp/ntpd -q at start up becomes pointless. > > 'ntpdate -q' has always been 'pointless', unless you just want to look > at the offset without modifying the clock. Sure, I meant 'ntpd -q'. > Mt nptd server is Debian Squeeze atop kernel 2.6.34.1, running ntp > 4.2.6.p2+dfsg-1+b1. The machine is home grown w/ an 11 year old Abit > main board. 0.003 seconds offset, not too shabby. ;) I've seen > offset with 4 leading zeros (after the decimal) in the past. I've > never seen less than two leading zeros. For most applications on my > network, time this accurate is overkill, but it's nice to have. For me, it's more important that all machines (local & remote) are running the same time. Locally I sync to DCF77, externally I use the datacentre-provided NTP source. Anyway, we're way OT. /Per Jessen, Z?rich From per at computer.org Mon May 9 11:29:12 2011 From: per at computer.org (Per Jessen) Date: Mon, 09 May 2011 10:29:12 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <20110508195830.600732844C@gwc.pfcs.com> <4DC78B68.60704@luigirosa.com> Message-ID: Luigi Rosa wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Harlan Stenn said the following on 08/05/11 21:58: > >> - Start ntd as early as possible >> - - "ntpd -g ..." is better than "ntpdate ... ; ntpd ..." >> - Wait before starting time-sensitive services >> - - As last as possible in the boot sequence, run 'ntp-wait -v', and >> start time-sensitive services after it successfully returns. > > What happens if the server starts with a date very far in the past due > to hardware clock reset or something like that? > > I mean: if a Linux starts with the hardware clock set to 1/1/2000 how > much does it take to get the real date? ntpd -g will set it immediately. /Per Jessen, Z?rich From stsiol at yahoo.co.uk Mon May 9 11:44:46 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Mon, 9 May 2011 09:44:46 +0100 (BST) Subject: [Dovecot] dovecot user lost entire folder In-Reply-To: <20110509080336.GA30236@nihlus.leuxner.net> Message-ID: <226239.8774.qm@web27205.mail.ukl.yahoo.com> --- On Mon, 9/5/11, Thomas Leuxner wrote: > From: Thomas Leuxner > Subject: Re: [Dovecot] dovecot user lost entire folder > To: dovecot at dovecot.org > Date: Monday, 9 May, 2011, 11:03 > On Mon, May 09, 2011 at 08:31:18AM > +0100, Spyros Tsiolis wrote: > > > mail_location: > maildir:/var/MailRoot/domains/%d/%n/Maildir > > Did you verify in the Maildir structure for that user? > > Maildir/.folder > Maildir/.folder.subfolder > > http://wiki.dovecot.org/MailLocation/Maildir > > Regards > Thomas Thomas, Thank you kindly. I checked all the hidden files underneath maildir:/var/MailRoot/domains/%d/%n/Maildir and coudn't find this specific folder. Thank you again, spyros ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From Harlan.Stenn at pfcs.com Mon May 9 11:46:16 2011 From: Harlan.Stenn at pfcs.com (Harlan Stenn) Date: Mon, 09 May 2011 04:46:16 -0400 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> <4DC79E7A.5080700@hardwarefreak.com> Message-ID: <20110509084616.6334B2844C@gwc.pfcs.com> Per wrote: > Sure, I meant 'ntpd -q'. What benefit do you see in running something to set the time and exit before starting ntpd instead of just starting ntpd with -g? H From Harlan.Stenn at pfcs.com Mon May 9 11:49:51 2011 From: Harlan.Stenn at pfcs.com (Harlan Stenn) Date: Mon, 09 May 2011 04:49:51 -0400 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <20110508195830.600732844C@gwc.pfcs.com> <4DC78B68.60704@luigirosa.com> Message-ID: <20110509084951.6C4222844F@gwc.pfcs.com> Per wrote: > Luigi Rosa wrote: > > > Harlan Stenn said the following on 08/05/11 21:58: > > > >> - Start ntd as early as possible > >> - - "ntpd -g ..." is better than "ntpdate ... ; ntpd ..." > >> - Wait before starting time-sensitive services > >> - - As last as possible in the boot sequence, run 'ntp-wait -v', and > >> start time-sensitive services after it successfully returns. > > > > What happens if the server starts with a date very far in the past due > > to hardware clock reset or something like that? > > > > I mean: if a Linux starts with the hardware clock set to 1/1/2000 how > > much does it take to get the real date? > > ntpd -g will set it immediately. Put another way, ntpd needs the system time to be correct to within 68 years. Assuming that is true, with a good drift file and good servers/peers and the use of the 'iburst' flag, ntpd will set the clock and your (real) machine will be accurate and stable in about 11 seconds' time. H From per at computer.org Mon May 9 11:52:25 2011 From: per at computer.org (Per Jessen) Date: Mon, 09 May 2011 10:52:25 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> <4DC79E7A.5080700@hardwarefreak.com> <20110509084616.6334B2844C@gwc.pfcs.com> Message-ID: Harlan Stenn wrote: > Per wrote: >> Sure, I meant 'ntpd -q'. > > What benefit do you see in running something to set the time and exit > before starting ntpd instead of just starting ntpd with -g? > > H None, it is just what is in the standard init-script in openSUSE. /Per Jessen, Z?rich From tlx at leuxner.net Mon May 9 11:55:23 2011 From: tlx at leuxner.net (Thomas Leuxner) Date: Mon, 9 May 2011 10:55:23 +0200 Subject: [Dovecot] dovecot user lost entire folder In-Reply-To: <226239.8774.qm@web27205.mail.ukl.yahoo.com> References: <20110509080336.GA30236@nihlus.leuxner.net> <226239.8774.qm@web27205.mail.ukl.yahoo.com> Message-ID: <20110509085523.GB30236@nihlus.leuxner.net> On Mon, May 09, 2011 at 09:44:46AM +0100, Spyros Tsiolis wrote: > I checked all the hidden files underneath > maildir:/var/MailRoot/domains/%d/%n/Maildir > and coudn't find this specific folder. Hi Spyros, do you happen to have a backup of the Maildir structure? You could simply restore the folder in that case to "minimize" damage. It would not tell you why/how it was deleted although. An ACL placed on the folder may be a feasible solution for that particular user going forward... Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From mcbdovecot at robuust.nl Mon May 9 11:55:49 2011 From: mcbdovecot at robuust.nl (Maarten Bezemer) Date: Mon, 9 May 2011 10:55:49 +0200 (CEST) Subject: [Dovecot] dovecot user lost entire folder In-Reply-To: <226239.8774.qm@web27205.mail.ukl.yahoo.com> References: <226239.8774.qm@web27205.mail.ukl.yahoo.com> Message-ID: Hi, On Mon, 9 May 2011, Spyros Tsiolis wrote: > I checked all the hidden files underneath > maildir:/var/MailRoot/domains/%d/%n/Maildir > and coudn't find this specific folder. Checking for specific emails could help. On the other hand, having backups handy would be nice. That would not only be helpful if the user simply deleted a folder (instead of a single email, seen that happen more than once with Outlook users), but it would also give you an idea of file names which might have accidentally be moved to another folder. HTH... Maarten From stsiol at yahoo.co.uk Mon May 9 11:59:53 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Mon, 9 May 2011 09:59:53 +0100 (BST) Subject: [Dovecot] dovecot user lost entire folder In-Reply-To: Message-ID: <689641.48808.qm@web27204.mail.ukl.yahoo.com> --- On Mon, 9/5/11, Maarten Bezemer wrote: > From: Maarten Bezemer > Subject: Re: [Dovecot] dovecot user lost entire folder > To: "Spyros Tsiolis" > Cc: "Thomas Leuxner" , "Dovecot" > Date: Monday, 9 May, 2011, 11:55 > Hi, > > On Mon, 9 May 2011, Spyros Tsiolis wrote: > > > I checked all the hidden files underneath > maildir:/var/MailRoot/domains/%d/%n/Maildir > > and coudn't find this specific folder. > > Checking for specific emails could help. > On the other hand, having backups handy would be nice. That > would not only be helpful if the user simply deleted a > folder (instead of a single email, seen that happen more > than once with Outlook users), but it would also give you an > idea of file names which might have accidentally be moved to > another folder. > > HTH... > > Maarten > Hi Maarten, that is actually what I suspect. The user is using thunderbird v1.3.10. However, I suspect that she accidentally deleted the whole folder. I cannot deduct anything else. I ran through all possible paranoid scenarios. It doesn't make any sense. Thank you kindly, Spyros ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From stsiol at yahoo.co.uk Mon May 9 12:02:06 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Mon, 9 May 2011 10:02:06 +0100 (BST) Subject: [Dovecot] dovecot user lost entire folder In-Reply-To: <20110509085523.GB30236@nihlus.leuxner.net> Message-ID: <159036.92931.qm@web27202.mail.ukl.yahoo.com> --- On Mon, 9/5/11, Thomas Leuxner wrote: > From: Thomas Leuxner > Subject: Re: [Dovecot] dovecot user lost entire folder > To: dovecot at dovecot.org > Date: Monday, 9 May, 2011, 11:55 > On Mon, May 09, 2011 at 09:44:46AM > +0100, Spyros Tsiolis wrote: > > > I checked all the hidden files underneath > > maildir:/var/MailRoot/domains/%d/%n/Maildir > > and coudn't find this specific folder. > > Hi Spyros, > > do you happen to have a backup of the Maildir structure? > You could > simply restore the folder in that case to "minimize" > damage. It would > not tell you why/how it was deleted although. > > An ACL placed on the folder may be a feasible solution for > that > particular user going forward... > > Thomas Hi again, How exactly would I place an ACL ? Should I check the dovecot docs for this ? thanks again, s. ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From sarder.kamal at parlicentre.org Mon May 9 12:13:44 2011 From: sarder.kamal at parlicentre.org (Sarder Kamal) Date: Mon, 09 May 2011 10:13:44 +0100 Subject: [Dovecot] how to cat / grep from dbox files In-Reply-To: References: <4DC2CAD0.60601@parlicentre.org> Message-ID: <4DC7B048.1080100@parlicentre.org> Dear Timo On 05/05/2011 17:18, Timo Sirainen wrote: > On 5.5.2011, at 18.05, Sarder Kamal wrote:man doveadm-fetch > man doveadm-search-query > > example: doveadm fetch -u user 'uid text' mailbox INBOX body "hello world" > Thanks for the pointers. As I mentioned earlier, too new into dovecot and still trying to find my way. The only thing I know about this setup is it has the latest dovecot. However, my next question is, could anyone please tell me which configuration settings do I need to change to make the storage non-compressed -- i.e., old style Maildir format? Thanks Sarder ______________________________________________________________________ Centre for Parliamentary Studies This email and its attachments are intended only for disclosure to the recipients to whom they are addressed. Should you have received it in error, we regret any inconvenience and would request that you notify postmaster at parlicentre.org. Any opinions presented are solely those of its author and do not necessarily represent those of the company. Recipients are advised to check for the presence of malware as the company accepts no liability for the accidental transmission thereof. Centre for Parliamentary Studies is a trading name of CPS Framework Ltd. Registered Office: Unit N0002, Westminster Business Square, 1-45 Durham Street, London, SE11 5JH Registered in England & Wales, No. 6926090 From stephan at rename-it.nl Mon May 9 12:14:44 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Mon, 09 May 2011 11:14:44 +0200 Subject: [Dovecot] sieve filters not being invoked In-Reply-To: <31569757.post@talk.nabble.com> References: <31569757.post@talk.nabble.com> Message-ID: <4DC7B084.2010703@rename-it.nl> Op 8-5-2011 11:56, Colin Brace schreef: > Hi all, > > Similar to someone who posted here yesterday, I am having trouble getting > sieve filters working. > > I have installed pigeonhole. I can create, edit, and save scripts from both > the Thunderbird sieve extension as well as the Roundcube sieve plugin via > managesieve running on port 4190. The .sieve file is properly saved in > ~/sieve with a symlink from ~/.dovecot.sieve. > > But the filters are not being invoked on incoming mail. I have mail_debug > enabled, but I don't see anything useful in /var/log/dovecot. > > Anyone have any ideas? Is your MTA storing messages using the Dovecot LDA (http://wiki2.dovecot.org/LDA) ? Check that thoroughly. Enable mail_debug to get more verbose logs. To definitively check whether Sieve is working or not, you can invoke dovecot-lda manually. If it works then, the problem most likely lies with your MTA. At my end, the logs look as follows (manual invocation, mail_debug=yes): May 9 11:08:34 host dovecot: lda: Debug: Loading modules from directory: /usr/lib/dovecot/modules May 9 11:08:34 host dovecot: lda: Debug: Module loaded: /usr/lib/dovecot/modules/lib90_sieve_plugin.so May 9 11:08:34 host dovecot: lda(stephan): Debug: Effective uid=1011, gid=1011, home=/home/stephan May 9 11:08:34 host dovecot: lda(stephan): Debug: maildir: root exists (/home/stephan/Maildir) May 9 11:08:34 host dovecot: lda(stephan): Debug: maildir++: root=/home/stephan/Maildir, index=, control=, inbox=/home/stephan/Maildir May 9 11:08:34 host dovecot: lda(stephan): Debug: userdb lookup skipped, username taken from USER environment May 9 11:08:34 host dovecot: lda(stephan): Debug: none: root=, index=, control=, inbox= May 9 11:08:34 host dovecot: lda(stephan): Debug: sieve: using sieve path for user's script: /home/stephan/.dovecot.sieve May 9 11:08:34 host dovecot: lda(stephan): Debug: sieve: opening script /home/stephan/.dovecot.sieve May 9 11:08:34 host dovecot: lda(stephan): Debug: sieve: script binary /home/stephan/.dovecot.svbin successfully loaded May 9 11:08:34 host dovecot: lda(stephan): Debug: sieve: binary save: not saving binary /home/stephan/.dovecot.svbin, because it is already stored May 9 11:08:34 host dovecot: lda(stephan): Debug: sieve: executing script from /home/stephan/.dovecot.svbin May 9 11:08:34 host dovecot: lda(stephan): sieve: msgid=<20090729182144.4c9baf96 at example.com>: stored mail into mailbox 'INBOX' Regards, Stephan. From erevilla at yaco.es Mon May 9 12:15:48 2011 From: erevilla at yaco.es (Ernesto Revilla Derksen) Date: Mon, 9 May 2011 11:15:48 +0200 Subject: [Dovecot] Delete unused IMAP keywords from permanetflags In-Reply-To: References: Message-ID: Hi 2011/5/6 Timo Sirainen > On 6.5.2011, at 12.26, Ernesto Revilla Derksen wrote: > > > I'm using dovecot 2.0.9. Is there already a way to remove unused IMAP > > keywords from a folder? > > I've thought about implementing it, but haven't yet. I thought that maybe > it could remove them only when adding a new keyword, or possibly after it > hadn't been used for n days (e.g. a month). Also I had thought about adding > new IMAP commands to add/remove keywords. > > Well, I think it's not that important, as we would use another front-end to define labels (keywords). Will we have problems if more than 26 keywords are defined in a folder but only a subset is used? (maildir++) Renaming keywords would also be a nice feature. Thanks. Erny From tlx at leuxner.net Mon May 9 12:25:31 2011 From: tlx at leuxner.net (Thomas Leuxner) Date: Mon, 9 May 2011 11:25:31 +0200 Subject: [Dovecot] dovecot user lost entire folder In-Reply-To: <159036.92931.qm@web27202.mail.ukl.yahoo.com> References: <20110509085523.GB30236@nihlus.leuxner.net> <159036.92931.qm@web27202.mail.ukl.yahoo.com> Message-ID: <20110509092531.GC30236@nihlus.leuxner.net> On Mon, May 09, 2011 at 10:02:06AM +0100, Spyros Tsiolis wrote: > How exactly would I place an ACL ? > Should I check the dovecot docs for this ? Following ACL should do the trick when placed in the folder: --- [Maildir/.folder/dovecot-acl] --- owner lrwspi This will allow adding new messages to the folder ONLY. Please be advised that you need to configure general use of ACLs first: http://wiki.dovecot.org/ACL Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From maria_arrea at gmx.com Mon May 9 13:19:57 2011 From: maria_arrea at gmx.com (Maria Arrea) Date: Mon, 09 May 2011 10:19:57 +0000 Subject: [Dovecot] Sieve & auto_create mail_home Message-ID: <20110509101958.45750@gmx.com> Hello In my setup I have the following in dovecot.conf (dovecot 2.0.12) mail_home = /buzones/mydomain/%2.26Hn/%2.200Hn/%n/home_usuario/ mail_location = mdbox:/buzones/my_domain/%2.26Hn/%2.200Hn/%n:INDEX=/indices_dovecot/indices/%2.26Hn/%2.200Hn/%n My problem is with the autocreation of mail_home. We are using roundcube+sieve plugin and the first time a user tries to use sieve fails with this: May 9 12:13:52 buzon dovecot: managesieve(a_poor_user at mydomain): Error: sieve-storage: open(/buzones/my_domain/0a/94/javierdemiguel/home_usuario/sieve//tmp/roundcube-1304936032.M335644P23819.mydomain.sieve) failed: No such file or directory In the second attempt works without problems, the folder "home_usuario" is created after failing the first. How can I fix this? Regards Maria From cb at lim.nl Mon May 9 14:00:45 2011 From: cb at lim.nl (Colin Brace) Date: Mon, 09 May 2011 13:00:45 +0200 Subject: [Dovecot] sieve filters not being invoked In-Reply-To: <4DC7B084.2010703@rename-it.nl> References: <31569757.post@talk.nabble.com> <4DC7B084.2010703@rename-it.nl> Message-ID: <8ee991440d2c142bc4079d3bb26a4a0d@localhost> On Mon, 09 May 2011 11:14:44 +0200, Stephan Bosch wrote: > Is your MTA storing messages using the Dovecot LDA > (http://wiki2.dovecot.org/LDA [1]) ? Check that thoroughly. Enable > mail_debug to get more verbose logs. To definitively check whether > Sieve > is working or not, you can invoke dovecot-lda manually. If it works > then, the problem most likely lies with your MTA. Thanks, I am almost there. It turns out I was missing this line from Postfix master.cf: dovecot unix - n n - - pipe flags=DRhu user=vmail:mail argv=/usr/local/libexec/dovecot/deliver -d ${recipient} In the dovecot-lda log, I am now seeing some action, but there is a permissions problem somewhere: May 09 12:43:13 lda: Debug: Loading modules from directory: /usr/local/lib/dovecot May 09 12:43:13 lda: Debug: Module loaded: /usr/local/lib/dovecot/lib90_sieve_plugin.so May 09 12:43:13 lda: Error: userdb lookup: connect(/var/run/dovecot//auth-userdb) failed: Permission denied (euid=200(vmail) egid=6(mail) missing +w perm: /var/run/dovecot//auth-userdb, euid is not dir owner) May 09 12:43:13 lda: Fatal: Internal error occurred. Refer to server log for more information. Any idea where the problem is? -- Colin Brace Amsterdam http://lim.nl Links: ------ [1] http://wiki2.dovecot.org/LDA [2] mailto:20090729182144.4c9baf96 at example.com From fakessh at fakessh.eu Mon May 9 15:52:50 2011 From: fakessh at fakessh.eu (fakessh) Date: Mon, 9 May 2011 14:52:50 +0200 Subject: [Dovecot] Sieve & auto_create mail_home In-Reply-To: <20110509101958.45750@gmx.com> References: <20110509101958.45750@gmx.com> Message-ID: <201105091452.56859.fakessh@fakessh.eu> Le lundi 9 mai 2011 12:19, Maria Arrea a ?crit?: > Hello > > In my setup I have the following in dovecot.conf (dovecot 2.0.12) > > > mail_home = /buzones/mydomain/%2.26Hn/%2.200Hn/%n/home_usuario/ > mail_location = > mdbox:/buzones/my_domain/%2.26Hn/%2.200Hn/%n:INDEX=/indices_dovecot/indices >/%2.26Hn/%2.200Hn/%n > > > My problem is with the autocreation of mail_home. We are using > roundcube+sieve plugin and the first time a user tries to use sieve fails > with this: > > > May 9 12:13:52 buzon dovecot: managesieve(a_poor_user at mydomain): Error: > sieve-storage: > open(/buzones/my_domain/0a/94/javierdemiguel/home_usuario/sieve//tmp/roundc >ube-1304936032.M335644P23819.mydomain.sieve) failed: No such file or > directory > > > In the second attempt works without problems, the folder "home_usuario" is > created after failing the first. How can I fix this? > > > Regards > > Maria this setting work well on a simple config with /home/user/Maildir sieve + autocreate -- http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7 gpg --keyserver pgp.mit.edu --recv-key 092164A7 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From mark.zealey at webfusion.com Mon May 9 16:19:23 2011 From: mark.zealey at webfusion.com (Mark Zealey) Date: Mon, 09 May 2011 16:19:23 +0300 Subject: [Dovecot] Post-login scripting with mail_drop_priv_before_exec in dovecot2 Message-ID: <4DC7E9DB.1090400@webfusion.com> Hi, I'm in the process of upgrading from dovecot v1.1 to dovecot 2. We fetch uid/gid user information from a database and also use post-login scripting with mail_drop_priv_before_exec = yes which means the postlogin script is executed with the permissions of the user we have found in the database. According to the dovecot2 wiki page, to get this behaviour in version 2 we have to set the post-login script to run as root and then su to the user. This seems a bit of a strange (and insecure as you might forget) way of doing this. Are there any other options, such as fetching a certain column name from the database to set the value of service imap-postlogin { user } or setting something like user = $user in the configuration? (or is the configuration only read at startup so such dynamic configuration can't be done in the service section?) Cheers, Mark From y11 at ikevinjp.com Mon May 9 17:16:24 2011 From: y11 at ikevinjp.com (ikevinjp) Date: Mon, 9 May 2011 07:16:24 -0700 (PDT) Subject: [Dovecot] Dovecot Maildir ownership/permission problem Message-ID: <31573368.post@talk.nabble.com> Hi, I have successfully configured Dovecot+Postfix+SSL/TSL and it seems that everything is working except that I have a permission problem with the items under Maildir. When a mail is first delivered into a user, Postfix automatically creates the Maildir using the user's account and group. It is readable only by the user. This seems to be the correct setting for me, as only the user could read his/her own mails. However, Dovecot gave an error saying the Maildir is inaccessible and shows that is a permission problem. I changed the chmod to 777 and Dovecot worked (temporarily solution). And, it created additional items under that folder under a "mailman" user (which I specified in the configuration using mail_uid and mail_gid) - Note: it does not work if I do not set these "mail_uid" and "mail_gid" settings. I think what I would like is to make Dovecot access each individual's mailbox using the user's own account and group. How do I do this? I am using Passwd-file scheme. --- My dovecot.conf: mail_uid = vmail mail_gid = vmail listen = 192.168.1.2 protocols = imap pop3 ssl = yes ssl_cert = References: Message-ID: <1304954316.10421.86.camel@hurina> On Mon, 2011-04-25 at 19:02 +0200, Osvaldo Alvarez Pozo wrote: > hi all > > We have an ocfs2 cluster compose of 4 Debian lenny serveurs wich have > access to an ISCSI LUN we have create a partition on this Lun and > formated this partition as OCFS2. > 2 serveurs does mail delivery (SMTP) and the two other are pop/imap > servers. The smtp servers use dovecot LDA to deliver to mailboxes. La > version de dovecot is 1.2.13, ldirectord balance conexion to the > servers(pop/pops/imap/imaps to the two imap/pop serveurs) (smtp to the > two smtp servers). With v2.0 I'd suggest using http://wiki2.dovecot.org/Director > mail_location = maildir:/var/vmail/%d/%u/Maildir Cluster filesystems don't seem to like Maildir much. With v2.0 you could use mdbox. > We are having severals problems from "cpu stuck for 61 seconds" to > "too many connexion". I don't know what either of those errors mean. In any case you should switch to high-performance login processes: http://wiki.dovecot.org/LoginProcess http://wiki.dovecot.org/PerformanceTuning has more stuff From upendra.gandhi at gmail.com Mon May 9 18:19:14 2011 From: upendra.gandhi at gmail.com (upen) Date: Mon, 9 May 2011 10:19:14 -0500 Subject: [Dovecot] alpine + Maildir In-Reply-To: References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> Message-ID: On Mon, May 9, 2011 at 10:01 AM, upen wrote: >> >> This is what I am doing right now. >> >> http://www.asheesh.org/note/sysop/passwordless-alpine.html says a little >> more. I strongly recommend this. >> >> In fact, I think I should someday talk to the re-alpine team and figure out >> how to make this easier to configure. It's already reasonably easy, but it >> can require some fiddling. > Hi Asheesh, Excellent, that is a very very useful information. I am going to try and use this method if #md doesn't work at all. Thanks very much for helping me out. Thanks, UG From upendra.gandhi at gmail.com Mon May 9 18:20:18 2011 From: upendra.gandhi at gmail.com (upen) Date: Mon, 9 May 2011 10:20:18 -0500 Subject: [Dovecot] alpine + Maildir In-Reply-To: References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> <4DC40DFA.8060209@Media-Brokers.com> <4DC43315.4060708@Media-Brokers.com> Message-ID: On Mon, May 9, 2011 at 10:16 AM, upen wrote: >>> >> What you are probably looking for is in the alpine configuration (setup -> >> configure) the 'Hide Empty Directories' option which you have to turn on. >> >> It corresponds to the 'quell-empty-directory' in pinerc >> >> Hope it helps. >> Hi Wolfgang, You are right, that option should have taken care of [/] directory after each folder , however for some reason it doesn't and I don't understand why. One update however with #md implementation is that I just tried one more thing in my alpine configuration and [/] has vanished after that so probably I don't have to configure for password-less alpine on the email server. Here is the specific configuration from my /etc/pine.conf or .pinerc 1. maildir-location=../../Mail/${LOGNAME} #folder-collections=Mail {localhost/novalidate-cert/ssl/user=${LOGNAME}}[] <---- Commented. 2. folder-collections=Mail #md/../../Mail/${LOGNAME}/.[] With this configuration, all folders appear fine. Folders : INBOX sent-mail saved-messages ABC PINE_FOLDER Queue Sent Trash sent-mail-apr-2011 In addition, I am going to change sent messages and saved messages setting as below so that when users are migrated from ~/mail to /Mail/user/ (maildir) format then their newly sent emails and saved messages also continue to go into /Mail/user/.sent-mail and /Mail/user/.saved-messages folder respectively. default-fcc=sent-mail default-saved-msg-folder=saved-messages Thank you everyone for their inputs. Appreciate it. UG From tss at iki.fi Mon May 9 18:23:40 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 18:23:40 +0300 Subject: [Dovecot] NONEXISTENT handling In-Reply-To: <20110422104428.Horde.RwsVHIF5lbhNsbBsPM8V6vA@bigworm.curecanti.org> References: <20110422104428.Horde.RwsVHIF5lbhNsbBsPM8V6vA@bigworm.curecanti.org> Message-ID: <1304954620.10421.87.camel@hurina> On Fri, 2011-04-22 at 10:44 -0600, Michael M Slusarz wrote: > As of 2.0.12, looks like NONEXISTENT response code isn't working > properly again. Fixed: http://hg.dovecot.org/dovecot-2.0/rev/6790433a1e77 From tss at iki.fi Mon May 9 18:34:16 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 18:34:16 +0300 Subject: [Dovecot] doveadm mailbox status 2.0.12 crashes In-Reply-To: References: Message-ID: <1304955256.10421.89.camel@hurina> On Sat, 2011-04-16 at 02:49 -0700, Joseph Tam wrote: > My gdb won't cooperate and produce a backtrace so I hope this dbx stack > trace gives sufficient clues as to why it crashed. It happended when > I was testing a doveadm command for a user which a large collection > of mboxs: .. > # dbx doveadm > (dbx) run mailbox status -u user messages \* > ... long list ... > igel messages=1 > INBOX messages=231 > doveadm(user): Panic: Trying to deinit storage before freeing its objects A backtrace can't really show why it crashed with this. Something wasn't freed for some reason. Can you still reproduce this? I'd like to know of a way to reproduce this. Maybe you can copy this problematic user's mailboxes to a test user and keep deleting stuff until you see what triggers it? From tss at iki.fi Mon May 9 18:36:39 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 18:36:39 +0300 Subject: [Dovecot] Corrupted index cache file In-Reply-To: <4DA7E69A.7000205@esiee.fr> References: <4DA7E69A.7000205@esiee.fr> Message-ID: <1304955399.10421.91.camel@hurina> On Fri, 2011-04-15 at 08:32 +0200, Frank Bonnet wrote: > Apr 14 19:24:37 imap(xxxxxxx): Error: FETCH [] for mailbox Drafts > (Hugues at ESIEE) UID 17836 got too little data: 16384 vs 18012 > Apr 14 19:24:37 imap(xxxxxxx): Error: Corrupted index cache file > /var/cache/dovecot/index/xxxxxxx/.imap/Drafts (Hugues at > ESIEE)/dovecot.index.cache: Broken virtual size for mail UID 17836 mboxes are a bit annoying things. I guess there's a bug somewhere in Dovecot code, but unless you can show me how to reproduce it I don't think I can do anything about it. (I've earlier spent days looking at the mbox code without seeing any bugs in it.) Maybe once everything else is working perfectly I'll just try once more to rewrite the mbox code to be simpler to understand and become perfect. :) From svacinap at compsys.cz Mon May 9 18:37:56 2011 From: svacinap at compsys.cz (Petr Svacina) Date: Mon, 9 May 2011 17:37:56 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk Message-ID: Hi, Please I have a question: If my server is out of space (disk full) and the postfix is LDA, the new messages a deffered or refused,so postfix send 450 to sender ... But When I use dovecot (1.2.16) like LDA, postfix accept message (even there is no space), forward to dovecot, dovecot REFUSE the message and message is lost ! How can I solve this ? I don't want tu use quota and the disk was full, because of the other problem .... thanks. Peter -- Tato zprava byla prohledana na vyskyt viru a nebezpecneho obsahu antivirovym systemem MailScanner a zda se byt cista. From mcbdovecot at robuust.nl Mon May 9 18:47:28 2011 From: mcbdovecot at robuust.nl (Maarten Bezemer) Date: Mon, 9 May 2011 17:47:28 +0200 (CEST) Subject: [Dovecot] Corrupted index cache file In-Reply-To: <1304955399.10421.91.camel@hurina> References: <4DA7E69A.7000205@esiee.fr> <1304955399.10421.91.camel@hurina> Message-ID: For what it's worth.. I've seen the FETCH error with "got too little data" also with Maildir setup. So, not only limited to mbox. This was quite some time ago with (I think) 1.0.15. Back then, I just removed the dovecot.index and cache files (leaving only the uidlist file) for that maildir folder. Worked fine after that (except I had to convince Outlook to resync.. Mail bodies in Outlook cache sometimes didn't match with mail headers...) Currently running 1.2.15, no further corruption seen. -- Maarten On Mon, 9 May 2011, Timo Sirainen wrote: > On Fri, 2011-04-15 at 08:32 +0200, Frank Bonnet wrote: > >> Apr 14 19:24:37 imap(xxxxxxx): Error: FETCH [] for mailbox Drafts >> (Hugues at ESIEE) UID 17836 got too little data: 16384 vs 18012 >> Apr 14 19:24:37 imap(xxxxxxx): Error: Corrupted index cache file >> /var/cache/dovecot/index/xxxxxxx/.imap/Drafts (Hugues at >> ESIEE)/dovecot.index.cache: Broken virtual size for mail UID 17836 > > mboxes are a bit annoying things. I guess there's a bug somewhere in > Dovecot code, but unless you can show me how to reproduce it I don't > think I can do anything about it. (I've earlier spent days looking at > the mbox code without seeing any bugs in it.) > > Maybe once everything else is working perfectly I'll just try once more > to rewrite the mbox code to be simpler to understand and become > perfect. :) > > > From tss at iki.fi Mon May 9 18:47:31 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 18:47:31 +0300 Subject: [Dovecot] example-config mail_log plugin options In-Reply-To: References: Message-ID: <1304956051.10421.94.camel@hurina> On Fri, 2011-04-29 at 15:33 +0200, Lutz Pre?ler wrote: > "mail_log_group_events" seems to be gone (when and why?). And it's now > "save" instead of "append", with "mailbox_create" also available. I remember answering to this mail, but I don't see the mail anywhere.. So maybe I didn't? Anyway: That setting was removed mostly because that part of the code was rewritten and preserving that setting was kind of annoying. I also thought that few people actually wanted to use it, since the only detail it could show about mails was a list of UIDs. I've removed it from example-config: http://hg.dovecot.org/dovecot-2.0/rev/46aed30670bb From cb at lim.nl Mon May 9 18:56:05 2011 From: cb at lim.nl (Colin Brace) Date: Mon, 09 May 2011 17:56:05 +0200 Subject: [Dovecot] sieve filters not being invoked Message-ID: <7cf419ddb72927c72622c4e30a337747@localhost> On Mon, 09 May 2011 13:00:45 +0200, Colin Brace wrote: > In the dovecot-lda log, I am now seeing some action, but there is a > > permissions problem somewhere: > > May 09 12:43:13 lda: Debug: Loading modules from directory: > /usr/local/lib/dovecot > May 09 12:43:13 lda: Debug: Module loaded: > /usr/local/lib/dovecot/lib90_sieve_plugin.so > May 09 12:43:13 lda: Error: userdb lookup: > connect(/var/run/dovecot//auth-userdb) failed: Permission denied > (euid=200(vmail) egid=6(mail) missing +w perm: > /var/run/dovecot//auth-userdb, euid is not dir owner) > May 09 12:43:13 lda: Fatal: Internal error occurred. Refer to server > log for more information. Following up my earlier mail, perhaps I am being obtuse here; I've changed the permissions of auth-userdb to 666, although I have no idea what these files in /var/run/dovecot are. These appears to solve the problem above. Renabling dovecot lda in Postfix, I try sending myself a message; however it gets bounced: "user unknown" (/var/log/maillog): [...] May 9 17:33:08 venus postfix/pipe[73445]: 8BCF629F3F: to=, relay=dovecot, delay=0.34, delays=0.3/0/0/0.03, dsn=5.1.1, status=bounced (user unknown) May 9 17:33:08 venus postfix/cleanup[73442]: C61332A0AB: message-id= May 9 17:33:08 venus postfix/bounce[73447]: 8BCF629F3F: sender non-delivery notification: C61332A0AB May 9 17:33:08 venus postfix/qmgr[73435]: C61332A0AB: from=, size=3183, nrcpt=1 (queue active) May 9 17:33:08 venus postfix/qmgr[73435]: 8BCF629F3F: removed May 9 17:33:08 venus postfix/smtpd[73444]: disconnect from localhost[127.0.0.1] May 9 17:33:08 venus postfix/lmtp[73443]: C5E4729ED5: to=, relay=venus[/var/run/dspam.sock], delay=1.1, delays=0.45/0/0/0.61, dsn=2.6.0, status=sent (250 2.6.0 Message accepted for delivery) May 9 17:33:08 venus postfix/qmgr[73435]: C5E4729ED5: removed If I comment out this line in main.cf, and restart Postfix, things work again: # virtual_transport = dovecot Any ideas on what is going wrong here? I feel I am almost there. -- Colin Brace Amsterdam http://lim.nl -- Colin Brace Amsterdam http://lim.nl From tss at iki.fi Mon May 9 19:19:33 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:19:33 +0300 Subject: [Dovecot] possible bug leading to lmtp crashes In-Reply-To: <4DBC3F3F.4030605@gmail.com> References: <4DAECAAC.3060903@gmail.com> <4DB58F67.4090600@gmail.com> <4DB6FCF7.9070905@gmail.com> <5D19A866-381B-4CA6-B8FF-0F7BCDA36799@iki.fi> <4DBC3F3F.4030605@gmail.com> Message-ID: <1304957973.10421.101.camel@hurina> On Sat, 2011-04-30 at 10:56 -0600, Trever L. Adams wrote: > On 04/26/2011 05:00 PM, Timo Sirainen wrote: > > On 26.4.2011, at 20.12, Trever L. Adams wrote: > > > >> I am finding it interested that abrt seems to say that environment is > >> empty/corrupted. I am attaching more backtraces to the Fedora bug > >> (https://bugzilla.redhat.com/show_bug.cgi?id=697325). > > I think this is a generic bug in LDAP code when using SASL authentication. It just shouldn't be crashing here: > > > >> #6 db_ldap_request_queue_next (conn=0x1c6ed90) at db-ldap.c:343 > > That code around it looks a bit weird.. I'll look at it closer tomorrow. > > By chance were you able to isolate and fix this bug? I wonder if it crashes earlier with this patch? http://hg.dovecot.org/dovecot-2.0/rev/3ada82147977 From tss at iki.fi Mon May 9 19:27:22 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:27:22 +0300 Subject: [Dovecot] Restricting IMAP In-Reply-To: References: Message-ID: <1304958442.10421.102.camel@hurina> On Mon, 2011-05-02 at 10:11 -0500, Matt wrote: > I want to restrict IMAP use too 127.0.0.1 and to only certain > usernames. Such as fred at my777domain.com would be allowed to use IMAP. > How would I do that with Dovecot or can I? Basically I want webmail > to work with IMAP regardless of username but I only want certain > usernames allowed to use IMAP remotely. http://wiki.dovecot.org/Authentication/RestrictAccess lists a bunch of different ways. From tss at iki.fi Mon May 9 19:28:00 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:28:00 +0300 Subject: [Dovecot] Saving mails to +detail failed: Namespace error In-Reply-To: <201105031250.20947.p.heinlein@heinlein-support.de> References: <201105031250.20947.p.heinlein@heinlein-support.de> Message-ID: <1304958480.10421.103.camel@hurina> On Tue, 2011-05-03 at 12:50 +0200, Peer Heinlein wrote: > lmtp_save_to_detail_mailbox = yes .. > May 3 12:40:06 dobby2 dovecot: lmtp(6537, p.heinlein at jpberlin.de): > Pg/fKrHav02JGQAAir+T1Q: msgid=<201105031239.40804.p.heinlein at heinlein- > support.de>: save failed to Cong: Unknown namespace For everyone else too: Fixed now by http://hg.dovecot.org/dovecot-2.0/rev/622d42376fe0 From tss at iki.fi Mon May 9 19:28:56 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:28:56 +0300 Subject: [Dovecot] Spelling error in #define ? In-Reply-To: <4DC000DA.4060407@one.com> References: <4DC000DA.4060407@one.com> Message-ID: <1304958536.10421.104.camel@hurina> On Tue, 2011-05-03 at 15:19 +0200, Peter Mogensen wrote: > Hi, > I stumbled over this define in lazy-expunge-plugin.h: > > #ifndef LAZY_EXPUNGE_PLUGIN_H > #define TLAZY_EXPUNGE_PLUGIN_H > > Isn't there a "T" too much? Yep, thanks :) It didn't really matter here though. Fixed anyway now in hg. From tss at iki.fi Mon May 9 19:34:02 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:34:02 +0300 Subject: [Dovecot] mbox/maildir mixed setup with system/virtual mixed users In-Reply-To: References: Message-ID: <1304958842.10421.108.camel@hurina> On Tue, 2011-05-03 at 15:40 +0300, Victor TARHON-ONU wrote: > ...And mailbox and folder location settings: > > userdb static { > args = uid=mail gid=mail home=/var/spool/vmail/%d/mail/%n mail=mbox:/var/spool/vmail/%d/imap/%n:INBOX=mbox:/var/spool/vmail/%d/mail/%n There's no "mbox:" after INBOX=. I wonder how it works at all if you've it like that. > Now, what I'm trying to accomplish is to reconfigure dovecot to > create and handle the secondary mail folders (/home/user/mail for system > users and /var/spool/vmail/domainname/imap/user/imap for virtual users) in > maildir format. > > I tried to define some name spaces to make this happen, but > whatever I to do make one work (either the virtual users or the system > users) would make the other non-functional. You need to configure system users in dovecot.conf and for virtual users override the namespace location. I think something like this works: userdb static { args = .. namespace_2_location=maildir:/var/spool/vmail/%d/imap/%n The "2" there means the second listed namespace. From tss at iki.fi Mon May 9 19:36:35 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:36:35 +0300 Subject: [Dovecot] sieve filters not being invoked In-Reply-To: <8ee991440d2c142bc4079d3bb26a4a0d@localhost> References: <31569757.post@talk.nabble.com> <4DC7B084.2010703@rename-it.nl> <8ee991440d2c142bc4079d3bb26a4a0d@localhost> Message-ID: <1304958995.10421.109.camel@hurina> On Mon, 2011-05-09 at 13:00 +0200, Colin Brace wrote: > dovecot unix - n n - - pipe > flags=DRhu user=vmail:mail argv=/usr/local/libexec/dovecot/deliver -d > ${recipient} You're running deliver as vmail user. > May 09 12:43:13 lda: Error: userdb lookup: > connect(/var/run/dovecot//auth-userdb) failed: Permission denied > (euid=200(vmail) egid=6(mail) missing +w perm: > /var/run/dovecot//auth-userdb, euid is not dir owner) So make auth-userdb owned by vmail user: service auth { unix_listener auth-userdb { user = vmail } } From tss at iki.fi Mon May 9 19:37:34 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:37:34 +0300 Subject: [Dovecot] sieve filters not being invoked In-Reply-To: <7cf419ddb72927c72622c4e30a337747@localhost> References: <7cf419ddb72927c72622c4e30a337747@localhost> Message-ID: <1304959054.10421.110.camel@hurina> On Mon, 2011-05-09 at 17:56 +0200, Colin Brace wrote: > sending myself a message; however it gets bounced: "user unknown" > (/var/log/maillog): Set auth_debug=yes and see what Dovecot's logs say then. From tss at iki.fi Mon May 9 19:41:22 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:41:22 +0300 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: References: Message-ID: <1304959282.10421.112.camel@hurina> On Mon, 2011-05-09 at 17:37 +0200, Petr Svacina wrote: > If my server is out of space (disk full) and the postfix is LDA, the > new messages a deffered or refused,so postfix send 450 to sender ... > But When I use dovecot (1.2.16) like LDA, postfix accept message (even > there is no space), forward to dovecot, dovecot REFUSE the message and > message is lost ! Dovecot deliver should fail with tempfail, which Postfix should notice and forward to the original sender. If deliver doesn't return tempfail, it's a bug. I'd like to see Postfix logs of when this problem happens. From tss at iki.fi Mon May 9 19:45:56 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 19:45:56 +0300 Subject: [Dovecot] Post-login scripting with mail_drop_priv_before_exec in dovecot2 In-Reply-To: <4DC7E9DB.1090400@webfusion.com> References: <4DC7E9DB.1090400@webfusion.com> Message-ID: <1304959556.10421.116.camel@hurina> On Mon, 2011-05-09 at 16:19 +0300, Mark Zealey wrote: > I'm in the process of upgrading from dovecot v1.1 to dovecot 2. We fetch > uid/gid user information from a database and also use post-login > scripting with mail_drop_priv_before_exec = yes which means the > postlogin script is executed with the permissions of the user we have > found in the database. > > According to the dovecot2 wiki page, to get this behaviour in version 2 > we have to set the post-login script to run as root and then su to the > user. This seems a bit of a strange (and insecure as you might forget) > way of doing this. Are there any other options, such as fetching a > certain column name from the database to set the value of service > imap-postlogin { user } or setting something like user = $user in the > configuration? (or is the configuration only read at startup so such > dynamic configuration can't be done in the service section?) There is no good way to do this. Maybe you should replace your post-login script with a Dovecot plugin that runs on mail_user_created hook and then calls your script with system(). From tss at iki.fi Mon May 9 20:02:55 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 20:02:55 +0300 Subject: [Dovecot] Post-login scripting with mail_drop_priv_before_exec in dovecot2 In-Reply-To: <1304959556.10421.116.camel@hurina> References: <4DC7E9DB.1090400@webfusion.com> <1304959556.10421.116.camel@hurina> Message-ID: <1304960575.10421.117.camel@hurina> On Mon, 2011-05-09 at 19:45 +0300, Timo Sirainen wrote: > On Mon, 2011-05-09 at 16:19 +0300, Mark Zealey wrote: > > > I'm in the process of upgrading from dovecot v1.1 to dovecot 2. We fetch > > uid/gid user information from a database and also use post-login > > scripting with mail_drop_priv_before_exec = yes which means the > > postlogin script is executed with the permissions of the user we have > > found in the database. > > > > According to the dovecot2 wiki page, to get this behaviour in version 2 > > we have to set the post-login script to run as root and then su to the > > user. This seems a bit of a strange (and insecure as you might forget) > > way of doing this. Are there any other options, such as fetching a > > certain column name from the database to set the value of service > > imap-postlogin { user } or setting something like user = $user in the > > configuration? (or is the configuration only read at startup so such > > dynamic configuration can't be done in the service section?) > > There is no good way to do this. Maybe you should replace your > post-login script with a Dovecot plugin that runs on mail_user_created > hook and then calls your script with system(). Oh, actually I think you can simply give -d parameter to script-login.. From matt at gr-lakes.com Mon May 9 20:28:17 2011 From: matt at gr-lakes.com (Matt Mc Namara) Date: Mon, 9 May 2011 13:28:17 -0400 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working References: <4DC4F568.5070204@rename-it.nl> <2895CA51FD8B45F0B15340E98A94FE23@HPDC7600> Message-ID: <6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> Does anyone have any ideas? I've checked my sendmail.cf file which has the entry for dovecot-lda, I've even run it manually and it still does not move the email to the designated file. The logfile for debugging "says" it is running the dovecot-sieve script file. I'm trying to determine where to check next. > Thanks for your response. > > Regarding the ports, I was referring to the services. Which I verified > they > are running. What would cause the scripts to run but do nothing? > > service managesieve-login { > inet_listener sieve { > port = 4190 > } > > inet_listener sieve_deprecated { > port = 2000 > } > > the LDA is enabled and the changes have been made to sendmail. I created a > new sendmail.cf file and the added lines are in there. When I receive an > email the .dovecot.sieve is executed but does nothing. I've attached the > output of dovecot -n. > > # 2.0.12: /usr/local/etc/dovecot/dovecot.conf > # OS: Linux 2.6.35.12-88.fc14.i686 i686 Fedora release 14 (Laughlin) > auth_mechanisms = plain login > disable_plaintext_auth = no > listen = * > mail_location = mbox:~/mail:INBOX=/var/mail/%u > mail_privileged_group = mail > maildir_very_dirty_syncs = yes > mbox_write_locks = fcntl > passdb { > driver = pam > } > service imap-login { > inet_listener imap { > port = 143 > } > } > service pop3-login { > inet_listener pop3 { > port = 110 > } > inet_listener pop3s { > ssl = no > } > } > ssl_cert = ssl_key = userdb { > driver = passwd > } > > > ----- Original Message ----- > From: "Stephan Bosch" > To: > Sent: Saturday, May 07, 2011 3:31 AM > Subject: Re: [Dovecot] DOVECOT v2.0.11 using SIEVE not working > > >> On 5/7/2011 12:54 AM, Matt Mc Namara wrote: >>> Hi, >>> >>> I'm trying to get sieve working with dovecot. I seem to have everything >>> enabled but my scripts done seem to work. >> >> >>> both sieve-filter (2000) and sieve (4190) are running >>> >> Uh, what do you mean with sieve-filter in this case? >> >> Regarding your problem: >> - Make sure you are using the Dovecot LDA >> (http://wiki2.dovecot.org/LDA) and/or LMTP >> (http://wiki2.dovecot.org/LMTP). >> - Make sure the LDA Sieve plugin is enabled >> (http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration) >> - Make sure that the sieve scripts are found. You can obtain more >> information by enabling mail_debug. >> >> If the above does not solve your problem, it is important to post your >> dovecot -n output here. >> >> Regards, >> >> Stephan. From tss at iki.fi Mon May 9 20:41:12 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 20:41:12 +0300 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working In-Reply-To: <6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> References: <4DC4F568.5070204@rename-it.nl> <2895CA51FD8B45F0B15340E98A94FE23@HPDC7600> <6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> Message-ID: <1304962872.10421.119.camel@hurina> On Mon, 2011-05-09 at 13:28 -0400, Matt Mc Namara wrote: > Does anyone have any ideas? I've checked my sendmail.cf file which has the > entry for dovecot-lda, I've even run it manually and it still does not move > the email to the designated file. The logfile for debugging "says" it is > running the dovecot-sieve script file. I'm trying to determine where to > check next. So you've set mail_debug=yes? Show the full log file contents of the delivery, and show the script contents that it says it's running. From tss at iki.fi Mon May 9 20:42:06 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 20:42:06 +0300 Subject: [Dovecot] mail_max_lock_timeout setup In-Reply-To: References: Message-ID: <1304962926.10421.120.camel@hurina> On Sun, 2011-05-08 at 15:17 +0200, Osvaldo Alvarez Pozo wrote: > in wich section most mail_max_lock_timeout be set up? If you set it globally, it applies to all Dovecot services. If you put it inside some protocol {} section, it only applies to that specific service. So, depends on what you want to do.. Some examples only set it to lmtp/lda because tempfailing them isn't as bad as failing IMAP/POP3 command. From ssilva at sgvwater.com Mon May 9 20:43:04 2011 From: ssilva at sgvwater.com (Scott Silva) Date: Mon, 09 May 2011 10:43:04 -0700 Subject: [Dovecot] how to cat / grep from dbox files In-Reply-To: <4DC7B048.1080100@parlicentre.org> References: <4DC2CAD0.60601@parlicentre.org> <4DC7B048.1080100@parlicentre.org> Message-ID: on 5/9/2011 2:13 AM Sarder Kamal spake the following: > Dear Timo > > On 05/05/2011 17:18, Timo Sirainen wrote: >> On 5.5.2011, at 18.05, Sarder Kamal wrote:man doveadm-fetch >> man doveadm-search-query >> >> example: doveadm fetch -u user 'uid text' mailbox INBOX body "hello world" >> > Thanks for the pointers. As I mentioned earlier, too new into dovecot and > still trying to find my way. The only thing I know about this setup is it has > the latest dovecot. However, my next question is, could anyone please tell me > which configuration settings do I need to change to make the storage > non-compressed -- i.e., old style Maildir format? > http://wiki2.dovecot.org/Migration/MailFormat I you actually have the latest version, and not just what your distro says is the latest... From tss at iki.fi Mon May 9 20:49:38 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 20:49:38 +0300 Subject: [Dovecot] Renaming maildir files, UIDs and mail clients In-Reply-To: <20110509074458.GA31982@monsternett.no> References: <20110509074458.GA31982@monsternett.no> Message-ID: <1304963378.10421.123.camel@hurina> On Mon, 2011-05-09 at 09:44 +0200, Helge Milde wrote: > Now for my questions: > 1. How crucial is it to have the S= in the basename when using zlib? > The wiki page mentions quota problems, which we're not using, but also "random failures"... I'm not entirely sure if there is something in the code that relies on it being correct. > 2. Would W= suffice in this regard? No. > 3. If S= *is* needed, is there a way to minimize the effect from the mail client's perspective? Yes. Add the ,S= to the dovecot-uidlist files as well, so the UID doesn't change. If you're using POP3 with UIDLs based on filename you can also add POP3 UIDLs to dovecot-uidlist with new enough Dovecot versions. From tss at iki.fi Mon May 9 20:50:34 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 09 May 2011 20:50:34 +0300 Subject: [Dovecot] how to cat / grep from dbox files In-Reply-To: <4DC7B048.1080100@parlicentre.org> References: <4DC2CAD0.60601@parlicentre.org> <4DC7B048.1080100@parlicentre.org> Message-ID: <1304963434.10421.124.camel@hurina> On Mon, 2011-05-09 at 10:13 +0100, Sarder Kamal wrote: > please tell me which configuration settings do I need to change to make > the storage non-compressed -- i.e., old style Maildir format? For new mails there is plugin { zlib_save } setting. For old mails you'd need to uncompress them manually. From matt at gr-lakes.com Mon May 9 20:51:53 2011 From: matt at gr-lakes.com (Matt Mc Namara) Date: Mon, 9 May 2011 13:51:53 -0400 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working References: <4DC4F568.5070204@rename-it.nl><2895CA51FD8B45F0B15340E98A94FE23@HPDC7600><6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> <1304962872.10421.119.camel@hurina> Message-ID: <6D315D76B7314A138A9676C10578E8AB@HPDC7600> This is what I see via the debug.log file. May 09 08:27:48 managesieve(mmcnamar): Debug: Effective uid=500, gid=500, home=/home/mmcnamar May 09 08:27:48 managesieve(mmcnamar): Debug: fs: root=/home/mmcnamar/mail, index=, control=, inbox=/var/mail/mmcnamar May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using active sieve script path: /home/mmcnamar/.dovecot.sieve May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using sieve script storage directory: /home/mmcnamar/sieve May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using permissions from /home/mmcnamar/sieve: mode=0755 gid=-1 May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: relative path to sieve storage in active link: sieve/ May 09 13:04:58 lda: Debug: Module loaded: /usr/lib/dovecot/lib90_sieve_plugin.so May 09 13:05:16 lda: Debug: Module loaded: /usr/lib/dovecot/lib90_sieve_plugin.so May 09 13:05:30 lda: Debug: Module loaded: /usr/lib/dovecot/lib90_sieve_plugin.so ----- Original Message ----- From: "Timo Sirainen" To: "Matt Mc Namara" Cc: Sent: Monday, May 09, 2011 1:41 PM Subject: Re: [Dovecot] DOVECOT v2.0.11 using SIEVE not working > On Mon, 2011-05-09 at 13:28 -0400, Matt Mc Namara wrote: >> Does anyone have any ideas? I've checked my sendmail.cf file which has >> the >> entry for dovecot-lda, I've even run it manually and it still does not >> move >> the email to the designated file. The logfile for debugging "says" it is >> running the dovecot-sieve script file. I'm trying to determine where to >> check next. > > So you've set mail_debug=yes? Show the full log file contents of the > delivery, and show the script contents that it says it's running. > From stan at hardwarefreak.com Mon May 9 21:46:36 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Mon, 09 May 2011 13:46:36 -0500 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: References: Message-ID: <4DC8368C.6030505@hardwarefreak.com> On 5/9/2011 10:37 AM, Petr Svacina wrote: > Hi, > > Please I have a question: > > If my server is out of space (disk full) and the postfix is LDA, the new messages a deffered or refused,so postfix send 450 to sender ... > But When I use dovecot (1.2.16) like LDA, postfix accept message (even there is no space), forward to dovecot, dovecot REFUSE the message and message is lost ! > > How can I solve this ? I don't want tu use quota and the disk was full, because of the other problem .... This is more of a mail server admin 101 issue than a Dovecot issue. Putting your log, mail spool, and user mail directories on separate partitions, physical disks, or SAN LUNs will prevent such a problem from occurring 99% of the time, assuming you have planned and sized your storage appropriately for your environment. At minimum you should have your spool and user mail storage on different partitions. To avoid this issue the other 1% of the time, use monitoring or log summary tools to notify you of disk space usage so you know when you're close to running out of space. For instance, I receive the following as part of my daily logwatch summary on my personal domain MX: Filesystem Size Used Avail Use% Mounted on /dev/sda2 33G 4.2G 28G 14% / /dev/sda1 92M 8.4M 79M 10% /boot /dev/sda6 94G 1.2G 92G 2% /home /dev/sda7 94G 25G 70G 26% /samba Note that I have both system logs and the mail spool on / but user mail directories in /home. This setup is acceptable for a low volume server. For a high volume server the mail spool should be on a dedicated partition, as well as user mail dirs. If you already know all of this and an unforeseen issue caused your problem, accept my apologies for preaching to the choir. -- Stan From stephan at rename-it.nl Mon May 9 22:40:08 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Mon, 09 May 2011 21:40:08 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: References: Message-ID: <4DC84318.908@rename-it.nl> On 05/09/2011 05:37 PM, Petr Svacina wrote: > Hi, > > Please I have a question: > > If my server is out of space (disk full) and the postfix is LDA, the new messages a deffered or refused,so postfix send 450 to sender ... > But When I use dovecot (1.2.16) like LDA, postfix accept message (even there is no space), forward to dovecot, dovecot REFUSE the message and message is lost ! > > How can I solve this ? I don't want tu use quota and the disk was full, because of the other problem .... > Are you using any plugins, like Sieve? Regards, Stephan. From kjonca at o2.pl Tue May 10 02:20:19 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Tue, 10 May 2011 01:20:19 +0200 Subject: [Dovecot] compressed mboxes very slow References: <87iptnoans.fsf@alfa.kjonca> <4DC5BBB1.1030005@hardwarefreak.com> <87vcxla3x4.fsf@alfa.kjonca> <4DC6E781.60503@hardwarefreak.com> Message-ID: <87vcxj8nrg.fsf@alfa.kjonca> Stan Hoeppner writes: > On 5/8/2011 5:21 AM, Kamil Jo?ca wrote: >> Stan Hoeppner writes: >> >>> On 5/6/2011 3:07 PM, Kamil Jo?ca wrote: >>>> >>>> I have some archive mails in gzipped mboxes. I could use them with >>>> dovecot 1.x without problems. >>>> But recently I have installed dovecot 2.0.12, and they are slow. very >>>> slow. >>>> >>>> Creating index files takes about 10 minutes for ~20M file with 560 >>>> messages for bzipped mbox, for gzipped is little better but still >>>> unusable :( >>> >>> What other software, if any, was also upgraded/changed when you >>> upgraded to Dovecot 2.0.12? Libraries? Filesystem? Daemons? What >> >> IIRC only dovecot - I simply upgrade debian package via aptitude. > > The latest Debian stable dovecot package is 1.2.15-4. If 'aptitude > upgrade' pulled 2.0.12 then you are running either testing or Yes, its testing (sid) dist. [...] > > If you're running testing/unstable you should already know how to > check this. Inotify is a kernel API. For Debian Dovecot to use I know what is inotify, but I haven't to test it so far. :| > inotify it must be compiled with the build option 'notify=inotify'. > You'll need to see the package maintainer's build script. You'll > also need to look at the kernel .config used to build your kernel as > inotify must be built into your kernel. > 1. I have uninstalled debian's package 2. got http://www.dovecot.org/nightly/dovecot-20110506.tar.gz, 3. configure with --notify=inotify, and it looks that inotify exists and is used[1], make make install 4. then run with --8<---------------cut here---------------start------------->8--- #strace -o ~/tmp/dovecot/log -ff dovecot -c /etc/dovecot/dovecot.conf --8<---------------cut here---------------end--------------->8--- 5. connect with mutt and select one of gzipped folders 6. connect with fetchmail and select another gzipped folder (with the same contents as in 5) grepping strace logs shows that in both cases mboxes are reread regularly :( moreover there's no inotify_init (...) call by any dovecot process. Any ideas? [1] moreover inotifywatch works as expected. KJ -- http://modnebzdury.wordpress.com/2009/10/01/niewiarygodny-list-prof-majewskiej-wprowadzenie/ "S?k w tym, ?e cz?owiek rozumny jest statystycznie g?upi" - Stanis?aw Lem. From nebano at gmail.com Tue May 10 03:03:43 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Tue, 10 May 2011 02:03:43 +0200 Subject: [Dovecot] mail_max_lock_timeout setup In-Reply-To: <1304962926.10421.120.camel@hurina> References: <1304962926.10421.120.camel@hurina> Message-ID: Hi. Ok. I intend to use it with OCFS2 storage. So, that would do the trick: protocol lmtp { mail_max_lock_timeout = 50 postmaster_address = admin at example.com } thank a lot 2011/5/9 Timo Sirainen : > On Sun, 2011-05-08 at 15:17 +0200, Osvaldo Alvarez Pozo wrote: > >> in wich section most mail_max_lock_timeout be set up? > > If you set it globally, it applies to all Dovecot services. If you put > it inside some protocol {} section, it only applies to that specific > service. So, depends on what you want to do.. Some examples only set it > to lmtp/lda because tempfailing them isn't as bad as failing IMAP/POP3 > command. > > > From jtam.home at gmail.com Tue May 10 03:11:12 2011 From: jtam.home at gmail.com (Joseph Tam) Date: Mon, 9 May 2011 17:11:12 -0700 (PDT) Subject: [Dovecot] doveadm mailbox status 2.0.12 crashes In-Reply-To: References: Message-ID: On Mon, 9 May 2011, Timo Sirainen wrote: >> # dbx doveadm >> (dbx) run mailbox status -u user messages \* >> ... long list ... >> igel messages=1 >> INBOX messages=231 >> doveadm(user): Panic: Trying to deinit storage before freeing its objects > > A backtrace can't really show why it crashed with this. Something wasn't > freed for some reason. Can you still reproduce this? I'd like to know of > a way to reproduce this. Maybe you can copy this problematic user's > mailboxes to a test user and keep deleting stuff until you see what > triggers it? I started removing files as you've suggested and the minimal condition that triggers a crash is at least one non-mbox file. $ rm /var/mail/user $ rm -rf ~user/mail/* $ echo x >~user/mail/x $ doveadm mailbox status -u user messages \* doveadm(user): Error: Syncing mailbox x failed: Mailbox isn't a valid mbox file doveadm(user): Panic: Trying to deinit storage before freeing its objects doveadm(user): Error: Raw backtrace: 0xff1c296c -> 0xff2a4e20 -> 0xff29e5cc -> 0xff2a8784 -> 0xff2a89fc -> 0x168d4 -> 0x169e0 -> 0x16ef4 -> 0x1745c -> 0x1cafc -> 0x1629c Joseph Tam From stan at hardwarefreak.com Tue May 10 08:06:54 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Tue, 10 May 2011 00:06:54 -0500 Subject: [Dovecot] compressed mboxes very slow In-Reply-To: <87vcxj8nrg.fsf@alfa.kjonca> References: <87iptnoans.fsf@alfa.kjonca> <4DC5BBB1.1030005@hardwarefreak.com> <87vcxla3x4.fsf@alfa.kjonca> <4DC6E781.60503@hardwarefreak.com> <87vcxj8nrg.fsf@alfa.kjonca> Message-ID: <4DC8C7EE.5060208@hardwarefreak.com> On 5/9/2011 6:20 PM, Kamil Jo?ca wrote: > 5. connect with mutt and select one of gzipped folders > 6. connect with fetchmail and select another gzipped folder (with the > same contents as in 5) Does the problem occur with only one client, or are two or more clients required to reproduce the problem? If the former, you're simply unnecessarily confusing things by mentioning two clients in the problem reproduction case here. > grepping strace logs shows that in both cases mboxes are reread > regularly :( moreover there's no inotify_init (...) call by any dovecot > process. > Any ideas? The first time the mbox file is read its filesystem blocks will be cached. The actual file read will take 1 second max on 10 year old hardware, 0.2 seconds on modern hardware. Thus, each subsequent time Dovecot 're-reads' the file, it will occur at RAM speed, something between 3.2 and 12.8GB/s depending on system age. Thus, if it's taking 10 minutes to build the indexes for this gzipped mbox file, the cause of that elapsed 10 minutes isn't going to be the re-reading of the file, as this operation will be completing in microseconds. If you go back to 1.2.15 and strace Dovecot, do you see the same re-reading of the mbox files after each 20 or so messages? This behavior may be normal. I'm not familiar with the code or I'd have told you if this is the case. Regardless, I doubt re-reading is the cause of the slowness. There's got to be something else in the loop besides the file read eating up the CPU time. Given it's 10 minutes for a 20MB file it would seem logical that a large wait is being inserted or Dovecot is waiting for a lock to expire--something along these lines. I'd doubt Dovecot is actually doing anything most of this 10 minutes. I think you need to find out what Dovecot 2.x is waiting on that 1.2.15 wasn't. -- Stan From tomas at tuxteam.de Tue May 10 09:32:48 2011 From: tomas at tuxteam.de (tomas at tuxteam.de) Date: Tue, 10 May 2011 08:32:48 +0200 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <4DC6D1F7.7050103@hardwarefreak.com> Message-ID: <20110510063248.GA6437@tomas> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, May 09, 2011 at 08:28:38AM +0200, Per Jessen wrote: [...] > The usual setup is to do exactly that though - ntpdate (now sntp) at > startup to make sure the initial setting is reasonable, then ntpd to > keep it in sync. To be fair, that (especially the ntpdate part) seems to be a SuSE-ism. Here's a nice reading: Regards - -- tom?s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFNyNwQBcgs9XrR2kYRAtPSAJ0bDpfEkzHMxgiaKEZ2izooR8VkWgCdFQ4c 2brHiLfOIy9Jlqj5Gmp4i0U= =H3mN -----END PGP SIGNATURE----- From ronny.becker at bioscientia.de Tue May 10 09:15:45 2011 From: ronny.becker at bioscientia.de (Becker, Ronny) Date: Tue, 10 May 2011 08:15:45 +0200 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: References: <4DC25A26.3000808@bioscientia.de> Message-ID: <4DC8D811.7060005@bioscientia.de> Am 05.05.2011 22:24, schrieb Scott Silva: > on 5/5/2011 1:04 AM Becker, Ronny spake the following: >> Hello, >> I am using Dovecot 1.2.9 on a 32bit on Ubuntu 10.04.2 LTS. >> >> We got one user who uses folders in an "exessive" way. He has got 704 >> subscribed folders. That means about nearly 3000 folders on the filesystem. >> Since ~ a week the user couldn't work because of timeouts when connecting to >> Dovecot (IMAP). Thunderbird doesn't show any folders - timeout - the webmail >> System (Groupoffice) only presents the INBOX. >> >> I did some debugging and found that a lsub "" "*" that is used by Thunderbird >> takes> 5 minutes. Thunderbird disconnects after ~1 Minute showing the >> timeout. I entered the command directly via port communication. So this is no >> clientside problem. But there is no error message or something else in any logs. >> >> I did some debugging with strace, too. It's about 22MB only for running the >> lsub command !? The Mailbox size is about ~2.2GB, so this should be no >> problem. The maximum subfolder level is about 13 - could this be a problem? >> You can find the structure (simply shown) attached. >> >> >> Thanks for any help!! >> >> >> Best regards >> Ronny Becker >> >> > What is the underlying filesystem, and if its ext3, is dir_index set on? > The underlying Filesystem is ext3 with dir_index enabled. As Timo Sirainen explained the problem seems to be the ACL plugin. With ACL enabled every folder is scanned for a dovecot-acl file and that needs a lot of time. In this case there are >700 subscribed folders using >3600 folders on the filesystem. Gesellschaft mit beschr?nkter Haftung mit Sitz in 55218 Ingelheim am Rhein, eingetragen im Handelsregister des Amtsgerichts Mainz unter HRB 21166. Gesch?ftsf?hrer: PD. Dr. med. Markus Nauck und Dipl.-Vw. Johannes Brill. Vorsitzender des Aufsichtsrates: Prof. Dr. med. Bernd Heicke. Diese E-Mail kann vertrauliche oder auf andere Weise gesch?tzte Informationen enthalten. Sollten Sie diese E-Mail irrt?mlich erhalten haben, l?schen Sie diese bitte von Ihrem System und setzen Sie uns unverz?glich von dem Vorfall in Kenntnis. USt-ID-Nr. DE 811138229 ___ Limited liability company with registered office in 55218 Ingelheim am Rhein, registered with the commercial register of the local court of Mainz under HRB 21166. Managing directors: PD Dr. med. Markus Nauck and Dipl.-Vw. Johannes Brill. Chairman of the supervisory board: Prof. Dr. med. Bernd Heicke. This e-mail may contain confidential or otherwise privileged information. If you are not the intended recipient, please inform us immediately and delete the e-mail from your system. VAT-ID-Nr. DE 811138229 From ronny.becker at bioscientia.de Tue May 10 09:19:32 2011 From: ronny.becker at bioscientia.de (Becker, Ronny) Date: Tue, 10 May 2011 08:19:32 +0200 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: References: <4DC25A26.3000808@bioscientia.de> <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> Message-ID: <4DC8D8F4.5040504@bioscientia.de> Am 05.05.2011 10:44, schrieb Timo Sirainen: > On 5.5.2011, at 10.19, Timo Sirainen wrote: > >>> I did some debugging with strace, too. It's about 22MB only for running the lsub command !? >> Run it with strace -tt and send me the output compressed? > Ah, you have ACLs enabled. With ACLs it's looking up dovecot-acl file from each folder before returning it. This shouldn't be necessary with LSUB I think. I suppose some kind of an ACL cache could be a good idea some day too. And maybe a setting not to bother looking up ACLs for mailboxes in private namespaces. > > I'll try to do something about those within a few days.. > Someone told me, that this problem should not happen when acl_shared_dict is used. But this was enabled in our setup. Is there any other workaround to use ACLs with such a large number of folders?! From maria_arrea at gmx.com Tue May 10 09:33:31 2011 From: maria_arrea at gmx.com (Maria Arrea) Date: Tue, 10 May 2011 06:33:31 +0000 Subject: [Dovecot] Sieve & auto_create mail_home Message-ID: <20110510063331.35600@gmx.com> Hello I am still struggling with this, any idea? Regards Maria ----- Original Message ----- From: Maria Arrea Sent: 05/09/11 12:19 PM To: Dovecot Mailing List Subject: [Dovecot] Sieve & auto_create mail_home Hello In my setup I have the following in dovecot.conf (dovecot 2.0.12) mail_home = /buzones/mydomain/%2.26Hn/%2.200Hn/%n/home_usuario/ mail_location = mdbox:/buzones/my_domain/%2.26Hn/%2.200Hn/%n:INDEX=/indices_dovecot/indices/%2.26Hn/%2.200Hn/%n My problem is with the autocreation of mail_home. We are using roundcube+sieve plugin and the first time a user tries to use sieve fails with this: May 9 12:13:52 buzon dovecot: managesieve(a_poor_user at mydomain): Error: sieve-storage: open(/buzones/my_domain/0a/94/javierdemiguel/home_usuario/sieve//tmp/roundcube-1304936032.M335644P23819.mydomain.sieve) failed: No such file or directory In the second attempt works without problems, the folder "home_usuario" is created after failing the first. How can I fix this? Regards Maria From kjonca at o2.pl Tue May 10 09:32:33 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Tue, 10 May 2011 08:32:33 +0200 Subject: [Dovecot] compressed mboxes very slow References: <87iptnoans.fsf@alfa.kjonca> <4DC5BBB1.1030005@hardwarefreak.com> <87vcxla3x4.fsf@alfa.kjonca> <4DC6E781.60503@hardwarefreak.com> <87vcxj8nrg.fsf@alfa.kjonca> <4DC8C7EE.5060208@hardwarefreak.com> Message-ID: <87oc3b83r2.fsf@alfa.kjonca> Stan Hoeppner writes: > On 5/9/2011 6:20 PM, Kamil Jo?ca wrote: > >> 5. connect with mutt and select one of gzipped folders >> 6. connect with fetchmail and select another gzipped folder (with the >> same contents as in 5) > > Does the problem occur with only one client, or are two or more > clients required to reproduce the problem? If the former, you're > simply unnecessarily confusing things by mentioning two clients in the > problem reproduction case here. >From one of your mail: --8<---------------cut here---------------start------------->8--- Have you tested any other IMAP client such as Thunderbird to eliminate mutt as the cause of the problem? --8<---------------cut here---------------end--------------->8--- So now I can say, this problem is not only with mutt > If you go back to 1.2.15 and strace Dovecot, do you see the same > re-reading of the mbox files after each 20 or so messages? This > behavior may be normal. I'm not familiar with the code or I'd have I will try. KJ -- http://modnebzdury.wordpress.com/2009/10/01/niewiarygodny-list-prof-majewskiej-wprowadzenie/ Zuzanka najwyra?niej pe?ni obowi?zki Albina Siwaka w tej ekipie... (C) Slawek Kotynski w dyskusj nt. pl.whatewer.SETI at home... From stan at hardwarefreak.com Tue May 10 12:30:16 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Tue, 10 May 2011 04:30:16 -0500 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: <4DC8D8F4.5040504@bioscientia.de> References: <4DC25A26.3000808@bioscientia.de> <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> <4DC8D8F4.5040504@bioscientia.de> Message-ID: <4DC905A8.9040501@hardwarefreak.com> On 5/10/2011 1:19 AM, Becker, Ronny wrote: > Am 05.05.2011 10:44, schrieb Timo Sirainen: >> On 5.5.2011, at 10.19, Timo Sirainen wrote: >> >>>> I did some debugging with strace, too. It's about 22MB only for >>>> running the lsub command !? >>> Run it with strace -tt and send me the output compressed? >> Ah, you have ACLs enabled. With ACLs it's looking up dovecot-acl file >> from each folder before returning it. This shouldn't be necessary with >> LSUB I think. I suppose some kind of an ACL cache could be a good idea >> some day too. And maybe a setting not to bother looking up ACLs for >> mailboxes in private namespaces. >> >> I'll try to do something about those within a few days.. >> > Someone told me, that this problem should not happen when > acl_shared_dict is used. But this was enabled in our setup. Is there any > other workaround to use ACLs with such a large number of folders?! In the absence of Timo producing the patches he mentioned in short order... Install this 3.5" Vertex2 120GB SATA II SSD for less than $250 USD incl/shipping: http://www.newegg.com/Product/Product.aspx?Item=N82E16820227590 (If you're shy of using a 'consumer' marketed unit, buy the 64GB Intel SLC for ~$700) This Vertex2 will give you 50,000 random write IOPS (~same for read) with 0.1ms seek latency, approximately 3x the IOPS of a $75k 60x15k SAS drive Nexsan e60 FC SAN array and 50x lower seek latency--but with only 1/300th the capacity. Format with EXT3/4, and simply move your problem user's entire mail directory to the SSD and change his mail location setting. Problem solved instantly, with authority. As you should have ~100GB of space left on the SSD after moving him/her over, move all user indexes to the SSD as well. This will yield an incredible speed boost for all users, and prevent any 'jealously' politics when word spreads of 'Bob' getting his own super-duper fast drive in the server. -- Stan From lists at wildgooses.com Tue May 10 14:47:32 2011 From: lists at wildgooses.com (Ed W) Date: Tue, 10 May 2011 12:47:32 +0100 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: References: <4DC25A26.3000808@bioscientia.de> <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> Message-ID: <4DC925D4.7080106@wildgooses.com> On 05/05/2011 09:44, Timo Sirainen wrote: > On 5.5.2011, at 10.19, Timo Sirainen wrote: > >>> I did some debugging with strace, too. It's about 22MB only for running the lsub command !? >> >> Run it with strace -tt and send me the output compressed? > > Ah, you have ACLs enabled. With ACLs it's looking up dovecot-acl file from each folder before returning it. This shouldn't be necessary with LSUB I think. I suppose some kind of an ACL cache could be a good idea some day too. And maybe a setting not to bother looking up ACLs for mailboxes in private namespaces. Silly question, but I presume there is effectively no "negative caching" from the OS for missing files, but presumably the OS would cache a zero length file? Would it be faster then to create 700 zero length acl files so that these lookups will at least be returned from the OS cache instead of causing IO seeks? First open will be slow, but faster thereafter? Just an idea? Ed W From svacinap at compsys.cz Tue May 10 15:44:17 2011 From: svacinap at compsys.cz (Petr Svacina) Date: Tue, 10 May 2011 14:44:17 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: References: Message-ID: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> Here is the logs: May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: save failed to INBOX: Not enough disk space May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: rejected: Not enough disk space May 8 06:00:36 mailserver postfix/pickup[27640]: D8B242F9E1: uid=150 from=<> May 8 06:00:36 mailserver postfix/pipe[27978]: 4B3A72F8C0: to=, relay=dovecot, delay=11, delays=11/0.02/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot service) May 8 06:00:36 mailserver postfix/qmgr[18807]: 4B3A72F8C0: removed Problem is, that: 1. spool HAVE ENOUGH space (so postfix has no problem keeps the message in the spool) 2. postfix forward message to dovecot 3. dovecot accept message, but can not deliver to /home/vmail, because there is no space :-) 4. so dovecot lost/delete/refuse message and tells postfix - everything is Ok ? 5. postfix cleans qmgr (bacause message has been forward to LDA succesfully I suppose :-) ) Thanks Peter > > On Mon, 2011-05-09 at 17:37 +0200, Petr Svacina wrote: > >> If my server is out of space (disk full) and the postfix is LDA, the >> new messages a deffered or refused,so postfix send 450 to sender ... >> But When I use dovecot (1.2.16) like LDA, postfix accept message (even >> there is no space), forward to dovecot, dovecot REFUSE the message and >> message is lost ! > > Dovecot deliver should fail with tempfail, which Postfix should notice > and forward to the original sender. If deliver doesn't return tempfail, > it's a bug. I'd like to see Postfix logs of when this problem happens. > > -- Tato zprava byla prohledana na vyskyt viru a nebezpecneho obsahu antivirovym systemem MailScanner a zda se byt cista. From mailing at securitylabs.it Tue May 10 15:50:43 2011 From: mailing at securitylabs.it (mailing at securitylabs.it) Date: Tue, 10 May 2011 14:50:43 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> References: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> Message-ID: <4DC934A3.6080902@securitylabs.it> On 10/05/2011 14:44, Petr Svacina wrote: > Here is the logs: > > May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: save failed to INBOX: Not enough disk space > May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: rejected: Not enough disk space > May 8 06:00:36 mailserver postfix/pickup[27640]: D8B242F9E1: uid=150 from=<> > May 8 06:00:36 mailserver postfix/pipe[27978]: 4B3A72F8C0: to=, relay=dovecot, delay=11, delays=11/0.02/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot service) > May 8 06:00:36 mailserver postfix/qmgr[18807]: 4B3A72F8C0: removed > To me message ID : D8B242F9E1 seems a bounce to the sender, if that's correct I don't see troubles with that. From svacinap at compsys.cz Tue May 10 16:04:52 2011 From: svacinap at compsys.cz (Petr Svacina) Date: Tue, 10 May 2011 15:04:52 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: References: Message-ID: <15A3DDDB-AB3D-4560-B342-18C2DF87DE10@compsys.cz> Hi, Yes know, I know, that ANY OUT of SPACE problem is SPECIALLY administrator's problem and please check my previous answer ... Out of space on the disk is my problem, but I want to know, why postfix receive message to it's spool (another partition - lot of space) and when postfix uses dovecot to deliver message to the inbox, where is NO space, why message is lost and removed from qmgr. thanks a lot :-) Peter > > On 5/9/2011 10:37 AM, Petr Svacina wrote: >> Hi, >> >> Please I have a question: >> >> If my server is out of space (disk full) and the postfix is LDA, the new messages a deffered or refused,so postfix send 450 to sender ... >> But When I use dovecot (1.2.16) like LDA, postfix accept message (even there is no space), forward to dovecot, dovecot REFUSE the message and message is lost ! >> >> How can I solve this ? I don't want tu use quota and the disk was full, because of the other problem .... > > This is more of a mail server admin 101 issue than a Dovecot issue. > Putting your log, mail spool, and user mail directories on separate > partitions, physical disks, or SAN LUNs will prevent such a problem from > occurring 99% of the time, assuming you have planned and sized your > storage appropriately for your environment. At minimum you should have > your spool and user mail storage on different partitions. To avoid this > issue the other 1% of the time, use monitoring or log summary tools to > notify you of disk space usage so you know when you're close to running > out of space. For instance, I receive the following as part of my daily > logwatch summary on my personal domain MX: > > Filesystem Size Used Avail Use% Mounted on > /dev/sda2 33G 4.2G 28G 14% / > /dev/sda1 92M 8.4M 79M 10% /boot > /dev/sda6 94G 1.2G 92G 2% /home > /dev/sda7 94G 25G 70G 26% /samba > > Note that I have both system logs and the mail spool on / but user mail > directories in /home. This setup is acceptable for a low volume server. > For a high volume server the mail spool should be on a dedicated > partition, as well as user mail dirs. > > If you already know all of this and an unforeseen issue caused your > problem, accept my apologies for preaching to the choir. > > -- > Stan > -- Tato zprava byla prohledana na vyskyt viru a nebezpecneho obsahu antivirovym systemem MailScanner a zda se byt cista. From svacinap at compsys.cz Tue May 10 16:06:35 2011 From: svacinap at compsys.cz (Petr Svacina) Date: Tue, 10 May 2011 15:06:35 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: References: Message-ID: <7D030741-2C7F-4260-BCA2-063DD0909A64@compsys.cz> Hi, No. No any version of the sieve us used .... > On 05/09/2011 05:37 PM, Petr Svacina wrote: >> Hi, >> >> Please I have a question: >> >> If my server is out of space (disk full) and the postfix is LDA, the new messages a deffered or refused,so postfix send 450 to sender ... >> But When I use dovecot (1.2.16) like LDA, postfix accept message (even there is no space), forward to dovecot, dovecot REFUSE the message and message is lost ! >> >> How can I solve this ? I don't want tu use quota and the disk was full, because of the other problem .... >> > > Are you using any plugins, like Sieve? > > Regards, > > Stephan. > -- Tato zprava byla prohledana na vyskyt viru a nebezpecneho obsahu antivirovym systemem MailScanner a zda se byt cista. From lists at wildgooses.com Tue May 10 16:50:41 2011 From: lists at wildgooses.com (Ed W) Date: Tue, 10 May 2011 14:50:41 +0100 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <4DC79E7A.5080700@hardwarefreak.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> <4DC79E7A.5080700@hardwarefreak.com> Message-ID: <4DC942B1.7020502@wildgooses.com> On 09/05/2011 08:57, Stan Hoeppner wrote: > On 5/9/2011 1:31 AM, Per Jessen wrote: >> Stan Hoeppner wrote: > >>> This is not correct. You're assuming that ntpd doesn't perform sanity >>> checks on the system time when the daemon starts, which is not the >>> case. >> >> The sanity check may be disabled with -g in which case using >> ntpdate/sntp/ntpd -q at start up becomes pointless. > > 'ntpdate -q' has always been 'pointless', unless you just want to look > at the offset without modifying the clock. I do so on occasion to see > how accurately my local ntp server is keeping time. For instance: Can I suggest that the OP also consider Chrony for timekeeping needs? Chrony will generally sync faster than ntp and additionally will manage the setting of the clock at startup. Even nicer it will condition the RTC clock and so for example if your RTC is drifting (it will) then chrony tries to maintain a drift estimate and set the initial time to a sensible offset from the RTC (nice!) Chrony just made a new release a few days ago and it has a bunch of neat features for those who want to get excited about excessively accurate clocks > I acquired 'special' permission many years ago to use a few stratum 1 > USNO servers mostly because at that time I lived in a city where one of > them is located, and because I only have one client querying > infrequently. USNO is the official time keeper for the US Military and > the US Government, including ships at sea via GPS. USNO has the most > accurate timekeeping devices on the planet--atomic clocks. Most (if not > all) of the stratum 2 servers in the US query the USNO stratum 1 servers. Querying an NTP stratum 1 server over the internet will likely leave you with less than millisec accuracy. ie the original is accurate, but the limitations of syncing over the internet are significant Compared with a cheap GPS attached to your machine which should get below ms accuracy and perhaps even below the 100us mark So, in practice it's fairly irrelevant to be hooked to a stratum 1 for most purposes and if you really want to get obsessed about accurate time (I'm going through this obsession phase right now...) then just get a local GPS attached to your machine... I saw some analysis from the current lead Chrony developer comparing time offsets of a bunch of public timeservers and the resulting analysis seems to be that there is quite some significant skew, even on stratum 1 machines... ie you can easily do better at home with a GPS than using a public stratume 1... Curious huh Good luck Ed W From tss at iki.fi Tue May 10 17:02:18 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 17:02:18 +0300 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> References: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> Message-ID: <7638EBDA-9290-4CEB-A940-E2E47B938821@iki.fi> On 10.5.2011, at 15.44, Petr Svacina wrote: > May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: save failed to INBOX: Not enough disk space > May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: rejected: Not enough disk space Oh, it's a rejection.. I guess it's because it's handled the same way as "out of quota". Two things you can do: a) give -e parameter to deliver, so it exits with the proper code instead of sending a new "rejected" message via sendmail. (I think I should have made this the default in v2.0.. Maybe I could change it in v2.1.) b) quota_full_tempfail = yes to have it exit with tempfail rather than a permanent failure From tss at iki.fi Tue May 10 17:47:12 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 17:47:12 +0300 Subject: [Dovecot] Dovecot very slow on a mailbox with > 700 IMAP Folders In-Reply-To: References: <4DC25A26.3000808@bioscientia.de> <5FD6F240-9712-4CB9-8566-E95B7DB157A8@iki.fi> Message-ID: <1305038832.10421.125.camel@hurina> On Thu, 2011-05-05 at 10:44 +0200, Timo Sirainen wrote: > Ah, you have ACLs enabled. With ACLs it's looking up dovecot-acl file from each folder before returning it. This shouldn't be necessary with LSUB I think. I suppose some kind of an ACL cache could be a good idea some day too. And maybe a setting not to bother looking up ACLs for mailboxes in private namespaces. http://hg.dovecot.org/dovecot-2.0/rev/a7f1980d250c should help for your specific problem. From tss at iki.fi Tue May 10 17:52:15 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 17:52:15 +0300 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working In-Reply-To: <6D315D76B7314A138A9676C10578E8AB@HPDC7600> References: <4DC4F568.5070204@rename-it.nl><2895CA51FD8B45F0B15340E98A94FE23@HPDC7600> <6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> <1304962872.10421.119.camel@hurina> <6D315D76B7314A138A9676C10578E8AB@HPDC7600> Message-ID: <1305039135.10421.127.camel@hurina> Those are logs from ManageSieve. ManageSieve has nothing to do with actual mail delivery, only with getting Sieve scripts uploaded to the server. The mail delivery must be done via Dovecot LDA: http://wiki2.dovecot.org/LDA On Mon, 2011-05-09 at 13:51 -0400, Matt Mc Namara wrote: > This is what I see via the debug.log file. > > May 09 08:27:48 managesieve(mmcnamar): Debug: Effective uid=500, gid=500, > home=/home/mmcnamar > May 09 08:27:48 managesieve(mmcnamar): Debug: fs: root=/home/mmcnamar/mail, > index=, control=, inbox=/var/mail/mmcnamar > May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using active > sieve script path: /home/mmcnamar/.dovecot.sieve > May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using sieve > script storage directory: /home/mmcnamar/sieve > May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using > permissions from /home/mmcnamar/sieve: mode=0755 gid=-1 > May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: relative path > to sieve storage in active link: sieve/ > May 09 13:04:58 lda: Debug: Module loaded: > /usr/lib/dovecot/lib90_sieve_plugin.so > May 09 13:05:16 lda: Debug: Module loaded: > /usr/lib/dovecot/lib90_sieve_plugin.so > May 09 13:05:30 lda: Debug: Module loaded: > /usr/lib/dovecot/lib90_sieve_plugin.so > > ----- Original Message ----- > From: "Timo Sirainen" > To: "Matt Mc Namara" > Cc: > Sent: Monday, May 09, 2011 1:41 PM > Subject: Re: [Dovecot] DOVECOT v2.0.11 using SIEVE not working > > > > On Mon, 2011-05-09 at 13:28 -0400, Matt Mc Namara wrote: > >> Does anyone have any ideas? I've checked my sendmail.cf file which has > >> the > >> entry for dovecot-lda, I've even run it manually and it still does not > >> move > >> the email to the designated file. The logfile for debugging "says" it is > >> running the dovecot-sieve script file. I'm trying to determine where to > >> check next. > > > > So you've set mail_debug=yes? Show the full log file contents of the > > delivery, and show the script contents that it says it's running. > > > From tss at iki.fi Tue May 10 17:55:56 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 17:55:56 +0300 Subject: [Dovecot] doveadm mailbox status 2.0.12 crashes In-Reply-To: References: Message-ID: <1305039356.10421.128.camel@hurina> On Mon, 2011-05-09 at 17:11 -0700, Joseph Tam wrote: > >> doveadm(user): Panic: Trying to deinit storage before freeing its objects > > > I started removing files as you've suggested and the minimal > condition that triggers a crash is at least one non-mbox file. Thanks, fixed: http://hg.dovecot.org/dovecot-2.0/rev/b74dfa49692b From tss at iki.fi Tue May 10 17:58:58 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 17:58:58 +0300 Subject: [Dovecot] Dovecot Maildir ownership/permission problem In-Reply-To: <31573368.post@talk.nabble.com> References: <31573368.post@talk.nabble.com> Message-ID: <1305039538.10421.130.camel@hurina> On Mon, 2011-05-09 at 07:16 -0700, ikevinjp wrote: > I think what I would like is to make Dovecot access each individual's > mailbox using the user's own account and group. How do I do this? I am using > Passwd-file scheme. .. > --- Some entries on my passwd-file would be: > > username:{CRAM-MD5}efaa8bbe8fb0d28a55f7595c3420791990f25cc536f0e23c46cb392cb2b058e2:1001:1001::/home/username:: > peter:{CRAM-MD5}512b3e383d95a191d9481e1914cc4caad70cd57029706ec5c3db8ef3039ef405:2001:2001::/home/peter:: Looks like you're almost there since you have uid/gid also specified in the file. So the only thing you need to add is: userdb { driver = passwd-file args = username_format=%n /usr/local/etc/dovecot/dovecot.users } From tss at iki.fi Tue May 10 18:25:04 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 18:25:04 +0300 Subject: [Dovecot] compressed mboxes very slow In-Reply-To: <87iptnoans.fsf@alfa.kjonca> References: <87iptnoans.fsf@alfa.kjonca> Message-ID: <1305041104.10421.131.camel@hurina> Here are some fixes: http://hg.dovecot.org/dovecot-2.0/rev/15a0687ec9d0 http://hg.dovecot.org/dovecot-2.0/rev/66ec075a49d3 From tss at iki.fi Tue May 10 18:46:13 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 18:46:13 +0300 Subject: [Dovecot] Delete unused IMAP keywords from permanetflags In-Reply-To: References: Message-ID: <1305042373.10421.136.camel@hurina> On Mon, 2011-05-09 at 11:15 +0200, Ernesto Revilla Derksen wrote: > Will we have problems if more than 26 keywords are defined in a folder but > only a subset is used? (maildir++) Only the first 26 keywords (used or not) are kept in the Maildir filenames. The rest still exist in index files though. From tss at iki.fi Tue May 10 18:54:07 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 18:54:07 +0300 Subject: [Dovecot] Sieve & auto_create mail_home In-Reply-To: <20110509101958.45750@gmx.com> References: <20110509101958.45750@gmx.com> Message-ID: <1305042847.10421.138.camel@hurina> On Mon, 2011-05-09 at 10:19 +0000, Maria Arrea wrote: > mail_home = /buzones/mydomain/%2.26Hn/%2.200Hn/%n/home_usuario/ > mail_location = mdbox:/buzones/my_domain/%2.26Hn/%2.200Hn/%n:INDEX=/indices_dovecot/indices/%2.26Hn/%2.200Hn/%n > > May 9 12:13:52 buzon dovecot: managesieve(a_poor_user at mydomain): Error: sieve-storage: open(/buzones/my_domain/0a/94/javierdemiguel/home_usuario/sieve//tmp/roundcube-1304936032.M335644P23819.mydomain.sieve) failed: No such file or directory I guess normally this won't show up because normally mail directory is under home dir, not vice versa. But I couldn't reproduce this myself anyway. The sieve/tmp/ dir is created at startup and I can't really think of where that open() error is coming from if it's done earlier. Stephan? From tss at iki.fi Tue May 10 18:57:57 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 18:57:57 +0300 Subject: [Dovecot] could someone check my conf files for dovecot and postfix In-Reply-To: <4DC4B54D.3090008@gmail.com> References: <4DC4B36D.4090708@gmail.com> <4DC4B54D.3090008@gmail.com> Message-ID: <1305043077.10421.139.camel@hurina> On Fri, 2011-05-06 at 19:58 -0700, Trish wrote: > *> dovecot -n* > # 1.2.9: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.32-31-generic i686 Ubuntu 10.04.2 LTS .. > mail_location: maildir:~/Maildir This looks ok. > May 6 20:33:00 craftboard dovecot: IMAP(support.perlygates.com): mail_location: maildir: Unknown setting: mbox There's no reason this error could come from that above config file. So I bet your problem is that you installed dovecot-postfix package, and Ubuntu is actually using /etc/dovecot/dovecot-postfix.conf (or something like that) and that config file is broken. From tss at iki.fi Tue May 10 19:05:28 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 19:05:28 +0300 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: References: <4DC3D251.4050004@Media-Brokers.com> Message-ID: <1305043528.10421.143.camel@hurina> I don't think those results look too bad, even the original ones. imaptest doesn't measure real world performance anyway. Some ideas: - Try mdbox instead of sdbox. Cluster filesystems apparently like a few bigger files better than many small ones. - Try imaptest with logout=0 (or =1 or something). Now you're measuring way too much the login performance. - autocreate plugin sucks, especially with logout=100 because it has to check that all of the mailboxes exist. In v2.1 autocreate plugin is redesigned to not do any disk I/O. On Fri, 2011-05-06 at 23:01 -0400, Aliet Santiesteban Sifontes wrote: > New results, now with all plugins disabled: > > os rhel6 x86_64, GFS2 Lun > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 1- 4514 2189 2250 4514 4264 6163 709 3403 4260 4292 8726 > 2- 2827 1409 1389 2827 2765 3951 495 2168 2765 2777 5644 > 3- 2711 1409 1368 2711 2649 3833 512 2145 2647 2662 5396 > 4- 1799 912 890 1799 1720 2492 360 1370 1719 1735 3592 > 5- 3817 1869 1896 3760 3717 5313 575 3026 3715 3737 7616 > 6- 3296 1583 1628 3296 3215 4585 523 2600 3215 3238 6584 > > 2011/5/6 Aliet Santiesteban Sifontes > > > the configs: > > > > [root at n02 ~]# dovecot -n > > # 2.0.12: /etc/dovecot/dovecot.conf > > # OS: Linux 2.6.32-71.24.1.el6.x86_64 x86_64 Red Hat Enterprise Linux > > Server release 6.0 (Santiago) > > auth_cache_size = 15 M > > auth_default_realm = test.com > > auth_mechanisms = plain login > > auth_worker_max_count = 60 > > disable_plaintext_auth = no > > login_greeting = Server ready. > > mail_fsync = never > > mail_location = sdbox:~/sdbox:INDEX=/vmail/index/%n > > mail_plugins = quota zlib > > managesieve_notify_capability = mailto > > managesieve_sieve_capability = fileinto reject envelope encoded-character > > vacation subaddress comparator-i;ascii-numeric relational regex imap4flags > > copy include variables body enotify environment mailbox date > > mbox_write_locks = fcntl > > mmap_disable = yes > > namespace { > > inbox = yes > > location = > > prefix = > > separator = / > > } > > passdb { > > args = /etc/dovecot/dovecot-ldap.conf.ext > > driver = ldap > > } > > plugin { > > autocreate = Sent > > autocreate2 = Trash > > autocreate3 = Drafts > > autocreate4 = Junk > > autocreate5 = Archives > > autocreate6 = Templates > > autosubscribe = Sent > > autosubscribe2 = Trash > > autosubscribe3 = Drafts > > autosubscribe4 = Junk > > autosubscribe5 = Archives > > autosubscribe6 = Templates > > quota = dict:User quota::file:%h/sdbox/dovecot-quota > > quota_rule = *:storage=250M > > quota_rule2 = Trash:storage=+50M > > quota_rule3 = Spam:storage=+25M > > quota_rule4 = Sent:ignore > > sieve = ~/.dovecot.sieve > > sieve_before = /var/vmail/sievescripts/before.d > > sieve_dir = ~/sieve > > zlib_save = gz > > zlib_save_level = 6 > > } > > postmaster_address = postmaster at test.com > > protocols = imap pop3 lmtp sieve > > service auth { > > unix_listener auth-userdb { > > group = vmail > > mode = 0660 > > user = root > > } > > } > > service imap-login { > > service_count = 0 > > } > > > > best regards > > > > > > 2011/5/6 Charles Marcus > > > >> On 2011-05-05 7:56 PM, Aliet Santiesteban Sifontes wrote: > >> > We have used sdbox as mailbox format, and all the user data is > >> configured in > >> > LDAP Servers > >> > >> It might help Timo to provide some suggestions if you also provide > >> dovecot -n output... ;) > >> > >> -- > >> > >> Best regards, > >> > >> Charles > >> > > > > From matt at gr-lakes.com Tue May 10 19:46:13 2011 From: matt at gr-lakes.com (Matt Mc Namara) Date: Tue, 10 May 2011 12:46:13 -0400 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working References: <4DC4F568.5070204@rename-it.nl><2895CA51FD8B45F0B15340E98A94FE23@HPDC7600><6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> <1304962872.10421.119.camel@hurina> Message-ID: <0E815C7A028A4130BF0B1971E7FBD260@HPDC7600> Hi All, I seem to be getting nowhere on this problem. 1. Does anyone have a working configuration using sendmail, dovecot and sieve for filters? 2. Dovecot 2.0.11 currently is running and working both with imap and pop3. 3. Sendmail version 8.14.4 is being used and the .mc file has been modifed to use dovecot as the LDA. A new .cf file has been created and is currently running. 4. A simple rule has been created and called .dovecot-sieve and has been tested. However, it never seems to be involked. I have checked the wiki2.dovecot.org site long before posting on here. I have searched to make sure configurations are correct. I have already looked at and verified my entries regarding the wiki2.dovecot.org/LDA reference. I'm still not seeing my scripts being executed. Where is the next logical place to look? Thanks in advance From tss at iki.fi Tue May 10 20:11:32 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 20:11:32 +0300 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working In-Reply-To: <0E815C7A028A4130BF0B1971E7FBD260@HPDC7600> References: <4DC4F568.5070204@rename-it.nl><2895CA51FD8B45F0B15340E98A94FE23@HPDC7600> <6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> <1304962872.10421.119.camel@hurina> <0E815C7A028A4130BF0B1971E7FBD260@HPDC7600> Message-ID: <1305047492.10421.178.camel@hurina> On Tue, 2011-05-10 at 12:46 -0400, Matt Mc Namara wrote: > 3. Sendmail version 8.14.4 is being used and the .mc file has been modifed > to use dovecot as > the LDA. A new .cf file has been created and is currently running. This is very likely where the problem is. My guess is that Sendmail isn't calling Dovecot LDA at all. If it is, there should be lines in Dovecot logs about "lda(..): .." If you don't see such lines, Sendmail isn't calling LDA. In that case show Sendmail logs about a new mail delivery, maybe someone can figure out what's wrong. From rdjebrouni at orangetango.com Thu May 5 21:45:47 2011 From: rdjebrouni at orangetango.com (Riadh Djebrouni) Date: Thu, 5 May 2011 18:45:47 +0000 (UTC) Subject: [Dovecot] =?utf-8?q?dovecot-lda_2=2E0=2E8_Panic=3A_stream_doesn?= =?utf-8?q?=27t_support_seeking=09backwards?= References: <4CFEFEF2.1050204@jesstech.com> Message-ID: Hi, I'm facing the exact same problem. Did you find a workaround? From Dave at Yost.com Fri May 6 04:25:11 2011 From: Dave at Yost.com (Dave Yost) Date: Thu, 5 May 2011 18:25:11 -0700 Subject: [Dovecot] when the user has no home directory Message-ID: A user on our server for some reason didn't have a home directory. As a result, the pop3 server was complaining. Apple's Mail app reported that the server said: The attempt to send data to the server "(null)" failed. It would be nice if the server would say something to the effect that the connection failed because the user account has no home directory. Thanks From tom-dovecot at tomonica.net Sat May 7 18:24:57 2011 From: tom-dovecot at tomonica.net (Tom Wright) Date: Sat, 7 May 2011 16:24:57 +0100 Subject: [Dovecot] Problem with sieve after upgrade to 2.0 Message-ID: <201105071624.58117.tom-dovecot@tomonica.net> Hi, I've just upgraded from 1.2 to 2.0.12 via debian sid packages. I think I've moved all my config over to the new directory-based structure and most things are working, but the subaddress extension in sieve doesn't seem to do anything anymore. It doesn't report an error, but any rules which use it are just ignored. Other sieve rules which don't use subaddress seem to work ok. Here's my config: # 2.0.12: /etc/dovecot/dovecot.conf # OS: Linux 2.6.38-2-amd64 x86_64 Debian wheezy/sid lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date passdb { args = scheme=cram-md5 /etc/dovecot/passwd.dovecot driver = passwd-file } plugin { recipient_delimiter = - sieve = ~/.dovecot.sieve sieve_dir = ~/.sieve } postmaster_address = postmaster at tomonica.net protocols = " imap sieve" recipient_delimiter = - service imap-login { inet_listener imap { port = 0 } } ssl_cert = References: <4DC456B4.7000205@educ.ar> <4DC4EF53.2050108@rename-it.nl> Message-ID: <4DC5B919.3060309@educ.ar> Thanks Stephan, but doesn't work. I try both plugin: sieve: ~/sieve/ and plugin: sieve: ~/.dovecot.sieve But still have message: NO "Script name 'sogo' is reserved for internal use." Regards, Stephan Bosch wrote: > On 5/6/2011 10:14 PM, Pablo Luchetti wrote: >> Hi, I have a problem with dovecot's sieve and SOGo ( >> http://www.sogo.nu/ ) >> >> I have installed last version of sogo ( 1.3.6) in one virtual machine >> with ubuntu, lucid. >> In another virtualmachine with ubuntu jaunty is running dovecot ( >> 1:1.1.11-0ubuntu4.1 ) >> >> When try to activate vacation function, after the "PUTSCRIPT "sogo" >> command, the manage-sieve answer: >> >> NO "Script name 'sogo' is reserved for internal use." > > >> plugin: >> sieve: ~/sieve/s0g0.sieve >> > > The default for sieve_dir is '~/sieve/', so now you are putting the > active script symlink (as configured with sieve=) in the sieve > storage. This is never a good idea, because that symlink may be > confused with a normal script. To prevent issues, the ManageSieve > daemon prevents you from using the symlink as a scriptname. > > Why did you configure it like that? If you remove the above line, or > change it to something sensible, like the default value > sieve=~/.dovecot.sieve, it will work normally. > > Regards, > > Stephan. > From friebel at ifh.de Sun May 8 13:55:46 2011 From: friebel at ifh.de (Wolfgang Friebel) Date: Sun, 8 May 2011 12:55:46 +0200 (CEST) Subject: [Dovecot] alpine + Maildir In-Reply-To: References: <3DDC0B6D-9BB5-4786-82E5-E64773F98830@iki.fi> <4DC40DFA.8060209@Media-Brokers.com> <4DC43315.4060708@Media-Brokers.com> Message-ID: On Fri, 6 May 2011, upen wrote: > On Fri, May 6, 2011 at 12:42 PM, Charles Marcus > wrote: >> On 2011-05-06 11:10 AM, upen wrote: >>> Well, this is what RHEL 6 's stable repo currently offers >> >> Well, if you're not willing to upgrade to at least a reasonably stable >> RELEASE version, don't be surprised if you get little to no help. >> >> I'll never understand this attitude... > > All I understand is that the issue I am having is not due to the > version of dovecotthat is installed. If I know that this is not > working due to beta version then I am willing to upgrade. Thanks for > your opinion. > What you are probably looking for is in the alpine configuration (setup -> configure) the 'Hide Empty Directories' option which you have to turn on. It corresponds to the 'quell-empty-directory' in pinerc Hope it helps. Wolfgang Friebel From playedalive at gmail.com Sat May 7 23:44:06 2011 From: playedalive at gmail.com (duonut) Date: Sat, 7 May 2011 13:44:06 -0700 (PDT) Subject: [Dovecot] Dovecot using FTS solr or Squat when searching multiple fields. Message-ID: <31567683.post@talk.nabble.com> Hi Im using dovecot 1.2.16 with Solr setup for FTS. When searching a single field such as subject Dovecot will use the solr index. When searching multiple fields such as subject and body it does not use the index and uses the standard built in search which takes much longer. Is there any way to get Dovecot to use the solr or squat index when searching multiple fields? -- View this message in context: http://old.nabble.com/Dovecot-using-FTS-solr-or-Squat-when-searching-multiple-fields.-tp31567683p31567683.html Sent from the Dovecot mailing list archive at Nabble.com. From hmoreno at gmv.com Tue May 10 19:21:02 2011 From: hmoreno at gmv.com (=?iso-8859-1?Q?H=E9ctor_Moreno_Blanco?=) Date: Tue, 10 May 2011 18:21:02 +0200 Subject: [Dovecot] LDAP Authentication ok but errors Message-ID: Hello Timo, We have installed dovecot 2.0.10. With LDAP authentication. Users authenticate successfully but in the authentication process there are errors that I don't understand because it's everything all right: May 10 18:00:49 carpe3 dovecot: auth: Error: ldap_unbind May 10 18:00:49 carpe3 dovecot: auth: Error: ldap_free_connection 1 1 May 10 18:00:49 carpe3 dovecot: auth: Error: ldap_send_unbind May 10 18:00:49 carpe3 dovecot: auth: Error: ldap_free_connection: actually freed May 10 18:02:02 carpe3 dovecot: master: Dovecot v2.0.10 starting up (core dumps disabled) May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_bind May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_simple_bind May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_sasl_bind May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_send_initial_request May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_new_connection 1 1 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_int_open_connection May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_connect_to_host: TCP ldap_server:389 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_new_socket: 16 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_prepare_socket: 16 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_connect_to_host: Trying xxx.xxx.xxx.xxx:389 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_connect_timeout: fd: 16 tm: -1 async: 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_open_defconn: successful May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_send_server_request May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:02 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:02 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:02 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:02 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:02 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:02 2011 May 10 18:02:02 carpe3 dovecot: auth: Error: May 10 18:02:02 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:02 carpe3 dovecot: auth: Error: * msgid 1, origid 1, status InProgress May 10 18:02:02 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:02 carpe3 dovecot: auth: Error: Empty May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:02 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:02 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid 1 message type bind May 10 18:02:02 carpe3 dovecot: auth: Error: new result: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:02 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 0 new referrals May 10 18:02:02 carpe3 dovecot: auth: Error: read1msg: mark request completed, ld 0x1c8e6df0 msgid 1 May 10 18:02:02 carpe3 dovecot: auth: Error: request done: ld 0x1c8e6df0 msgid 1 May 10 18:02:02 carpe3 dovecot: auth: Error: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_free_request (origid 1, msgid 1) May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_free_connection 0 1 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_free_connection: refcnt 1 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_parse_result May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_msgfree May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:02 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:02 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:02 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:02 carpe3 dovecot: auth: Error: refcnt: 1 status: Connected May 10 18:02:02 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:02 2011 May 10 18:02:02 carpe3 dovecot: auth: Error: May 10 18:02:02 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:02 carpe3 dovecot: auth: Error: Empty May 10 18:02:02 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:02 carpe3 dovecot: auth: Error: Empty May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:02 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_search May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(&(objectClass=qmailUser)(uid=USERID)(accountActive=TRUE))" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: AND May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter_list "(objectClass=qmailUser)(uid=USERID)(accountActive=TRUE)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(objectClass=qmailUser)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "objectClass=qmailUser" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(uid=USERID)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "uid= USERID " May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(accountActive=TRUE)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "accountActive=TRUE" May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_build_search_req ATTRS: May 10 18:02:13 carpe3 dovecot: auth: Error: uid May 10 18:02:13 carpe3 dovecot: auth: Error: mailMessageStore May 10 18:02:13 carpe3 dovecot: auth: Error: mailQuotaSize May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_initial_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_server_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 2, origid 2, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid 2 message type search-entry May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_first_attribute May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_get_values May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_next_attribute May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_get_values May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_next_attribute May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_get_values May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_next_attribute May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_get_dn May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_msgfree May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 2, origid 2, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid 2 message type search-result May 10 18:02:13 carpe3 dovecot: auth: Error: new result: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 0 new referrals May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: mark request completed, ld 0x1c8e6df0 msgid 2 May 10 18:02:13 carpe3 dovecot: auth: Error: request done: ld 0x1c8e6df0 msgid 2 May 10 18:02:13 carpe3 dovecot: auth: Error: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_request (origid 2, msgid 2) May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection 0 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection: refcnt 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_parse_result May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_bind May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_simple_bind May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_sasl_bind May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_initial_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_server_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_msgfree May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 3, origid 3, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 3, origid 3, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid 3 message type bind May 10 18:02:13 carpe3 dovecot: auth: Error: new result: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 0 new referrals May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: mark request completed, ld 0x1c8e6df0 msgid 3 May 10 18:02:13 carpe3 dovecot: auth: Error: request done: ld 0x1c8e6df0 msgid 3 May 10 18:02:13 carpe3 dovecot: auth: Error: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_request (origid 3, msgid 3) May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection 0 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection: refcnt 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_parse_result May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_parse_result May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_msgfree May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 1 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_bind May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_simple_bind May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_sasl_bind May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_initial_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_server_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 4, origid 4, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid 4 message type bind May 10 18:02:13 carpe3 dovecot: auth: Error: new result: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 0 new referrals May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: mark request completed, ld 0x1c8e6df0 msgid 4 May 10 18:02:13 carpe3 dovecot: auth: Error: request done: ld 0x1c8e6df0 msgid 4 May 10 18:02:13 carpe3 dovecot: auth: Error: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_request (origid 4, msgid 4) May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection 0 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection: refcnt 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_parse_result May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_search May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(&(objectClass=qmailUser)(|(mailAlternateAddress= USERID)(mail= USERID)(uid= USERID))(accountActive=TRUE))" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: AND May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter_list "(objectClass=qmailUser)(|(mailAlternateAddress= USERID)(mail= USERID)(uid= USERID))(accountActive=TRUE)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(objectClass=qmailUser)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "objectClass=qmailUser" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(|(mailAlternateAddress= USERID)(mail= USERID)(uid= USERID))" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: OR May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter_list "(mailAlternateAddress= USERID)(mail= USERID)(uid= USERID)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(mailAlternateAddress= USERID)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "mailAlternateAddress= USERID " May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(mail= USERID)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "mail= USERID " May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(uid= USERID)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "uid= USERID " May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: "(accountActive=TRUE)" May 10 18:02:13 carpe3 dovecot: auth: Error: put_filter: simple May 10 18:02:13 carpe3 dovecot: auth: Error: put_simple_filter: "accountActive=TRUE" May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_build_search_req ATTRS: May 10 18:02:13 carpe3 dovecot: auth: Error: mailMessageStore May 10 18:02:13 carpe3 dovecot: auth: Error: mailQuotaSize May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_initial_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_send_server_request May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_msgfree May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 5, origid 5, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 5, origid 5, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid 5 message type search-entry May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_first_attribute May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_get_values May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_next_attribute May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_get_values May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_next_attribute May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_msgfree May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 2 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: * msgid 5, origid 5, status InProgress May 10 18:02:13 carpe3 dovecot: auth: Error: outstanding referrals 0, parent count 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 msgid 5 message type search-result May 10 18:02:13 carpe3 dovecot: auth: Error: new result: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: ld 0x1c8e6df0 0 new referrals May 10 18:02:13 carpe3 dovecot: auth: Error: read1msg: mark request completed, ld 0x1c8e6df0 msgid 5 May 10 18:02:13 carpe3 dovecot: auth: Error: request done: ld 0x1c8e6df0 msgid 5 May 10 18:02:13 carpe3 dovecot: auth: Error: res_errno: 0, res_error: <>, res_matched: <> May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_request (origid 5, msgid 5) May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection 0 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_free_connection: refcnt 1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_parse_result May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_msgfree May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_result ld 0x1c8e6df0 msgid -1 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg ld 0x1c8e6df0 msgid -1 (timeout 0 usec) May 10 18:02:13 carpe3 dovecot: auth: Error: wait4msg continue ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Connections: May 10 18:02:13 carpe3 dovecot: auth: Error: * host: ldap_server port: 389 (default) May 10 18:02:13 carpe3 dovecot: auth: Error: refcnt: 1 status: Connected May 10 18:02:13 carpe3 dovecot: auth: Error: last used: Tue May 10 18:02:13 2011 May 10 18:02:13 carpe3 dovecot: auth: Error: May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Outstanding Requests: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ** ld 0x1c8e6df0 Response Queue: May 10 18:02:13 carpe3 dovecot: auth: Error: Empty May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList ld 0x1c8e6df0 msgid -1 all 0 May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_chkResponseList returns ld 0x1c8e6df0 NULL May 10 18:02:13 carpe3 dovecot: auth: Error: ldap_int_select May 10 18:02:13 carpe3 dovecot: imap-login: Login: user=< USERID >, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11362, secured May 10 18:02:25 carpe3 dovecot: imap(USERID): Disconnected: Logged out bytes=29/655 Here is my dovecot -n output: # OS: Linux 2.6.18-128.1.1.el5 x86_64 Scientific Linux SL release 5.2 (Boron) auth_cache_size = 500 k auth_cache_ttl = 1000 secs disable_plaintext_auth = no first_valid_uid = 501 lock_method = dotlock mail_fsync = always mail_gid = vmail mail_location = maildir:%h/Maildir mail_nfs_index = yes mail_nfs_storage = yes mail_uid = vmail mmap_disable = yes namespace { inbox = yes location = prefix = INBOX. type = private } passdb { args = /etc/dovecot/dovecot-ldap.conf driver = ldap } plugin/quota = maildir plugin/quota_warning = storage=75%% /usr/local/dovecot/bin/quota-warning.sh 75 plugin/quota_warning2 = storage=90%% /usr/local/dovecot/bin/quota-warning.sh 90 protocols = imap pop3 service auth { unix_listener auth-master { group = vmail mode = 0700 user = vmail } user = root vsz_limit = 4 G } service imap-login { executable = /usr/local/dovecot/libexec/dovecot/imap-login inet_listener imap { address = * port = 143 } inet_listener imaps { address = * port = 993 } process_limit = 2048 process_min_avail = 20 user = dovecot } service imap { executable = /usr/local/dovecot/libexec/dovecot/imap process_limit = 2048 } service pop3-login { executable = /usr/local/dovecot/libexec/dovecot/pop3-login inet_listener pop3 { address = * port = 110 } inet_listener pop3s { address = * port = 995 } process_limit = 2048 process_min_avail = 20 user = dovecot } service pop3 { executable = /usr/local/dovecot/libexec/dovecot/pop3 process_limit = 2048 } ssl_cert = fue rechazado automaticamente por nuestro sistema :%n%r rejection_subject = Rechazado: %s sendmail_path = /usr/sbin/exim } An here is my dovecot-ldap.conf: # INFORMACI?N DE CONEXI?N AL LDAP hosts = virt_ldap auth_bind = yes ldap_version = 3 dnpass = passwd dn = cn=XXXXXXXX,dc=domain,dc=es debug_level = -1 base = dc=domain,dc=es deref = never scope = subtree ## CONSULTA AL LDAP PARA AUTENTICACION pass_filter = (&(objectClass=qmailUser)(uid=%u)(accountActive=TRUE)) pass_attrs = uid=user, mailMessageStore=home, userPassword=password, mailQuotaSize=quota_rule=*:bytes=%$ ## CONSULTA AL LDAP COMO BBDD user_attrs = mailMessageStore=home, mailQuotaSize=quota_rule=*:bytes=%$ user_filter = (&(objectClass=qmailUser)(|(mailAlternateAddress=%u)(mail=%u)(uid=%u))(accountActive=TRUE)) Thank you very much in advanced Best regards, H?ctor Moreno Blanco. ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ From nebano at gmail.com Tue May 10 20:17:13 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Tue, 10 May 2011 19:17:13 +0200 Subject: [Dovecot] DOVECOT v2.0.11 using SIEVE not working In-Reply-To: <0E815C7A028A4130BF0B1971E7FBD260@HPDC7600> References: <4DC4F568.5070204@rename-it.nl> <2895CA51FD8B45F0B15340E98A94FE23@HPDC7600> <6E84D0F28EC34394B1E2E4EA1ED5B154@HPDC7600> <1304962872.10421.119.camel@hurina> <0E815C7A028A4130BF0B1971E7FBD260@HPDC7600> Message-ID: Hi I do not see your lda configuration in dovecot, I should look like: protocol lda { mail_plugins = sieve postmaster_address =postmaster at example.com } Thanks 2011/5/10 Matt Mc Namara : > Hi All, > > I seem to be getting nowhere on this problem. > > 1. Does anyone have a working configuration using sendmail, dovecot and > sieve for filters? > 2. Dovecot 2.0.11 currently is running and working both with imap and pop3. > 3. Sendmail version 8.14.4 is being used and the .mc file has been modifed > to use dovecot as > ? the LDA. A new .cf file has been created and is currently running. > 4. A simple rule has been created and called .dovecot-sieve and has been > tested. However, it > ? never seems to be involked. > > I have checked the wiki2.dovecot.org site long before posting on here. I > have searched to make sure configurations are correct. I have already looked > at and verified my entries regarding the wiki2.dovecot.org/LDA reference. > I'm still not seeing my scripts being executed. > > Where is the next logical place to look? > > Thanks in advance > From fakessh at fakessh.eu Tue May 10 20:21:42 2011 From: fakessh at fakessh.eu (fakessh) Date: Tue, 10 May 2011 19:21:42 +0200 Subject: [Dovecot] =?iso-8859-1?q?dovecot-lda_2=2E0=2E8_Panic=3A_stream_do?= =?iso-8859-1?q?esn=27t_support_seeking=09backwards?= In-Reply-To: References: <4CFEFEF2.1050204@jesstech.com> Message-ID: <201105101921.48933.fakessh@fakessh.eu> Le jeudi 5 mai 2011 20:45, Riadh Djebrouni a ?crit?: > Hi, I'm facing the exact same problem. > Did you find a workaround? ? un ragazzino di breve -- http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7 gpg --keyserver pgp.mit.edu --recv-key 092164A7 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From mark at msapiro.net Tue May 10 20:29:39 2011 From: mark at msapiro.net (Mark Sapiro) Date: Tue, 10 May 2011 10:29:39 -0700 Subject: [Dovecot] when the user has no home directory In-Reply-To: References: Message-ID: <4DC97603.9080801@msapiro.net> On 11:59 AM, Dave Yost wrote: > A user on our server for some reason didn't have a home directory. As a > result, the pop3 server was complaining. Apple's Mail app reported that > the server said: > > The attempt to send data to the server "(null)" failed. Mail is sent via SMTP, not POP3. A client MUA delivers mail to a server via SMTP and presumably it is the MTA on the server, not Dovecot, that issued whatever failure resulted in the above. It is possible that Dovecot is involved, e.g. in processing SASL authentication, but Apple Mail would have been talking to the MTA on the server. -- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan From tss at iki.fi Tue May 10 20:31:59 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 20:31:59 +0300 Subject: [Dovecot] Dovecot using FTS solr or Squat when searching multiple fields. In-Reply-To: <31567683.post@talk.nabble.com> References: <31567683.post@talk.nabble.com> Message-ID: <1305048719.10421.181.camel@hurina> On Sat, 2011-05-07 at 13:44 -0700, duonut wrote: > Hi > Im using dovecot 1.2.16 with Solr setup for FTS. When searching a single > field such as subject Dovecot will use the solr index. When searching > multiple fields such as subject and body it does not use the index and uses > the standard built in search which takes much longer. > > Is there any way to get Dovecot to use the solr or squat index when > searching multiple fields? The problem is that Dovecot FTS plugin doesn't currently support the search "OR" parameter. So you're probably searching for "foo OR bar" fields, which doesn't work. There's no reason why it couldn't work, other than that fixing it isn't a high priority for me currently.. It could become though. :) From anfi at onet.eu Tue May 10 21:32:21 2011 From: anfi at onet.eu (Andrzej Adam Filip) Date: Tue, 10 May 2011 20:32:21 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: <7638EBDA-9290-4CEB-A940-E2E47B938821@iki.fi> (Timo Sirainen's message of "Tue, 10 May 2011 17:02:18 +0300") References: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> <7638EBDA-9290-4CEB-A940-E2E47B938821@iki.fi> Message-ID: Timo Sirainen wrote: > On 10.5.2011, at 15.44, Petr Svacina wrote: > >> May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: save failed to INBOX: Not enough disk space >> May 8 06:00:36 mailserver dovecot: deliver(sazima at vendys.net): msgid=<3DEF56667E754F24B163C9767422C9A9 at dlllk.local>: rejected: Not enough disk space > > Oh, it's a rejection.. I guess it's because it's handled the same way > as "out of quota". Two things you can do: > > a) give -e parameter to deliver, so it exits with the proper code > instead of sending a new "rejected" message via sendmail. (I think I > should have made this the default in v2.0.. Maybe I could change it in > v2.1.) > > b) quota_full_tempfail = yes to have it exit with tempfail rather than > a permanent failure Do you intent any time soon to provide some hook to alow MTA reject in reply to "RCPT TO:" (in SMTP session) messages to over quota mailboxes? Exit code of "deliver -e" can only be used to reject message in reply to "the final dot" *for single recipient messages*. -- [pl>en: Andrew] Andrzej Adam Filip : anfi at onet.eu Nachman's Rule: When it comes to foreign food, the less authentic the better. -- Gerald Nachman From tss at iki.fi Tue May 10 21:37:20 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 21:37:20 +0300 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: References: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> <7638EBDA-9290-4CEB-A940-E2E47B938821@iki.fi> Message-ID: <4AC9F690-85E4-4EF6-998A-29697CCBF3A1@iki.fi> On 10.5.2011, at 21.32, Andrzej Adam Filip wrote: > Do you intent any time soon to provide some hook to alow MTA reject > in reply to "RCPT TO:" (in SMTP session) messages to over quota > mailboxes? Can you give specifics of what I'd need to do for that? I remember there is some sendmail protocol that is also supported by Postfix (I think), but I can't remember specifics (and a bit lazy to google for it). v2.0 would finally allow easily implementing such service. Hmm. I guess such service would both have to check if the user exists and also the quota value, and give errors about both of them. From slusarz at curecanti.org Tue May 10 21:44:58 2011 From: slusarz at curecanti.org (Michael M Slusarz) Date: Tue, 10 May 2011 12:44:58 -0600 Subject: [Dovecot] BUG(?): Incorrect responses for ACL prohibited actions Message-ID: <20110510124458.Horde.LnlpeIF5lbhNyYeqlCXUIdA@bigworm.curecanti.org> In a mailbox that has ACL restrictions on both DELETE and EXPUNGE (i.e. no 'e' or 't' rights), I see the following: 3 UID STORE 3173 (UNCHANGEDSINCE 353) +FLAGS \deleted 3 OK Store completed. (UID 3173 is not flagged \deleted) [...] 6 UID EXPUNGE 1:* 6 OK Expunge completed. (At least 1 UID is flagged \deleted in mailbox) Shouldn't these commands be returning "NO" instead of "OK"? RFC 3501 [6.4.6] for STORE: NO - store error: can't store that data and RFC RFC 3501 [6.4.3] for EXPUNGE: NO - expunge failure: can't expunge (e.g., permission denied) Additionally, RFC 5530 [3] provides the NOPERM response code: NOPERM The access control system (e.g., Access Control List (ACL), see [RFC 4314]) does not permit this user to carry out an operation, such as selecting or creating a mailbox. C: f select "/archive/projects/experiment-iv" S: f NO [NOPERM] Access denied My reading of this is that NOPERM should be returned for ANY ACL prohibited action, not just for selecting or creating a mailbox. Dovecot 2.0.12 does not return NOPERM for DELETE/EXPUNGE actions (at a minimum) that are prohibited. Thoughts? michael From tss at iki.fi Tue May 10 22:13:27 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 22:13:27 +0300 Subject: [Dovecot] BUG(?): Incorrect responses for ACL prohibited actions In-Reply-To: <20110510124458.Horde.LnlpeIF5lbhNyYeqlCXUIdA@bigworm.curecanti.org> References: <20110510124458.Horde.LnlpeIF5lbhNyYeqlCXUIdA@bigworm.curecanti.org> Message-ID: On 10.5.2011, at 21.44, Michael M Slusarz wrote: > In a mailbox that has ACL restrictions on both DELETE and EXPUNGE (i.e. no 'e' or 't' rights), I see the following: > > 3 UID STORE 3173 (UNCHANGEDSINCE 353) +FLAGS \deleted > 3 OK Store completed. > > (UID 3173 is not flagged \deleted) > > [...] > > 6 UID EXPUNGE 1:* > 6 OK Expunge completed. > > (At least 1 UID is flagged \deleted in mailbox) > > Shouldn't these commands be returning "NO" instead of "OK"? RFC 3501 [6.4.6] for STORE: Clients aren't very happy about seeing NO. Also Dovecot didn't say anything changed with either of the above commands, so nothing really failed either. A "STORE +FLAGS.SILENT \Deleted" is more controversial though. Maybe that should return NO.. > and RFC RFC 3501 [6.4.3] for EXPUNGE: > > NO - expunge failure: can't expunge (e.g., permission denied) > > Additionally, RFC 5530 [3] provides the NOPERM response code: > > NOPERM > The access control system (e.g., Access Control List (ACL), see > [RFC 4314]) does not permit this user to carry out an operation, > such as selecting or creating a mailbox. > > C: f select "/archive/projects/experiment-iv" > S: f NO [NOPERM] Access denied > > My reading of this is that NOPERM should be returned for ANY ACL prohibited action, not just for selecting or creating a mailbox. Dovecot 2.0.12 does not return NOPERM for DELETE/EXPUNGE actions (at a minimum) that are prohibited. I'm not really sure. Maybe for EXPUNGE a NO would be okay. For flag changes it's just annoying to see clients popup pointless error messages when trying to set a \Seen flag (or \Answered flag when replying). Also I'm not sure if Dovecot's behavior is entirely correct either here. It might be more correct that all flag changes succeed, but those flags would be session-only flag changes rather than permanent flag changes. It's a slightly difficult subject :) From dovecot at tlinx.org Tue May 10 22:45:08 2011 From: dovecot at tlinx.org (Linda Walsh) Date: Tue, 10 May 2011 12:45:08 -0700 Subject: [Dovecot] performance problems with IMAPS Message-ID: <4DC995C4.1060401@tlinx.org> I've noticed this before and wasn't sure of the problem -- sending large files from FF. I tracked it down, and the problem is in dovecot when it is saving the mail to my 'Record' (Outbox)... It's saving the file in tiny chunks.... Looking at a few, I see: 4148 bytes 2116 bytes 1604 bytes 692 bytes The latency is killing it. I see the TCP window size being as high as 17069 with 7678 being common. The sendmail latency isn't spectacular, but at least uses ~64K packets. So wazzup with dovecot? I don't recall this being so much an issue with the old uwash imaps, but then it's been a while since I've used it and maybe my files weren't as large. But it can take several minutes to save a file to a record file that takes <1 second over network CIFS. Anyway to up the size of minimum packet size to 128K or more? Ideal packet size on my network is about 16MB under CIFS...with benefits seen even using 256MB packet sizes.... Is there a place to tune this that I don't know about? Thanks.... From tss at iki.fi Tue May 10 22:55:21 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 22:55:21 +0300 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DC995C4.1060401@tlinx.org> References: <4DC995C4.1060401@tlinx.org> Message-ID: <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> On 10.5.2011, at 22.45, Linda Walsh wrote: > I've noticed this before and wasn't sure of the problem -- sending large files from FF. What is FF? > I tracked it down, and the problem is in dovecot when it is saving the mail to my 'Record' (Outbox)... So when IMAP client is sending a message to Dovecot? > It's saving the file in tiny chunks.... > > Looking at a few, I see: > 4148 bytes > 2116 bytes > 1604 bytes > 692 bytes Isn't that the client that is sending it in small pieces then? How did you measure those bytes? > The latency is killing it. I see the TCP window size being as high as 17069 with 7678 being common. > The sendmail latency isn't spectacular, but at least uses ~64K packets. So wazzup with dovecot? Whatever it is, it's not a common problem. From Dave at Yost.com Tue May 10 23:15:46 2011 From: Dave at Yost.com (Dave Yost) Date: Tue, 10 May 2011 13:15:46 -0700 Subject: [Dovecot] when the user has no home directory In-Reply-To: <4DC97603.9080801@msapiro.net> References: <4DC97603.9080801@msapiro.net> Message-ID: At 10:29 AM -0700 2011-05-10, Mark Sapiro wrote: >On 11:59 AM, Dave Yost wrote: >> A user on our server for some reason didn't have a home directory. As a >> result, the pop3 server was complaining. Apple's Mail app reported that >> the server said: >> >> The attempt to send data to the server "(null)" failed. > >Mail is sent via SMTP, not POP3. Yes. I know. That error message was reported by Mail as a result of trying to connect to the POP3 server. >A client MUA delivers mail to a server >via SMTP and presumably it is the MTA on the server, not Dovecot, that >issued whatever failure resulted in the above. > >It is possible that Dovecot is involved, e.g. in processing SASL >authentication, but Apple Mail would have been talking to the MTA on the >server. > >-- >Mark Sapiro The highway is for gamblers, >San Francisco Bay Area, California better use your sense - B. Dylan From kjonca at o2.pl Tue May 10 23:32:31 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Tue, 10 May 2011 22:32:31 +0200 Subject: [Dovecot] compressed mboxes very slow References: <87iptnoans.fsf@alfa.kjonca> <1305041104.10421.131.camel@hurina> Message-ID: <87ipti8ffk.fsf@alfa.kjonca> Timo Sirainen writes: > Here are some fixes: > > http://hg.dovecot.org/dovecot-2.0/rev/15a0687ec9d0 > http://hg.dovecot.org/dovecot-2.0/rev/66ec075a49d3 Hard to say, but I can't see any significant improvement after applying them :| KJ -- http://blogdebart.pl/2010/03/17/dalsze-przygody-swinki-w-new-jersey/ From tss at iki.fi Tue May 10 23:45:51 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 10 May 2011 23:45:51 +0300 Subject: [Dovecot] when the user has no home directory In-Reply-To: References: Message-ID: <81B248CC-75F9-4449-9618-A712259C4A6B@iki.fi> On 6.5.2011, at 4.25, Dave Yost wrote: > A user on our server for some reason didn't have a home directory. As a result, the pop3 server was complaining. Apple's Mail app reported that the server said: > > The attempt to send data to the server "(null)" failed. > > It would be nice if the server would say something to the effect that the connection failed because the user account has no home directory. I'm pretty sure Dovecot said something different. I don't know why Apple Mail would only say (null). Dovecot also should have logged something in its error log. You could try reproducing it. But instead of connecting with Apple Mail, connect directly with telnet and see what Dovecot really says: telnet pop3.example.com 110 user foobar pass secret http://wiki2.dovecot.org/TestPop3Installation has more possibilities From stan at hardwarefreak.com Wed May 11 00:36:35 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Tue, 10 May 2011 16:36:35 -0500 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <4DC942B1.7020502@wildgooses.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> <4DC79E7A.5080700@hardwarefreak.com> <4DC942B1.7020502@wildgooses.com> Message-ID: <4DC9AFE3.7060804@hardwarefreak.com> On 5/10/2011 8:50 AM, Ed W wrote: > So, in practice it's fairly irrelevant to be hooked to a stratum 1 for > most purposes and if you really want to get obsessed about accurate time > (I'm going through this obsession phase right now...) then just get a > local GPS attached to your machine... NTP is free and the accuracy, when properly configured, is better than that required by any network application. If your goal is sub millisecond accuracy, it's not due to any actual network application requirement. -- Stan From tss at iki.fi Wed May 11 00:42:05 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 00:42:05 +0300 Subject: [Dovecot] compressed mboxes very slow In-Reply-To: <87ipti8ffk.fsf@alfa.kjonca> References: <87iptnoans.fsf@alfa.kjonca> <1305041104.10421.131.camel@hurina> <87ipti8ffk.fsf@alfa.kjonca> Message-ID: <9DE1215A-F41F-4397-B24B-2282E54F523D@iki.fi> On 10.5.2011, at 23.32, Kamil Jo?ca wrote: > Timo Sirainen writes: > >> Here are some fixes: >> >> http://hg.dovecot.org/dovecot-2.0/rev/15a0687ec9d0 >> http://hg.dovecot.org/dovecot-2.0/rev/66ec075a49d3 > > Hard to say, but I can't see any significant improvement after applying > them :| Get strace -tt output of such slowness and send them to me. From dovecot at tlinx.org Wed May 11 00:58:59 2011 From: dovecot at tlinx.org (Linda Walsh) Date: Tue, 10 May 2011 14:58:59 -0700 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> Message-ID: <4DC9B523.1010503@tlinx.org> Timo Sirainen wrote: > On 10.5.2011, at 22.45, Linda Walsh wrote: > >> I've noticed this before and wasn't sure of the problem -- sending large files from FF. > > What is FF? Sorry, meant TB (Thunderbird, 2.x), FF=Firefox, BTW, braino-confusion..... > >> I tracked it down, and the problem is in dovecot when it is saving the mail to my 'Record' (Outbox)... > > So when IMAP client is sending a message to Dovecot? > >> It's saving the file in tiny chunks.... >> >> Looking at a few, I see: >> 4148 bytes >> 2116 bytes >> 1604 bytes >> 692 bytes > > Isn't that the client that is sending it in small pieces then? How did you measure those bytes? Using wireshark. It **could** be the client, but it's hard to see the client doing anything other sending doing a large scale 'save message' to the mailbox, but you're right, it could be a fault of the client, considering how poorly TB is written. It's gotten worse with TB 3.x though with performance there really bogging down my machine in terms of local disk-space consumed. As you may be aware, TB3.x ignores the entire premise of IMAP in storing messages on the server, trying to make copies of all messages, locally. With my users running with roaming profiles, this easily adds over 1GB of locally cached mail to each profile that needs to be copied to and from a server each time a user logs in or out (creating huge lag times for login/logout). From Harlan.Stenn at pfcs.com Wed May 11 00:59:17 2011 From: Harlan.Stenn at pfcs.com (Harlan Stenn) Date: Tue, 10 May 2011 17:59:17 -0400 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <4DC9AFE3.7060804@hardwarefreak.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> <4DC79E7A.5080700@hardwarefreak.com> <4DC942B1.7020502@wildgooses.com> <4DC9AFE3.7060804@hardwarefreak.com> Message-ID: <20110510215917.896A728448@gwc.pfcs.com> > On 5/10/2011 8:50 AM, Ed W wrote: > > > So, in practice it's fairly irrelevant to be hooked to a stratum 1 for > > most purposes ... Actually, an excellent argument can be made for hooking up to some S2 servers instead of S1 servers.. H From tss at iki.fi Wed May 11 01:05:24 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 01:05:24 +0300 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DC9B523.1010503@tlinx.org> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> Message-ID: <15CDBB33-2B77-48D9-9DE8-4D466AB9E77E@iki.fi> On 11.5.2011, at 0.58, Linda Walsh wrote: > Using wireshark. It **could** be the client, but it's hard to see the client doing > anything other sending doing a large scale 'save message' to the mailbox, but you're > right, it could be a fault of the client, considering how poorly TB is written. Difficult to say, but my guess: something else than Dovecot or TB. On the client side there are antivirus and firewall things that can make thing suck. In general Dovecot and TB can talk to each others several MB/sec. Is your problem only with large attachments, or also with a lot of new small mails? (Meaning: the latency or the bandwidth?) From tss at iki.fi Wed May 11 01:07:09 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 01:07:09 +0300 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <15CDBB33-2B77-48D9-9DE8-4D466AB9E77E@iki.fi> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> <15CDBB33-2B77-48D9-9DE8-4D466AB9E77E@iki.fi> Message-ID: <1D69412B-2647-4FF8-A516-3CB9631E1BC2@iki.fi> On 11.5.2011, at 1.05, Timo Sirainen wrote: > On 11.5.2011, at 0.58, Linda Walsh wrote: > >> Using wireshark. It **could** be the client, but it's hard to see the client doing >> anything other sending doing a large scale 'save message' to the mailbox, but you're >> right, it could be a fault of the client, considering how poorly TB is written. > > Difficult to say, but my guess: something else than Dovecot or TB. On the client side there are antivirus and firewall things that can make thing suck. In general Dovecot and TB can talk to each others several MB/sec. > > Is your problem only with large attachments, or also with a lot of new small mails? (Meaning: the latency or the bandwidth?) Also: your subject is about "imaps". DId you try without SSL? Does that make a difference? From sking at kingrst.com Wed May 11 01:07:36 2011 From: sking at kingrst.com (Steven King) Date: Tue, 10 May 2011 18:07:36 -0400 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM Message-ID: <4DC9B728.4040105@kingrst.com> I'm trying to get authentication to work without PAM and just use the standard shadow and passwd files. auth default { userdb passwd { } passdb shadow { } } This seems to be valid code to use /etc/passwd and /etc/shadow. My linux distro is using Salted MD5. Though Dovecot keeps telling me that authentication failed. It doesn't give me any error messages regarding the config. Any ideas? -- Steve King Senior Linux Engineer - Advance Internet, Inc. Cisco Certified Network Associate CompTIA Linux+ Certified Professional CompTIA A+ Certified Professional From sking at kingrst.com Wed May 11 01:10:33 2011 From: sking at kingrst.com (Steven King) Date: Tue, 10 May 2011 18:10:33 -0400 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <4DC9B728.4040105@kingrst.com> References: <4DC9B728.4040105@kingrst.com> Message-ID: <4DC9B7D9.6090204@kingrst.com> Turning on auth debugging May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): lookup May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): unknown user These messages suggest that the auth mechanisms can't find the user. Though the user clearly exists in both /etc/passwd and /etc/shadow. On 5/10/11 6:07 PM, Steven King wrote: > I'm trying to get authentication to work without PAM and just use the > standard shadow and passwd files. > > auth default { > > userdb passwd { > } > > passdb shadow { > } > > } > > This seems to be valid code to use /etc/passwd and /etc/shadow. > > My linux distro is using Salted MD5. Though Dovecot keeps telling me > that authentication failed. It doesn't give me any error messages > regarding the config. > > Any ideas? > -- Steve King Senior Linux Engineer - Advance Internet, Inc. Cisco Certified Network Associate CompTIA Linux+ Certified Professional CompTIA A+ Certified Professional From tss at iki.fi Wed May 11 01:10:54 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 01:10:54 +0300 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <4DC9B728.4040105@kingrst.com> References: <4DC9B728.4040105@kingrst.com> Message-ID: <793C424A-C880-4141-95DC-544ECAC0165F@iki.fi> On 11.5.2011, at 1.07, Steven King wrote: > I'm trying to get authentication to work without PAM and just use the standard shadow and passwd files. > > auth default { > > userdb passwd { > } > > passdb shadow { > } > > } That's not dovecot -n output. > This seems to be valid code to use /etc/passwd and /etc/shadow. Maybe.. > My linux distro is using Salted MD5. Though Dovecot keeps telling me that authentication failed. It doesn't give me any error messages regarding the config. Set auth_debug_passwords=yes. And show the exact log messages. And exact dovecot -n output. From tss at iki.fi Wed May 11 01:13:47 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 01:13:47 +0300 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <4DC9B7D9.6090204@kingrst.com> References: <4DC9B728.4040105@kingrst.com> <4DC9B7D9.6090204@kingrst.com> Message-ID: <5B7C5F6C-A9BE-4614-A284-661167F9F0CD@iki.fi> On 11.5.2011, at 1.10, Steven King wrote: > Turning on auth debugging > > May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): lookup > May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): unknown user > > These messages suggest that the auth mechanisms can't find the user. Though the user clearly exists in both /etc/passwd and /etc/shadow. getspnam() doesn't see the user existing. There are 3 possibilies that I can think of: 1) the user truely doesn't exist in there 2) the file can't be opened due to auth process being run without root privileges (default in v2.0) - dovecot -n output would show this 3) SELinux or similar preventing Dovecot from accessing /etc/shdadow From sking at kingrst.com Wed May 11 01:14:16 2011 From: sking at kingrst.com (Steven King) Date: Tue, 10 May 2011 18:14:16 -0400 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <793C424A-C880-4141-95DC-544ECAC0165F@iki.fi> References: <4DC9B728.4040105@kingrst.com> <793C424A-C880-4141-95DC-544ECAC0165F@iki.fi> Message-ID: <4DC9B8B8.80907@kingrst.com> dovecot -n output root at slacky:/usr/doc/dovecot-1.2.16/wiki# dovecot -n # 1.2.16: /etc/dovecot.conf # OS: Linux 2.6.33.4 x86_64 Slackware 13.1.0 log_path: /var/log/dovecot.log info_log_path: /var/log/dovecot.log protocols: imap pop3 ssl: no disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_trusted_networks: 127.0.0.1 first_valid_gid: 500 mail_location: ~/mail mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib64/dovecot/imap mail_plugin_dir(imap): /usr/lib64/dovecot/imap mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3 pop3_uidl_format(default): %08Xu%08Xv pop3_uidl_format(imap): %08Xu%08Xv pop3_uidl_format(pop3): %v.%u lda: auth_socket_path: /var/run/dovecot/auth-master auth default: user: nobody debug: yes debug_passwords: yes passdb: driver: shadow userdb: driver: passwd socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix On 5/10/11 6:10 PM, Timo Sirainen wrote: > On 11.5.2011, at 1.07, Steven King wrote: > >> I'm trying to get authentication to work without PAM and just use the standard shadow and passwd files. >> >> auth default { >> >> userdb passwd { >> } >> >> passdb shadow { >> } >> >> } > That's not dovecot -n output. > >> This seems to be valid code to use /etc/passwd and /etc/shadow. > Maybe.. > >> My linux distro is using Salted MD5. Though Dovecot keeps telling me that authentication failed. It doesn't give me any error messages regarding the config. > Set auth_debug_passwords=yes. And show the exact log messages. And exact dovecot -n output. -- Steve King Senior Linux Engineer - Advance Internet, Inc. Cisco Certified Network Associate CompTIA Linux+ Certified Professional CompTIA A+ Certified Professional From sking at kingrst.com Wed May 11 01:17:18 2011 From: sking at kingrst.com (Steven King) Date: Tue, 10 May 2011 18:17:18 -0400 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <5B7C5F6C-A9BE-4614-A284-661167F9F0CD@iki.fi> References: <4DC9B728.4040105@kingrst.com> <4DC9B7D9.6090204@kingrst.com> <5B7C5F6C-A9BE-4614-A284-661167F9F0CD@iki.fi> Message-ID: <4DC9B96E.9080506@kingrst.com> Interesting... #2 corrected it. Set the auth process to run as root... Is that safe? On 5/10/11 6:13 PM, Timo Sirainen wrote: > On 11.5.2011, at 1.10, Steven King wrote: > >> Turning on auth debugging >> >> May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): lookup >> May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): unknown user >> >> These messages suggest that the auth mechanisms can't find the user. Though the user clearly exists in both /etc/passwd and /etc/shadow. > getspnam() doesn't see the user existing. There are 3 possibilies that I can think of: > > 1) the user truely doesn't exist in there > > 2) the file can't be opened due to auth process being run without root privileges (default in v2.0) - dovecot -n output would show this > > 3) SELinux or similar preventing Dovecot from accessing /etc/shdadow > -- Steve King Senior Linux Engineer - Advance Internet, Inc. Cisco Certified Network Associate CompTIA Linux+ Certified Professional CompTIA A+ Certified Professional From tss at iki.fi Wed May 11 01:17:35 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 01:17:35 +0300 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <4DC9B8B8.80907@kingrst.com> References: <4DC9B728.4040105@kingrst.com> <793C424A-C880-4141-95DC-544ECAC0165F@iki.fi> <4DC9B8B8.80907@kingrst.com> Message-ID: <172B8800-E788-40CE-B4E8-3194DBB969F7@iki.fi> On 11.5.2011, at 1.14, Steven King wrote: > auth default: > user: nobody > passdb: > driver: shadow nobody doesn't have permissions to read /etc/shadow From tss at iki.fi Wed May 11 01:18:58 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 01:18:58 +0300 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <4DC9B96E.9080506@kingrst.com> References: <4DC9B728.4040105@kingrst.com> <4DC9B7D9.6090204@kingrst.com> <5B7C5F6C-A9BE-4614-A284-661167F9F0CD@iki.fi> <4DC9B96E.9080506@kingrst.com> Message-ID: You could set it to be run as a user that has group=shadow privileges. On 11.5.2011, at 1.17, Steven King wrote: > Interesting... #2 corrected it. Set the auth process to run as root... > > Is that safe? > > On 5/10/11 6:13 PM, Timo Sirainen wrote: >> On 11.5.2011, at 1.10, Steven King wrote: >> >>> Turning on auth debugging >>> >>> May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): lookup >>> May 10 18:09:22 auth(default): Info: shadow(mjb,69.2.98.5): unknown user >>> >>> These messages suggest that the auth mechanisms can't find the user. Though the user clearly exists in both /etc/passwd and /etc/shadow. >> getspnam() doesn't see the user existing. There are 3 possibilies that I can think of: >> >> 1) the user truely doesn't exist in there >> >> 2) the file can't be opened due to auth process being run without root privileges (default in v2.0) - dovecot -n output would show this >> >> 3) SELinux or similar preventing Dovecot from accessing /etc/shdadow >> > > -- > Steve King > > Senior Linux Engineer - Advance Internet, Inc. > Cisco Certified Network Associate > CompTIA Linux+ Certified Professional > CompTIA A+ Certified Professional > From sking at kingrst.com Wed May 11 01:19:39 2011 From: sking at kingrst.com (Steven King) Date: Tue, 10 May 2011 18:19:39 -0400 Subject: [Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM In-Reply-To: <172B8800-E788-40CE-B4E8-3194DBB969F7@iki.fi> References: <4DC9B728.4040105@kingrst.com> <793C424A-C880-4141-95DC-544ECAC0165F@iki.fi> <4DC9B8B8.80907@kingrst.com> <172B8800-E788-40CE-B4E8-3194DBB969F7@iki.fi> Message-ID: <4DC9B9FB.6060203@kingrst.com> Fair enough... thanks for your help. On 5/10/11 6:17 PM, Timo Sirainen wrote: > On 11.5.2011, at 1.14, Steven King wrote: > >> auth default: >> user: nobody >> passdb: >> driver: shadow > nobody doesn't have permissions to read /etc/shadow > -- Steve King Senior Linux Engineer - Advance Internet, Inc. Cisco Certified Network Associate CompTIA Linux+ Certified Professional CompTIA A+ Certified Professional From matt at inter7.com Wed May 11 01:20:34 2011 From: matt at inter7.com (Matt Brookings) Date: Tue, 10 May 2011 17:20:34 -0500 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DC9B523.1010503@tlinx.org> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> Message-ID: <4DC9BA32.20808@inter7.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/10/2011 04:58 PM, Linda Walsh wrote: >>> Looking at a few, I see: >>> 4148 bytes >>> 2116 bytes >>> 1604 bytes >>> 692 bytes >> >> Isn't that the client that is sending it in small pieces then? How did >> you measure those bytes? > Using wireshark. It **could** be the client, but it's hard to see the Linda, packets are limited to the MTU of the underlying physical connection. Packet sniffing will not give you a glimpse into how files are being written. Many packets may be sent and received before any data is passed on to the application to be read by a system call. You state above that you saw a packet on the wire that was 4148 bytes, one that was 2116, and one that was 1604. These packets are too large to be transmitted over Ethernet. What type of physical connection were you sniffing these packets on? - -- /* Matt Brookings GnuPG Key FAE0672C Software developer Systems technician Inter7 Internet Technologies, Inc. (815)776-9465 */ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3Jui8ACgkQIwet2/rgZyyinwCePyLZiC7HtCxllsJBBn3V+HLQ cWAAnioX086LiBO5rdvX1xjjSN73/mDy =jajB -----END PGP SIGNATURE----- From alietsantiesteban at gmail.com Wed May 11 02:00:19 2011 From: alietsantiesteban at gmail.com (Aliet Santiesteban Sifontes) Date: Tue, 10 May 2011 19:00:19 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: <1305043528.10421.143.camel@hurina> References: <4DC3D251.4050004@Media-Brokers.com> <1305043528.10421.143.camel@hurina> Message-ID: Timo, thank's for your answer, we finally found the problem, it was cluster related. We have a rhel6-x86_64 cluster using Redhat Cluster Suite and GFS2, the third node was located in an external location for Disaster Recovery, the ethernet links and fiber channel links of that facility are experimenting high latency, this was affecting cluster intercomunicate, many packets were retransmited, after we removed the third node from that facility results improved a lot. Righ now we have all the node in the same place, two shared FC luns using GFS2, one for indexes and the other for mailbox data, here the new results: Using local storage(local hard driver ext4 filesystems) Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 7798 3868 3889 7706 7566 10713 1080 6089 7559 7688 15562 7806 3879 3874 7716 7585 10873 1114 6018 7578 7696 15572 7866 3910 3855 7773 7748 11053 1076 6253 7747 7761 15710 7893 3978 3931 7802 7772 10988 1117 6197 7767 7789 15760 7775 3853 3809 7683 7654 10897 1081 6142 7651 7675 15534 7877 3919 3872 7789 7758 10986 1085 6218 7755 7773 15720 GFS2-mdbox, (no plugins) Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 7547 3739 3749 7455 7421 10605 1053 5931 7417 7443 15074 7480 3702 3724 7387 7367 10558 1064 5874 7366 7378 14946 7523 3759 3711 7428 7394 10560 1126 5898 7390 7412 15014 7455 3736 3621 7364 7326 10561 1088 5854 7324 7349 14880 7431 3712 3686 7337 7312 10406 1017 5882 7311 7328 14844 7426 3704 3671 7334 7296 10364 1076 5791 7296 7325 14834 7517 3673 3782 7425 7406 10554 1103 5913 7404 7414 15008 GFS2-mdbox( using plugins) Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 5464 2713 2697 5371 5201 7503 733 4152 5201 5361 10910 5649 2757 2781 5555 5500 7814 810 4397 5500 5549 11286 5303 2589 2583 5211 5147 7398 783 4067 5147 5201 10590 5446 2633 2721 5353 5280 7465 799 4272 5278 5336 10860 5628 2781 2865 5536 5467 7867 792 4317 5466 5520 11224 5699 2837 2797 5605 5543 7771 809 4416 5542 5599 11382 GFS2-sdbox(using plugins) Totals: Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% 30% 5% 6102 3008 3018 6008 5885 8395 851 4705 5882 5999 12186 6140 2963 3085 6045 6013 8534 845 4798 6011 6035 12260 6063 2997 3021 5970 5929 8568 894 4719 5926 5955 12100 5747 2805 2890 5651 5599 7956 799 4434 5598 5638 11470 6025 3000 3014 5931 5901 8476 869 4697 5898 5917 12022 5899 2863 2890 5807 5762 8249 839 4610 5761 5802 11792 We will continue the tests with your suggestions. Best regards and thank you all for a great work!! Aliet 2011/5/10 Timo Sirainen > I don't think those results look too bad, even the original ones. > imaptest doesn't measure real world performance anyway. Some ideas: > > - Try mdbox instead of sdbox. Cluster filesystems apparently like a few > bigger files better than many small ones. > > - Try imaptest with logout=0 (or =1 or something). Now you're measuring > way too much the login performance. > > - autocreate plugin sucks, especially with logout=100 because it has to > check that all of the mailboxes exist. In v2.1 autocreate plugin is > redesigned to not do any disk I/O. > > On Fri, 2011-05-06 at 23:01 -0400, Aliet Santiesteban Sifontes wrote: > > New results, now with all plugins disabled: > > > > os rhel6 x86_64, GFS2 Lun > > > > Totals: > > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > > 30% 5% > > 1- 4514 2189 2250 4514 4264 6163 709 3403 4260 4292 8726 > > 2- 2827 1409 1389 2827 2765 3951 495 2168 2765 2777 5644 > > 3- 2711 1409 1368 2711 2649 3833 512 2145 2647 2662 5396 > > 4- 1799 912 890 1799 1720 2492 360 1370 1719 1735 3592 > > 5- 3817 1869 1896 3760 3717 5313 575 3026 3715 3737 7616 > > 6- 3296 1583 1628 3296 3215 4585 523 2600 3215 3238 6584 > > > > 2011/5/6 Aliet Santiesteban Sifontes > > > > > the configs: > > > > > > [root at n02 ~]# dovecot -n > > > # 2.0.12: /etc/dovecot/dovecot.conf > > > # OS: Linux 2.6.32-71.24.1.el6.x86_64 x86_64 Red Hat Enterprise Linux > > > Server release 6.0 (Santiago) > > > auth_cache_size = 15 M > > > auth_default_realm = test.com > > > auth_mechanisms = plain login > > > auth_worker_max_count = 60 > > > disable_plaintext_auth = no > > > login_greeting = Server ready. > > > mail_fsync = never > > > mail_location = sdbox:~/sdbox:INDEX=/vmail/index/%n > > > mail_plugins = quota zlib > > > managesieve_notify_capability = mailto > > > managesieve_sieve_capability = fileinto reject envelope > encoded-character > > > vacation subaddress comparator-i;ascii-numeric relational regex > imap4flags > > > copy include variables body enotify environment mailbox date > > > mbox_write_locks = fcntl > > > mmap_disable = yes > > > namespace { > > > inbox = yes > > > location = > > > prefix = > > > separator = / > > > } > > > passdb { > > > args = /etc/dovecot/dovecot-ldap.conf.ext > > > driver = ldap > > > } > > > plugin { > > > autocreate = Sent > > > autocreate2 = Trash > > > autocreate3 = Drafts > > > autocreate4 = Junk > > > autocreate5 = Archives > > > autocreate6 = Templates > > > autosubscribe = Sent > > > autosubscribe2 = Trash > > > autosubscribe3 = Drafts > > > autosubscribe4 = Junk > > > autosubscribe5 = Archives > > > autosubscribe6 = Templates > > > quota = dict:User quota::file:%h/sdbox/dovecot-quota > > > quota_rule = *:storage=250M > > > quota_rule2 = Trash:storage=+50M > > > quota_rule3 = Spam:storage=+25M > > > quota_rule4 = Sent:ignore > > > sieve = ~/.dovecot.sieve > > > sieve_before = /var/vmail/sievescripts/before.d > > > sieve_dir = ~/sieve > > > zlib_save = gz > > > zlib_save_level = 6 > > > } > > > postmaster_address = postmaster at test.com > > > protocols = imap pop3 lmtp sieve > > > service auth { > > > unix_listener auth-userdb { > > > group = vmail > > > mode = 0660 > > > user = root > > > } > > > } > > > service imap-login { > > > service_count = 0 > > > } > > > > > > best regards > > > > > > > > > 2011/5/6 Charles Marcus > > > > > >> On 2011-05-05 7:56 PM, Aliet Santiesteban Sifontes wrote: > > >> > We have used sdbox as mailbox format, and all the user data is > > >> configured in > > >> > LDAP Servers > > >> > > >> It might help Timo to provide some suggestions if you also provide > > >> dovecot -n output... ;) > > >> > > >> -- > > >> > > >> Best regards, > > >> > > >> Charles > > >> > > > > > > > > > From stan at hardwarefreak.com Wed May 11 02:28:42 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Tue, 10 May 2011 18:28:42 -0500 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DC9B523.1010503@tlinx.org> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> Message-ID: <4DC9CA2A.4020101@hardwarefreak.com> On 5/10/2011 4:58 PM, Linda Walsh wrote: > As you may be aware, TB3.x ignores the entire > premise of > IMAP in storing messages on the server, trying to make copies of all > messages, locally. Yes, this is the default as 95%+ of Thunderbird seats are home/mobile broadband users. For corporate use see: http://wpkg.org/Thunderbird#Prefs > With my users running with roaming profiles, this easily adds over 1GB > of locally cached > mail to each profile that needs to be copied to and from a server each > time a user logs in > or out (creating huge lag times for login/logout). Linda you should be shot for not fixing this already. 1GB roaming profiles? (gasp) Bet the switch, server, and storage vendors just love you. ;) If you've got some basic script writing ability, or can find something already written, simply walk the profile directory on the server and add the necessary lines to each user's prefs.js. Assuming your workstations are already configured to delete locally cached roaming profiles at logoff the problem is now solved for existing users. For new user profile creation simply create a custom default profile template. -- Stan From fakessh at fakessh.eu Wed May 11 04:55:58 2011 From: fakessh at fakessh.eu (fakessh) Date: Wed, 11 May 2011 03:55:58 +0200 Subject: [Dovecot] sieve problem Message-ID: <201105110356.05524.fakessh@fakessh.eu> hi dovecot network hi timo hi sieve writer I know one thing sieve scripts must be simple and follow the manual, knowing what he must do the thing well must wear a kind of precise name envellope sorry I'm not going to school I use sieve scripts for some time are published on my blog I just created an address partuculiere a subdomain. I have created in order to receive mailings on this address. how to write a script that would include the script in the early detection of the parameter "this email address" it is necessary to manage the delivery of mail in a subfolder such mailling and how after all conditions to evaluate the knowledge that a stop sign while stopped thank you -- http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7 gpg --keyserver pgp.mit.edu --recv-key 092164A7 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From peter at bellfamily.org.uk Wed May 11 06:35:37 2011 From: peter at bellfamily.org.uk (Peter Bell) Date: Wed, 11 May 2011 11:35:37 +0800 Subject: [Dovecot] Error messages in log Message-ID: <4DCA0409.4030702@bellfamily.org.uk> Hi, I would like to eliminate some of the error messages which appear in my dovecot logfile. I already understand that the message: doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection is fixed in the current development code. However, I also get a lot of: lda(peter): Error: User peter doesn't have home dir set, disabling duplicate database Is there a way to eliminate/supress these messages? I'm operating with virtual users, so checking for a home directory doesn't make a lot of sense. Is there a setting in the .conf file which can control this? Possibly more concerning is this message: May 10 23:31:23 imap(peter): Error: link(/mnt/user/Maildir/peter/dovecot.index.log, /mnt/user/Maildir/peter/dovecot.index.log.2) failed: Function not implemented I'm not sure exactly what I was doing at the time - probably experimenting with Sieve filters. Has this compromised my maildir? I have already disabled copy with hard links - is there another 'hardlink' setting available? Thank you for any advice! root at Tower:~# doveconf -n # 2.0.12: /usr/local/etc/dovecot/dovecot.conf doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection # OS: Linux 2.6.36.2-unRAID i686 Slackware 13.1.0 fuse.shfs disable_plaintext_auth = no listen = * log_path = /var/log/mail.log mail_location = maildir:/mnt/user/Maildir/%u maildir_copy_with_hardlinks = no managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date passdb { args = /etc/passwd.dovecot driver = passwd-file } plugin { sieve = /mnt/user/Maildir/%u/.dovecot.sieve sieve_dir = /mnt/user/Maildir/%u/ sieve_global_path = /var/lib/dovecot/default.sieve } postmaster_address = postmaster at bellfamily.org.uk protocols = imap sieve service auth { user = root } service imap-login { inet_listener imap { port = 143 } } ssl = no userdb { args = /etc/passwd.dovecot driver = passwd-file } protocol lda { mail_plugins = sieve } root at Tower:~# -- ------------------------------------------------------------------- Peter Bell Mob: +63 (0) 9287 340 343 Tagum City, Philippines. Tel: +63 (0) 84 400 5085 email/msn: peter at bellfamily.org.uk Tel: +44 (0) 118 331 0000 From peter at bellfamily.org.uk Wed May 11 07:14:43 2011 From: peter at bellfamily.org.uk (Peter Bell) Date: Wed, 11 May 2011 12:14:43 +0800 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DC9B523.1010503@tlinx.org> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> Message-ID: <4DCA0D33.4020400@bellfamily.org.uk> On Wednesday, 11 May, 2011 05:58 AM, Linda Walsh wrote: > As you may be aware, TB3.x ignores the entire premise of > IMAP in storing messages on the server, trying to make copies of all > messages, locally. Really? I'm using TB 3.1 and, to the best of my knowledge, it's not making local copies. You have tried going into settings for the account, 'Synchronization & Storage', and turning off the 'Keep messages for this account on this computer' setting? -- ------------------------------------------------------------------- Peter Bell Mob: +63 (0) 9287 340 343 Tagum City, Philippines. Tel: +63 (0) 84 400 5085 email/msn: peter at bellfamily.org.uk Tel: +44 (0) 118 331 0000 From stan at hardwarefreak.com Wed May 11 07:29:24 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Tue, 10 May 2011 23:29:24 -0500 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DCA0D33.4020400@bellfamily.org.uk> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> <4DCA0D33.4020400@bellfamily.org.uk> Message-ID: <4DCA10A4.9080504@hardwarefreak.com> On 5/10/2011 11:14 PM, Peter Bell wrote: > > > On Wednesday, 11 May, 2011 05:58 AM, Linda Walsh wrote: >> As you may be aware, TB3.x ignores the entire premise of >> IMAP in storing messages on the server, trying to make copies of all >> messages, locally. > > Really? > > I'm using TB 3.1 and, to the best of my knowledge, it's not making local > copies. > > You have tried going into settings for the account, 'Synchronization & > Storage', and turning off the 'Keep messages for this account on this > computer' setting? I would assume Linda knows how to disable it manually Peter. I'm guessing she was simply lacking automation tools/methods for disabling this feature automatically each time a user's TB profile is created. TB doesn't use the Windows registry, so the Microsoft admin tools such as the Group Policy Editor can't be used to change these TB settings, or, if it can be done with MS tools, many hoops are likely involved. -- Stan From peter at bellfamily.org.uk Wed May 11 07:46:10 2011 From: peter at bellfamily.org.uk (Peter Bell) Date: Wed, 11 May 2011 12:46:10 +0800 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DCA10A4.9080504@hardwarefreak.com> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> <4DCA0D33.4020400@bellfamily.org.uk> <4DCA10A4.9080504@hardwarefreak.com> Message-ID: <4DCA1492.6050501@bellfamily.org.uk> On Wednesday, 11 May, 2011 12:29 PM, Stan Hoeppner wrote: > On 5/10/2011 11:14 PM, Peter Bell wrote: >> >> >> On Wednesday, 11 May, 2011 05:58 AM, Linda Walsh wrote: >>> As you may be aware, TB3.x ignores the entire premise of >>> IMAP in storing messages on the server, trying to make copies of all >>> messages, locally. >> >> Really? >> >> I'm using TB 3.1 and, to the best of my knowledge, it's not making local >> copies. >> >> You have tried going into settings for the account, 'Synchronization & >> Storage', and turning off the 'Keep messages for this account on this >> computer' setting? > > I would assume Linda knows how to disable it manually Peter. Okay. It's difficult to make assumptions about someone you don't know and when you know nothing of their technical capabilities. Her post made it sound as though she was unable to escape the 'local storage' so I thought it might be helpful to show how I believe it can be turned off. > I'm > guessing she was simply lacking automation tools/methods for disabling > this feature automatically each time a user's TB profile is created. TB > doesn't use the Windows registry, so the Microsoft admin tools such as > the Group Policy Editor can't be used to change these TB settings, or, > if it can be done with MS tools, many hoops are likely involved. Ooops, yes! I've just looked at her headers and see that she is posting from a Windows box! Is the Windows version of TB significantly different to the Linux version? -- ------------------------------------------------------------------- Peter Bell Mob: +63 (0) 9287 340 343 Tagum City, Philippines. Tel: +63 (0) 84 400 5085 email/msn: peter at bellfamily.org.uk Tel: +44 (0) 118 331 0000 From slusarz at curecanti.org Wed May 11 07:46:07 2011 From: slusarz at curecanti.org (Michael M Slusarz) Date: Tue, 10 May 2011 22:46:07 -0600 Subject: [Dovecot] BUG(?): Incorrect responses for ACL prohibited actions In-Reply-To: References: <20110510124458.Horde.LnlpeIF5lbhNyYeqlCXUIdA@bigworm.curecanti.org> Message-ID: <20110510224607.Horde.k4LCS4F5lbhNyhSPSJokIdA@bigworm.curecanti.org> Quoting Timo Sirainen : > On 10.5.2011, at 21.44, Michael M Slusarz wrote: > >> In a mailbox that has ACL restrictions on both DELETE and EXPUNGE >> (i.e. no 'e' or 't' rights), I see the following: >> >> 3 UID STORE 3173 (UNCHANGEDSINCE 353) +FLAGS \deleted >> 3 OK Store completed. >> >> (UID 3173 is not flagged \deleted) >> >> [...] >> >> 6 UID EXPUNGE 1:* >> 6 OK Expunge completed. >> >> (At least 1 UID is flagged \deleted in mailbox) >> >> Shouldn't these commands be returning "NO" instead of "OK"? RFC >> 3501 [6.4.6] for STORE: > > Clients aren't very happy about seeing NO. Also Dovecot didn't say > anything changed with either of the above commands, so nothing > really failed either. A "STORE +FLAGS.SILENT \Deleted" is more > controversial though. Maybe that should return NO.. I personally don't care about +FLAGS.SILENT, since ideally people should be using CONDSTORE/QRESYNC :) - in which case FLAGS.SILENT is irrelevant. But as far as the NO for a non-silent STORE, it seems that RFC 4314 [4] disagrees with you: STORE operation SHOULD NOT fail if the user has rights to modify at least one flag specified in the STORE, as the tagged NO response to a STORE command is not handled very well by deployed clients. To me, the negative inference from this statement would be: "STORE operation SHOULD fail if the user has no rights to modify at least one flag specified in the STORE." So I would agree with your statement that there should not be a NO response if at least one flag is settable, but I disagree (and RFC 4314 seems to back me up) and believe that there should be a NO if none of the flags given can be set. At a minimum, a NOPERM response should be thrown, or else there is no feedback at all why the flag was not set (without parsing ACLs). Ideally a client should disable all features not available to the user in the UI - something I am presently working on - but that should not eliminate the need for useful error responses in order to determine if the action was successful. >> and RFC RFC 3501 [6.4.3] for EXPUNGE: >> >> NO - expunge failure: can't expunge (e.g., permission denied) >> >> Additionally, RFC 5530 [3] provides the NOPERM response code: >> >> NOPERM >> The access control system (e.g., Access Control List (ACL), see >> [RFC 4314]) does not permit this user to carry out an operation, >> such as selecting or creating a mailbox. >> >> C: f select "/archive/projects/experiment-iv" >> S: f NO [NOPERM] Access denied >> >> My reading of this is that NOPERM should be returned for ANY ACL >> prohibited action, not just for selecting or creating a mailbox. >> Dovecot 2.0.12 does not return NOPERM for DELETE/EXPUNGE actions >> (at a minimum) that are prohibited. > > I'm not really sure. Maybe for EXPUNGE a NO would be okay. For flag > changes it's just annoying to see clients popup pointless error > messages when trying to set a \Seen flag (or \Answered flag when > replying). That may be true, but if a user can't do something in a mailbox I would rather have them be told of their limitations rather than have them scratch their head while trying to figure out why things aren't happening that they are explicitly (and, if failing, most likely repeatedly) trying to do. Alternatively, there doesn't seem to be any limitation to use NOPERM with a NO response. Theoretically, you could issue an OK with NOPERM. Clients are required to ignore response codes they don't recognize, and those that do can make the determination whether any NOPERM, regardless of status response, should be something they might be interested in dealing with. > Also I'm not sure if Dovecot's behavior is entirely correct either > here. It might be more correct that all flag changes succeed, but > those flags would be session-only flag changes rather than permanent > flag changes. > > It's a slightly difficult subject :) Discussion of session-only flags is all laid out in RFC 3501, so I can vouch that *my* client software handles them correctly :) I can not comment on the potential work needed on the server end. michael From emailbuilder88 at yahoo.com Wed May 11 10:21:13 2011 From: emailbuilder88 at yahoo.com (email builder) Date: Wed, 11 May 2011 00:21:13 -0700 (PDT) Subject: [Dovecot] Running 1.x and 2. x on same machine Message-ID: <446514.80943.qm@web39307.mail.mud.yahoo.com> Hello, When building from source, is it possible to use "make install" to switch between version 1.x and 2.x on the same machine (just for testing)? Do both versions install the same binaries? Is configuration from 2.x backward compatible with 1.x? (so we can have the newest configuration files on our system without bothering to have a second set of 1.x config files) Or instead should we be changing something like the installation and config directorie for one of the versions when we install it (how?). Thanks for advice!!!! From stan at hardwarefreak.com Wed May 11 10:32:22 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Wed, 11 May 2011 02:32:22 -0500 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DCA1492.6050501@bellfamily.org.uk> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> <4DCA0D33.4020400@bellfamily.org.uk> <4DCA10A4.9080504@hardwarefreak.com> <4DCA1492.6050501@bellfamily.org.uk> Message-ID: <4DCA3B86.9040301@hardwarefreak.com> On 5/10/2011 11:46 PM, Peter Bell wrote: > On Wednesday, 11 May, 2011 12:29 PM, Stan Hoeppner wrote: >> On 5/10/2011 11:14 PM, Peter Bell wrote: >>> >>> >>> On Wednesday, 11 May, 2011 05:58 AM, Linda Walsh wrote: >>>> As you may be aware, TB3.x ignores the entire premise of >>>> IMAP in storing messages on the server, trying to make copies of all >>>> messages, locally. >>> >>> Really? >>> >>> I'm using TB 3.1 and, to the best of my knowledge, it's not making local >>> copies. >>> >>> You have tried going into settings for the account, 'Synchronization & >>> Storage', and turning off the 'Keep messages for this account on this >>> computer' setting? >> >> I would assume Linda knows how to disable it manually Peter. > > Okay. It's difficult to make assumptions about someone you don't know > and when you know nothing of their technical capabilities. Her post made I agree, obviously. > it sound as though she was unable to escape the 'local storage' so I > thought it might be helpful to show how I believe it can be turned off. I know of Linda from the XFS and Samba lists. I get the impression she's not new to the system administration game. In fact I get the impression she's probably been in IT longer than I have (a little less than 2 decades here). Thus the reason for my playful condescending tone in my previous mail when she mentioned 1GB+ roaming profiles. > Ooops, yes! I've just looked at her headers and see that she is posting > from a Windows box! Her mention of 1GB+ roaming profiles should have been a clue. That only happens in the Windows world. :) > Is the Windows version of TB significantly different > to the Linux version? I'm not an authority as I've little experience with the Linux version. From what I've read they are very similar, with minimal platform specific code, most of the unique code being GUI management and system API calls. WRT the user configurable stuff, it's identical across platforms AFAIK. Much like Linda, and much of the corporate world, I have Windows on the desktop and Linux in the data center. -- Stan From tlx at leuxner.net Wed May 11 11:02:50 2011 From: tlx at leuxner.net (Thomas Leuxner) Date: Wed, 11 May 2011 10:02:50 +0200 Subject: [Dovecot] Error messages in log In-Reply-To: <4DCA0409.4030702@bellfamily.org.uk> References: <4DCA0409.4030702@bellfamily.org.uk> Message-ID: <20110511080250.GB2885@nihlus.leuxner.net> On Wed, May 11, 2011 at 11:35:37AM +0800, Peter Bell wrote: > Possibly more concerning is this message: > May 10 23:31:23 imap(peter): Error: > link(/mnt/user/Maildir/peter/dovecot.index.log, > /mnt/user/Maildir/peter/dovecot.index.log.2) failed: Function not > implemented Basically you are nesting homedir/meta data inside the Maildir root. This is where the errors stem from. Sieve scripts and index data should not reside within same. > mail_location = maildir:/mnt/user/Maildir/%u This is a bit overcomplicated. Try using a construct like: mail_location = maildir:~/Maildir http://wiki2.dovecot.org/MailLocation/Maildir This however requires home directories to be set accordingly in the User Database: > userdb { > args = /etc/passwd.dovecot > driver = passwd-file http://wiki2.dovecot.org/AuthDatabase/Passwd With the changes in place the nesting can be avoided by simplifying: > plugin { > sieve = /mnt/user/Maildir/%u/.dovecot.sieve > sieve_dir = /mnt/user/Maildir/%u/ sieve = ~/.dovecot.sieve sieve_dir = ~/sieve Regards Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From tss at iki.fi Wed May 11 12:42:02 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 12:42:02 +0300 Subject: [Dovecot] Error messages in log In-Reply-To: <4DCA0409.4030702@bellfamily.org.uk> References: <4DCA0409.4030702@bellfamily.org.uk> Message-ID: <2D2123E9-1CDC-4563-95B8-4575771DEC00@iki.fi> On 11.5.2011, at 6.35, Peter Bell wrote: > However, I also get a lot of: > lda(peter): Error: User peter doesn't have home dir set, disabling duplicate database > Is there a way to eliminate/supress these messages? I'm operating with virtual users, so checking for a home directory doesn't make a lot of sense. Is there a setting in the .conf file which can control this? http://wiki2.dovecot.org/VirtualUsers/Home > Possibly more concerning is this message: > May 10 23:31:23 imap(peter): Error: link(/mnt/user/Maildir/peter/dovecot.index.log, /mnt/user/Maildir/peter/dovecot.index.log.2) failed: Function not implemented So apparently your fuse filesystem doesn't support link(). > I'm not sure exactly what I was doing at the time - probably experimenting with Sieve filters. Has this compromised my maildir? I have already disabled copy with hard links - is there another 'hardlink' setting available? Nope. I don't remember what all places uses link(), but looks like at least copying .log to .log.2 file. It doesn't really matter if it fails though. From CMarcus at Media-Brokers.com Wed May 11 14:02:45 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Wed, 11 May 2011 07:02:45 -0400 Subject: [Dovecot] performance problems with IMAPS In-Reply-To: <4DC9B523.1010503@tlinx.org> References: <4DC995C4.1060401@tlinx.org> <8488816E-EE93-4150-8353-04A65B15C136@iki.fi> <4DC9B523.1010503@tlinx.org> Message-ID: <4DCA6CD5.5000005@Media-Brokers.com> On 2011-05-10 5:58 PM, Linda Walsh wrote: > It's gotten worse with TB 3.x though with performance there really > bogging down my machine in terms of local disk-space consumed. As you > may be aware, TB3.x ignores the entire premise of IMAP in storing > messages on the server, trying to make copies of all messages, > locally. Please don't blame incorrect/poor configuration practices on the program itself. Properly configured, 3.1.x is miles beyond 2.x... but yes, I agree, the defaults do not play well in a corporate/roaming profile environment. > With my users running with roaming profiles, this easily adds over > 1GB of locally cached mail to each profile that needs to be copied to > and from a server each time a user logs in or out (creating huge lag > times for login/logout). Either use redirected folders, or disable the local store and GLODA. -- Best regards, Charles From tss at iki.fi Wed May 11 14:20:48 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 14:20:48 +0300 Subject: [Dovecot] Running 1.x and 2. x on same machine In-Reply-To: <446514.80943.qm@web39307.mail.mud.yahoo.com> References: <446514.80943.qm@web39307.mail.mud.yahoo.com> Message-ID: <1305112848.10421.183.camel@hurina> On Wed, 2011-05-11 at 00:21 -0700, email builder wrote: > Hello, > > When building from source, is it possible to use "make install" to switch > between version 1.x and 2.x on the same machine (just for testing)? I do that all the time. > Do both versions install the same binaries? No, but as long as you don't use the other one's extra binaries it doesn't matter. > Is configuration from 2.x backward > compatible with 1.x? (so we can have the newest configuration files on our > system without bothering to have a second set of 1.x config files) v2.0 can read most v1.x config files, but it'll give a lot of warnings about it. Their default configs are anyway in different locations. I just keep them both: v1.x: /usr/local/etc/dovecot.conf v2.x: /usr/local/etc/dovecot/dovecot.conf > Or instead should we be changing something like the installation and config > directorie for one of the versions when we install it (how?). ./configure --prefix=/usr/local/dovecot-2.0 From tss at iki.fi Wed May 11 14:26:16 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 14:26:16 +0300 Subject: [Dovecot] LDAP Authentication ok but errors In-Reply-To: References: Message-ID: <1305113176.10421.184.camel@hurina> On Tue, 2011-05-10 at 18:21 +0200, H?ctor Moreno Blanco wrote: > We have installed dovecot 2.0.10. With LDAP authentication. Users authenticate successfully but in the authentication process there are errors that I don't understand because it's everything all right: > > May 10 18:00:49 carpe3 dovecot: auth: Error: ldap_unbind > May 10 18:00:49 carpe3 dovecot: auth: Error: ldap_free_connection 1 1 > May 10 18:00:49 carpe3 dovecot: auth: Error: ldap_send_unbind .. These are not errors, they are debug messages. They simply show up as errors, because libldap writes them to stderr, and Dovecot treats all such extra stderr input as errors. > An here is my dovecot-ldap.conf: > > # INFORMACI?N DE CONEXI?N AL LDAP > debug_level = -1 Set debug_level = 0 and those debug messages go away. From tss at iki.fi Wed May 11 14:28:16 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 14:28:16 +0300 Subject: [Dovecot] Problem with sieve after upgrade to 2.0 In-Reply-To: <201105071624.58117.tom-dovecot@tomonica.net> References: <201105071624.58117.tom-dovecot@tomonica.net> Message-ID: <1305113296.10421.185.camel@hurina> On Sat, 2011-05-07 at 16:24 +0100, Tom Wright wrote: > I've just upgraded from 1.2 to 2.0.12 via debian sid packages. I think I've > moved all my config over to the new directory-based structure and most things > are working, but the subaddress extension in sieve doesn't seem to do anything > anymore. It doesn't report an error, but any rules which use it are just > ignored. Other sieve rules which don't use subaddress seem to work ok. What parameters are you giving to deliver? What does it log with mail_debug=yes? From tss at iki.fi Wed May 11 14:36:30 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 14:36:30 +0300 Subject: [Dovecot] dovecot+shared folders In-Reply-To: References: Message-ID: <1305113790.10421.186.camel@hurina> On Fri, 2011-05-06 at 17:03 +0400, Alexey Eropkin wrote: > And all seems ok, but I cannot understand how to make delet flag per user. > If I permit t and e in ACL, users delet message forever for all. Not possible currently. Although you could easily modify the source code to do that. From peter at bellfamily.org.uk Wed May 11 15:02:10 2011 From: peter at bellfamily.org.uk (Peter Bell) Date: Wed, 11 May 2011 20:02:10 +0800 Subject: [Dovecot] Error messages in log In-Reply-To: <2D2123E9-1CDC-4563-95B8-4575771DEC00@iki.fi> References: <4DCA0409.4030702@bellfamily.org.uk> <2D2123E9-1CDC-4563-95B8-4575771DEC00@iki.fi> Message-ID: <4DCA7AC2.7010801@bellfamily.org.uk> Thank you to you, Timo, and to Thomas, for you helpful replies! On Wednesday, 11 May, 2011 05:42 PM, Timo Sirainen wrote: > On 11.5.2011, at 6.35, Peter Bell wrote: > >> However, I also get a lot of: >> lda(peter): Error: User peter doesn't have home dir set, disabling duplicate database >> Is there a way to eliminate/supress these messages? I'm operating with virtual users, so checking for a home directory doesn't make a lot of sense. Is there a setting in the .conf file which can control this? > > http://wiki2.dovecot.org/VirtualUsers/Home Ah, thanks for that pointer - I seem to have missed that page in my enthusiasm to get Dovecot up and running in my Slackware environment. Perhaps I simply ignored mention of 'home' directories in my belief that they didn't apply to a virtual user situation. I will have a go at restructuring things. >> Possibly more concerning is this message: >> May 10 23:31:23 imap(peter): Error: link(/mnt/user/Maildir/peter/dovecot.index.log, /mnt/user/Maildir/peter/dovecot.index.log.2) failed: Function not implemented > > So apparently your fuse filesystem doesn't support link(). That is correct. This system is, essentially, a parity-protected file server, with logical file space which spans physical devices. However, the big benefit of the system is that, unlike most RAID configurations, each physical drive can be mounted individually and the filesystem (ReiserFS) written/read in isolation. I suspect that, technically, it would be possible to add link(), but I guess that the conflation of stand-alone drive/logical spanning makes it a little complex. I will try starting a discussion on this topic over on the 'other' forum. Anyway, having been badly bitten by a RAID system which fell over and failed to respond to any of the prescribed recovery procedures, some years ago, I feel more comfortable with this solution. The system will recover from any single drive failure and,even if more than one drive fails simultaneously, I can still recover all files on the remaining drives. >> I'm not sure exactly what I was doing at the time - probably experimenting with Sieve filters. Has this compromised my maildir? I have already disabled copy with hard links - is there another 'hardlink' setting available? > > Nope. I don't remember what all places uses link(), but looks like at least copying .log to .log.2 file. It doesn't really matter if it fails though. Okay, so I'm guessing that this is simply a rollover log file - one file, reaching a certain size is renamed [linked], and a new log file started? When I have a little spare time I may try grepping the Dovecot code. -- ------------------------------------------------------------------- Peter Bell Mob: +63 (0) 9287 340 343 Tagum City, Philippines. Tel: +63 (0) 84 400 5085 email/msn: peter at bellfamily.org.uk Tel: +44 (0) 118 331 0000 From trever.adams at gmail.com Wed May 11 15:09:19 2011 From: trever.adams at gmail.com (Trever L. Adams) Date: Wed, 11 May 2011 06:09:19 -0600 Subject: [Dovecot] possible bug leading to lmtp crashes In-Reply-To: <1304957973.10421.101.camel@hurina> References: <4DAECAAC.3060903@gmail.com> <4DB58F67.4090600@gmail.com> <4DB6FCF7.9070905@gmail.com> <5D19A866-381B-4CA6-B8FF-0F7BCDA36799@iki.fi> <4DBC3F3F.4030605@gmail.com> <1304957973.10421.101.camel@hurina> Message-ID: <4DCA7C6F.40902@gmail.com> On 05/09/2011 10:19 AM, Timo Sirainen wrote: > > I wonder if it crashes earlier with this patch? > http://hg.dovecot.org/dovecot-2.0/rev/3ada82147977 > Thank you, Timo. I think this may have indeed fixed it. I would like to wait a day or two more before saying definitively, but so far it looks like it has fixed the problem. It also seems to have solved another crash you asked me to duplicate and provide a backtrace for (which I was unable to do). Trever -- "If a revolution destroys a systematic government, but the systematic patterns of thought that produced that government are left intact, then those patterns will repeat themselves in the succeeding government." -- Robert M. Pirsig -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From tss at iki.fi Wed May 11 15:21:06 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 15:21:06 +0300 Subject: [Dovecot] Backtrace:dovecot/imap with 2.0.9 hg checkout from 1st of Febrauary In-Reply-To: <20110505092649.GD23316@charite.de> References: <20110202085907.GD2120@charite.de> <1296685692.18488.322.camel@hurina> <20110203090827.GC12879@charite.de> <20110505092649.GD23316@charite.de> Message-ID: <1305116466.10421.187.camel@hurina> Fixed: http://hg.dovecot.org/dovecot-2.0/rev/cef76cf2cec9 http://hg.dovecot.org/dovecot-2.0/rev/c392158f374d On Thu, 2011-05-05 at 11:26 +0200, Ralf Hildebrandt wrote: > * Ralf Hildebrandt : > > > Maybe it's a accidentially doubly gzipped mail :( > > It is! > > > > There's anyway a bug since it shouldn't be crashing even with garbage > > > input. > > > > Yes, indeed. > > > > > Do you still have this message available? You can probably find it with: > > > > > > doveadm fetch -u username 'mailbox size.virtual' uid 37 > > > > > > And seeing if that's a >130k message somewhere in the list. If that's a > > > spam or otherwise a message you can send me, it would help fixing this. > > Can dovecot changed in a way that it doesn't crash when it encounters > a accidentially doubly gzipped mail? > > From tss at iki.fi Wed May 11 15:23:03 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 15:23:03 +0300 Subject: [Dovecot] Importing emails from mounted NFS to dovecot using doveadm In-Reply-To: References: Message-ID: <1305116583.10421.188.camel@hurina> On Wed, 2011-05-04 at 14:05 -0300, Alex Baule wrote: > > userdb { > driver = static > args = uid=mail gid=mail home=/storage/gss/emexis/messages/%d/%n > allow_all_users=yes > } > > > but my emails to import in NFS i cant change the UID-GID to mail:mail, > because is in use by another IMAP (in one machine uid X is different from > another machine) > > There is a way to import emails with doveadm without change the owner from > my emails to import ? Dovecot would then have to read mails using one UID and write them using another UID. It would have to run as root to do that.. So, nope, no good way to do this. You could cp the mails to /tmp first and chown there. From tss at iki.fi Wed May 11 15:26:32 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 15:26:32 +0300 Subject: [Dovecot] Error messages in log In-Reply-To: <4DCA7AC2.7010801@bellfamily.org.uk> References: <4DCA0409.4030702@bellfamily.org.uk> <2D2123E9-1CDC-4563-95B8-4575771DEC00@iki.fi> <4DCA7AC2.7010801@bellfamily.org.uk> Message-ID: <1305116792.10421.191.camel@hurina> On Wed, 2011-05-11 at 20:02 +0800, Peter Bell wrote: > >> Possibly more concerning is this message: > >> May 10 23:31:23 imap(peter): Error: link(/mnt/user/Maildir/peter/dovecot.index.log, /mnt/user/Maildir/peter/dovecot.index.log.2) failed: Function not implemented > > > > So apparently your fuse filesystem doesn't support link(). > > That is correct. This system is, essentially, a parity-protected file > server, with logical file space which spans physical devices. However, > the big benefit of the system is that, unlike most RAID configurations, > each physical drive can be mounted individually and the filesystem > (ReiserFS) written/read in isolation. I suspect that, technically, it > would be possible to add link(), but I guess that the conflation of > stand-alone drive/logical spanning makes it a little complex. I will > try starting a discussion on this topic over on the 'other' forum. One directory's all files are probably in one filesystem, so link() within a single directory should be simple to implement I think? That's all Dovecot needs. > >> I'm not sure exactly what I was doing at the time - probably experimenting with Sieve filters. Has this compromised my maildir? I have already disabled copy with hard links - is there another 'hardlink' setting available? > > > > Nope. I don't remember what all places uses link(), but looks like at least copying .log to .log.2 file. It doesn't really matter if it fails though. > > Okay, so I'm guessing that this is simply a rollover log file - one > file, reaching a certain size is renamed [linked], and a new log file > started? Right. Not having a .log.2 mainly affects things like dsync and QRESYNC extension. > When I have a little spare time I may try grepping the Dovecot code. there are link() and nfs_safe_link() calls. From tss at iki.fi Wed May 11 15:27:29 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 15:27:29 +0300 Subject: [Dovecot] possible bug leading to lmtp crashes In-Reply-To: <4DCA7C6F.40902@gmail.com> References: <4DAECAAC.3060903@gmail.com> <4DB58F67.4090600@gmail.com> <4DB6FCF7.9070905@gmail.com> <5D19A866-381B-4CA6-B8FF-0F7BCDA36799@iki.fi> <4DBC3F3F.4030605@gmail.com> <1304957973.10421.101.camel@hurina> <4DCA7C6F.40902@gmail.com> Message-ID: <1305116849.10421.192.camel@hurina> On Wed, 2011-05-11 at 06:09 -0600, Trever L. Adams wrote: > On 05/09/2011 10:19 AM, Timo Sirainen wrote: > > > > I wonder if it crashes earlier with this patch? > > http://hg.dovecot.org/dovecot-2.0/rev/3ada82147977 > > > Thank you, Timo. I think this may have indeed fixed it. That patch only was supposed to make it crash elsewhere, not actually fix anything. :) From peter at bellfamily.org.uk Wed May 11 15:36:57 2011 From: peter at bellfamily.org.uk (Peter Bell) Date: Wed, 11 May 2011 20:36:57 +0800 Subject: [Dovecot] Error messages in log In-Reply-To: <1305116792.10421.191.camel@hurina> References: <4DCA0409.4030702@bellfamily.org.uk> <2D2123E9-1CDC-4563-95B8-4575771DEC00@iki.fi> <4DCA7AC2.7010801@bellfamily.org.uk> <1305116792.10421.191.camel@hurina> Message-ID: <4DCA82E9.70701@bellfamily.org.uk> On Wednesday, 11 May, 2011 08:26 PM, Timo Sirainen wrote: > On Wed, 2011-05-11 at 20:02 +0800, Peter Bell wrote: >> I suspect that, technically, it >> would be possible to add link(), but I guess that the conflation of >> stand-alone drive/logical spanning makes it a little complex. I will >> try starting a discussion on this topic over on the 'other' forum. > > One directory's all files are probably in one filesystem, so link() > within a single directory should be simple to implement I think? That's > all Dovecot needs. Yes, sure. I think that it might be a little more complicated to find a generalised solution which will meet all requirements for the implementation of link(). >> When I have a little spare time I may try grepping the Dovecot code. > > there are link() and nfs_safe_link() calls. Thanks for that info! -- ------------------------------------------------------------------- Peter Bell Mob: +63 (0) 9287 340 343 Tagum City, Philippines. Tel: +63 (0) 84 400 5085 email/msn: peter at bellfamily.org.uk Tel: +44 (0) 118 331 0000 From tom-dovecot at tomonica.net Wed May 11 15:41:34 2011 From: tom-dovecot at tomonica.net (Tom Wright) Date: Wed, 11 May 2011 13:41:34 +0100 Subject: [Dovecot] Problem with sieve after upgrade to 2.0 In-Reply-To: <1305113296.10421.185.camel@hurina> Message-ID: <632d4dff9465edfc0b537c2e38ef2482@secure.tomonica.net> > On Sat, 2011-05-07 at 16:24 +0100, Tom Wright wrote: >> I've just upgraded from 1.2 to 2.0.12 via debian sid packages. I think I've >> moved all my config over to the new directory-based structure and most things >> >> are working, but the subaddress extension in sieve doesn't seem to do >> anything >> anymore. It doesn't report an error, but any rules which use it are just >> ignored. Other sieve rules which don't use subaddress seem to work ok. From: "Timo Sirainen" tss at iki.fi > What parameters are you giving to deliver? What does it log with > mail_debug=yes? Thanks, that pointed me in the right direction and it's now fixed. I changed /etc/exim4/conf.d/transport/20_dovecot as follows: - command = /usr/lib/dovecot/deliver + command = /usr/lib/dovecot/deliver -e -k -f "$sender_address" -a "$original_local_part@$original_domain" + use_shell + environment = USER=$local_part@$domain + umask = 002 Based on the instructions at http://wiki.dovecot.org/LDA/Exim All working now, thanks very much! Tom From trever.adams at gmail.com Wed May 11 16:12:47 2011 From: trever.adams at gmail.com (Trever L. Adams) Date: Wed, 11 May 2011 07:12:47 -0600 Subject: [Dovecot] possible bug leading to lmtp crashes In-Reply-To: <1305116849.10421.192.camel@hurina> References: <4DAECAAC.3060903@gmail.com> <4DB58F67.4090600@gmail.com> <4DB6FCF7.9070905@gmail.com> <5D19A866-381B-4CA6-B8FF-0F7BCDA36799@iki.fi> <4DBC3F3F.4030605@gmail.com> <1304957973.10421.101.camel@hurina> <4DCA7C6F.40902@gmail.com> <1305116849.10421.192.camel@hurina> Message-ID: <4DCA8B4F.8060400@gmail.com> On 05/11/2011 06:27 AM, Timo Sirainen wrote: > > That patch only was supposed to make it crash elsewhere, not actually > fix anything. :) Yes, that is what I thought. Funny thing is, in 24 hours, it used to crash a dozen times or more, on two of the three machines (the other was much slower). I do not have any asserts in /var/log/maillog that aren't "normal" also, no new crashes. I will keep letting it run. Thank you, Trever -- "Science helps a lot, but people built perfectly good brick walls long before they knew why cement works." -- Alan Cox -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From nebano at gmail.com Wed May 11 18:38:24 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Wed, 11 May 2011 17:38:24 +0200 Subject: [Dovecot] Dovecot 2.0 vs Dovecot 1.2 Message-ID: Hi all I have beyng testing Dovecot 2.0.12. But I have a question. Wath are de advantages of Dovecot 2.0 appart Lmtp? Will dovecot 1.2 desapear? Thanks From jester at arcor.de Wed May 11 18:49:10 2011 From: jester at arcor.de (Oliver Eales) Date: Wed, 11 May 2011 17:49:10 +0200 Subject: [Dovecot] Different pass_dbs and auth_mechanisms on different ports Message-ID: <4DCAAFF6.2070507@arcor.de> Hello, is it possible to have dovecot imap listening on two different ports, while providing different auth_mechamisms and different pass_db/user_dbs ? Or is it better to simply have two running dovecot instances on the same machine ? Regards, Oliver From tss at iki.fi Wed May 11 18:52:21 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 18:52:21 +0300 Subject: [Dovecot] v2.0.13 released Message-ID: <1305129141.10421.213.camel@hurina> http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz.sig I've almost managed to read my email backlog, but there are still some unanswered mails. Feel free to resend if you think I should have answered some of your mails. The most important changes since v2.0.12: + Added "doveadm index" command to add unindexed messages into index/cache. If full text search is enabled, it also adds unindexed messages to the fts database. + added "doveadm director dump" command. + pop3: Added support for showing messages in "POP3 order", which can be different from IMAP message order. This can be useful for migrations from other servers. Implemented it for Maildir as 'O' field in dovecot-uidlist. - doveconf: Fixed a wrong "subsection has ssl=yes" warning. - mdbox purge: Fixed wrong warning about corrupted extrefs. - sdbox: INBOX GUID changed when INBOX was autocreated, leading to trouble with dsync. - script-login binary wasn't actually dropping privileges to the user/group/chroot specified by its service settings. - Fixed potential crashes and other problems when parsing header names that contained NUL characters. From tss at iki.fi Wed May 11 18:52:33 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 18:52:33 +0300 Subject: [Dovecot] v1.2.17 released Message-ID: <1305129153.10421.214.camel@hurina> http://dovecot.org/releases/1.2/dovecot-1.2.17.tar.gz http://dovecot.org/releases/1.2/dovecot-1.2.17.tar.gz.sig The important changes since v1.2.16: - Fixed potential crashes and other problems when parsing header names that contained NUL characters. - IMAP: Fixed a memory leak with ESEARCH command handling - Quota warnings could have been executed at incorrect times with some configs. From lists at wildgooses.com Wed May 11 19:00:45 2011 From: lists at wildgooses.com (Ed W) Date: Wed, 11 May 2011 17:00:45 +0100 Subject: [Dovecot] ntp revisited (so what to do ?) In-Reply-To: <4DC9AFE3.7060804@hardwarefreak.com> References: <710190.16207.qm@web27203.mail.ukl.yahoo.com> <1304858206.3374.7.camel@morgoth> <4DC6D550.7000406@hardwarefreak.com> <4DC79E7A.5080700@hardwarefreak.com> <4DC942B1.7020502@wildgooses.com> <4DC9AFE3.7060804@hardwarefreak.com> Message-ID: <4DCAB2AD.10804@wildgooses.com> On 10/05/2011 22:36, Stan Hoeppner wrote: > On 5/10/2011 8:50 AM, Ed W wrote: > >> So, in practice it's fairly irrelevant to be hooked to a stratum 1 for >> most purposes and if you really want to get obsessed about accurate time >> (I'm going through this obsession phase right now...) then just get a >> local GPS attached to your machine... > > NTP is free and the accuracy, when properly configured, is better than > that required by any network application. If your goal is sub > millisecond accuracy, it's not due to any actual network application > requirement. I'm not sure if I understand your point? My point was that some Stratum 1 servers are less than 1ms accurate. You were making excited noises about being given access to a Stratum 1 server via an internet connection and I was simply pointing out that such a setup does not necessarily give super accurate time at your side (especially compared with adding a $50 GPS to a local machine - which of course makes that machine a stratum 1) Also, I don't understand your point about NTP being free? Chrony is GPL? Finally you say that NTP is "better than required", but in fact NTP can often take quite a long time to converge to fairly accurate time? If the machine is rebooted (less common for a server, but more common for desktop machines), and the RTC is inaccurate, then it can take quite a long time each boot before the clock is decent. One citation here: http://lists.ntp.org/pipermail/questions/2011-April/029223.html Chrony converges much more rapidly in general NTP is clearly "good enough", I was just trying to bring other ideas to the attention of the OP (and now you). Chrony is a very good solution and solves a number of problems with timekeeping that perhaps you were not even aware that you had? Kind regards Ed W From Dave at Yost.com Wed May 11 10:26:20 2011 From: Dave at Yost.com (Dave Yost) Date: Wed, 11 May 2011 00:26:20 -0700 Subject: [Dovecot] when the user has no home directory In-Reply-To: <81B248CC-75F9-4449-9618-A712259C4A6B@iki.fi> References: <81B248CC-75F9-4449-9618-A712259C4A6B@iki.fi> Message-ID: At 11:45 PM +0300 2011-05-10, Timo Sirainen wrote: >On 6.5.2011, at 4.25, Dave Yost wrote: > >> A user on our server for some reason didn't have a home directory. >>As a result, the pop3 server was complaining. Apple's Mail app >>reported that the server said: >> >> The attempt to send data to the server "(null)" failed. >> >> It would be nice if the server would say something to the effect >>that the connection failed because the user account has no home >>directory. > >I'm pretty sure Dovecot said something different. I don't know why >Apple Mail would only say (null). Dovecot also should have logged >something in its error log. > >You could try reproducing it. But instead of connecting with Apple >Mail, connect directly with telnet and see what Dovecot really says: > >telnet pop3.example.com 110 >user foobar >pass secret > >http://wiki2.dovecot.org/TestPop3Installation has more possibilities I tried again just now with a user whose home dir doesn't exist. Apparently I get no error message back. The connection just closes. Perhaps Apple Mail's "(null)" is the result of the summary closing of the connection. Wed 0:16:39 0 222 Z% telnet localhost 110 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK Dovecot ready. user xxxxx +OK pass xxxxx Connection closed by foreign host. Wed 0:17:05 1 223 Z% /var/log/maillog says May 11 00:17:05 xx dovecot: pop3-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured May 11 00:17:05 xx dovecot: POP3(xxxxx): mail_location: mbox: mkdir(/home/xxxxx/mail) failed: Permission denied (euid=11111(xxxxx) egid=1111(ootbc) missing +w perm: /home) May 11 00:17:05 xx ovecot: POP3(xxxxx): Fatal: Namespace initialization failed Thanks From stephan at rename-it.nl Wed May 11 20:41:45 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Wed, 11 May 2011 19:41:45 +0200 Subject: [Dovecot] Sieve & auto_create mail_home In-Reply-To: <1305042847.10421.138.camel@hurina> References: <20110509101958.45750@gmx.com> <1305042847.10421.138.camel@hurina> Message-ID: <4DCACA59.3000701@rename-it.nl> Op 10-5-2011 17:54, Timo Sirainen schreef: > On Mon, 2011-05-09 at 10:19 +0000, Maria Arrea wrote: > >> mail_home = /buzones/mydomain/%2.26Hn/%2.200Hn/%n/home_usuario/ >> mail_location = mdbox:/buzones/my_domain/%2.26Hn/%2.200Hn/%n:INDEX=/indices_dovecot/indices/%2.26Hn/%2.200Hn/%n >> >> May 9 12:13:52 buzon dovecot: managesieve(a_poor_user at mydomain): Error: sieve-storage: open(/buzones/my_domain/0a/94/javierdemiguel/home_usuario/sieve//tmp/roundcube-1304936032.M335644P23819.mydomain.sieve) failed: No such file or directory > I guess normally this won't show up because normally mail directory is > under home dir, not vice versa. > > But I couldn't reproduce this myself anyway. The sieve/tmp/ dir is > created at startup and I can't really think of where that open() error > is coming from if it's done earlier. Stephan? Strange, it looks as though auto-creation is skipped for some reason. Could you enable mail_debug and show the (debug) log lines preceding the error? Regards, Stephan. From stephan at rename-it.nl Wed May 11 20:52:49 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Wed, 11 May 2011 19:52:49 +0200 Subject: [Dovecot] vacation problem with sieve and sogo In-Reply-To: <4DC5DA02.5020604@educ.ar> References: <4DC456B4.7000205@educ.ar> <4DC4EF53.2050108@rename-it.nl> <4DC5DA02.5020604@educ.ar> Message-ID: <4DCACCF1.1070803@rename-it.nl> Op 8-5-2011 1:47, Pablo Luchetti schreef: > Thanks Stephan, but doesn't work. > I try both > > plugin: > sieve: ~/sieve/ > > and > > plugin: > sieve: ~/.dovecot.sieve Could you enable mail_debug and show me any relevant log lines? Regards, Stephan. From emailbuilder88 at yahoo.com Wed May 11 21:58:21 2011 From: emailbuilder88 at yahoo.com (email builder) Date: Wed, 11 May 2011 11:58:21 -0700 (PDT) Subject: [Dovecot] Running 1.x and 2. x on same machine In-Reply-To: <1305112848.10421.183.camel@hurina> References: <446514.80943.qm@web39307.mail.mud.yahoo.com> <1305112848.10421.183.camel@hurina> Message-ID: <368435.96433.qm@web39308.mail.mud.yahoo.com> > > When building from source, is it possible to use "make install" to switch > > between version 1.x and 2.x on the same machine (just for testing)? > > I do that all the time. > > > Do both versions install the same binaries? > > No, but as long as you don't use the other one's extra binaries it > doesn't matter. OK, great. I assume you mean as long as I only use /usr/local/sbin/dovecot to start the IMAP server, it will start whatever version I last installed with "make install" right? If it does that, I'm good. > > Is configuration from 2.x backward > > compatible with 1.x? (so we can have the newest configuration files on our > > system without bothering to have a second set of 1.x config files) > > v2.0 can read most v1.x config files, but it'll give a lot of warnings > about it. Their default configs are anyway in different locations. I > just keep them both: What about the other way around? If I already have 2.0 configuration files done, can I point 1.x to them? Will 1.x choke on 2.0 config files? > v1.x: /usr/local/etc/dovecot.conf > v2.x: /usr/local/etc/dovecot/dovecot.conf If it's best to keep the two sets of configuration files, I'd rather separate them better than that. Is there a configure option that can move the location of the config directory only? I guess if I install the binaries to a separate place using the --prefix option, the config files also get moved? > > Or instead should we be changing something like the installation and config > > directorie for one of the versions when we install it (how?). > > ./configure --prefix=/usr/local/dovecot-2.0 OK, but according to your answer at the top of this message, this isn't necessary unless I want to have the binaries installed at the same time (which isn't a bad idea I suppose) From frank at moltke28.B.Shuttle.DE Wed May 11 22:03:07 2011 From: frank at moltke28.B.Shuttle.DE (Frank Elsner) Date: Wed, 11 May 2011 21:03:07 +0200 Subject: [Dovecot] v2.0.13 released In-Reply-To: <1305129141.10421.213.camel@hurina> References: <1305129141.10421.213.camel@hurina> Message-ID: On Wed, 11 May 2011 18:52:21 +0300 Timo Sirainen wrote: [ ... ] > - script-login binary wasn't actually dropping privileges to the > user/group/chroot specified by its service settings. This version gives problems with my post-login script to track last usage, which works perfect with 2.0.12. Error messages: May 11 20:38:53 seymour dovecot: master: Dovecot v2.0.13 starting up (core dumps disabled) May 11 20:39:01 seymour dovecot: imap-login: Login: frank, 192.168.28.53, TLS May 11 20:39:01 seymour dovecot: imap-postlogin: Error: script-login: Error: user frank: Error reading configuration: net_connect_unix(/var/run/dovecot/config) failed: Permission denied May 11 20:39:01 seymour dovecot: imap-postlogin: Error: script-login: Fatal: Internal error occurred. Refer to server log for more information. May 11 20:39:01 seymour dovecot: log: Error: service(imap-postlogin): child 8651 returned error 89 (Fatal failure) May 11 20:39:01 seymour dovecot: imap(frank): Post-login script denied access to user frank # 2.0.12: /usr/local/dovecot/etc/dovecot/dovecot.conf # OS: Linux 2.6.35.13-91.fc14.i686.PAE i686 Fedora release 14 (Laughlin) ext3 disable_plaintext_auth = no first_valid_uid = 200 last_valid_uid = 65534 listen = * login_greeting = c64.shuttle.de - IMAPs Service ready. login_log_format_elements = %u %r %c mail_location = maildir:/var/spool/mail/%u:INDEX=MEMORY mail_log_prefix = "%Us(%u,%r): " mail_plugins = " notify quota" passdb { args = dovecot driver = pam } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename flag_change append mail_log_fields = uid box from subject msgid size flags mail_log_group_events = yes quota = maildir:User quota quota_rule = *:storage=2G quota_rule2 = Trash:storage=+100M } protocols = imap service auth { unix_listener auth-client { group = exim mode = 0660 user = exim } } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } process_min_avail = 3 } service imap-postlogin { executable = script-login /usr/dovecot/bin/imap-post-login user = dovecot } service imap { executable = imap imap-postlogin } ssl_cert = References: <1305129141.10421.213.camel@hurina> Message-ID: <56F2DF29-FEF0-48F9-8093-64801D577396@iki.fi> On 11.5.2011, at 22.03, Frank Elsner wrote: > This version gives problems with my post-login script to track last usage, > which works perfect with 2.0.12. That would be because of this change: - script-login binary wasn't actually dropping privileges to the user/group/chroot specified by its service settings. > May 11 20:39:01 seymour dovecot: imap-postlogin: Error: script-login: Error: user frank: Error reading configuration: net_connect_unix(/var/run/dovecot/config) failed: Permission denied Hmm. I suppose it drops the privileges a bit too early now.. Well, you can switch back to v2.0.12 behavior by removing the user=dovecot: > service imap-postlogin { > user = dovecot I'll fix it properly for v2.0.14 then. Another alternative would be to change config socket's permissions to allow dovecot user to read/write it. From tss at iki.fi Wed May 11 22:20:06 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 22:20:06 +0300 Subject: [Dovecot] Running 1.x and 2. x on same machine In-Reply-To: <368435.96433.qm@web39308.mail.mud.yahoo.com> References: <446514.80943.qm@web39307.mail.mud.yahoo.com> <1305112848.10421.183.camel@hurina> <368435.96433.qm@web39308.mail.mud.yahoo.com> Message-ID: <8BA56166-02E4-4549-BBC8-C48D384C81E9@iki.fi> On 11.5.2011, at 21.58, email builder wrote: >>> Do both versions install the same binaries? >> >> No, but as long as you don't use the other one's extra binaries it >> doesn't matter. > > OK, great. I assume you mean as long as I only use /usr/local/sbin/dovecot to > start the IMAP server, it will start whatever version I last installed with > "make install" right? If it does that, I'm good. Yep. >>> Is configuration from 2.x backward >>> compatible with 1.x? (so we can have the newest configuration files on our >>> system without bothering to have a second set of 1.x config files) >> >> v2.0 can read most v1.x config files, but it'll give a lot of warnings >> about it. Their default configs are anyway in different locations. I >> just keep them both: > > What about the other way around? If I already have 2.0 configuration files > done, can I point 1.x to them? Will 1.x choke on 2.0 config files? v1.x definitely won't like any service {} blocks, and probably fails in other places too. >> v1.x: /usr/local/etc/dovecot.conf >> v2.x: /usr/local/etc/dovecot/dovecot.conf > > If it's best to keep the two sets of configuration files, I'd rather separate > them better than that. Is there a configure option that can move the location of > the config directory only? configure --sysconfdir=/etc/dovecot2 > I guess if I install the binaries to a separate > place using the --prefix option, the config files also get moved? Yes, that too. >>> Or instead should we be changing something like the installation and config > >>> directorie for one of the versions when we install it (how?). >> >> ./configure --prefix=/usr/local/dovecot-2.0 > > OK, but according to your answer at the top of this message, this isn't > necessary unless I want to have the binaries installed at the same time (which > isn't a bad idea I suppose) If it's only a testing machine, it doesn't really matter what you do. For a production server I wouldn't recommend installing v1.x and v2.x to same prefix. From frank at moltke28.B.Shuttle.DE Wed May 11 22:34:26 2011 From: frank at moltke28.B.Shuttle.DE (Frank Elsner) Date: Wed, 11 May 2011 21:34:26 +0200 Subject: [Dovecot] v2.0.13 released In-Reply-To: <56F2DF29-FEF0-48F9-8093-64801D577396@iki.fi> References: <1305129141.10421.213.camel@hurina> <56F2DF29-FEF0-48F9-8093-64801D577396@iki.fi> Message-ID: On Wed, 11 May 2011 22:17:28 +0300 Timo Sirainen wrote: > On 11.5.2011, at 22.03, Frank Elsner wrote: > > > This version gives problems with my post-login script to track last usage, > > which works perfect with 2.0.12. > > That would be because of this change: > > - script-login binary wasn't actually dropping privileges to the > user/group/chroot specified by its service settings. > > > May 11 20:39:01 seymour dovecot: imap-postlogin: Error: script-login: Error: user frank: Error reading configuration: net_connect_unix(/var/run/dovecot/config) failed: Permission denied > > Hmm. I suppose it drops the privileges a bit too early now.. Well, you can switch back to v2.0.12 behavior by removing the user=dovecot: > > > service imap-postlogin { > > user = dovecot Thanks, works. > I'll fix it properly for v2.0.14 then. Another alternative would be to change config socket's permissions to allow dovecot user to read/write it. How to do that? PS: I'd like to have the lastlogin file to be owned by user dovecot. Currently it is owned bx the user. --Frank Elsner From tss at iki.fi Wed May 11 22:37:22 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 22:37:22 +0300 Subject: [Dovecot] v2.0.13 released In-Reply-To: References: <1305129141.10421.213.camel@hurina> <56F2DF29-FEF0-48F9-8093-64801D577396@iki.fi> Message-ID: <5627630B-B2C9-4214-90F6-AB6D8EEBE3C9@iki.fi> On 11.5.2011, at 22.34, Frank Elsner wrote: >> I'll fix it properly for v2.0.14 then. Another alternative would be to change config socket's permissions to allow dovecot user to read/write it. > > How to do that? For example: service config { unix_listener config { group = dovecot mode = 0660 } } (or just user=dovecot) > PS: I'd like to have the lastlogin file to be owned by user dovecot. > Currently it is owned bx the user. Not root?.. From tss at iki.fi Wed May 11 22:38:50 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 22:38:50 +0300 Subject: [Dovecot] Different pass_dbs and auth_mechanisms on different ports In-Reply-To: <4DCAAFF6.2070507@arcor.de> References: <4DCAAFF6.2070507@arcor.de> Message-ID: <6DF7F43F-D1AA-43F4-A584-58CD1152E2AE@iki.fi> On 11.5.2011, at 18.49, Oliver Eales wrote: > is it possible to have dovecot imap listening on two different ports, while providing different auth_mechamisms and different pass_db/user_dbs ? Not currently. > Or is it better to simply have two running dovecot instances on the same machine ? For now, yes. In future you could put auth settings inside local {} blocks. Although even that only supports different IPs, not ports. But maybe ports could be added also some day.. From frank at moltke28.B.Shuttle.DE Wed May 11 22:39:32 2011 From: frank at moltke28.B.Shuttle.DE (Frank Elsner) Date: Wed, 11 May 2011 21:39:32 +0200 Subject: [Dovecot] v2.0.13 released In-Reply-To: <5627630B-B2C9-4214-90F6-AB6D8EEBE3C9@iki.fi> References: <1305129141.10421.213.camel@hurina> <56F2DF29-FEF0-48F9-8093-64801D577396@iki.fi> <5627630B-B2C9-4214-90F6-AB6D8EEBE3C9@iki.fi> Message-ID: On Wed, 11 May 2011 22:37:22 +0300 Timo Sirainen wrote: > On 11.5.2011, at 22.34, Frank Elsner wrote: > > >> I'll fix it properly for v2.0.14 then. Another alternative would be to change config socket's permissions to allow dovecot user to read/write it. > > > > How to do that? > > For example: > > service config { > unix_listener config { > group = dovecot > mode = 0660 > } > } > > (or just user=dovecot) > > > PS: I'd like to have the lastlogin file to be owned by user dovecot. > > Currently it is owned bx the user. > > Not root?.. No. -rw------- 1 frank elsner 31 May 11 20:54 lastlogin --Frank Elsner From tss at iki.fi Wed May 11 22:41:11 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 11 May 2011 22:41:11 +0300 Subject: [Dovecot] Dovecot 2.0 vs Dovecot 1.2 In-Reply-To: References: Message-ID: On 11.5.2011, at 18.38, Osvaldo Alvarez Pozo wrote: > I have beyng testing Dovecot 2.0.12. But I have a question. > Wath are de advantages of Dovecot 2.0 appart Lmtp? See v2.0.0 entry in http://dovecot.org/doc/NEWS > Will dovecot 1.2 desapear? It's in bugfixes-only mode. And some day (soon) it will be in "security fixes only" mode like v1.0 and v1.1 is now. From pllis at educ.ar Thu May 12 00:07:33 2011 From: pllis at educ.ar (Pablo Luchetti) Date: Wed, 11 May 2011 18:07:33 -0300 Subject: [Dovecot] vacation problem with sieve and sogo In-Reply-To: <4DCACCF1.1070803@rename-it.nl> References: <4DC456B4.7000205@educ.ar> <4DC4EF53.2050108@rename-it.nl> <4DC5DA02.5020604@educ.ar> <4DCACCF1.1070803@rename-it.nl> Message-ID: <4DCAFA95.8070206@educ.ar> Hello Stephan: Here are 4 distinct tests with all data requested. In all of them, dovecot answer is: NO "Script name 'sogo' is reserved for internal use." I don't understand why. Remember that I captured the traffic with tcpflow, and then, when telneting to port 2000, if I change PUTSCRIPT "sogo" {448+} with PUTSCRIPT "prueba" {448+} I receive a successful answer. I think the word "sogo" is anywhere in the config, but I don't find it. Here are the tests: ________________________________________________________________________ Test 1 With plugin { sieve = ~/sieve/ } in dovecot.conf shows in dovecot-lda.log when arrive mail: ---------------------------------------------------------- deliver(pluchetti): 2011-05-11 19:29:49 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda deliver(pluchetti): 2011-05-11 19:29:49 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so deliver(pluchetti): 2011-05-11 19:29:49 Info: auth input: home=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:29:49 Info: maildir: data=~ deliver(pluchetti): 2011-05-11 19:29:49 Info: maildir++: root=/data/vmail/jil/pluchetti, index=, control=, inbox=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:29:49 Info: cmusieve: Using sieve path: /data/vmail/jil/pluchetti/sieve/ deliver(pluchetti): 2011-05-11 19:29:49 Error: /data/vmail/jil/pluchetti/sieve/ should be a file, not a directory deliver(pluchetti): 2011-05-11 19:29:49 Info: msgid=<4DCAE395.9090600 at educ.ar>|from=pllis at educ.ar|subject=prueba|saved mail to INBOX ---- And in dovecot-msa-notls.log when trying to set vacation: --------------------------------------------------------- dovecot: 2011-05-11 17:24:43 Info: managesieve-login: Login: user=, method=PLAIN, rip=10.3.14.31, lip=10.3.14.18 dovecot: 2011-05-11 17:24:43 Info: MANAGESIEVE(pluchetti): Connection closed bytes=510/136 ---- # dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-18-server i686 Ubuntu 9.04 log_path: /var/log/mail/dovecot-msa.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/local/WILD.jil_01+CHAIN.crt ssl_key_file: /etc/ssl/private/WILD.jil_01.key login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_greeting: JIL mail server ready. first_valid_uid: 106 last_valid_uid: 106 first_valid_gid: 112 last_valid_gid: 112 mail_privileged_group: mail mail_uid: vmail mail_gid: vmail mail_location: maildir:~ mail_debug: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 auth default: mechanisms: plain login user: vmailauth passdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf userdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf socket: type: listen client: path: /var/spool/postfix/private/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: sieve: ~/sieve/ ________________________________________________________________________________________________ Test 2 With plugin { sieve = ~/.dovecot.sieve } in dovecot.conf shows in dovecot-lda.log when arrive mail: ---------------------------------------------------------- deliver(pluchetti): 2011-05-11 19:41:12 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda deliver(pluchetti): 2011-05-11 19:41:12 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so deliver(pluchetti): 2011-05-11 19:41:12 Info: auth input: home=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:41:12 Info: maildir: data=~ deliver(pluchetti): 2011-05-11 19:41:12 Info: maildir++: root=/data/vmail/jil/pluchetti, index=, control=, inbox=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:41:12 Info: cmusieve: /data/vmail/jil/pluchetti/.dovecot.sieve doesn't exist deliver(pluchetti): 2011-05-11 19:41:12 Info: msgid=<4DCAE652.2020608 at educ.ar>|from=pllis at educ.ar|subject=Re: prueba|saved mail to INBOX ---- And in dovecot-msa-notls.log when trying to set vacation: --------------------------------------------------------- dovecot: 2011-05-11 17:21:45 Info: managesieve-login: Login: user=, method=PLAIN, rip=10.3.14.31, lip=10.3.14.18 dovecot: 2011-05-11 17:21:45 Info: MANAGESIEVE(pluchetti): Connection closed bytes=510/136 ---- # dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-18-server i686 Ubuntu 9.04 log_path: /var/log/mail/dovecot-msa.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/local/WILD.jil_01+CHAIN.crt ssl_key_file: /etc/ssl/private/WILD.jil_01.key login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_greeting: JIL mail server ready. first_valid_uid: 106 last_valid_uid: 106 first_valid_gid: 112 last_valid_gid: 112 mail_privileged_group: mail mail_uid: vmail mail_gid: vmail mail_location: maildir:~ mail_debug: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 auth default: mechanisms: plain login user: vmailauth passdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf userdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf socket: type: listen client: path: /var/spool/postfix/private/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: sieve: ~/.dovecot.sieve ________________________________________________________________________________________________ Test 3 With plugin { } in dovecot.conf shows in dovecot-lda.log when arrive mail: ---------------------------------------------------------- deliver(pluchetti): 2011-05-11 19:53:55 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda deliver(pluchetti): 2011-05-11 19:53:55 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so deliver(pluchetti): 2011-05-11 19:53:55 Info: auth input: home=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:53:55 Info: maildir: data=~ deliver(pluchetti): 2011-05-11 19:53:55 Info: maildir++: root=/data/vmail/jil/pluchetti, index=, control=, inbox=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:53:55 Info: cmusieve: /data/vmail/jil/pluchetti/.dovecot.sieve doesn't exist deliver(pluchetti): 2011-05-11 19:53:55 Info: msgid=<4DCAE94D.60003 at educ.ar>|from=pllis at educ.ar|subject=Re: prueba|saved mail to INBOX ---- And in dovecot-msa-notls.log when trying to set vacation: --------------------------------------------------------- dovecot: 2011-05-11 17:14:22 Info: managesieve-login: Login: user=, method=PLAIN, rip=10.3.14.31, lip=10.3.14.18 dovecot: 2011-05-11 17:14:22 Info: MANAGESIEVE(pluchetti): Connection closed bytes=510/136 ---- # dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-18-server i686 Ubuntu 9.04 log_path: /var/log/mail/dovecot-msa.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/local/WILD.jil_01+CHAIN.crt ssl_key_file: /etc/ssl/private/WILD.jil_01.key login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_greeting: JIL mail server ready. first_valid_uid: 106 last_valid_uid: 106 first_valid_gid: 112 last_valid_gid: 112 mail_privileged_group: mail mail_uid: vmail mail_gid: vmail mail_location: maildir:~ mail_debug: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 auth default: mechanisms: plain login user: vmailauth passdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf userdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf socket: type: listen client: path: /var/spool/postfix/private/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail ________________________________________________________________________________________________ Test 4 With plugin { sieve = ~/sieve/sogo.sieve } in dovecot.conf shows in dovecot-lda.log when arrive mail: ---------------------------------------------------------- deliver(pluchetti): 2011-05-11 19:59:48 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda deliver(pluchetti): 2011-05-11 19:59:48 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so deliver(pluchetti): 2011-05-11 19:59:48 Info: auth input: home=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:59:48 Info: maildir: data=~ deliver(pluchetti): 2011-05-11 19:59:48 Info: maildir++: root=/data/vmail/jil/pluchetti, index=, control=, inbox=/data/vmail/jil/pluchetti deliver(pluchetti): 2011-05-11 19:59:48 Info: cmusieve: /data/vmail/jil/pluchetti/sieve/sogo.sieve doesn't exist deliver(pluchetti): 2011-05-11 19:59:48 Info: msgid=<4DCAEAAE.9090601 at educ.ar>|from=pllis at educ.ar|subject=Re: prueba|saved mail to INBOX ---- And in dovecot-msa-notls.log when trying to set vacation: --------------------------------------------------------- dovecot: 2011-05-11 17:08:16 Info: managesieve-login: Login: user=, method=PLAIN, rip=10.3.14.31, lip=10.3.14.18 dovecot: 2011-05-11 17:08:16 Info: MANAGESIEVE(pluchetti): Connection closed bytes=510/136 ---- # dovecot -n # 1.1.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-18-server i686 Ubuntu 9.04 log_path: /var/log/mail/dovecot-msa.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/local/WILD.jil_01+CHAIN.crt ssl_key_file: /etc/ssl/private/WILD.jil_01.key login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_greeting: JIL mail server ready. first_valid_uid: 106 last_valid_uid: 106 first_valid_gid: 112 last_valid_gid: 112 mail_privileged_group: mail mail_uid: vmail mail_gid: vmail mail_location: maildir:~ mail_debug: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 auth default: mechanisms: plain login user: vmailauth passdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf userdb: driver: ldap args: /etc/dovecot/ldap-auth-userdb.conf socket: type: listen client: path: /var/spool/postfix/private/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: sieve: ~/sieve/sogo.sieve ________________________________________________________________________________________________ Here is a result of a "find ." of /data/vmail/jil/pluchetti directory: . ./new ./new/1305143988.M679460P7888.mail0.i.example.org,W=1386 ./dovecot.index.cache ./dovecot-uidvalidity.4dc9f475 ./dovecot.index ./dovecot-uidlist ./cur ./cur/1305081118.M221149P31051.mail0.i.example.org,W=1099:2,S ./cur/1305143635.M619342P7707.mail0.i.example.org,W=1381:2,S ./cur/1305142872.M409688P7312.mail0.i.example.org,W=1385:2,S ./cur/1305142189.M834057P6974.mail0.i.example.org,W=1087:2,RS ./dovecot.index.log ./sieve ./sieve/tmp ./tmp ./dovecot-uidvalidity ./.Sent ./.Sent/new ./.Sent/dovecot.index.cache ./.Sent/maildirfolder ./.Sent/dovecot-uidlist ./.Sent/cur ./.Sent/cur/1305142324.M371529P7045.mail0.i.example.org,W=533:2,S ./.Sent/dovecot.index.log ./.Sent/tmp ________________________________________________________________________________________________ Thank you for your effort and patience! Regards, Pablo. Stephan Bosch wrote: > Op 8-5-2011 1:47, Pablo Luchetti schreef: >> Thanks Stephan, but doesn't work. >> I try both >> >> plugin: >> sieve: ~/sieve/ >> >> and >> >> plugin: >> sieve: ~/.dovecot.sieve > > Could you enable mail_debug and show me any relevant log lines? > > Regards, > > Stephan. > From michael.abbott at apple.com Thu May 12 01:01:54 2011 From: michael.abbott at apple.com (Mike Abbott) Date: Wed, 11 May 2011 17:01:54 -0500 Subject: [Dovecot] [Dovecot-news] v2.0.13 released In-Reply-To: <1305129141.10421.213.camel@hurina> References: <1305129141.10421.213.camel@hurina> Message-ID: <4DEADAD3-8E3E-4FE9-BB75-3F88805A30EB@apple.com> Compiling dovecot-2.0.13 on OS X emits these warnings: user-directory.c: In function user_directory_add: user-directory.c:79: warning: comparison between signed and unsigned user-directory.c:84: warning: comparison between signed and unsigned Casting the left hand sides of the comparisons to time_t, as you do in other places, silences them: --- a/src/director/user-directory.c 2011-05-11 09:35:21.000000000 -0500 +++ b/src/director/user-directory.c 2011-05-11 16:55:45.000000000 -0500 @@ -76,12 +76,12 @@ user->host->user_count++; user->timestamp = timestamp; - if (dir->tail == NULL || dir->tail->timestamp <= timestamp) + if (dir->tail == NULL || (time_t) dir->tail->timestamp <= timestamp) DLLIST2_APPEND(&dir->head, &dir->tail, user); else { /* need to insert to correct position */ for (pos = dir->tail; pos != NULL; pos = pos->prev) { - if (pos->timestamp <= timestamp) + if ((time_t) pos->timestamp <= timestamp) break; } if (pos == NULL) From a.smith at ukgrid.net Thu May 12 02:57:39 2011 From: a.smith at ukgrid.net (a.smith at ukgrid.net) Date: Thu, 12 May 2011 00:57:39 +0100 Subject: [Dovecot] IMAP message ID bad for very old message Message-ID: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> Hi, I just noticed that the ordering by message ID when accessing my email via IMAP is messed up. I'm looking in the INBOX that contains 11757 emails. For some reason a load of emails from 2009 and 2010 are being listed near the top, for example I have a message with ID 11441 from 2009 where it definitely shouldn't be, its all mixed in with emails from 2011 there. Info from LDAP is: * 11441 FETCH (FLAGS (\Answered \Seen) INTERNALDATE "27-Mar-2009 09:14:10 +0000" RFC822.SIZE 5772 ENVELOPE ("Fri, 27 Mar 2009 09:15:09 -0000" "MyC IP on CBL" (("Patrick XXXXXXXX- XXXXXXXX" NIL "patrick" "XXXXXXXX.co.uk")) (("Patrick XXXXXX- XXXXXXXX" NIL "patrick" "XXXXXXX.co.uk")) (("Patrick xxxxxx - xxxxxxx" NIL "patrick" "XXXXXXXX.co.uk")) (("Andy Smith" NIL "a.smith" "ukgrid.net")) (("Frank XXXXXXX" NIL "frank" "XXXXXXXXXXX.co.uk")(NIL NIL "Tim.XXXXXXXX" "XXXXXX.org")) NIL NIL "<6937D025FA924E73B8C839858C27AEBF at PatrickDesktop>")) I'm using maildir format, and the actual file date looks fine too: -rw-rw---- 1 vmail vmail 5627 Mar 27 2009 1238145250.H86871P67126.mx1.ukgrid.net:2,RS I am testing IMAP via telnet (originally noticed the problem viewing mail via HORDE/IMP). My system is FreeBSD 8.2, Dovecot 2.0.11. What might cause this behaviour? thanks Andy. From bar at jungo.com Thu May 12 10:15:12 2011 From: bar at jungo.com (Bar Ziony) Date: Thu, 12 May 2011 10:15:12 +0300 Subject: [Dovecot] Expunge deleted messages older than X days for all users ? Message-ID: <4DCB8900.90209@jungo.com> Hi, I'm currently migrating to Dovecot-based IMAP server for a ~200 users environment. Clients are Outlook 2003/2007, Thunderbird 3.x and various mobile clients. 1) What I want to accomplish is to allow the users to delete a message (then the message is moved to "Trash"), then when they empty/delete that message from Trash, it will be kept somewhere on the server for X days, and the user could recover that message in some way. Is that at all possible with Dovecot? 2) Also, how can I automatically expunge the emails that the user deleted from their deleted items folder ? What if users don't EXPUNGE by themselves ? What do you do in that case? Thanks, Bar. From robert at schetterer.org Thu May 12 11:37:49 2011 From: robert at schetterer.org (Robert Schetterer) Date: Thu, 12 May 2011 10:37:49 +0200 Subject: [Dovecot] Expunge deleted messages older than X days for all users ? In-Reply-To: <4DCB8900.90209@jungo.com> References: <4DCB8900.90209@jungo.com> Message-ID: <4DCB9C5D.8070306@schetterer.org> Am 12.05.2011 09:15, schrieb Bar Ziony: > Hi, > > I'm currently migrating to Dovecot-based IMAP server for a ~200 users > environment. Clients are Outlook 2003/2007, Thunderbird 3.x and various > mobile clients. > > 1) What I want to accomplish is to allow the users to delete a message > (then the message is moved to "Trash"), then when they empty/delete that > message from Trash, it will be kept somewhere on the server for X days, > and the user could recover that message in some way. > > Is that at all possible with Dovecot? > > 2) Also, how can I automatically expunge the emails that the user > deleted from their deleted items folder ? What if users don't EXPUNGE by > themselves ? What do you do in that case? > > Thanks, > Bar. look here , it might be what you search, if not ask again http://wiki2.dovecot.org/Plugins/Lazyexpunge http://wiki2.dovecot.org/Plugins/Expire -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From bar at jungo.com Thu May 12 12:08:41 2011 From: bar at jungo.com (Bar Ziony) Date: Thu, 12 May 2011 12:08:41 +0300 Subject: [Dovecot] Expunge deleted messages older than X days for all users ? In-Reply-To: <4DCB9C5D.8070306@schetterer.org> References: <4DCB9C5D.8070306@schetterer.org> Message-ID: <4DCBA399.5000908@jungo.com> Thanks for the answer. What I'm looking for is auto-expunging messages that are marked for deletion. Lets say a user deletes a message. It gets moved to his Trash and marked for deletion (flagged as such). Is there any way to search all "marked for deletion" messages in all the users mailboxes, and delete the messages older than X days? Thanks, Bar. From a.smith at ukgrid.net Thu May 12 21:26:38 2011 From: a.smith at ukgrid.net (a.smith at ukgrid.net) Date: Thu, 12 May 2011 19:26:38 +0100 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> Message-ID: <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> Quoting a.smith at ukgrid.net: > Hi, > > I just noticed that the ordering by message ID when accessing my > email via IMAP is messed up. I'm looking in the INBOX that contains > 11757 emails. For some reason a load of emails from 2009 and 2010 > are being listed near the top, for example I have a message with ID > 11441 from 2009 where it definitely shouldn't be, its all mixed in > with emails from 2011 there. > Info from LDAP is: > > * 11441 FETCH (FLAGS (\Answered \Seen) INTERNALDATE "27-Mar-2009 > 09:14:10 +0000" RFC822.SIZE 5772 ENVELOPE ("Fri, 27 Mar 2009 > 09:15:09 -0000" "MyC IP on CBL" (("Patrick XXXXXXXX- XXXXXXXX" NIL > "patrick" "XXXXXXXX.co.uk")) (("Patrick XXXXXX- XXXXXXXX" NIL > "patrick" "XXXXXXX.co.uk")) (("Patrick xxxxxx - xxxxxxx" NIL > "patrick" "XXXXXXXX.co.uk")) (("Andy Smith" NIL "a.smith" > "ukgrid.net")) (("Frank XXXXXXX" NIL "frank" > "XXXXXXXXXXX.co.uk")(NIL NIL "Tim.XXXXXXXX" "XXXXXX.org")) NIL NIL > "<6937D025FA924E73B8C839858C27AEBF at PatrickDesktop>")) > > > I'm using maildir format, and the actual file date looks fine too: > > -rw-rw---- 1 vmail vmail 5627 Mar 27 2009 > 1238145250.H86871P67126.mx1.ukgrid.net:2,RS > > I am testing IMAP via telnet (originally noticed the problem viewing > mail via HORDE/IMP). My system is FreeBSD 8.2, Dovecot 2.0.11. > What might cause this behaviour? > > thanks Andy. > Ok, I just deleted the dovecot index files etc from the mailbox, when it recreated them all is now looking normal... ta Andy. From franco.rizzo at netrics.ch Fri May 13 00:02:53 2011 From: franco.rizzo at netrics.ch (Franco Rizzo) Date: Thu, 12 May 2011 21:02:53 +0000 Subject: [Dovecot] dovecot proxy with nopassword and postfix sasl Message-ID: HI All I have setup a dovecot proxy with remote auth, value nopassword in the passdb to make the auth remotely. With pop3 and imap the authentication is made on the remote server and this work perfectly. I have tested with wrong and correct password. Then I have added the postfix sasl and this also works fine, the request is made to dovecot. My problem is that with this method I can give any password to postfix and mail is sent. In the debug it seams that a request is made to the remote server for auth. The smtp sasl auth is only refused when I put no password. Is it allowed to use postfix sasl auth with dovecot proxy auth on remote server ? Thank you Franco Rizzo -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2186 bytes Desc: not available URL: From nebano at gmail.com Fri May 13 02:00:11 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Fri, 13 May 2011 01:00:11 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: <1304954316.10421.86.camel@hurina> References: <1304954316.10421.86.camel@hurina> Message-ID: Hi all I migrated from dovecot 1.2 to dovecot 2.0 Next step" migrate from maildir to mdbox" I have being reading about migrating to mdbox as Timo pointed me out. But I have douths with namespace. I tried to use dsync and I got a error: dsync(root): Fatal: Mail locations must use the same virtual mailbox hierarchy separator (specify separator for the default namespace) I think It could be solved adding: namespace { inbox = yes separator = / subscriptions = yes } Actually I have no namespace definition. If i add namespace definition for start migrating, waht about my clients? will they be able to find there mail & mailboxes while I am migrating from maildir to mdbox? Thanks. 2011/5/9 Timo Sirainen : > On Mon, 2011-04-25 at 19:02 +0200, Osvaldo Alvarez Pozo wrote: >> hi all >> >> We have an ocfs2 cluster compose of 4 Debian lenny serveurs wich have >> access to an ISCSI LUN we have create a partition on this Lun and >> formated this partition as OCFS2. >> 2 serveurs does mail delivery (SMTP) and the two other are pop/imap >> servers. The smtp servers use dovecot LDA to deliver to mailboxes. La >> version de dovecot is 1.2.13, ldirectord balance conexion to the >> servers(pop/pops/imap/imaps to the two imap/pop serveurs) (smtp to the >> two smtp servers). > > With v2.0 I'd suggest using http://wiki2.dovecot.org/Director > >> mail_location = maildir:/var/vmail/%d/%u/Maildir > > Cluster filesystems don't seem to like Maildir much. With v2.0 you could > use mdbox. > >> We are having severals ?problems from "cpu stuck for 61 seconds" ? to >> "too many connexion". > > I don't know what either of those errors mean. In any case you should > switch to high-performance login processes: > http://wiki.dovecot.org/LoginProcess > > http://wiki.dovecot.org/PerformanceTuning has more stuff > > > From stan at hardwarefreak.com Fri May 13 02:21:38 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Thu, 12 May 2011 18:21:38 -0500 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: References: <1304954316.10421.86.camel@hurina> Message-ID: <4DCC6B82.9000704@hardwarefreak.com> On 5/12/2011 6:00 PM, Osvaldo Alvarez Pozo wrote: > Hi all > > I migrated from dovecot 1.2 to dovecot 2.0 > > Next step" migrate from maildir to mdbox" > > I have being reading about migrating to mdbox as Timo pointed me out. > But I have douths with namespace. I tried to use dsync and I got a > error: > > dsync(root): Fatal: Mail locations must use the same virtual mailbox > hierarchy separator (specify separator for the default namespace) Please provide the exact command line that resulted in this error. > I think It could be solved adding: > > namespace { > inbox = yes > separator = / > subscriptions = yes > } > > Actually I have no namespace definition. If i add namespace definition > for start migrating, waht about my clients? will they be able to find > there mail& mailboxes while I am migrating from maildir to mdbox? Is this http://wiki2.dovecot.org/Tools/Dsync the documentation you read? -- Stan From tss at iki.fi Fri May 13 03:30:40 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 13 May 2011 02:30:40 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: References: <1304954316.10421.86.camel@hurina> Message-ID: <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> On 13.5.2011, at 1.00, Osvaldo Alvarez Pozo wrote: > Actually I have no namespace definition. If i add namespace definition > for start migrating, waht about my clients? will they be able to find > there mail & mailboxes while I am migrating from maildir to mdbox? Your clients see the default namespace if it's not explicitly specified. That namespace has prefix="" and the separator depends on what mailbox format you're using. With Maildir that would be "." character. If you keep that there shouldn't be even any potential problems. From noel.butler at ausics.net Fri May 13 03:39:15 2011 From: noel.butler at ausics.net (Noel Butler) Date: Fri, 13 May 2011 10:39:15 +1000 Subject: [Dovecot] [Dovecot-news] v2.0.13 released In-Reply-To: <1305129141.10421.213.camel@hurina> References: <1305129141.10421.213.camel@hurina> Message-ID: <1305247155.7735.4.camel@tardis> rsync not active? or now protected to mirrors? On Wed, 2011-05-11 at 18:52 +0300, Timo Sirainen wrote: > http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz > http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz.sig > > I've almost managed to read my email backlog, but there are still some > unanswered mails. Feel free to resend if you think I should have > answered some of your mails. > > The most important changes since v2.0.12: > > + Added "doveadm index" command to add unindexed messages into > index/cache. If full text search is enabled, it also adds unindexed > messages to the fts database. > + added "doveadm director dump" command. > + pop3: Added support for showing messages in "POP3 order", which can > be different from IMAP message order. This can be useful for > migrations from other servers. Implemented it for Maildir as 'O' > field in dovecot-uidlist. > - doveconf: Fixed a wrong "subsection has ssl=yes" warning. > - mdbox purge: Fixed wrong warning about corrupted extrefs. > - sdbox: INBOX GUID changed when INBOX was autocreated, leading to > trouble with dsync. > - script-login binary wasn't actually dropping privileges to the > user/group/chroot specified by its service settings. > - Fixed potential crashes and other problems when parsing header names > that contained NUL characters. > > > _______________________________________________ > Dovecot-news mailing list > Dovecot-news at dovecot.org > http://dovecot.org/cgi-bin/mailman/listinfo/dovecot-news -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 490 bytes Desc: This is a digitally signed message part URL: From tss at iki.fi Fri May 13 03:43:29 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 13 May 2011 02:43:29 +0200 Subject: [Dovecot] [Dovecot-news] v2.0.13 released In-Reply-To: <1305247155.7735.4.camel@tardis> References: <1305129141.10421.213.camel@hurina> <1305247155.7735.4.camel@tardis> Message-ID: Specifics of what you're talking about? (Yeah, I may have screwed up something, but currently I'm a bit too busy/lazy to find out what.) On 13.5.2011, at 2.39, Noel Butler wrote: > rsync not active? or now protected to mirrors? > > > > On Wed, 2011-05-11 at 18:52 +0300, Timo Sirainen wrote: > >> http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz >> http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz.sig >> >> I've almost managed to read my email backlog, but there are still some >> unanswered mails. Feel free to resend if you think I should have >> answered some of your mails. >> >> The most important changes since v2.0.12: >> >> + Added "doveadm index" command to add unindexed messages into >> index/cache. If full text search is enabled, it also adds unindexed >> messages to the fts database. >> + added "doveadm director dump" command. >> + pop3: Added support for showing messages in "POP3 order", which can >> be different from IMAP message order. This can be useful for >> migrations from other servers. Implemented it for Maildir as 'O' >> field in dovecot-uidlist. >> - doveconf: Fixed a wrong "subsection has ssl=yes" warning. >> - mdbox purge: Fixed wrong warning about corrupted extrefs. >> - sdbox: INBOX GUID changed when INBOX was autocreated, leading to >> trouble with dsync. >> - script-login binary wasn't actually dropping privileges to the >> user/group/chroot specified by its service settings. >> - Fixed potential crashes and other problems when parsing header names >> that contained NUL characters. >> >> >> _______________________________________________ >> Dovecot-news mailing list >> Dovecot-news at dovecot.org >> http://dovecot.org/cgi-bin/mailman/listinfo/dovecot-news > > From nebano at gmail.com Fri May 13 09:46:04 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Fri, 13 May 2011 08:46:04 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> Message-ID: Ok I want to do migration without downtime Yes i have red that the separator depends on mailbox format and that for maildir it is '.' So in my dovecot.conf I have no namespace definition and my mail-location is: mail_location = maildir:/var/vmail/%d/%u/Maildir But when I execute the dsync command: /usr/local/dovecot/bin/dsync -v -f -u example at example.org mirror mdbox:/var1/vmail/example.org/example/mdbox i get dsync(root): Fatal: Mail locations must use the same virtual mailbox hierarchy separator (specify separator for the default namespace) So i have to add to my dovecot.conf namespace { inbox = yes separator = . subscriptions = yes } And after finishig dsync for all mailboxes to a new location I change separator to: separator = / as a final step I have to return the new mdbox mail location for each user using userdb and my dsync command would change: /usr/local/dovecot/bin/dsync -v -f -u example at example.org mirror maildir:/var/vmail/example.org/example/Maildir Am I rigth? Thanks you all 2011/5/13 Timo Sirainen : > On 13.5.2011, at 1.00, Osvaldo Alvarez Pozo wrote: > >> Actually I have no namespace definition. If i add namespace definition >> for start migrating, ?waht about my clients? will they be able to find >> there mail & mailboxes while I am migrating from maildir to mdbox? > > Your clients see the default namespace if it's not explicitly specified. That namespace has prefix="" and the separator depends on what mailbox format you're using. With Maildir that would be "." character. If you keep that there shouldn't be even any potential problems. > > > From robert at schetterer.org Fri May 13 10:36:32 2011 From: robert at schetterer.org (Robert Schetterer) Date: Fri, 13 May 2011 09:36:32 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> Message-ID: <4DCCDF80.1060609@schetterer.org> Am 13.05.2011 08:46, schrieb Osvaldo Alvarez Pozo: > Ok I want to do migration without downtime > > Yes i have red that the separator depends on mailbox format and that > for maildir it is '.' > > So in my dovecot.conf I have no namespace definition and my mail-location is: > > mail_location = maildir:/var/vmail/%d/%u/Maildir > > But when I execute the dsync command: > > /usr/local/dovecot/bin/dsync -v -f -u example at example.org mirror > mdbox:/var1/vmail/example.org/example/mdbox > > i get > > dsync(root): Fatal: Mail locations must use the same virtual mailbox > hierarchy separator (specify separator for the default namespace) > > > So i have to add to my dovecot.conf > namespace { > inbox = yes > separator = . > subscriptions = yes > } > > And after finishig dsync for all mailboxes to a new location > I change separator to: > > separator = / > > as a final step I have to return the new mdbox mail location for > each user using userdb > > and my dsync command would change: > > /usr/local/dovecot/bin/dsync -v -f -u example at example.org mirror > maildir:/var/vmail/example.org/example/Maildir > > Am I rigth? > > Thanks you all that doesnt look bad, but i am not sure wait for others comments ( like Timo ) > > > 2011/5/13 Timo Sirainen : >> On 13.5.2011, at 1.00, Osvaldo Alvarez Pozo wrote: >> >>> Actually I have no namespace definition. If i add namespace definition >>> for start migrating, waht about my clients? will they be able to find >>> there mail & mailboxes while I am migrating from maildir to mdbox? >> >> Your clients see the default namespace if it's not explicitly specified. That namespace has prefix="" and the separator depends on what mailbox format you're using. With Maildir that would be "." character. If you keep that there shouldn't be even any potential problems. >> >> >> however , i am thinking about migrate to mdbox too, on ocfs2, looks like the store is getting slow with thousends of maildirs, there may other reason for that too, depending hardware ( raid etc ), but current i only see the migrate option to speed up, so i am interested in the results of your migration ,please report -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From a.smith at ukgrid.net Fri May 13 11:35:39 2011 From: a.smith at ukgrid.net (a.smith at ukgrid.net) Date: Fri, 13 May 2011 09:35:39 +0100 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> Message-ID: <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> Quoting a.smith at ukgrid.net: > > Ok, I just deleted the dovecot index files etc from the mailbox, > when it recreated them all is now looking normal... > When I logged into my mail today this problem has come back :S Can anyone suggest a cause or anything else I should do? I am correct in thinking that Dovecot normally orders emails by date right???? thanks Andy. From tss at iki.fi Fri May 13 15:09:10 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 13 May 2011 14:09:10 +0200 Subject: [Dovecot] Dovecot Solutions company Message-ID: I recently created Dovecot Solutions Oy (Ltd) company with two other guys. We sell Dovecot support, development, etc. I was planning on announcing this only after we get an actual web site, but since I already told about it in Linuxtag today, I might as well tell everyone. The upcoming web site should have some more details, but if you already know you want to buy something, let me know. :) From robert at schetterer.org Fri May 13 15:16:55 2011 From: robert at schetterer.org (Robert Schetterer) Date: Fri, 13 May 2011 14:16:55 +0200 Subject: [Dovecot] Dovecot Solutions company In-Reply-To: References: Message-ID: <4DCD2137.4000605@schetterer.org> Am 13.05.2011 14:09, schrieb Timo Sirainen: > I recently created Dovecot Solutions Oy (Ltd) company with two other guys. We sell Dovecot support, development, etc. > > I was planning on announcing this only after we get an actual web site, but since I already told about it in Linuxtag today, I might as well tell everyone. The upcoming web site should have some more details, but if you already know you want to buy something, let me know. :) > Hi Timo ,that sounds great -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From info at simonecaruso.com Fri May 13 15:24:27 2011 From: info at simonecaruso.com (Simone Caruso) Date: Fri, 13 May 2011 14:24:27 +0200 Subject: [Dovecot] dovecot proxy with nopassword and postfix sasl In-Reply-To: References: Message-ID: <4DCD22FB.1090003@simonecaruso.com> You should explain better your environment and post your configurations... but this seems more a 'postfix' problem than a dovecot one. Regards -- Simone Caruso IT Consultant p.iva: 03045250838 From joseba.torre at ehu.es Fri May 13 15:27:28 2011 From: joseba.torre at ehu.es (Joseba Torre) Date: Fri, 13 May 2011 14:27:28 +0200 Subject: [Dovecot] Dovecot Solutions company In-Reply-To: References: Message-ID: <201105131427.28417.joseba.torre@ehu.es> On Viernes 13 Mayo 2011 14:09:10 Timo Sirainen escribi?: > I recently created Dovecot Solutions Oy (Ltd) company with two other guys. > We sell Dovecot support, development, etc. > > I was planning on announcing this only after we get an actual web site, but > since I already told about it in Linuxtag today, I might as well tell > everyone. The upcoming web site should have some more details, but if you > already know you want to buy something, let me know. :) Congratulations. Hope you earn tons of money :) -- Joseba Torre. Vicegerencia de TICs, ?rea de Explotaci?n From joseba.torre at ehu.es Fri May 13 15:58:46 2011 From: joseba.torre at ehu.es (Joseba Torre) Date: Fri, 13 May 2011 14:58:46 +0200 Subject: [Dovecot] Fwd: Re: Dovecot Solutions company Message-ID: <201105131458.46276.joseba.torre@ehu.es> I supposse this was directed to the list -- Joseba Torre. Vicegerencia de TICs, ?rea de Explotaci?n -------------- next part -------------- An embedded message was scrubbed... From: "Voytek Eymont" Subject: Re: [Dovecot] Dovecot Solutions company Date: Fri, 13 May 2011 23:41:02 +1100 Size: 3011 URL: From voytek at sbt.net.au Fri May 13 16:04:32 2011 From: voytek at sbt.net.au (Voytek Eymont) Date: Sat, 14 May 2011 00:04:32 +1100 Subject: [Dovecot] Dovecot Solutions company Message-ID: <10863b9b0d4bf6884ed8847f3b6e7547.squirrel@sbt.net.au> On Fri, May 13, 2011 11:27 pm, Joseba Torre wrote: > On Viernes 13 Mayo 2011 14:09:10 Timo Sirainen escribi?: > >> I recently created Dovecot Solutions Oy (Ltd) company with two other >> guys. We sell Dovecot support, development, etc. >> >> >> I was planning on announcing this only after we get an actual web site, >> but since I already told about it in Linuxtag today, I might as well >> tell everyone. The upcoming web site should have some more details, but >> if you already know you want to buy something, let me know. :) > > Congratulations. Hope you earn tons of money :) ditto All the best in your venture! (ooops, meant to send to the list) -- Voytek -- Voytek From franco.rizzo at netrics.ch Fri May 13 16:07:39 2011 From: franco.rizzo at netrics.ch (Franco Rizzo) Date: Fri, 13 May 2011 13:07:39 +0000 Subject: [Dovecot] dovecot proxy with nopassword and postfix sasl In-Reply-To: <4DCD22C2.4060004@simonecaruso.com> References: <4DCD22C2.4060004@simonecaruso.com> Message-ID: Hello thank you for your answer when I have this user in my passdb file franco at ozzir.ch:{plain}password::::::proxy host=xx.xx.xx.xx postfix sasl accept only the password => password When I have this user in my passdb file franco at ozzir.ch:::::::nopassword proxy host=xx.xx.xx.xx postfix sasl accept any password as I said imap and pop3 refuse always a bad password this is my postfix config smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth # and the common settings to enable SASL: smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_recipient_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated, reject_unauth_destination smtpd_sender_login_maps = mysql:/etc/postfix/mysql-smtpd_sender_login_maps.cf #for outlook 2003 and outlook express > v6 broken_sasl_auth_clients = yes Franco Rizzo -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2186 bytes Desc: not available URL: From stsiol at yahoo.co.uk Fri May 13 17:52:40 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Fri, 13 May 2011 15:52:40 +0100 (BST) Subject: [Dovecot] Dovecot Solutions company In-Reply-To: Message-ID: <324343.63170.qm@web27204.mail.ukl.yahoo.com> --- On Fri, 13/5/11, Timo Sirainen wrote: > From: Timo Sirainen > Subject: [Dovecot] Dovecot Solutions company > To: dovecot-news at dovecot.org, "Dovecot Mailing List" > Date: Friday, 13 May, 2011, 15:09 > I recently created Dovecot Solutions > Oy (Ltd) company with two other guys. We sell Dovecot > support, development, etc. > > I was planning on announcing this only after we get an > actual web site, but since I already told about it in > Linuxtag today, I might as well tell everyone. The upcoming > web site should have some more details, but if you already > know you want to buy something, let me know. :) > > Hi, All the Best Timo and wishing you good business ! I would definitely like to contribute. Waiting for the website then . . . Regards, s. ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From dovecot.user at seibercom.net Fri May 13 17:56:16 2011 From: dovecot.user at seibercom.net (Jerry) Date: Fri, 13 May 2011 10:56:16 -0400 Subject: [Dovecot] Dovecot Solutions company In-Reply-To: <201105131427.28417.joseba.torre@ehu.es> References: <201105131427.28417.joseba.torre@ehu.es> Message-ID: <20110513105616.30cee2eb@scorpio> On Fri, 13 May 2011 14:27:28 +0200 Joseba Torre articulated: > On Viernes 13 Mayo 2011 14:09:10 Timo Sirainen escribi?: > > I recently created Dovecot Solutions Oy (Ltd) company with two > > other guys. We sell Dovecot support, development, etc. > > > > I was planning on announcing this only after we get an actual web > > site, but since I already told about it in Linuxtag today, I might > > as well tell everyone. The upcoming web site should have some more > > details, but if you already know you want to buy something, let me > > know. :) > > Congratulations. Hope you earn tons of money :) Seriously, you are venturing into capitalism! What next; going the way of Skype? You could use a few billion couldn't you? Seriously, good luck. I am a true blue believer in capitalism. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From ednitido at gmail.com Fri May 13 20:12:15 2011 From: ednitido at gmail.com (Edward Carraro) Date: Fri, 13 May 2011 13:12:15 -0400 Subject: [Dovecot] Upgraded 2.012 to 2.0.13 postlogin error Message-ID: I've just upgraded to Dovecot 2.0.13 from 2.0.12 When I authenticate via telnet it closes the connection and the logs show: May 13 16:59:16 master: Info: Dovecot v2.0.13 starting up (core dumps disabled) May 13 16:59:40 auth: Debug: Loading modules from directory: /usr/local/lib/dovecot/auth May 13 16:59:40 auth: Debug: passwd-file /usr/local/etc/dovecot/master-users: Read 1 users May 13 16:59:40 auth: Debug: auth client connected (pid=22124) May 13 16:59:46 auth: Debug: client in: AUTH 1 PLAIN service=imap secured lip=127.0.0.1 rip=127.0.0.1 lport=143 rport=37146 resp= May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): pass search: base=dc=domain,dc=com scope=subtree filter=(&(|(uid= edward at dev.domain.com)(mailAlternateAddress=edward at dev.domain.com))(nimPimUserStatus=active)) fields=uid,userPassword May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): result: userPassword(password)= uid(user)=edward at dev.domain.com May 13 16:59:46 auth: Debug: client out: OK 1 user= edward at dev.domain.com May 13 16:59:46 auth: Debug: master in: REQUEST 885784577 22124 1 48936eabc3d31fe740c83dd3339261b7 May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): user search: base=dc=nitido,dc=com scope=subtree filter=(&(|(uid= edward at dev.domain.com)(mailAlternateAddress=edward at dev.domain.com))(nimPimUserStatus=active)) fields=homeDirectory,quotaMailSoft May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): result: homeDirectory(home)=/home/dev.domain.com/edward at dev.domain.comquotaMailSoft(quota_rule=*:storage=%$M)=2 May 13 16:59:46 auth: Debug: master out: USER 885784577 edward at dev.domain.com home=/home/dev.domain.com/edward at dev.domain.comquota_rule=*:storage=2M May 13 16:59:46 imap-postlogin: Error: script-login: Error: user edward at dev.domain.com: Error reading configuration: net_connect_unix(/usr/local/var/run/dovecot/config) failed: Permission denied May 13 16:59:46 imap-postlogin: Error: script-login: Fatal: Internal error occurred. Refer to server log for more information. May 13 16:59:46 log: Error: service(imap-postlogin): child 22134 returned error 89 (Fatal failure) May 13 16:59:46 imap-login: Info: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22133, secured May 13 16:59:46 imap(edward at dev.domain.com): Info: Post-login script denied access to user edward at dev.domain.com The permission on /usr/local/var/run/dovecot/config: srw------- 1 root staff 0 May 13 16:59 config Anyone know the correct permissions? This worked fine in previous versions Thanks! From shopik at inblock.ru Fri May 13 20:43:44 2011 From: shopik at inblock.ru (Nikolay Shopik) Date: Fri, 13 May 2011 21:43:44 +0400 Subject: [Dovecot] ID RFC2971 stored anywhere when client announced it? Message-ID: Does dovecot store RFC2971 information supplied by client, anywhere? From robert at schetterer.org Fri May 13 21:52:39 2011 From: robert at schetterer.org (Robert Schetterer) Date: Fri, 13 May 2011 20:52:39 +0200 Subject: [Dovecot] Upgraded 2.012 to 2.0.13 postlogin error In-Reply-To: References: Message-ID: <4DCD7DF7.3010808@schetterer.org> Am 13.05.2011 19:12, schrieb Edward Carraro: > I've just upgraded to Dovecot 2.0.13 from 2.0.12 > > When I authenticate via telnet it closes the connection and the logs show: > > May 13 16:59:16 master: Info: Dovecot v2.0.13 starting up (core dumps > disabled) > May 13 16:59:40 auth: Debug: Loading modules from directory: > /usr/local/lib/dovecot/auth > May 13 16:59:40 auth: Debug: passwd-file > /usr/local/etc/dovecot/master-users: Read 1 users > May 13 16:59:40 auth: Debug: auth client connected (pid=22124) > May 13 16:59:46 auth: Debug: client in: AUTH 1 PLAIN service=imap > secured lip=127.0.0.1 rip=127.0.0.1 lport=143 rport=37146 > resp= > May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): pass > search: base=dc=domain,dc=com scope=subtree filter=(&(|(uid= > edward at dev.domain.com)(mailAlternateAddress=edward at dev.domain.com))(nimPimUserStatus=active)) > fields=uid,userPassword > May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): result: > userPassword(password)= uid(user)=edward at dev.domain.com > May 13 16:59:46 auth: Debug: client out: OK 1 user= > edward at dev.domain.com > May 13 16:59:46 auth: Debug: master in: REQUEST 885784577 22124 1 > 48936eabc3d31fe740c83dd3339261b7 > May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): user > search: base=dc=nitido,dc=com scope=subtree filter=(&(|(uid= > edward at dev.domain.com)(mailAlternateAddress=edward at dev.domain.com))(nimPimUserStatus=active)) > fields=homeDirectory,quotaMailSoft > May 13 16:59:46 auth: Debug: ldap(edward at dev.domain.com,127.0.0.1): result: > homeDirectory(home)=/home/dev.domain.com/edward at dev.domain.comquotaMailSoft(quota_rule=*:storage=%$M)=2 > May 13 16:59:46 auth: Debug: master out: USER 885784577 > edward at dev.domain.com > home=/home/dev.domain.com/edward at dev.domain.comquota_rule=*:storage=2M > May 13 16:59:46 imap-postlogin: Error: script-login: Error: user > edward at dev.domain.com: Error reading configuration: > net_connect_unix(/usr/local/var/run/dovecot/config) failed: Permission > denied > May 13 16:59:46 imap-postlogin: Error: script-login: Fatal: Internal error > occurred. Refer to server log for more information. > May 13 16:59:46 log: Error: service(imap-postlogin): child 22134 returned > error 89 (Fatal failure) > May 13 16:59:46 imap-login: Info: Login: user=, > method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22133, secured > May 13 16:59:46 imap(edward at dev.domain.com): Info: Post-login script denied > access to user edward at dev.domain.com > > The permission on /usr/local/var/run/dovecot/config: > srw------- 1 root staff 0 May 13 16:59 config > > Anyone know the correct permissions? This worked fine in previous versions > > Thanks! > perhaps by redesign, read the list a few mails ago i.e start here http://www.mail-archive.com/dovecot at dovecot.org/msg38349.html -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From ednitido at gmail.com Fri May 13 22:45:25 2011 From: ednitido at gmail.com (Edward Carraro) Date: Fri, 13 May 2011 15:45:25 -0400 Subject: [Dovecot] Upgraded 2.012 to 2.0.13 postlogin error In-Reply-To: <4DCD7DF7.3010808@schetterer.org> References: <4DCD7DF7.3010808@schetterer.org> Message-ID: Thanks! I took out "user" service imap-postlogin { # user = $default_internal_user ... } On Fri, May 13, 2011 at 2:52 PM, Robert Schetterer wrote: > > perhaps by redesign, read the list a few mails ago > i.e start here > http://www.mail-archive.com/dovecot at dovecot.org/msg38349.html > -- > Best Regards > > MfG Robert Schetterer > > Germany/Munich/Bavaria > From stsiol at yahoo.co.uk Sat May 14 00:12:16 2011 From: stsiol at yahoo.co.uk (Spyros Tsiolis) Date: Fri, 13 May 2011 22:12:16 +0100 (BST) Subject: [Dovecot] Dovecot Solutions company In-Reply-To: <20110513105616.30cee2eb@scorpio> Message-ID: <750697.60563.qm@web27202.mail.ukl.yahoo.com> --- On Fri, 13/5/11, Jerry wrote: > From: Jerry > Subject: Re: [Dovecot] Dovecot Solutions company > To: dovecot at dovecot.org > Date: Friday, 13 May, 2011, 17:56 > On Fri, 13 May 2011 14:27:28 +0200 > Joseba Torre > articulated: > > > On Viernes 13 Mayo 2011 14:09:10 Timo Sirainen > escribi?: > > > I recently created Dovecot Solutions Oy (Ltd) > company with two > > > other guys. We sell Dovecot support, development, > etc. > > > > > > I was planning on announcing this only after we > get an actual web > > > site, but since I already told about it in > Linuxtag today, I might > > > as well tell everyone. The upcoming web site > should have some more > > > details, but if you already know you want to buy > something, let me > > > know. :) > > > > Congratulations. Hope you earn tons of money :) > > Seriously, you are venturing into capitalism! What next; > going the way > of Skype? You could use a few billion couldn't you? > > Seriously, good luck. I am a true blue believer in > capitalism. > > -- > Jerry ? > Dovecot.user at seibercom.net > > Disclaimer: off-list followups get on-list replies or get > ignored. > Please do not ignore the Reply-To header. > __________________________________________________________________ > > Oh yeah ! that sorted out our world pretty fine didn't it ? (sorry list, just couldn't resist). s. ---- "I merely function as a channel that filters music through the chaos of noise" - Vangelis From noel.butler at ausics.net Sat May 14 05:55:50 2011 From: noel.butler at ausics.net (Noel Butler) Date: Sat, 14 May 2011 12:55:50 +1000 Subject: [Dovecot] [Dovecot-news] v2.0.13 released In-Reply-To: References: <1305129141.10421.213.camel@hurina> <1305247155.7735.4.camel@tardis> Message-ID: <1305341750.11530.5.camel@tardis> On Fri, 2011-05-13 at 02:43 +0200, Timo Sirainen wrote: > Specifics of what you're talking about? > > (Yeah, I may have screwed up something, but currently I'm a bit too busy/lazy to find out what.) not to worry then, chmod -x /etc/cron.rsyncs.bi-daily/dovecot.pl has fixed it here > On 13.5.2011, at 2.39, Noel Butler wrote: > > > rsync not active? or now protected to mirrors? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 490 bytes Desc: This is a digitally signed message part URL: From info at simonecaruso.com Sat May 14 13:37:09 2011 From: info at simonecaruso.com (Simone Caruso) Date: Sat, 14 May 2011 12:37:09 +0200 Subject: [Dovecot] Dovecot Solutions company In-Reply-To: References: Message-ID: <4DCE5B55.6000006@simonecaruso.com> Il 13/05/2011 14:09, Timo Sirainen ha scritto: > I recently created Dovecot Solutions Oy (Ltd) company with two other guys. We sell Dovecot support, development, etc. > > I was planning on announcing this only after we get an actual web site, but since I already told about it in Linuxtag today, I might as well tell everyone. The upcoming web site should have some more details, but if you already know you want to buy something, let me know. :) > I made a start-up with other two guys.. building my company was a great choice (very hard, but really great)! So, me and my associates wish you with you the best luck for your business! -- Simone Caruso IT Consultant p.iva: 03045250838 From info at simonecaruso.com Sat May 14 13:54:58 2011 From: info at simonecaruso.com (Simone Caruso) Date: Sat, 14 May 2011 12:54:58 +0200 Subject: [Dovecot] dovecot proxy with nopassword and postfix sasl In-Reply-To: References: <4DCD22C2.4060004@simonecaruso.com> Message-ID: <4DCE5F82.2030803@simonecaruso.com> Il 13/05/2011 15:07, Franco Rizzo ha scritto: > Hello thank you for your answer > > when I have this user in my passdb file > franco at ozzir.ch:{plain}password::::::proxy host=xx.xx.xx.xx > postfix sasl accept only the password => password > > When I have this user in my passdb file > franco at ozzir.ch:::::::nopassword proxy host=xx.xx.xx.xx > postfix sasl accept any password > And i think this is all normal... From: http://wiki2.dovecot.org/PasswordDatabase/ExtraFields/Proxy I don't think it is allowed behaviour for Postfix to authenticate on a dovecot proxy. I think u can solve the issue using the 2nd point of the Proxy tutorial: "Let Dovecot proxy perform the authentication and login to remote server using the proxy's master password" or moving to sql/ldap userbase. -- Simone Caruso IT Consultant p.iva: 03045250838 From dovecot-user at spambox.dk Sat May 14 16:19:29 2011 From: dovecot-user at spambox.dk (Henrik Larsson) Date: Sat, 14 May 2011 15:19:29 +0200 Subject: [Dovecot] Dovecot stops with "Fatal: kevent(): Invalid argument" In-Reply-To: References: <4DC1D95D.3070603@spambox.dk> Message-ID: <4DCE8161.8020109@spambox.dk> >> Dovecot stops with the following logged: >> - master: Fatal: kevent(): Invalid argument >> >> I have found that a diff was created for "src/lib/ioloop-kqueue.c" for a similar issue: >> http://dovecot.org/pipermail/dovecot/2010-November/054855.html >> >> I have patched my system with this and haven't seen the problem since, but I don't know if this is a coincidence. Could you please explain if the diff should actually fix anything or just add some more logging in case it stops again? > > That patch doesn't fix anything. It only changes the error message to be more informative so I could figure out what is causing it. If you haven't seen any more errors, it's just a coincidence. I have for some reason not seen the error since applying the above patch. But wouldn't it make sense to include the patch in the stable release so others can give input in the rare case they experience the same issue? At least until the issue has been resolved. I don't say that this is a Dovecot issue, and I admit that it have to be a rare case, but when two independent people experience the same error, there have to be a problem somewhere. Best regards Henrik Larsson From dave.mehler at gmail.com Sat May 14 23:13:46 2011 From: dave.mehler at gmail.com (David Mehler) Date: Sat, 14 May 2011 16:13:46 -0400 Subject: [Dovecot] dovecot authentication failing Message-ID: Hello, I'm running dovecot 2.0.x on a centos 5.6 machine. This is a new installation, I haven't even opened the firewall to it yet. I was trying to telnet localhost 143 and 110 trying to authenticate a user. I'm getting authentication failure in my maillog but no details. Here's the one line I get in my maillog: May 14 15:33:42 ohio dovecot: pop3-login: Aborted login (auth failed, 1 attempts): user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Here's a doveconf -n: # 2.0.12: /etc/dovecot/dovecot.conf # OS: Linux 2.6.38.3-linode32 i686 CentOS release 5.6 (Final) ext3 auth_default_realm = domain.com auth_mechanisms = plain login base_dir = /var/run/dovecot/ disable_plaintext_auth = no listen = * mail_location = maildir:/var/spool/mail/vhosts/%d/%u maildir_very_dirty_syncs = yes mbox_write_locks = fcntl passdb { args = scheme=CRYPT username_format=%u /etc/dovecot/users driver = passwd-file } protocols = imap pop3 service auth { unix_listener /var/spool/postfix/private/auth { group = postfix user = postfix } } ssl_cert = References: Message-ID: <4DCF8B26.8040200@schetterer.org> Am 14.05.2011 22:13, schrieb David Mehler: > Hello, > I'm running dovecot 2.0.x on a centos 5.6 machine. This is a new > installation, I haven't even opened the firewall to it yet. I was > trying to telnet localhost 143 and 110 trying to authenticate a user. > I'm getting authentication failure in my maillog but no details. > Here's the one line I get in my maillog: > > May 14 15:33:42 ohio dovecot: pop3-login: Aborted login (auth failed, > 1 attempts): user=, method=PLAIN, rip=127.0.0.1, > lip=127.0.0.1, secured > > Here's a doveconf -n: > # 2.0.12: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.38.3-linode32 i686 CentOS release 5.6 (Final) ext3 > auth_default_realm = domain.com > auth_mechanisms = plain login > base_dir = /var/run/dovecot/ > disable_plaintext_auth = no > listen = * > mail_location = maildir:/var/spool/mail/vhosts/%d/%u > maildir_very_dirty_syncs = yes > mbox_write_locks = fcntl > passdb { > args = scheme=CRYPT username_format=%u /etc/dovecot/users > driver = passwd-file > } > protocols = imap pop3 > service auth { > unix_listener /var/spool/postfix/private/auth { > group = postfix > user = postfix > } > } > ssl_cert = ssl_key = > Here's how I constructed my users file: > # > # Passwd-file for use with dovecot authentication > # Used in a virtual setup > # Username:{scheme}HashedPassword:UID:GID:: > user:{SSHA512}hbLu+pCmhmtyKEwyAs3wv3kvHD/ryr0MoXOAq3VdB7X/g8qIE/xE9BG+eI4jhFk9pTyiCltPCjZxv5/+yK1wll2LNcw= > :5000:5000:: > > My goal is to use this with a postfix virtual mailbox setup, the > postfix part is already in place. The mailbox base is > /var/spool/mail/vhosts and under that there's example.com which is the > domain and under that the various users one just called user for this > example. The Uid and Gid 5000 is the same one the postfix vmail user > is running as that's the user who handles the virtual mailbox domains. > > I'm suspecting my issue is in my users file or the definition of it in > passwd-file{ i've been over the wiki for 2.0.x dovecot, this was > definitely worth the upgrade by the way, and thus far have not found > an answer. > > I'd appreciate any help. > Thanks. > Dave. i am definitive not familar with "file auth" but you can switch on more verbose debug logging in dovecot , this should help finding bug reasons http://wiki2.dovecot.org/Logging -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From henri at nerv.fi Sun May 15 02:46:38 2011 From: henri at nerv.fi (Henri Salo) Date: Sun, 15 May 2011 02:46:38 +0300 Subject: [Dovecot] [Dovecot-news] v2.0.13 released In-Reply-To: <1305129141.10421.213.camel@hurina> References: <1305129141.10421.213.camel@hurina> Message-ID: <20110514234638.GB30465@foo.fgeek.fi> On Wed, May 11, 2011 at 06:52:21PM +0300, Timo Sirainen wrote: > http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz > http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz.sig > > I've almost managed to read my email backlog, but there are still some > unanswered mails. Feel free to resend if you think I should have > answered some of your mails. > > The most important changes since v2.0.12: > > + Added "doveadm index" command to add unindexed messages into > index/cache. If full text search is enabled, it also adds unindexed > messages to the fts database. > + added "doveadm director dump" command. > + pop3: Added support for showing messages in "POP3 order", which can > be different from IMAP message order. This can be useful for > migrations from other servers. Implemented it for Maildir as 'O' > field in dovecot-uidlist. > - doveconf: Fixed a wrong "subsection has ssl=yes" warning. > - mdbox purge: Fixed wrong warning about corrupted extrefs. > - sdbox: INBOX GUID changed when INBOX was autocreated, leading to > trouble with dsync. > - script-login binary wasn't actually dropping privileges to the > user/group/chroot specified by its service settings. > - Fixed potential crashes and other problems when parsing header names > that contained NUL characters. Should this get CVE-identifier? I can request it. Best regards, Henri Salo From user+dovecot at localhost.localdomain.org Sun May 15 13:22:48 2011 From: user+dovecot at localhost.localdomain.org (Pascal Volk) Date: Sun, 15 May 2011 12:22:48 +0200 Subject: [Dovecot] dovecot authentication failing In-Reply-To: References: Message-ID: <4DCFA978.6010806@localhost.localdomain.org> On 05/14/2011 10:13 PM David Mehler wrote: > Hello, > I'm running dovecot 2.0.x on a centos 5.6 machine. This is a new > installation, I haven't even opened the firewall to it yet. I was > trying to telnet localhost 143 and 110 trying to authenticate a user. > I'm getting authentication failure in my maillog but no details. > Here's the one line I get in my maillog: > > May 14 15:33:42 ohio dovecot: pop3-login: Aborted login (auth failed, > 1 attempts): user=, method=PLAIN, rip=127.0.0.1, > lip=127.0.0.1, secured > > Here's a doveconf -n: > # 2.0.12: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.38.3-linode32 i686 CentOS release 5.6 (Final) ext3 > auth_default_realm = domain.com > auth_mechanisms = plain login > ? > disable_plaintext_auth = no > ? > passdb { > args = scheme=CRYPT username_format=%u /etc/dovecot/users > driver = passwd-file > } > ? > > Here's how I constructed my users file: > ? > user:{SSHA512}hbLu+pCmhmtyKEwyAs3wv3kvHD/ryr0MoXOAq3VdB7X/g8qIE/xE9BG+eI4jhFk9pTyiCltPCjZxv5/+yK1wll2LNcw= > :5000:5000:: > ? CRYPT (CRYPT|MD5-CRYPT|SHA256-CRYPT|SHA512-CRYPT) != SSHA512 > I'm suspecting my issue is in my users file or the definition of it in > passwd-file{ i've been over the wiki for 2.0.x dovecot, this was > definitely worth the upgrade by the way, and thus far have not found > an answer. > > I'd appreciate any help. Whenever something isn't working you should point your browser to: http://wiki2.dovecot.org/WhyDoesItNotWork Regards, Pascal -- The trapper recommends today: c01dcafe.1113512 at localdomain.org From user+dovecot at localhost.localdomain.org Sun May 15 13:33:34 2011 From: user+dovecot at localhost.localdomain.org (Pascal Volk) Date: Sun, 15 May 2011 12:33:34 +0200 Subject: [Dovecot] Expunge deleted messages older than X days for all users ? In-Reply-To: <4DCBA399.5000908@jungo.com> References: <4DCB9C5D.8070306@schetterer.org> <4DCBA399.5000908@jungo.com> Message-ID: <4DCFABFE.5020605@localhost.localdomain.org> On 05/12/2011 11:08 AM Bar Ziony wrote: > Thanks for the answer. > > > What I'm looking for is auto-expunging messages that are marked for > deletion. Lets say a user deletes a message. It gets moved to his Trash > and marked for deletion (flagged as such). Is there any way to search > all "marked for deletion" messages in all the users mailboxes, and > delete the messages older than X days? doveadm expunge -u a_user mailbox Trash deleted See doveadm-expunge(1) and doveadm-search-query(7) for details. Adjust the options to your requirements and create a cron job. Regards, Pascal -- The trapper recommends today: c01dcafe.1113512 at localdomain.org From dave.mehler at gmail.com Sun May 15 17:38:30 2011 From: dave.mehler at gmail.com (David Mehler) Date: Sun, 15 May 2011 10:38:30 -0400 Subject: [Dovecot] dovecot authentication failing In-Reply-To: <4DCFA978.6010806@localhost.localdomain.org> References: <4DCFA978.6010806@localhost.localdomain.org> Message-ID: Hello, Thanks for all your replies. I reread the sites and made the following change: passdb { driver = passwd-file args = scheme=SHA512-CRYPT username_format=%n /etc/dovecot/passwd } userdb { driver = passwd-file args = username_format=%n /etc/dovecot/users } In passwd I have: user:{SSHA512}hbLu+pCmhmtyKEwyAs3wv3kvHD/ryr0MoXOAq3VdB7X/g8qIE/xE9BG+eI4jhFk9pTyiCltPCjZxv5/+yK1wll2LNcw= That should all be on one line. And in the users file I have: user::uid:gid::HomeDirectory:Shell:: It seems to be working. Can I get an assessment, make sure that all is looking right? Thanks. Dave. On 5/15/11, Pascal Volk wrote: > On 05/14/2011 10:13 PM David Mehler wrote: >> Hello, >> I'm running dovecot 2.0.x on a centos 5.6 machine. This is a new >> installation, I haven't even opened the firewall to it yet. I was >> trying to telnet localhost 143 and 110 trying to authenticate a user. >> I'm getting authentication failure in my maillog but no details. >> Here's the one line I get in my maillog: >> >> May 14 15:33:42 ohio dovecot: pop3-login: Aborted login (auth failed, >> 1 attempts): user=, method=PLAIN, rip=127.0.0.1, >> lip=127.0.0.1, secured >> >> Here's a doveconf -n: >> # 2.0.12: /etc/dovecot/dovecot.conf >> # OS: Linux 2.6.38.3-linode32 i686 CentOS release 5.6 (Final) ext3 >> auth_default_realm = domain.com >> auth_mechanisms = plain login >> ? >> disable_plaintext_auth = no >> ? >> passdb { >> args = scheme=CRYPT username_format=%u /etc/dovecot/users >> driver = passwd-file >> } >> ? >> >> Here's how I constructed my users file: >> ? >> user:{SSHA512}hbLu+pCmhmtyKEwyAs3wv3kvHD/ryr0MoXOAq3VdB7X/g8qIE/xE9BG+eI4jhFk9pTyiCltPCjZxv5/+yK1wll2LNcw= >> :5000:5000:: >> ? > > CRYPT (CRYPT|MD5-CRYPT|SHA256-CRYPT|SHA512-CRYPT) != SSHA512 > >> I'm suspecting my issue is in my users file or the definition of it in >> passwd-file{ i've been over the wiki for 2.0.x dovecot, this was >> definitely worth the upgrade by the way, and thus far have not found >> an answer. >> >> I'd appreciate any help. > > Whenever something isn't working you should point your browser to: > http://wiki2.dovecot.org/WhyDoesItNotWork > > > Regards, > Pascal > -- > The trapper recommends today: c01dcafe.1113512 at localdomain.org > From nebano at gmail.com Mon May 16 01:29:30 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Mon, 16 May 2011 00:29:30 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> Message-ID: Hi I am testing mdbox. I noticed that after deleting mail from inbox and trash the mail are always in the mdbox I mean it size has not changed. I executed: /usr/local/dovecot/bin/doveadm -Dv purge -u user at example.org but nothing changed the filess size have not changed I did /usr/local/dovecot/bin/doveadm search all -u user at example.org 4673461242fdcb4d8d0900004ccdb073 1 4673461242fdcb4d8d0900004ccdb073 2 4673461242fdcb4d8d0900004ccdb073 3 4673461242fdcb4d8d0900004ccdb073 4 4673461242fdcb4d8d0900004ccdb073 5 52dfc91bb54cd04df30b00004ccdb073 1 52dfc91bb54cd04df30b00004ccdb073 2 52dfc91bb54cd04df30b00004ccdb073 3 52dfc91bb54cd04df30b00004ccdb073 4 52dfc91bb54cd04df30b00004ccdb073 5 52dfc91bb54cd04df30b00004ccdb073 6 52dfc91bb54cd04df30b00004ccdb073 7 52dfc91bb54cd04df30b00004ccdb073 8 52dfc91bb54cd04df30b00004ccdb073 9 52dfc91bb54cd04df30b00004ccdb073 10 52dfc91bb54cd04df30b00004ccdb073 11 52dfc91bb54cd04df30b00004ccdb073 12 52dfc91bb54cd04df30b00004ccdb073 13 So all files are there rigth? How can I erase deleted mails? Thanks 2011/5/13 Timo Sirainen : > On 13.5.2011, at 1.00, Osvaldo Alvarez Pozo wrote: > >> Actually I have no namespace definition. If i add namespace definition >> for start migrating, ?waht about my clients? will they be able to find >> there mail & mailboxes while I am migrating from maildir to mdbox? > > Your clients see the default namespace if it's not explicitly specified. That namespace has prefix="" and the separator depends on what mailbox format you're using. With Maildir that would be "." character. If you keep that there shouldn't be even any potential problems. > > > From user+dovecot at localhost.localdomain.org Mon May 16 01:33:05 2011 From: user+dovecot at localhost.localdomain.org (Pascal Volk) Date: Mon, 16 May 2011 00:33:05 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> Message-ID: <4DD054A1.9030107@localhost.localdomain.org> On 05/16/2011 12:29 AM Osvaldo Alvarez Pozo wrote: > Hi > I am testing mdbox. > ? > How can I erase deleted mails? > See doveadm-purge(1) Regards, Pascal -- The trapper recommends today: fabaceae.1113600 at localdomain.org From nebano at gmail.com Mon May 16 01:37:16 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Mon, 16 May 2011 00:37:16 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: <4DD054A1.9030107@localhost.localdomain.org> References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> <4DD054A1.9030107@localhost.localdomain.org> Message-ID: Hi thanks but I do not have doveadm-purge. I have doveadm and I can run it with -purge option and that's wath I did with no result. Thanks 2011/5/16 Pascal Volk : > On 05/16/2011 12:29 AM Osvaldo Alvarez Pozo wrote: >> Hi >> I am testing mdbox. >> ? >> How can I erase deleted mails? >> > > See doveadm-purge(1) > > > Regards, > Pascal > -- > The trapper recommends today: fabaceae.1113600 at localdomain.org > From user+dovecot at localhost.localdomain.org Mon May 16 01:53:01 2011 From: user+dovecot at localhost.localdomain.org (Pascal Volk) Date: Mon, 16 May 2011 00:53:01 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> <4DD054A1.9030107@localhost.localdomain.org> Message-ID: <4DD0594D.8040504@localhost.localdomain.org> On 05/16/2011 12:37 AM Osvaldo Alvarez Pozo wrote: > Hi > thanks but I do not have doveadm-purge. I have doveadm and I can run > it with -purge option and that's wath I did with no result. > Please stop Top-posting. OK, if man 1 doveadm-purge didn't work for you, run doveadm purge help. You may check if there are some deleted mails in the mdbox: doveadm dump /path/2/mdbox/storage | egrep 'ext 3 ref\s+\:\s+0' -c If the printed count is greater then 0, there are deleted mails in the mdbox. Then you can delete them permanently with doveadm purge ? Regards, Pascal -- The trapper recommends today: fabaceae.1113600 at localdomain.org From mysqlstudent at gmail.com Mon May 16 04:31:06 2011 From: mysqlstudent at gmail.com (Alex) Date: Sun, 15 May 2011 21:31:06 -0400 Subject: [Dovecot] Dovecot mail_location creating duplicate mbox mail directories Message-ID: Hi all, I'm using dovecot v2.0.11 on fedora14 with postfix. This system was migrated from an old UW mbox system, so users already have ~/mail/INBOX.* files. Now for some reason, dovecot is creating ~/mail/mail/INBOX.* files and somehow not seeing the mail_location properly. I've set mail_location to "mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u", which has worked on a similar system I migrated, but I can't understand why it would try and create a "mail" subdiretory under the ~/mail directory. Even if I set mail_location to just mbox:~ instead, it doesn't create the .subscriptions file properly, and still creates them with "mail/INBOX.Trash" for example. Below is my doveconf. Any ideas greatly appreciated. Is there a way to have doveconf only print those values that differ from the defaults? # 2.0.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.35.13-91.fc14.x86_64 x86_64 Fedora release 14 (Laughlin) auth_anonymous_username = anonymous auth_cache_negative_ttl = 1 hours auth_cache_size = 0 auth_cache_ttl = 1 hours auth_debug = no auth_debug_passwords = no auth_default_realm = auth_failure_delay = 2 secs auth_first_valid_uid = 500 auth_gssapi_hostname = auth_krb5_keytab = auth_last_valid_uid = 0 auth_master_user_separator = auth_mechanisms = plain login auth_realms = auth_socket_path = auth-userdb auth_ssl_require_client_cert = no auth_ssl_username_from_cert = no auth_use_winbind = no auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@ auth_username_format = auth_username_translation = auth_verbose = no auth_verbose_passwords = no auth_winbind_helper_path = /usr/bin/ntlm_auth auth_worker_max_count = 30 base_dir = /var/run/dovecot config_cache_size = 1 M debug_log_path = default_client_limit = 2000 default_idle_kill = 60 default_internal_user = dovecot default_login_user = dovenull default_process_limit = 100 default_vsz_limit = 256 M deliver_log_format = msgid=%m: %$ dict_db_config = director_doveadm_port = 0 director_mail_servers = director_servers = director_user_expire = 15 mins disable_plaintext_auth = yes dotlock_use_excl = yes doveadm_socket_path = doveadm-server doveadm_worker_count = 0 first_valid_gid = 1 first_valid_uid = 500 hostname = imap_capability = imap_client_workarounds = imap_id_log = imap_id_send = imap_idle_notify_interval = 2 mins imap_logout_format = bytes=%i/%o imap_max_line_length = 64 k import_environment = TZ info_log_path = last_valid_gid = 0 last_valid_uid = 0 lda_mailbox_autocreate = no lda_mailbox_autosubscribe = no lda_original_recipient_header = libexec_dir = /usr/libexec/dovecot listen = *, :: lmtp_proxy = no lmtp_save_to_detail_mailbox = no lock_method = fcntl log_path = syslog log_timestamp = "%b %d %H:%M:%S " login_access_sockets = login_greeting = Dovecot ready. login_log_format = %$: %s login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c login_trusted_networks = mail_access_groups = mail_attachment_dir = mail_attachment_fs = sis posix mail_attachment_hash = %{sha1} mail_attachment_min_size = 128 k mail_cache_fields = flags mail_cache_min_mail_count = 0 mail_chroot = mail_debug = yes mail_fsync = optimized mail_full_filesystem_access = no mail_gid = mail mail_home = mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u mail_log_prefix = "%s(%u): " mail_max_keyword_length = 50 mail_max_lock_timeout = 0 mail_max_userip_connections = 10 mail_never_cache_fields = imap.envelope mail_nfs_index = no mail_nfs_storage = no mail_plugin_dir = /usr/lib64/dovecot mail_plugins = mail_privileged_group = mail mail_save_crlf = no mail_temp_dir = /tmp mail_uid = mailbox_idle_check_interval = 30 secs mailbox_list_index_disable = no maildir_copy_with_hardlinks = yes maildir_stat_dirs = no maildir_very_dirty_syncs = no master_user_separator = mbox_dirty_syncs = yes mbox_dotlock_change_timeout = 2 mins mbox_lazy_writes = yes mbox_lock_timeout = 5 mins mbox_min_index_size = 0 mbox_read_locks = fcntl mbox_very_dirty_syncs = no mbox_write_locks = fcntl mdbox_preallocate_space = no mdbox_rotate_interval = 0 mdbox_rotate_size = 2 M mmap_disable = no passdb { args = deny = no driver = pam master = no pass = no } passdb { args = deny = no driver = pam master = no pass = no } pop3_client_workarounds = pop3_enable_last = no pop3_fast_size_lookups = no pop3_lock_session = no pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s pop3_no_flag_updates = no pop3_reuse_xuidl = no pop3_save_uidl = no pop3_uidl_format = %08Xu%08Xv postmaster_address = protocols = imap pop3 lmtp quota_full_tempfail = no recipient_delimiter = + rejection_reason = Your message to <%t> was automatically rejected:%n%r rejection_subject = Rejected: %s sendmail_path = /usr/sbin/sendmail service anvil { chroot = empty client_limit = 0 drop_priv_before_exec = no executable = anvil extra_groups = group = idle_kill = 4294967295 secs privileged_group = process_limit = 1 process_min_avail = 1 protocol = service_count = 0 type = anvil unix_listener anvil-auth-penalty { group = mode = 0600 user = } unix_listener anvil { group = mode = 0600 user = } user = $default_internal_user vsz_limit = 18446744073709551615 B } service auth-worker { chroot = client_limit = 1 drop_priv_before_exec = no executable = auth -w extra_groups = group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = service_count = 1 type = unix_listener auth-worker { group = mode = 0600 user = $default_internal_user } user = vsz_limit = 18446744073709551615 B } service auth { chroot = client_limit = 4096 drop_priv_before_exec = no executable = auth extra_groups = group = idle_kill = 0 privileged_group = process_limit = 1 process_min_avail = 0 protocol = service_count = 0 type = unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-client { group = mode = 0600 user = } unix_listener auth-login { group = mode = 0600 user = $default_internal_user } unix_listener auth-master { group = mode = 0600 user = } unix_listener auth-userdb { group = mode = 0600 user = } unix_listener login/login { group = mode = 0666 user = } user = $default_internal_user vsz_limit = 18446744073709551615 B } service config { chroot = client_limit = 0 drop_priv_before_exec = no executable = config extra_groups = group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = service_count = 0 type = config unix_listener config { group = mode = 0600 user = } user = vsz_limit = 18446744073709551615 B } service dict { chroot = client_limit = 1 drop_priv_before_exec = no executable = dict extra_groups = group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = service_count = 0 type = unix_listener dict { group = mode = 0600 user = } user = $default_internal_user vsz_limit = 18446744073709551615 B } service director { chroot = client_limit = 0 drop_priv_before_exec = no executable = director extra_groups = fifo_listener login/proxy-notify { group = mode = 00 user = } group = idle_kill = 4294967295 secs inet_listener { address = port = 0 ssl = no } privileged_group = process_limit = 1 process_min_avail = 0 protocol = service_count = 0 type = unix_listener director-admin { group = mode = 0600 user = } unix_listener director-userdb { group = mode = 0600 user = } unix_listener login/director { group = mode = 00 user = } user = $default_internal_user vsz_limit = 18446744073709551615 B } service dns_client { chroot = client_limit = 1 drop_priv_before_exec = no executable = dns-client extra_groups = group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = service_count = 0 type = unix_listener dns-client { group = mode = 0666 user = } unix_listener login/dns-client { group = mode = 0666 user = } user = $default_internal_user vsz_limit = 18446744073709551615 B } service doveadm { chroot = client_limit = 1 drop_priv_before_exec = no executable = doveadm-server extra_groups = group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = service_count = 1 type = unix_listener doveadm-server { group = mode = 0600 user = } user = vsz_limit = 18446744073709551615 B } service imap-login { chroot = login client_limit = 0 drop_priv_before_exec = no executable = imap-login extra_groups = group = idle_kill = 0 inet_listener imap { address = port = 143 ssl = no } inet_listener imaps { address = port = 993 ssl = yes } privileged_group = process_limit = 0 process_min_avail = 20 protocol = imap service_count = 0 type = login user = $default_login_user vsz_limit = 64 M } service imap { chroot = client_limit = 1 drop_priv_before_exec = no executable = imap extra_groups = group = idle_kill = 0 privileged_group = process_limit = 1024 process_min_avail = 0 protocol = imap service_count = 1 type = unix_listener login/imap { group = mode = 0666 user = } user = vsz_limit = 18446744073709551615 B } service lmtp { chroot = client_limit = 0 drop_priv_before_exec = no executable = lmtp extra_groups = group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = lmtp service_count = 0 type = unix_listener lmtp { group = mode = 0666 user = } user = vsz_limit = 0 } service log { chroot = client_limit = 0 drop_priv_before_exec = no executable = log extra_groups = group = idle_kill = 0 privileged_group = process_limit = 1 process_min_avail = 0 protocol = service_count = 0 type = log user = vsz_limit = 18446744073709551615 B } service pop3-login { chroot = login client_limit = 0 drop_priv_before_exec = no executable = pop3-login extra_groups = group = idle_kill = 0 inet_listener pop3 { address = port = 110 ssl = no } inet_listener pop3s { address = port = 995 ssl = yes } privileged_group = process_limit = 0 process_min_avail = 0 protocol = pop3 service_count = 1 type = login user = $default_login_user vsz_limit = 64 M } service pop3 { chroot = client_limit = 1 drop_priv_before_exec = no executable = pop3 extra_groups = group = idle_kill = 0 privileged_group = process_limit = 1024 process_min_avail = 0 protocol = pop3 service_count = 1 type = unix_listener login/pop3 { group = mode = 0666 user = } user = vsz_limit = 18446744073709551615 B } service ssl-params { chroot = client_limit = 0 drop_priv_before_exec = no executable = ssl-params extra_groups = group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = service_count = 0 type = startup unix_listener login/ssl-params { group = mode = 0666 user = } user = vsz_limit = 18446744073709551615 B } shutdown_clients = yes ssl = yes ssl_ca = ssl_cert = Hi all, I'm still trying to troubleshoot my problem with dovecot-2.0.11 and creating "mail/mail" directories for a reason unknown to me, so I enabled mail_debug. It's now printing this: May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : Using permissions from /home/gdadmin/mail: mode=0755 gid=-1 May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : Permission lookup failed from /home/gdadmin/mail/mail/INBOX. Trash That file (INBOX.Trash) does exist at that location and is readable. It prints that line three times for each of INBOX.Sent, INBOX.Trash, and INBOX.Drafts. Also notice that it is creating /home/user/mail/mail. My mail_location is set to "mbox:~/mail:INBOX=/var/spool/mail/%u", so I'm really confused. I really hope someone has some ideas! Thanks so much, Best, Alex From eray.aslan at caf.com.tr Mon May 16 07:57:06 2011 From: eray.aslan at caf.com.tr (Eray Aslan) Date: Mon, 16 May 2011 07:57:06 +0300 Subject: [Dovecot] v1.2.17 released In-Reply-To: <1305129153.10421.214.camel@hurina> References: <1305129153.10421.214.camel@hurina> Message-ID: <4DD0AEA2.9030002@caf.com.tr> On 2011-05-11 6:52 PM, Timo Sirainen wrote: > http://dovecot.org/releases/1.2/dovecot-1.2.17.tar.gz > http://dovecot.org/releases/1.2/dovecot-1.2.17.tar.gz.sig Will there be a piegonhole sieve/managesieve release for 1.2.17? -- Eray From stephan at rename-it.nl Mon May 16 09:21:33 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Mon, 16 May 2011 08:21:33 +0200 Subject: [Dovecot] v1.2.17 released In-Reply-To: <4DD0AEA2.9030002@caf.com.tr> References: <1305129153.10421.214.camel@hurina> <4DD0AEA2.9030002@caf.com.tr> Message-ID: <4DD0C26D.2070405@rename-it.nl> On 5/16/2011 6:57 AM, Eray Aslan wrote: > On 2011-05-11 6:52 PM, Timo Sirainen wrote: >> http://dovecot.org/releases/1.2/dovecot-1.2.17.tar.gz >> http://dovecot.org/releases/1.2/dovecot-1.2.17.tar.gz.sig > Will there be a piegonhole sieve/managesieve release for 1.2.17? > Yes, but I won't have time for that until Wednesday. Regards, Stephan. From nebano at gmail.com Mon May 16 15:08:27 2011 From: nebano at gmail.com (Osvaldo Alvarez Pozo) Date: Mon, 16 May 2011 14:08:27 +0200 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: <4DD0594D.8040504@localhost.localdomain.org> References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> <4DD054A1.9030107@localhost.localdomain.org> <4DD0594D.8040504@localhost.localdomain.org> Message-ID: Hi I have done some test. If I use a webmail as roundcube to read mail mails, when I erase a mail from Inbox and after that from trash.the command. /usr/local/dovecot/bin/doveadm dump /var/vmail1/example.org/user/mdbox/storage/|grep 'ref.*\b0\b' show mail with ref count=0 - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) - ext 3 ref : 0 (0000) But if I erase mail from Mozilla Thunderbird then I find no mail with ref count=0 and doveadm purge does nothing. It is strange I thought thunderbird was a good mail client. My thunderbird is up to date. Thanks 2011/5/16 Pascal Volk : > On 05/16/2011 12:37 AM Osvaldo Alvarez Pozo wrote: >> Hi >> thanks but I do not have doveadm-purge. I have doveadm and I can run >> it with -purge option and that's wath I did with no result. >> > > Please stop Top-posting. > > OK, if man 1 doveadm-purge didn't work for you, run doveadm purge help. > > You may check if there are some deleted mails in the mdbox: > doveadm dump /path/2/mdbox/storage | egrep 'ext 3 ref\s+\:\s+0' -c > If the printed count is greater then 0, there are deleted mails in the > mdbox. Then you can delete them permanently with doveadm purge ? > > > Regards, > Pascal > -- > The trapper recommends today: fabaceae.1113600 at localdomain.org > From tss at iki.fi Mon May 16 15:46:37 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 15:46:37 +0300 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> <4DD054A1.9030107@localhost.localdomain.org> <4DD0594D.8040504@localhost.localdomain.org> Message-ID: <1305549997.10421.250.camel@hurina> On Mon, 2011-05-16 at 14:08 +0200, Osvaldo Alvarez Pozo wrote: > But if I erase mail from Mozilla Thunderbird then I find no mail with > ref count=0 and doveadm purge does nothing. doveadm purge only purges mails that have been expunged. So I guess your TB has only marked mails \Deleted, but not actually expunged anything. From tss at iki.fi Mon May 16 15:48:39 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 15:48:39 +0300 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> Message-ID: <1305550119.10421.251.camel@hurina> Yeah, looks right. And once you've migrated everyone, change mail_location globally and remove them from userdb. On Fri, 2011-05-13 at 08:46 +0200, Osvaldo Alvarez Pozo wrote: > Ok I want to do migration without downtime > > Yes i have red that the separator depends on mailbox format and that > for maildir it is '.' > > So in my dovecot.conf I have no namespace definition and my mail-location is: > > mail_location = maildir:/var/vmail/%d/%u/Maildir > > But when I execute the dsync command: > > /usr/local/dovecot/bin/dsync -v -f -u example at example.org mirror > mdbox:/var1/vmail/example.org/example/mdbox > > i get > > dsync(root): Fatal: Mail locations must use the same virtual mailbox > hierarchy separator (specify separator for the default namespace) > > > So i have to add to my dovecot.conf > namespace { > inbox = yes > separator = . > subscriptions = yes > } > > And after finishig dsync for all mailboxes to a new location > I change separator to: > > separator = / > > as a final step I have to return the new mdbox mail location for > each user using userdb > > and my dsync command would change: > > /usr/local/dovecot/bin/dsync -v -f -u example at example.org mirror > maildir:/var/vmail/example.org/example/Maildir > > Am I rigth? > > Thanks you all > > > 2011/5/13 Timo Sirainen : > > On 13.5.2011, at 1.00, Osvaldo Alvarez Pozo wrote: > > > >> Actually I have no namespace definition. If i add namespace definition > >> for start migrating, waht about my clients? will they be able to find > >> there mail & mailboxes while I am migrating from maildir to mdbox? > > > > Your clients see the default namespace if it's not explicitly specified. That namespace has prefix="" and the separator depends on what mailbox format you're using. With Maildir that would be "." character. If you keep that there shouldn't be even any potential problems. > > > > > > > From tss at iki.fi Mon May 16 15:54:14 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 15:54:14 +0300 Subject: [Dovecot] [Dovecot-news] v2.0.13 released In-Reply-To: <4DEADAD3-8E3E-4FE9-BB75-3F88805A30EB@apple.com> References: <1305129141.10421.213.camel@hurina> <4DEADAD3-8E3E-4FE9-BB75-3F88805A30EB@apple.com> Message-ID: <1305550454.10421.253.camel@hurina> On Wed, 2011-05-11 at 17:01 -0500, Mike Abbott wrote: > Compiling dovecot-2.0.13 on OS X emits these warnings: > > user-directory.c: In function user_directory_add: > user-directory.c:79: warning: comparison between signed and unsigned > user-directory.c:84: warning: comparison between signed and unsigned On all 32 bit systems I guess. > Casting the left hand sides of the comparisons to time_t, as you do in other places, silences them: Yeah.. Hmm. I wonder if there's a reason I didn't make the timestamp just be time_t. Oh well, we still have 30 years or so to fix it. :) Applied your patch: http://hg.dovecot.org/dovecot-2.0/rev/d9d5759196ee From tss at iki.fi Mon May 16 15:56:35 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 15:56:35 +0300 Subject: [Dovecot] dovecot authentication failing In-Reply-To: References: <4DCFA978.6010806@localhost.localdomain.org> Message-ID: <1305550595.10421.254.camel@hurina> On Sun, 2011-05-15 at 10:38 -0400, David Mehler wrote: > passdb { > driver = passwd-file > args = scheme=SHA512-CRYPT username_format=%n /etc/dovecot/passwd > } > > In passwd I have: > > user:{SSHA512}hbLu+pCmhmtyKEwyAs3wv3kvHD/ryr0MoXOAq3VdB7X/g8qIE/xE9BG+eI4jhFk9pTyiCltPCjZxv5/+yK1wll2LNcw= The passdb scheme doesn't matter if all your password entries have {scheme} prefix. It doesn't hurt either though.. From tss at iki.fi Mon May 16 15:59:12 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 15:59:12 +0300 Subject: [Dovecot] dovecot proxy with nopassword and postfix sasl In-Reply-To: <4DCE5F82.2030803@simonecaruso.com> References: <4DCD22C2.4060004@simonecaruso.com> <4DCE5F82.2030803@simonecaruso.com> Message-ID: <1305550752.10421.255.camel@hurina> On Sat, 2011-05-14 at 12:54 +0200, Simone Caruso wrote: > Il 13/05/2011 15:07, Franco Rizzo ha scritto: > > Hello thank you for your answer > > > > when I have this user in my passdb file > > franco at ozzir.ch:{plain}password::::::proxy host=xx.xx.xx.xx > > postfix sasl accept only the password => password > > > > When I have this user in my passdb file > > franco at ozzir.ch:::::::nopassword proxy host=xx.xx.xx.xx > > postfix sasl accept any password > > > And i think this is all normal... > From: > http://wiki2.dovecot.org/PasswordDatabase/ExtraFields/Proxy > I don't think it is allowed behaviour for Postfix to authenticate on a dovecot > proxy. Right. If you really want to, with v2.0 you could do: protocol smtp { passdb for your sql/ldap/whatever database that has passwords } protocol !smtp { passdb for proxy without passwords } From tss at iki.fi Mon May 16 16:00:23 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 16:00:23 +0300 Subject: [Dovecot] ID RFC2971 stored anywhere when client announced it? In-Reply-To: References: Message-ID: <1305550823.10421.256.camel@hurina> On Fri, 2011-05-13 at 21:43 +0400, Nikolay Shopik wrote: > Does dovecot store RFC2971 information supplied by client, anywhere? To log, if you've configured imap_id_log setting. From r.zimmermann at siegnetz.de Mon May 16 16:49:01 2011 From: r.zimmermann at siegnetz.de (Ralf Zimmermann) Date: Mon, 16 May 2011 15:49:01 +0200 Subject: [Dovecot] user_query and mail_plugins in database Message-ID: <4DD12B4D.80809@siegnetz.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I have a problem with mail_plugins in dovecot-2.0.x. I will use mail_plugins within a database, so that I can define plugins for users in the database. But I get errors like this. - -----------------------------%<------------------------------------ lmtp(3933): Error: Can't load plugin imap_quota_plugin: Plugin is intended to be used only by imap binary (we're lmtp) - -----------------------------%<------------------------------------- Here my options from the configuration: - -----------------------------%<------------------------------------- mail_plugins = " acl quota" protocol lmtp { mail_plugins = " acl quota sieve" } protocol lda { mail_plugins = " acl quota sieve" } protocol imap { mail_plugins = " acl quota imap_quota imap_acl autocreate" } - -----------------------------%<-------------------------------------- Every protocol uses own mail_plugin definitions. So I create the following user_query: user_query = SELECT LOWER(login) AS user,home,mail,5000 AS uid,5000 AS gid,CONCAT('*:storage=',quota_mb,'MB') AS quota_rule,acl_groups,case when '%s'='lda' then 'acl quota sieve' when '%s'='lmtp' then 'acl quota sieve' when '%s'='doveadm' then 'acl quota' when '%s'='sieve' then 'acl quota' else mail_plugins end as mail_plugins FROM virtual_users WHERE ( login='%u' OR email='%u' ) AND enabled IS true; Now the configuration works. Can I use a simpler solution to configure this functionality? Ralf -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAEBAgAGBQJN0StGAAoJENVjhbwuX+/HyPQH/2hTa5k32Y1WIhVLpRtPudLr qPnk29rN4Gz+6GGwK9M6X3Shkgx1mdGEwZwzEkV/QAURgk+8k90uN+Od1gqKtLer dMhUJPJjeZbRmcxthA/fNKuAHiGCQsYSiCle0603iFq8HwG5QfWvf+IqkUuo/MzI 9bX9xBJGW40M/wAisiRLj03Y+PWe101YL3iKXbDYVuzFpMeJ3WkUoJ378ujGWyaH zjEf5sYACf9jVx6wAsthwaXheRwyxXhcQOrBldOun+rh+l809iD5ivogBrbd3o/G Uuli0LlS8b5tOXZfxIqFmVCt/1Ebo1oD/vHc9yZo1eLSqpuPZGc3qiDPP/JCMY4= =YhpJ -----END PGP SIGNATURE----- From tss at iki.fi Mon May 16 17:09:49 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 17:09:49 +0300 Subject: [Dovecot] user_query and mail_plugins in database In-Reply-To: <4DD12B4D.80809@siegnetz.de> References: <4DD12B4D.80809@siegnetz.de> Message-ID: <1305554989.10421.257.camel@hurina> On Mon, 2011-05-16 at 15:49 +0200, Ralf Zimmermann wrote: > Every protocol uses own mail_plugin definitions. So I create the > following user_query: > > user_query = SELECT LOWER(login) AS user,home,mail,5000 AS uid,5000 AS > gid,CONCAT('*:storage=',quota_mb,'MB') AS quota_rule,acl_groups,case > when '%s'='lda' then 'acl quota sieve' when '%s'='lmtp' then 'acl quota > sieve' when '%s'='doveadm' then 'acl quota' when '%s'='sieve' then 'acl > quota' else mail_plugins end as mail_plugins FROM virtual_users WHERE ( > login='%u' OR email='%u' ) AND enabled IS true; > > Now the configuration works. Can I use a simpler solution to configure > this functionality? Nope. Although you could probably hide much that query into an SQL function. If you have some ideas how to simplify this let me know. :) From tss at iki.fi Mon May 16 17:15:02 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 17:15:02 +0300 Subject: [Dovecot] Permission lookup failed with imap In-Reply-To: References: Message-ID: <1305555302.10421.260.camel@hurina> On Sun, 2011-05-15 at 21:47 -0400, Alex wrote: > I'm still trying to troubleshoot my problem with dovecot-2.0.11 and > creating "mail/mail" directories for a reason unknown to me, so I > enabled mail_debug. It's now printing this: > > May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : Using > permissions from /home/gdadmin/mail: mode=0755 gid=-1 > May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : > Permission lookup failed from /home/gdadmin/mail/mail/INBOX. > Trash > > That file (INBOX.Trash) does exist at that location and is readable. > It prints that line three times for each of INBOX.Sent, INBOX.Trash, > and INBOX.Drafts. > > Also notice that it is creating /home/user/mail/mail. My mail_location > is set to "mbox:~/mail:INBOX=/var/spool/mail/%u", so I'm really > confused. Your client probably has set a "mail/" namespace prefix. Either remove that or add a namespace to make both work: http://wiki2.dovecot.org/Namespaces Also I don't understand why you would have stuff like INBOX.Sent. Usually it would be called just "Sent", i.e. /home/gdadmin/mail/Sent. From tss at iki.fi Mon May 16 17:21:54 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 17:21:54 +0300 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> Message-ID: <1305555714.10421.264.camel@hurina> On Fri, 2011-05-13 at 09:35 +0100, a.smith at ukgrid.net wrote: > Quoting a.smith at ukgrid.net: > > > > > Ok, I just deleted the dovecot index files etc from the mailbox, > > when it recreated them all is now looking normal... > > > > When I logged into my mail today this problem has come back :S Can > anyone suggest a cause or anything else I should do? > I am correct in thinking that Dovecot normally orders emails by date right???? The way it works is that: Initially when you don't have dovecot-uidlist file, it assigns UIDs for all the files. It sorts them by the filename, which typically causes them to be sorted by their received time. After this when new files are added, the new files are sorted among themselves and then given UIDs in that order. The new files are always appended after existing UIDs, never inserted in the middle. Have you checked if there are any errors in Dovecot logs? There are some reasons why Dovecot might give a new UID to an existing mail. dovecot -n output might also be useful. From mysqlstudent at gmail.com Mon May 16 17:24:46 2011 From: mysqlstudent at gmail.com (Alex) Date: Mon, 16 May 2011 10:24:46 -0400 Subject: [Dovecot] Permission lookup failed with imap In-Reply-To: <1305555302.10421.260.camel@hurina> References: <1305555302.10421.260.camel@hurina> Message-ID: Hi, >> I'm still trying to troubleshoot my problem with dovecot-2.0.11 and >> creating "mail/mail" directories for a reason unknown to me, so I >> enabled mail_debug. It's now printing this: >> >> May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : Using >> permissions from /home/gdadmin/mail: mode=0755 gid=-1 >> May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : >> Permission lookup failed from /home/gdadmin/mail/mail/INBOX. >> Trash >> >> That file (INBOX.Trash) does exist at that location and is readable. >> It prints that line three times for each of INBOX.Sent, INBOX.Trash, >> and INBOX.Drafts. >> >> Also notice that it is creating /home/user/mail/mail. My mail_location >> is set to "mbox:~/mail:INBOX=/var/spool/mail/%u", so I'm really >> confused. > > Your client probably has set a "mail/" namespace prefix. Either remove > that or add a namespace to make both work: > http://wiki2.dovecot.org/Namespaces > > Also I don't understand why you would have stuff like INBOX.Sent. > Usually it would be called just "Sent", i.e. /home/gdadmin/mail/Sent. Ah, yes, that must be it. This was using squirrelmail as the mail client, and apparently I didn't change the namespace there after the migration. I'll try and do that now. For the INBOX.* files, I believe squirrelmail was also configured to adjust for that. If I delete the .subscription files for all users, will dovecot automatically rebuild them, so I can create a sed script to rename all the INBOX.* files to remove the INBOX. part? Thanks, Alex From tss at iki.fi Mon May 16 17:35:23 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 17:35:23 +0300 Subject: [Dovecot] when the user has no home directory In-Reply-To: References: <81B248CC-75F9-4449-9618-A712259C4A6B@iki.fi> Message-ID: <1305556523.10421.265.camel@hurina> On Wed, 2011-05-11 at 00:26 -0700, Dave Yost wrote: > Apparently I get no error message back. The connection just closes. > Perhaps Apple Mail's "(null)" is the result of the summary closing of > the connection. > > Wed 0:16:39 > 0 222 Z% telnet localhost 110 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > +OK Dovecot ready. > user xxxxx > +OK > pass xxxxx > Connection closed by foreign host. Fixed: http://hg.dovecot.org/dovecot-2.0/rev/ac006833cd66 From tss at iki.fi Mon May 16 17:36:52 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 17:36:52 +0300 Subject: [Dovecot] dovecot-lda 2.0.8 Panic: stream doesn't support seeking backwards In-Reply-To: References: <4CFEFEF2.1050204@jesstech.com> Message-ID: <1305556612.10421.266.camel@hurina> On Thu, 2011-05-05 at 18:45 +0000, Riadh Djebrouni wrote: > Hi, I'm facing the exact same problem. > Did you find a workaround? This was fixed in a newer Dovecot version. From tss at iki.fi Mon May 16 17:38:53 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 16 May 2011 17:38:53 +0300 Subject: [Dovecot] Permission lookup failed with imap In-Reply-To: References: <1305555302.10421.260.camel@hurina> Message-ID: <1305556733.10421.268.camel@hurina> On Mon, 2011-05-16 at 10:24 -0400, Alex wrote: > If I delete the .subscription files for all users, will dovecot > automatically rebuild them, so I can create a sed script to rename all > the INBOX.* files to remove the INBOX. part? Subscriptions are managed by users. If you delete .subscriptions file, then all mailboxes are unsubscribed. There's not really any point in using subscriptions at all if all mailboxes are subscribed.. From a.smith at ukgrid.net Mon May 16 17:41:15 2011 From: a.smith at ukgrid.net (a.smith at ukgrid.net) Date: Mon, 16 May 2011 15:41:15 +0100 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <1305555714.10421.264.camel@hurina> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> <1305555714.10421.264.camel@hurina> Message-ID: <20110516154115.68191iqtqh04p7r4@webmail2.ukgrid.net> Quoting Timo Sirainen : > Have you checked if there are any errors in Dovecot logs? There are some > reasons why Dovecot might give a new UID to an existing mail. dovecot -n > output might also be useful. > > Hi Timo, thanks for the reply. I just checked and the file names are correct for the mails to be ordered chronologically, so nothing weird going on there that would cause a prob. I can't see any errors relating to this in the logs, but my logs a several thousand lines per day so is there any particular error message I should be looking for? A grep -i err doesn't show anything interesting... Here is a the output of dovecot -n: # dovecot -n # 2.0.11: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 8.2-RELEASE amd64 zfs auth_username_format = %Lu disable_plaintext_auth = no dotlock_use_excl = no first_valid_gid = 1000 first_valid_uid = 1000 lock_method = dotlock mail_fsync = always mail_location = maildir:/var/spool/mail/%d/%u mail_nfs_index = yes mail_nfs_storage = yes mail_privileged_group = vmail managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mmap_disable = yes passdb { args = /usr/local/etc/dovecot/dovecot-sql.conf driver = sql } plugin/fts = squat plugin/fts_squat = partial=4 full=10 protocols = imap pop3 service auth { unix_listener auth-client { mode = 0660 } unix_listener auth-master { mode = 0600 } user = root } service imap { vsz_limit = 1 G } service pop3 { vsz_limit = 1 G } ssl_ca = References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> <1305555714.10421.264.camel@hurina> <20110516154115.68191iqtqh04p7r4@webmail2.ukgrid.net> Message-ID: <1305558254.10421.273.camel@hurina> On Mon, 2011-05-16 at 15:41 +0100, a.smith at ukgrid.net wrote: > Quoting Timo Sirainen : > > Have you checked if there are any errors in Dovecot logs? There are some > > reasons why Dovecot might give a new UID to an existing mail. dovecot -n > > output might also be useful. > > > thanks for the reply. I just checked and the file names are correct > for the mails to be ordered chronologically, so nothing weird going on > there that would cause a prob. > I can't see any errors relating to this in the logs, but my logs a > several thousand lines per day so is there any particular error > message I should be looking for? A grep -i err doesn't show anything > interesting... Try grepping for "Warning" also. I usually put error logs to a different file. That file should stay empty (except for Dovecot stop messages). > mail_location = maildir:/var/spool/mail/%d/%u > mail_nfs_index = yes > mail_nfs_storage = yes Are you using NFS? With just one server or more? What NFS server? From a.smith at ukgrid.net Mon May 16 18:31:13 2011 From: a.smith at ukgrid.net (a.smith at ukgrid.net) Date: Mon, 16 May 2011 16:31:13 +0100 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <1305558254.10421.273.camel@hurina> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> <1305555714.10421.264.camel@hurina> <20110516154115.68191iqtqh04p7r4@webmail2.ukgrid.net> <1305558254.10421.273.camel@hurina> Message-ID: <20110516163113.12061vx7rk1vs9q8@webmail2.ukgrid.net> Quoting Timo Sirainen : > > Try grepping for "Warning" also. I usually put error logs to a different > file. That file should stay empty (except for Dovecot stop messages). Hi, I don't have a dovecot log specified in the config, so I believe everything goes to syslog which I think all ends up in either maillog or messages. I don't see anything in there with "Warning". > >> mail_location = maildir:/var/spool/mail/%d/%u >> mail_nfs_index = yes >> mail_nfs_storage = yes > > Are you using NFS? With just one server or more? What NFS server? > In this case, no I'm not using NFS. The server on which I'm seeing this problem has the maildir data on a local ZFS file system. I have a sort of poor mans cluster where I can run all the services on one of two servers which may or may not use NFS, but as mentioned in this instance there is no NFS to worry about. thanks Andy. From mysqlstudent at gmail.com Mon May 16 19:45:41 2011 From: mysqlstudent at gmail.com (Alex) Date: Mon, 16 May 2011 12:45:41 -0400 Subject: [Dovecot] Permission lookup failed with imap In-Reply-To: <1305556733.10421.268.camel@hurina> References: <1305555302.10421.260.camel@hurina> <1305556733.10421.268.camel@hurina> Message-ID: Hi, >> If I delete the .subscription files for all users, will dovecot >> automatically rebuild them, so I can create a sed script to rename all >> the INBOX.* files to remove the INBOX. part? > > Subscriptions are managed by users. If you delete .subscriptions file, > then all mailboxes are unsubscribed. There's not really any point in > using subscriptions at all if all mailboxes are subscribed.. I think that might be a better option for my users. Is there a way to automatically subscribe to all folders? Thanks again, Alex From shopik at inblock.ru Mon May 16 20:15:35 2011 From: shopik at inblock.ru (Nikolay Shopik) Date: Mon, 16 May 2011 21:15:35 +0400 Subject: [Dovecot] ID RFC2971 stored anywhere when client announced it? In-Reply-To: <1305550823.10421.256.camel@hurina> References: <1305550823.10421.256.camel@hurina> Message-ID: <4DD15BB7.1000507@inblock.ru> On 16.05.2011 17:00, Timo Sirainen wrote: > On Fri, 2011-05-13 at 21:43 +0400, Nikolay Shopik wrote: >> Does dovecot store RFC2971 information supplied by client, anywhere? > > To log, if you've configured imap_id_log setting. > > Is this proper output or bug? ID sent: name=Thunderbird, Thunderbird=version, version=3.3a4pre This is outputs after these IMAP commands 3 ID ("name" "Thunderbird" "version" "3.3a4pre") * ID NIL 3 OK ID completed. I think it should just output this ID sent: name=Thunderbird, version=3.3a4pre I'm on 1.2.16 From tss at iki.fi Tue May 17 13:12:05 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 17 May 2011 13:12:05 +0300 Subject: [Dovecot] Permission lookup failed with imap In-Reply-To: References: <1305555302.10421.260.camel@hurina> <1305556733.10421.268.camel@hurina> Message-ID: <1305627125.10421.277.camel@hurina> On Mon, 2011-05-16 at 12:45 -0400, Alex wrote: > >> If I delete the .subscription files for all users, will dovecot > >> automatically rebuild them, so I can create a sed script to rename all > >> the INBOX.* files to remove the INBOX. part? > > > > Subscriptions are managed by users. If you delete .subscriptions file, > > then all mailboxes are unsubscribed. There's not really any point in > > using subscriptions at all if all mailboxes are subscribed.. > > I think that might be a better option for my users. Is there a way to > automatically subscribe to all folders? Not easily. You could write a script using "doveadm mailbox list" output and running "doveadm mailbox subscribe" to all of them. From tss at iki.fi Tue May 17 13:13:55 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 17 May 2011 13:13:55 +0300 Subject: [Dovecot] ID RFC2971 stored anywhere when client announced it? In-Reply-To: <4DD15BB7.1000507@inblock.ru> References: <1305550823.10421.256.camel@hurina> <4DD15BB7.1000507@inblock.ru> Message-ID: <1305627235.10421.278.camel@hurina> On Mon, 2011-05-16 at 21:15 +0400, Nikolay Shopik wrote: > On 16.05.2011 17:00, Timo Sirainen wrote: > > On Fri, 2011-05-13 at 21:43 +0400, Nikolay Shopik wrote: > >> Does dovecot store RFC2971 information supplied by client, anywhere? > > > > To log, if you've configured imap_id_log setting. > > > > > Is this proper output or bug? > > ID sent: name=Thunderbird, Thunderbird=version, version=3.3a4pre Yeah, it's a bug. It was fixed in v2.0 but I didn't bother checking v1.2. Fixed there now too: http://hg.dovecot.org/dovecot-1.2/rev/32fe996d3c99 From tss at iki.fi Tue May 17 13:16:11 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 17 May 2011 13:16:11 +0300 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <20110516163113.12061vx7rk1vs9q8@webmail2.ukgrid.net> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> <1305555714.10421.264.camel@hurina> <20110516154115.68191iqtqh04p7r4@webmail2.ukgrid.net> <1305558254.10421.273.camel@hurina> <20110516163113.12061vx7rk1vs9q8@webmail2.ukgrid.net> Message-ID: <1305627371.10421.280.camel@hurina> On Mon, 2011-05-16 at 16:31 +0100, a.smith at ukgrid.net wrote: > Quoting Timo Sirainen : > > > > > Try grepping for "Warning" also. I usually put error logs to a different > > file. That file should stay empty (except for Dovecot stop messages). > > Hi, I don't have a dovecot log specified in the config, so I believe > everything goes to syslog which I think all ends up in either maillog > or messages. I don't see anything in there with "Warning". Well, difficult to say then. It kind of sounds like Dovecot suddenly doesn't see that some old message is still there (not returned by readdir()) but then later it sees that it's there again, and gives it a new UID. Although in many such cases Dovecot should notice this itself and log a warning/error about it. You could try saving a backup of dovecot-uidlist periodically and when this happens again, see what exactly changed in the file. From a.smith at ukgrid.net Tue May 17 13:55:31 2011 From: a.smith at ukgrid.net (a.smith at ukgrid.net) Date: Tue, 17 May 2011 11:55:31 +0100 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <1305627371.10421.280.camel@hurina> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> <1305555714.10421.264.camel@hurina> <20110516154115.68191iqtqh04p7r4@webmail2.ukgrid.net> <1305558254.10421.273.camel@hurina> <20110516163113.12061vx7rk1vs9q8@webmail2.ukgrid.net> <1305627371.10421.280.camel@hurina> Message-ID: <20110517115531.96555y9bd23q8bwo@webmail2.ukgrid.net> Quoting Timo Sirainen : > You could try saving a backup of dovecot-uidlist periodically and when > this happens again, see what exactly changed in the file. > Well actually I have hourly/weekly/monthly ZFS snapshots of all data so I can do this now. Here I can see that the UID changed between week 13 and 14 of 2011: ./.zfs/snapshot/WEEK13_2011/ukgrid.net/a.smith/dovecot-uidlist:1815 W5772 S5627 :1238145250.H86871P67126.mx1.ukgrid.net:2,RS ./.zfs/snapshot/WEEK14_2011/ukgrid.net/a.smith/dovecot-uidlist:40723 W5772 :1238145250.H86871P67126.mx1.ukgrid.net I believe this was due to an upgrade from Dovecot 1.2 to 2.0. Its the only change I can see of the UID in 2011 apart from when I deleted the dovecot-uidlist last Thursday. The incorrect ordering could have been occuring since the upgrade to 2.0 but I just didn't notice it. I was particularly worried about it as we have a long time issue with blackberry users being resent large chunks of email and I was wondering if this was the cause... The issue did reoccur after deleting the dovecot-uidlist last Friday, in that I had very old messages being listed in the top hundred or so emails. Unfortunately I didn't make a note of the which messages these were and all seems to be being listed correctly currently. I am now armed with the knowledge to investigate this if it happens again. One last thing, you asked previously if I used NFS and I said that in this case I wasn't. We do have NFS and we do want to use it under some circumstances with Dovecot, both server and client are FreeBSD 8.2, are there any known issues with that in conjunction with Dovecot? thanks Andy. From mail at baqs.net Tue May 17 14:59:55 2011 From: mail at baqs.net (Pierre) Date: Tue, 17 May 2011 13:59:55 +0200 Subject: [Dovecot] alternative storage taken from sql Message-ID: <20110517115955.GA30895@mail3.serarien.com> Hi list, I'm looking for a simple way to define alternative storage (ALT parameter in mail_location) from userdb query. dovecot v2 Is there a simple way to handle this ? Thanks a lot Pierre PS: I'm talking about this functionnality: http://wiki2.dovecot.org/Tools/Doveadm/Altmove From mysqlstudent at gmail.com Tue May 17 17:38:39 2011 From: mysqlstudent at gmail.com (Alex) Date: Tue, 17 May 2011 10:38:39 -0400 Subject: [Dovecot] Permission lookup failed with imap In-Reply-To: <1305627125.10421.277.camel@hurina> References: <1305555302.10421.260.camel@hurina> <1305556733.10421.268.camel@hurina> <1305627125.10421.277.camel@hurina> Message-ID: Hi, >> > Subscriptions are managed by users. If you delete .subscriptions file, >> > then all mailboxes are unsubscribed. There's not really any point in >> > using subscriptions at all if all mailboxes are subscribed.. >> >> I think that might be a better option for my users. Is there a way to >> automatically subscribe to all folders? > > Not easily. You could write a script using "doveadm mailbox list" output > and running "doveadm mailbox subscribe" to all of them. Thank you again for all your help. Best, Alex From tss at iki.fi Tue May 17 17:51:21 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 17 May 2011 17:51:21 +0300 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <20110517115531.96555y9bd23q8bwo@webmail2.ukgrid.net> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> <1305555714.10421.264.camel@hurina> <20110516154115.68191iqtqh04p7r4@webmail2.ukgrid.net> <1305558254.10421.273.camel@hurina> <20110516163113.12061vx7rk1vs9q8@webmail2.ukgrid.net> <1305627371.10421.280.camel@hurina> <20110517115531.96555y9bd23q8bwo@webmail2.ukgrid.net> Message-ID: <33E5AED9-C35F-40D0-8992-3D6F66023D08@iki.fi> On 17.5.2011, at 13.55, a.smith at ukgrid.net wrote: > One last thing, you asked previously if I used NFS and I said that in this case I wasn't. We do have NFS and we do want to use it under some circumstances with Dovecot, both server and client are FreeBSD 8.2, are there any known issues with that in conjunction with Dovecot? As long as a user's mails are accessed simultaneously by more than 1 server, it works fine. If you use more than one server, you can use http://wiki2.dovecot.org/Director to implement this easily. From tss at iki.fi Tue May 17 17:53:17 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 17 May 2011 17:53:17 +0300 Subject: [Dovecot] alternative storage taken from sql In-Reply-To: <20110517115955.GA30895@mail3.serarien.com> References: <20110517115955.GA30895@mail3.serarien.com> Message-ID: <14EE0F07-C54D-40C2-BD4B-AD4FFA1EF7E1@iki.fi> On 17.5.2011, at 14.59, Pierre wrote: > I'm looking for a simple way to define alternative storage (ALT parameter in mail_location) > from userdb query. > dovecot v2 > > Is there a simple way to handle this ? The ALT parameter is part of mail_location, so you need to override the entire mail_location. There are many examples how to do that in the wiki, e.g. http://wiki2.dovecot.org/MailLocation#Per-user_mail_locations From CMarcus at Media-Brokers.com Tue May 17 18:14:02 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Tue, 17 May 2011 11:14:02 -0400 Subject: [Dovecot] IMAP message ID bad for very old message In-Reply-To: <33E5AED9-C35F-40D0-8992-3D6F66023D08@iki.fi> References: <20110512005739.167132yw3awz9kg0@webmail2.ukgrid.net> <20110512192638.17861x1cl4lodu9w@webmail2.ukgrid.net> <20110513093539.44256w0ymuihgp8o@webmail2.ukgrid.net> <1305555714.10421.264.camel@hurina> <20110516154115.68191iqtqh04p7r4@webmail2.ukgrid.net> <1305558254.10421.273.camel@hurina> <20110516163113.12061vx7rk1vs9q8@webmail2.ukgrid.net> <1305627371.10421.280.camel@hurina> <20110517115531.96555y9bd23q8bwo@webmail2.ukgrid.net> <33E5AED9-C35F-40D0-8992-3D6F66023D08@iki.fi> Message-ID: <4DD290BA.8080705@Media-Brokers.com> On 2011-05-17 10:51 AM, Timo Sirainen wrote: > On 17.5.2011, at 13.55, a.smith at ukgrid.net wrote: >> One last thing, you asked previously if I used NFS and I said that >> in this case I wasn't. We do have NFS and we do want to use it under some >> circumstances with Dovecot, both server and client are FreeBSD 8.2, are >> there any known issues with that in conjunction with Dovecot? > As long as a user's mails are accessed simultaneously by more than 1 > server, it works fine. If you use more than one server, you can use > http://wiki2.dovecot.org/Director to implement this easily. I'm almost certain Timo meant to say, 'As long as any 1 users emails are NOT accessed simultaneously by more than 1 server, it works fine.' The NFS problems happen when more than one server accesses the same users mailstore simultaneously. At least, I hope I understand this issue correctly... -- Best regards, Charles From wojciech.giel at cimr.cam.ac.uk Tue May 17 19:03:41 2011 From: wojciech.giel at cimr.cam.ac.uk (Wojciech Giel) Date: Tue, 17 May 2011 17:03:41 +0100 Subject: [Dovecot] sieve vacation reply Message-ID: <4DD29C5D.4070405@cimr.cam.ac.uk> Hi, I'm configuring postfix with dovecot and roundcube. I'm using flat files as passwdb userdb. Everything works fine except sieve vacation reply. when i send mail from ex. user dennis to tytus I get "discarding vacation response for message implicitly delivered to". What Am i doing wrong? thanks sieve: using sieve path for user's script: /home/tytus/.dovecot.sieve 2011-05-17 16:56:45 deliver(tytus): Info: sieve: opening script /home/tytus/.dovecot.sieve 2011-05-17 16:56:45 deliver(tytus): Info: sieve: executing compiled script /home/tytus/.dovecot.sieve 2011-05-17 16:56:45 deliver(tytus): Info: sieve: msgid=<20110517155641.GA3452 at badger.example.com>: discarding vacation response for message implicitly delivered to /etc/postfix/main.cf ... mailbox_command = /usr/lib/dovecot/deliver -n -m "${EXTENSION}" ... # 1.2.15: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.1 log_path: /var/log/dovecot.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps managesieve listen(default): * listen(imap): * listen(managesieve): 127.0.0.1:2000 ssl_ca_file: /etc/postfix/ssl/cacert.pem ssl_cert_file: /etc/postfix/ssl/servercrt.pem ssl_key_file: /etc/postfix/ssl/serverkey.pem ssl_cipher_list: ALL:!LOW:!SSLv2 login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(managesieve): /usr/lib/dovecot/managesieve-login mail_location: maildir:~/Maildir:INDEX=~/Maildir/indexes mail_debug: yes mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugins(default): quota imap_quota autocreate mail_plugins(imap): quota imap_quota autocreate mail_plugins(managesieve): mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve imap_client_workarounds(default): tb-extra-mailbox-sep netscape-eoh delay-newmail outlook-idle imap_client_workarounds(imap): tb-extra-mailbox-sep netscape-eoh delay-newmail outlook-idle imap_client_workarounds(managesieve): lda: postmaster_address: postmaster mail_plugins: sieve quota autocreate quota_full_tempfail: yes deliver_log_format: msgid=%m: %$ rejection_reason: Your message to <%t> was automatically rejected:%n%r log_path: /var/log/sieve.log auth default: mechanisms: plain login cram-md5 verbose: yes debug: yes debug_passwords: yes passdb: driver: pam passdb: driver: passwd-file args: scheme=cram-md5 /etc/dovecot/passwd userdb: driver: passwd-file args: /etc/dovecot/passwd userdb: driver: passwd socket: type: listen client: path: /var/spool/postfix/private/dovecot-auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 plugin: sieve: ~/.dovecot.sieve sieve_dir: ~/sieve autocreate: INBOX autocreate2: Sent autocreate3: Trash autocreate4: Drafts autocreate5: Junk autosubscribe: INBOX autosubscribe2: Sent autosubscribe3: Trash autosubscribe4: Drafts autosubscribe5: Junk quota: maildir:User quota quota_rule: Trash:storage=10M quota_warning: storage=85%% /usr/bin/dovecot-quota-warning.sh 85 quota_warning2: storage=90%% /usr/bin/dovecot-quota-warning.sh 90 quota_warning3: storage=95%% /usr/bin/dovecot-quota-warning.sh 95 From pllis at educ.ar Wed May 18 01:32:19 2011 From: pllis at educ.ar (Pablo Luchetti) Date: Tue, 17 May 2011 19:32:19 -0300 Subject: [Dovecot] vacation problem with sieve and sogo [solved] In-Reply-To: <4DCACCF1.1070803@rename-it.nl> References: <4DC456B4.7000205@educ.ar> <4DC4EF53.2050108@rename-it.nl> <4DC5DA02.5020604@educ.ar> <4DCACCF1.1070803@rename-it.nl> Message-ID: <4DD2F773.1010101@educ.ar> Hi Stephan, you were right. The problem was that there is 2 instances of dovecot running, and while I configured one of them, the other is listening in port 2000. Thanks again and my apologies for the inconvenience. Pablo Stephan Bosch wrote: > Op 8-5-2011 1:47, Pablo Luchetti schreef: >> Thanks Stephan, but doesn't work. >> I try both >> >> plugin: >> sieve: ~/sieve/ >> >> and >> >> plugin: >> sieve: ~/.dovecot.sieve > > Could you enable mail_debug and show me any relevant log lines? > > Regards, > > Stephan. > From nyoman.bogi at gmail.com Wed May 18 04:48:37 2011 From: nyoman.bogi at gmail.com (nyoman.bogi at gmail.com) Date: Wed, 18 May 2011 08:48:37 +0700 Subject: [Dovecot] newbie: can not authenticate using dovecot Message-ID: Hi all, This is the first time I used Dovecot and it's perfectly run : dev# ps ax | grep dove 77332 ?? Ss 0:00.30 /usr/local/sbin/dovecot -c /usr/local/etc/dovecot.con 77333 ?? S 0:00.10 dovecot-auth 77334 ?? I 0:00.02 dovecot-auth -w 81495 0 S+ 0:00.00 grep dove But when I try to connect to Dovecot's POP3 Server : dev# telnet 127.0.0.1 110 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK Dovecot ready. user bogi +OK pass bogi Connection closed by foreign host. Is there something I missed in Dovecot's configuration? This is my configuration : dev# dovecot --version 1.2.16 dev# dovecot -n # 1.2.16: /usr/local/etc/dovecot.conf # OS: FreeBSD 8.2-RELEASE i386 protocols: pop3 listen: 127.0.0.1:110 ssl: no disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/pop3-login verbose_proctitle: yes first_valid_uid: 1000 first_valid_gid: 1000 mail_privileged_group: mail mail_location: mbox:~/mail/:INBOX=/var/mail/%u mail_executable: /usr/local/libexec/dovecot/pop3 mail_plugin_dir: /usr/local/lib/dovecot/pop3 pop3_client_workarounds: outlook-no-nuls oe-ns-eoh lda: sendmail_path: /usr/sbin/sendmail auth default: mechanisms: plain login username_format: %Lu passdb: driver: pam args: session=yes dovecot userdb: driver: passwd args: blocking=yes socket: type: listen client: path: /var/run/dovecot/auth-client mode: 432 master: path: /var/run/dovecot/auth-master mode: 384 From nyoman.bogi at gmail.com Wed May 18 07:06:30 2011 From: nyoman.bogi at gmail.com (nyoman.bogi at gmail.com) Date: Wed, 18 May 2011 11:06:30 +0700 Subject: [Dovecot] newbie: can not authenticate using dovecot In-Reply-To: References: Message-ID: So sorry guys I've found the problem after activating Dovecot's log. After I use "mail_location = mbox:/var/mail/:INBOX=/var/mail/%u" everything works just fine. Thank you and sorry for my newbie question. regards. Bogi Aditya IM Telkom On Wed, May 18, 2011 at 8:48 AM, nyoman.bogi at gmail.com < nyoman.bogi at gmail.com> wrote: > Hi all, > > This is the first time I used Dovecot and it's perfectly run : > dev# ps ax | grep dove > 77332 ?? Ss 0:00.30 /usr/local/sbin/dovecot -c > /usr/local/etc/dovecot.con > 77333 ?? S 0:00.10 dovecot-auth > 77334 ?? I 0:00.02 dovecot-auth -w > 81495 0 S+ 0:00.00 grep dove > > But when I try to connect to Dovecot's POP3 Server : > dev# telnet 127.0.0.1 110 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > +OK Dovecot ready. > user bogi > +OK > pass bogi > Connection closed by foreign host. > > Is there something I missed in Dovecot's configuration? > > > This is my configuration : > > dev# dovecot --version > 1.2.16 > > dev# dovecot -n > # 1.2.16: /usr/local/etc/dovecot.conf > # OS: FreeBSD 8.2-RELEASE i386 > protocols: pop3 > listen: 127.0.0.1:110 > ssl: no > disable_plaintext_auth: no > login_dir: /var/run/dovecot/login > login_executable: /usr/local/libexec/dovecot/pop3-login > verbose_proctitle: yes > first_valid_uid: 1000 > first_valid_gid: 1000 > mail_privileged_group: mail > mail_location: mbox:~/mail/:INBOX=/var/mail/%u > mail_executable: /usr/local/libexec/dovecot/pop3 > mail_plugin_dir: /usr/local/lib/dovecot/pop3 > pop3_client_workarounds: outlook-no-nuls oe-ns-eoh > lda: > sendmail_path: /usr/sbin/sendmail > auth default: > mechanisms: plain login > username_format: %Lu > passdb: > driver: pam > args: session=yes dovecot > userdb: > driver: passwd > args: blocking=yes > socket: > type: listen > client: > path: /var/run/dovecot/auth-client > mode: 432 > master: > path: /var/run/dovecot/auth-master > mode: 384 > > From tss at iki.fi Wed May 18 11:23:02 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 18 May 2011 11:23:02 +0300 Subject: [Dovecot] newbie: can not authenticate using dovecot In-Reply-To: References: Message-ID: <19F3CB90-A4DF-4F33-AAC6-4CEE1477FB09@iki.fi> On 18.5.2011, at 7.06, nyoman.bogi at gmail.com wrote: > I've found the problem after activating Dovecot's log. > After I use "mail_location = mbox:/var/mail/:INBOX=/var/mail/%u" > everything works just fine. That's not a good way to do it. It doesn't break with one user, but you'll start getting into trouble with more users since everyone tries to write to /var/mail/.imap/INBOX/* index files, thinking they own it. See the bottom of http://wiki.dovecot.org/MailLocation/Mbox From nyoman.bogi at gmail.com Wed May 18 11:36:20 2011 From: nyoman.bogi at gmail.com (nyoman.bogi at gmail.com) Date: Wed, 18 May 2011 15:36:20 +0700 Subject: [Dovecot] newbie: can not authenticate using dovecot In-Reply-To: <19F3CB90-A4DF-4F33-AAC6-4CEE1477FB09@iki.fi> References: <19F3CB90-A4DF-4F33-AAC6-4CEE1477FB09@iki.fi> Message-ID: Thanks for the advice Sir, when I use the configuration "mail_location = mbox:~/mail/:INBOX=/var/mail/%u" and look at the Dovecot's log why it's rejecting my authentication : May 18 09:26:29 pop3-login: Info: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured May 18 09:26:29 POP3(bogi): Error: mail_location: mbox: mkdir(/nonexistent/mail) failed: Permission denied (euid=1005(bogi) egid=1005(bogi)) May 18 09:26:29 POP3(bogi): Fatal: Namespace initialization failed May 18 09:27:45 dovecot: Warning: Killed with signal 15 (by pid=82713 uid=0 code=kill) And Yes, I create all user with no home directory (/nonexistent) and no shell (basically all user will have only mail spool in /var/mail) any suggestion to avoid this? should I use a new directory i.e. /var/mail/dovecot with world writable to accommodate this? thanks in advance From tss at iki.fi Wed May 18 15:24:24 2011 From: tss at iki.fi (Timo Sirainen) Date: Wed, 18 May 2011 15:24:24 +0300 Subject: [Dovecot] newbie: can not authenticate using dovecot In-Reply-To: References: <19F3CB90-A4DF-4F33-AAC6-4CEE1477FB09@iki.fi> Message-ID: <93506147-AF8A-4D94-872E-AF0D6285253C@iki.fi> I suggest you do as the wiki URL I gave explained. Create a non-writable empty directory with indexes disabled. On 18.5.2011, at 11.36, nyoman.bogi at gmail.com wrote: > Thanks for the advice Sir, > > when I use the configuration "mail_location = > mbox:~/mail/:INBOX=/var/mail/%u" > and look at the Dovecot's log why it's rejecting my authentication : > > May 18 09:26:29 pop3-login: Info: Login: user=, method=PLAIN, > rip=127.0.0.1, lip=127.0.0.1, secured > May 18 09:26:29 POP3(bogi): Error: mail_location: mbox: > mkdir(/nonexistent/mail) failed: Permission denied (euid=1005(bogi) > egid=1005(bogi)) > May 18 09:26:29 POP3(bogi): Fatal: Namespace initialization failed > May 18 09:27:45 dovecot: Warning: Killed with signal 15 (by pid=82713 uid=0 > code=kill) > > And Yes, I create all user with no home directory (/nonexistent) and no > shell > (basically all user will have only mail spool in /var/mail) > > any suggestion to avoid this? > > should I use a new directory i.e. /var/mail/dovecot with world writable to > accommodate this? > > thanks in advance From gonzalo at sepp0.com.ar Wed May 18 16:08:37 2011 From: gonzalo at sepp0.com.ar (Gonzalo Rodriguez) Date: Wed, 18 May 2011 10:08:37 -0300 Subject: [Dovecot] Dovecot deliver Message-ID: Hi all, I have a problem with my dovecot/postfix configuration: here is my dovecot -n # 1.2.16: /etc/dovecot.conf Warning: fd limit 128 is lower than what Dovecot can use under full load (more than 768). Either grow the limit or change login_max_processes_count and max_mail_processes settings # OS: OpenBSD 4.9 i386 nfs base_dir: /var/dovecot/ log_path: /var/log/dovecot protocols: imaps pop3s login_dir: /var/dovecot/login login_executable(default): /usr/local/libexec/dovecot/imap-login login_executable(imap): /usr/local/libexec/dovecot/imap-login login_executable(pop3): /usr/local/libexec/dovecot/pop3-login login_user: _dovecot mail_location: maildir:/var/www/datos/correo/foobar.com.ar/%n:LAYOUT=fs mail_debug: yes mail_nfs_storage: yes mail_nfs_index: yes mbox_write_locks: fcntl mail_executable(default): /usr/local/libexec/dovecot/imap mail_executable(imap): /usr/local/libexec/dovecot/imap mail_executable(pop3): /usr/local/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/local/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(pop3): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh lda: mail_plugins: sieve postmaster_address: postmaster at foobar.com.ar log_path: /var/log/dovecot-deliver-errors.log info_log_path: /var/log/dovecot-deliver.log auth default: mechanisms: login plain verbose: yes debug: yes debug_passwords: yes passdb: driver: bsdauth userdb: driver: static args: uid=vmail gid=vmail home=/var/www/datos/correo/foobar.com.ar/%n, allow_all_users=yes socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: _postfix group: _postfix master: path: /var/dovecot/auth-master mode: 384 user: vmail group: vmail plugin: sieve_global_dir: /var/sieve sieve_global_path: /var/sieve/global-default.sieve sieve: /var/sieve/%n.sieve I use bsdauth to system users auth againts Active-Directory, and I use dovecot to deliver the mails, in my postfix master.cf I have this: ## Deliver con Dovecot en ## Mailboxes dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient} The problem is I don't any process like this: pipe -n dovecot -t unix flags=DRhu user=vmail /usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient} And in the dovecot log I don't see anything, but in maillog I have: May 18 09:49:35 FOOBAR-0010 postfix/local[16584]: 8808D26125: to=, relay=local, delay=0.92, delays=0.91/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox) But the mail it's not in the mailbox, what is wrong? any hint? the storage is a NFS with centos. cheers From dovecot.user at seibercom.net Wed May 18 18:23:50 2011 From: dovecot.user at seibercom.net (Jerry) Date: Wed, 18 May 2011 11:23:50 -0400 Subject: [Dovecot] Dovecot deliver In-Reply-To: References: Message-ID: <20110518112350.53b2861d@scorpio> On Wed, 18 May 2011 10:08:37 -0300 Gonzalo Rodriguez articulated: > Hi all, > > I have a problem with my dovecot/postfix configuration: > > here is my dovecot -n > > > # 1.2.16: /etc/dovecot.conf > Warning: fd limit 128 is lower than what Dovecot can use under full > load (more than 768). Either grow the limit or change > login_max_processes_count and max_mail_processes settings > # OS: OpenBSD 4.9 i386 nfs > base_dir: /var/dovecot/ > log_path: /var/log/dovecot > protocols: imaps pop3s > login_dir: /var/dovecot/login > login_executable(default): /usr/local/libexec/dovecot/imap-login > login_executable(imap): /usr/local/libexec/dovecot/imap-login > login_executable(pop3): /usr/local/libexec/dovecot/pop3-login > login_user: _dovecot > mail_location: > maildir:/var/www/datos/correo/foobar.com.ar/%n:LAYOUT=fs mail_debug: > yes mail_nfs_storage: yes > mail_nfs_index: yes > mbox_write_locks: fcntl > mail_executable(default): /usr/local/libexec/dovecot/imap > mail_executable(imap): /usr/local/libexec/dovecot/imap > mail_executable(pop3): /usr/local/libexec/dovecot/pop3 > mail_plugin_dir(default): /usr/local/lib/dovecot/imap > mail_plugin_dir(imap): /usr/local/lib/dovecot/imap > mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 > imap_client_workarounds(default): delay-newmail outlook-idle > netscape-eoh tb-extra-mailbox-sep > imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh > tb-extra-mailbox-sep > imap_client_workarounds(pop3): > pop3_client_workarounds(default): > pop3_client_workarounds(imap): > pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh > lda: > mail_plugins: sieve > postmaster_address: postmaster at foobar.com.ar > log_path: /var/log/dovecot-deliver-errors.log > info_log_path: /var/log/dovecot-deliver.log > auth default: > mechanisms: login plain > verbose: yes > debug: yes > debug_passwords: yes > passdb: > driver: bsdauth > userdb: > driver: static > args: uid=vmail gid=vmail > home=/var/www/datos/correo/foobar.com.ar/%n, allow_all_users=yes > socket: > type: listen > client: > path: /var/spool/postfix/private/auth > mode: 432 > user: _postfix > group: _postfix > master: > path: /var/dovecot/auth-master > mode: 384 > user: vmail > group: vmail > plugin: > sieve_global_dir: /var/sieve > sieve_global_path: /var/sieve/global-default.sieve > sieve: /var/sieve/%n.sieve > > > I use bsdauth to system users auth againts Active-Directory, and I use > dovecot to deliver the mails, in my postfix master.cf I have this: > > > ## Deliver con Dovecot en > ## Mailboxes > dovecot unix - n n - - pipe > flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver > -f ${sender} -d ${recipient} > > > > The problem is I don't any process like this: > > > pipe -n dovecot -t unix flags=DRhu user=vmail > /usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient} > > > And in the dovecot log I don't see anything, but in maillog I have: > > > May 18 09:49:35 FOOBAR-0010 postfix/local[16584]: 8808D26125: > to=, relay=local, delay=0.92, > delays=0.91/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox) > > > But the mail it's not in the mailbox, what is wrong? any hint? the > storage is a NFS with centos. If I am reading this correctly, the mail is never being delivered to Dovecot. You need to do the following: 1) Read the documentation at: Pay particular attention to the "Reporting problems to postfix-users at postfix.org at the end of the document. specifically: When reporting a problem, be sure to include the following information. A summary of the problem. Please do not just send some logging without explanation of what YOU believe is wrong. Complete error messages. Please use cut-and-paste, or use attachments, instead of reciting information from memory. Postfix logging. See the text at the top of the DEBUG_README document to find out where logging is stored. Please do not frustrate the helpers by word wrapping the logging. If the logging is more than a few kbytes of text, consider posting an URL on a web or ftp site. Output from "postconf -n". Please do not send your main.cf file, or 500+ lines of postconf output. Better, provide output from the postfinger tool. This can be found at http://ftp.wl0.org/SOURCES/postfinger. The use of the "postfinger" tool is always the best procedure. Then, post the above on the Postfix forum. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From jortega at onuva.com Wed May 18 18:41:23 2011 From: jortega at onuva.com (Julio C. Ortega) Date: Wed, 18 May 2011 11:11:23 -0430 Subject: [Dovecot] Dovecot deliver In-Reply-To: References: Message-ID: <4DD3E8A3.8000603@onuva.com> El 18/05/11 08:38, Gonzalo Rodriguez escribi?: > Hi all, > > I have a problem with my dovecot/postfix configuration: > > here is my dovecot -n > > > # 1.2.16: /etc/dovecot.conf > Warning: fd limit 128 is lower than what Dovecot can use under full > load (more than 768). Either grow the limit or change > login_max_processes_count and max_mail_processes settings > # OS: OpenBSD 4.9 i386 nfs > base_dir: /var/dovecot/ > log_path: /var/log/dovecot > protocols: imaps pop3s > login_dir: /var/dovecot/login > login_executable(default): /usr/local/libexec/dovecot/imap-login > login_executable(imap): /usr/local/libexec/dovecot/imap-login > login_executable(pop3): /usr/local/libexec/dovecot/pop3-login > login_user: _dovecot > mail_location: maildir:/var/www/datos/correo/foobar.com.ar/%n:LAYOUT=fs > mail_debug: yes > mail_nfs_storage: yes > mail_nfs_index: yes > mbox_write_locks: fcntl > mail_executable(default): /usr/local/libexec/dovecot/imap > mail_executable(imap): /usr/local/libexec/dovecot/imap > mail_executable(pop3): /usr/local/libexec/dovecot/pop3 > mail_plugin_dir(default): /usr/local/lib/dovecot/imap > mail_plugin_dir(imap): /usr/local/lib/dovecot/imap > mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 > imap_client_workarounds(default): delay-newmail outlook-idle > netscape-eoh tb-extra-mailbox-sep > imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh > tb-extra-mailbox-sep > imap_client_workarounds(pop3): > pop3_client_workarounds(default): > pop3_client_workarounds(imap): > pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh > lda: > mail_plugins: sieve > postmaster_address: postmaster at foobar.com.ar > log_path: /var/log/dovecot-deliver-errors.log > info_log_path: /var/log/dovecot-deliver.log > auth default: > mechanisms: login plain > verbose: yes > debug: yes > debug_passwords: yes > passdb: > driver: bsdauth > userdb: > driver: static > args: uid=vmail gid=vmail > home=/var/www/datos/correo/foobar.com.ar/%n, allow_all_users=yes > socket: > type: listen > client: > path: /var/spool/postfix/private/auth > mode: 432 > user: _postfix > group: _postfix > master: > path: /var/dovecot/auth-master > mode: 384 > user: vmail > group: vmail > plugin: > sieve_global_dir: /var/sieve > sieve_global_path: /var/sieve/global-default.sieve > sieve: /var/sieve/%n.sieve > > > I use bsdauth to system users auth againts Active-Directory, and I use > dovecot to deliver the mails, in my postfix master.cf I have this: > > > ## Deliver con Dovecot en > ## Mailboxes > dovecot unix - n n - - pipe > flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver > -f ${sender} -d ${recipient} > > > > The problem is I don't any process like this: > > > pipe -n dovecot -t unix flags=DRhu user=vmail > /usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient} > > > And in the dovecot log I don't see anything, but in maillog I have: > > > May 18 09:49:35 FOOBAR-0010 postfix/local[16584]: 8808D26125: > to=, relay=local, delay=0.92, > delays=0.91/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox) > > > But the mail it's not in the mailbox, what is wrong? any hint? the > storage is a NFS with centos. > > cheers Greetings Gonzalo. You should configure postfix to use deliver explicitly. main.cf: mailbox_command = /usr/lib/dovecot/deliver Kind regards -- ------------------------------------ Julio C. Ortega ONUVA http://www.onuva.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: From gonzalo at sepp0.com.ar Wed May 18 19:47:19 2011 From: gonzalo at sepp0.com.ar (Gonzalo Rodriguez) Date: Wed, 18 May 2011 13:47:19 -0300 Subject: [Dovecot] Dovecot deliver In-Reply-To: <4DD3E8A3.8000603@onuva.com> References: <4DD3E8A3.8000603@onuva.com> Message-ID: sorry first my postconf alias_database = hash:/etc/postfix/aliases command_directory = /usr/local/sbin config_directory = /etc/postfix daemon_directory = /usr/local/libexec/postfix data_directory = /var/postfix debug_peer_level = 2 disable_vrfy_command = yes mail_owner = _postfix mailbox_command = /usr/local/libexec/dovecot/deliver mydestination = $myhostname mydomain = foobar.com.ar myhostname = foobar.com.ar mynetworks = 127.0.0.0/8 10.65.3.120 myorigin = $mydomain parent_domain_matches_subdomains = queue_directory = /var/spool/postfix relay_domains = $mydestination setgid_group = _postdrop smtp_starttls_timeout = 300s smtp_tls_cert_file = /etc/ssl/foobar.crt smtp_tls_key_file = /etc/ssl/private/foobar.key smtp_tls_loglevel = 1 smtp_tls_note_starttls_offer = yes smtp_tls_session_cache_timeout = 3600s smtp_use_tls = yes smtpd_banner = $myhostname ESMTP smtpd_etrn_restrictions = reject smtpd_helo_required = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_sender_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_rbl_client cbl.abuseat.org, reject_rbl_client bl.spamcop.net smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot smtpd_tls_cert_file = /etc/ssl/foobar.crt smtpd_tls_key_file = /etc/ssl/private/foobar.key smtpd_tls_loglevel = 1 smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes tls_random_source = dev:/dev/urandom virtual_alias_maps = hash:/var/www/datos/correo/virtual/aliases/foobar.com.ar virtual_gid_maps = static:5001 virtual_mailbox_base = /var/www/datos/correo virtual_mailbox_domains = hash:/var/www/datos/correo/virtual/mailbox/domains virtual_mailbox_maps = hash:/var/www/datos/correo/virtual/mailbox/mailboxes virtual_minimum_uid = 5000 virtual_transport = dovecot virtual_uid_maps = static:5001 I add the line: mailbox_command = /usr/lib/dovecot/deliver Like Julio says, and works, but now I have this in my dovecot-deliver-error.log: May 18 13:39:32 deliver(gonzalor): Error: open(/var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/tmp/1305736772.M157290P19363.FOOBAR-0010) failed: Permission denied May 18 13:42:04 deliver(gonzalor): Error: open(/var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/dovecot.index.log) failed: Permission denied (euid=1003(gonzalor) egid=10(users) missing +w perm: /var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/dovecot.index.log) May 18 13:42:04 deliver(gonzalor): Error: open(/var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/tmp/1305736924.M208261P12143.FOOBAR-0010) failed: Permission denied any hint? regards 2011/5/18 Julio C. Ortega : > El 18/05/11 08:38, Gonzalo Rodriguez escribi?: >> Hi all, >> >> I have a problem with my dovecot/postfix configuration: >> >> here is my dovecot -n >> >> >> # 1.2.16: /etc/dovecot.conf >> Warning: fd limit 128 is lower than what Dovecot can use under full >> load (more than 768). Either grow the limit or change >> login_max_processes_count and max_mail_processes settings >> # OS: OpenBSD 4.9 i386 ?nfs >> base_dir: /var/dovecot/ >> log_path: /var/log/dovecot >> protocols: imaps pop3s >> login_dir: /var/dovecot/login >> login_executable(default): /usr/local/libexec/dovecot/imap-login >> login_executable(imap): /usr/local/libexec/dovecot/imap-login >> login_executable(pop3): /usr/local/libexec/dovecot/pop3-login >> login_user: _dovecot >> mail_location: maildir:/var/www/datos/correo/foobar.com.ar/%n:LAYOUT=fs >> mail_debug: yes >> mail_nfs_storage: yes >> mail_nfs_index: yes >> mbox_write_locks: fcntl >> mail_executable(default): /usr/local/libexec/dovecot/imap >> mail_executable(imap): /usr/local/libexec/dovecot/imap >> mail_executable(pop3): /usr/local/libexec/dovecot/pop3 >> mail_plugin_dir(default): /usr/local/lib/dovecot/imap >> mail_plugin_dir(imap): /usr/local/lib/dovecot/imap >> mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 >> imap_client_workarounds(default): delay-newmail outlook-idle >> netscape-eoh tb-extra-mailbox-sep >> imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh >> tb-extra-mailbox-sep >> imap_client_workarounds(pop3): >> pop3_client_workarounds(default): >> pop3_client_workarounds(imap): >> pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh >> lda: >> ? mail_plugins: sieve >> ? postmaster_address: postmaster at foobar.com.ar >> ? log_path: /var/log/dovecot-deliver-errors.log >> ? info_log_path: /var/log/dovecot-deliver.log >> auth default: >> ? mechanisms: login plain >> ? verbose: yes >> ? debug: yes >> ? debug_passwords: yes >> ? passdb: >> ? ? driver: bsdauth >> ? userdb: >> ? ? driver: static >> ? ? args: uid=vmail gid=vmail >> home=/var/www/datos/correo/foobar.com.ar/%n, allow_all_users=yes >> ? socket: >> ? ? type: listen >> ? ? client: >> ? ? ? path: /var/spool/postfix/private/auth >> ? ? ? mode: 432 >> ? ? ? user: _postfix >> ? ? ? group: _postfix >> ? ? master: >> ? ? ? path: /var/dovecot/auth-master >> ? ? ? mode: 384 >> ? ? ? user: vmail >> ? ? ? group: vmail >> plugin: >> ? sieve_global_dir: /var/sieve >> ? sieve_global_path: /var/sieve/global-default.sieve >> ? sieve: /var/sieve/%n.sieve >> >> >> I use bsdauth to system users auth againts Active-Directory, and I use >> dovecot to deliver the mails, in my postfix master.cf I have this: >> >> >> ## Deliver con Dovecot en >> ## Mailboxes >> dovecot ? unix ?- ? ? ? n ? ? ? n ? ? ? - ? ? ? - ? ? ? pipe >> ? flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver >> -f ${sender} -d ${recipient} >> >> >> >> The problem is I don't any process like this: >> >> >> pipe -n dovecot -t unix flags=DRhu user=vmail >> /usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient} >> >> >> And in the dovecot log I don't see anything, but in maillog I have: >> >> >> May 18 09:49:35 FOOBAR-0010 postfix/local[16584]: 8808D26125: >> to=, relay=local, delay=0.92, >> delays=0.91/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox) >> >> >> But the mail it's not in the mailbox, what is wrong? any hint? the >> storage is a NFS with centos. >> >> cheers > > Greetings Gonzalo. > > You should configure postfix to use deliver explicitly. > > main.cf: > mailbox_command = /usr/lib/dovecot/deliver > > Kind regards > > -- > ------------------------------------ > Julio C. Ortega > ONUVA > http://www.onuva.com > > From gonzalo at sepp0.com.ar Wed May 18 19:48:58 2011 From: gonzalo at sepp0.com.ar (Gonzalo Rodriguez) Date: Wed, 18 May 2011 13:48:58 -0300 Subject: [Dovecot] Dovecot deliver In-Reply-To: References: <4DD3E8A3.8000603@onuva.com> Message-ID: I forgot: $ ls -al total 136 drwxr-xr-x 6 vmail vmail 4096 May 16 16:48 . drwxr-xr-x 8 vmail vmail 4096 May 17 15:47 .. drwx------ 5 vmail vmail 4096 May 18 09:47 Drafts drwxr-xr-x 5 vmail vmail 4096 May 18 13:10 INBOX drwx------ 5 vmail vmail 4096 May 17 17:24 Sent drwx------ 5 vmail vmail 4096 May 18 12:39 Trash -rw------- 1 vmail vmail 8 May 16 16:48 dovecot-uidvalidity -rw------- 1 vmail vmail 0 May 11 2001 dovecot-uidvalidity.4dce94ed -rw------- 1 vmail vmail 18 May 16 16:48 subscriptions 2011/5/18 Gonzalo Rodriguez : > sorry first my postconf > > alias_database = hash:/etc/postfix/aliases > command_directory = /usr/local/sbin > config_directory = /etc/postfix > daemon_directory = /usr/local/libexec/postfix > data_directory = /var/postfix > debug_peer_level = 2 > disable_vrfy_command = yes > mail_owner = _postfix > mailbox_command = /usr/local/libexec/dovecot/deliver > mydestination = $myhostname > mydomain = foobar.com.ar > myhostname = foobar.com.ar > mynetworks = 127.0.0.0/8 10.65.3.120 > myorigin = $mydomain > parent_domain_matches_subdomains = > queue_directory = /var/spool/postfix > relay_domains = $mydestination > setgid_group = _postdrop > smtp_starttls_timeout = 300s > smtp_tls_cert_file = /etc/ssl/foobar.crt > smtp_tls_key_file = /etc/ssl/private/foobar.key > smtp_tls_loglevel = 1 > smtp_tls_note_starttls_offer = yes > smtp_tls_session_cache_timeout = 3600s > smtp_use_tls = yes > smtpd_banner = $myhostname ESMTP > smtpd_etrn_restrictions = reject > smtpd_helo_required = yes > smtpd_recipient_restrictions = permit_mynetworks, > permit_sasl_authenticated, ? ? ? reject_unauth_destination, > reject_invalid_hostname, ? ? ? ?reject_non_fqdn_hostname, > reject_unknown_sender_domain, ? reject_non_fqdn_sender, > reject_non_fqdn_recipient, ? ? ?reject_rbl_client cbl.abuseat.org, > ?reject_rbl_client bl.spamcop.net > smtpd_sasl_auth_enable = yes > smtpd_sasl_authenticated_header = yes > smtpd_sasl_path = private/auth > smtpd_sasl_type = dovecot > smtpd_tls_cert_file = /etc/ssl/foobar.crt > smtpd_tls_key_file = /etc/ssl/private/foobar.key > smtpd_tls_loglevel = 1 > smtpd_tls_session_cache_timeout = 3600s > smtpd_use_tls = yes > tls_random_source = dev:/dev/urandom > virtual_alias_maps = hash:/var/www/datos/correo/virtual/aliases/foobar.com.ar > virtual_gid_maps = static:5001 > virtual_mailbox_base = /var/www/datos/correo > virtual_mailbox_domains = hash:/var/www/datos/correo/virtual/mailbox/domains > virtual_mailbox_maps = hash:/var/www/datos/correo/virtual/mailbox/mailboxes > virtual_minimum_uid = 5000 > virtual_transport = dovecot > virtual_uid_maps = static:5001 > > > I add the line: > > mailbox_command = /usr/lib/dovecot/deliver > > Like Julio says, and works, but now I have this in my dovecot-deliver-error.log: > > May 18 13:39:32 deliver(gonzalor): Error: > open(/var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/tmp/1305736772.M157290P19363.FOOBAR-0010) > failed: Permission denied > May 18 13:42:04 deliver(gonzalor): Error: > open(/var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/dovecot.index.log) > failed: Permission denied (euid=1003(gonzalor) egid=10(users) missing > +w perm: /var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/dovecot.index.log) > May 18 13:42:04 deliver(gonzalor): Error: > open(/var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/tmp/1305736924.M208261P12143.FOOBAR-0010) > failed: Permission denied > > > any hint? > > regards > > 2011/5/18 Julio C. Ortega : >> El 18/05/11 08:38, Gonzalo Rodriguez escribi?: >>> Hi all, >>> >>> I have a problem with my dovecot/postfix configuration: >>> >>> here is my dovecot -n >>> >>> >>> # 1.2.16: /etc/dovecot.conf >>> Warning: fd limit 128 is lower than what Dovecot can use under full >>> load (more than 768). Either grow the limit or change >>> login_max_processes_count and max_mail_processes settings >>> # OS: OpenBSD 4.9 i386 ?nfs >>> base_dir: /var/dovecot/ >>> log_path: /var/log/dovecot >>> protocols: imaps pop3s >>> login_dir: /var/dovecot/login >>> login_executable(default): /usr/local/libexec/dovecot/imap-login >>> login_executable(imap): /usr/local/libexec/dovecot/imap-login >>> login_executable(pop3): /usr/local/libexec/dovecot/pop3-login >>> login_user: _dovecot >>> mail_location: maildir:/var/www/datos/correo/foobar.com.ar/%n:LAYOUT=fs >>> mail_debug: yes >>> mail_nfs_storage: yes >>> mail_nfs_index: yes >>> mbox_write_locks: fcntl >>> mail_executable(default): /usr/local/libexec/dovecot/imap >>> mail_executable(imap): /usr/local/libexec/dovecot/imap >>> mail_executable(pop3): /usr/local/libexec/dovecot/pop3 >>> mail_plugin_dir(default): /usr/local/lib/dovecot/imap >>> mail_plugin_dir(imap): /usr/local/lib/dovecot/imap >>> mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 >>> imap_client_workarounds(default): delay-newmail outlook-idle >>> netscape-eoh tb-extra-mailbox-sep >>> imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh >>> tb-extra-mailbox-sep >>> imap_client_workarounds(pop3): >>> pop3_client_workarounds(default): >>> pop3_client_workarounds(imap): >>> pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh >>> lda: >>> ? mail_plugins: sieve >>> ? postmaster_address: postmaster at foobar.com.ar >>> ? log_path: /var/log/dovecot-deliver-errors.log >>> ? info_log_path: /var/log/dovecot-deliver.log >>> auth default: >>> ? mechanisms: login plain >>> ? verbose: yes >>> ? debug: yes >>> ? debug_passwords: yes >>> ? passdb: >>> ? ? driver: bsdauth >>> ? userdb: >>> ? ? driver: static >>> ? ? args: uid=vmail gid=vmail >>> home=/var/www/datos/correo/foobar.com.ar/%n, allow_all_users=yes >>> ? socket: >>> ? ? type: listen >>> ? ? client: >>> ? ? ? path: /var/spool/postfix/private/auth >>> ? ? ? mode: 432 >>> ? ? ? user: _postfix >>> ? ? ? group: _postfix >>> ? ? master: >>> ? ? ? path: /var/dovecot/auth-master >>> ? ? ? mode: 384 >>> ? ? ? user: vmail >>> ? ? ? group: vmail >>> plugin: >>> ? sieve_global_dir: /var/sieve >>> ? sieve_global_path: /var/sieve/global-default.sieve >>> ? sieve: /var/sieve/%n.sieve >>> >>> >>> I use bsdauth to system users auth againts Active-Directory, and I use >>> dovecot to deliver the mails, in my postfix master.cf I have this: >>> >>> >>> ## Deliver con Dovecot en >>> ## Mailboxes >>> dovecot ? unix ?- ? ? ? n ? ? ? n ? ? ? - ? ? ? - ? ? ? pipe >>> ? flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver >>> -f ${sender} -d ${recipient} >>> >>> >>> >>> The problem is I don't any process like this: >>> >>> >>> pipe -n dovecot -t unix flags=DRhu user=vmail >>> /usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient} >>> >>> >>> And in the dovecot log I don't see anything, but in maillog I have: >>> >>> >>> May 18 09:49:35 FOOBAR-0010 postfix/local[16584]: 8808D26125: >>> to=, relay=local, delay=0.92, >>> delays=0.91/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox) >>> >>> >>> But the mail it's not in the mailbox, what is wrong? any hint? the >>> storage is a NFS with centos. >>> >>> cheers >> >> Greetings Gonzalo. >> >> You should configure postfix to use deliver explicitly. >> >> main.cf: >> mailbox_command = /usr/lib/dovecot/deliver >> >> Kind regards >> >> -- >> ------------------------------------ >> Julio C. Ortega >> ONUVA >> http://www.onuva.com >> >> > From dovecot.user at seibercom.net Wed May 18 21:10:48 2011 From: dovecot.user at seibercom.net (Jerry) Date: Wed, 18 May 2011 14:10:48 -0400 Subject: [Dovecot] Dovecot deliver In-Reply-To: References: <4DD3E8A3.8000603@onuva.com> Message-ID: <20110518141048.2ae08eba@scorpio> On Wed, 18 May 2011 13:47:19 -0300 Gonzalo Rodriguez articulated: > I add the line: > > mailbox_command = /usr/lib/dovecot/deliver Why? You are using virtual delivery. You don't need that. The following is from my master.cf file. It works perfectly. This is on a FreeBSD-8.2 system. dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -a ${recipient} Your problem is with your Postfix configuration. You are asking on the wrong list. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From gonzalo at sepp0.com.ar Wed May 18 21:14:11 2011 From: gonzalo at sepp0.com.ar (Gonzalo Rodriguez) Date: Wed, 18 May 2011 15:14:11 -0300 Subject: [Dovecot] Dovecot deliver In-Reply-To: <20110518141048.2ae08eba@scorpio> References: <4DD3E8A3.8000603@onuva.com> <20110518141048.2ae08eba@scorpio> Message-ID: 2011/5/18 Jerry : > On Wed, 18 May 2011 13:47:19 -0300 > Gonzalo Rodriguez articulated: > >> I add the line: >> >> mailbox_command = /usr/lib/dovecot/deliver > > Why? You are using virtual delivery. You don't need that. > in my main.cf have virtual_transport = dovecot > The following is from my master.cf file. It works perfectly. This is on > a FreeBSD-8.2 system. > > dovecot ? unix ?- ? ? ? n ? ? ? n ? ? ? - ? ? ? - ? ? ? pipe > ?flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} > ?-d ${user}@${nexthop} -a ${recipient} > > Your problem is with your Postfix configuration. You are asking on the > wrong list. > > -- > Jerry ? > Dovecot.user at seibercom.net > > Disclaimer: off-list followups get on-list replies or get ignored. > Please do not ignore the Reply-To header. > __________________________________________________________________ > > From Bartlomiej.Solarz-Niesluchowski at wit.edu.pl Wed May 18 21:21:43 2011 From: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl (=?UTF-8?B?QmFydMWCb21pZWogU29sYXJ6LU5pZXPFgnVjaG93c2tp?=) Date: Wed, 18 May 2011 20:21:43 +0200 Subject: [Dovecot] Dovecot 2.0 (2.0.11) na nfs quota In-Reply-To: <4D809E65.4080402@wit.edu.pl> References: <4D774002.2050109@wit.edu.pl> <4D77678B.5070208@Media-Brokers.com> <4D7773E1.5080604@wit.edu.pl> <4D7778EC.60803@Media-Brokers.com> <4D777E93.8060201@wit.edu.pl> <4D809E65.4080402@wit.edu.pl> Message-ID: <4DD40E37.6060707@wit.edu.pl> W dniu 2011-03-16 12:26, Bart?omiej Solarz-Nies?uchowski pisze: > W dniu 2011-03-09 14:20, Bart?omiej Solarz-Nies?uchowski pisze: >> plugin/quota = fs:INBOX:mount=/var/spool/mail >> plugin/quota2 = fs:Others:user > > OK reason founded. > > On system where was compiled dovecot was no quota-devel package.... > > Now dovecot works correctly. > > BUT > > anybody knows why Mozilla Thunderbird shows quota based only on > plugin/quota2 = fs:Others:user even on INBOX > OKi next problem: after changing dovecot to v. 2.0.12 TB shows quota on INBOX correctly but quota on Send and other mailboxes is noquota: GOOD: 8164[7102b80]: 830c000:imap.wit.edu.pl:A:CreateNewLineFromSocket: 6 OK [READ-WRITE] Select completed. 8164[7102b80]: 830c000:imap.wit.edu.pl:S-INBOX:SendData: 7 getquotaroot "INBOX" 8164[7102b80]: ReadNextLine [stream=5e82428 nb=29 needmore=0] 8164[7102b80]: 830c000:imap.wit.edu.pl:S-INBOX:CreateNewLineFromSocket: * QUOTAROOT "INBOX" "INBOX" 8164[7102b80]: ReadNextLine [stream=5e82428 nb=39 needmore=0] 8164[7102b80]: 830c000:imap.wit.edu.pl:S-INBOX:CreateNewLineFromSocket: * QUOTA "INBOX" (STORAGE 3336 200000) 8164[7102b80]: ReadNextLine [stream=5e82428 nb=30 needmore=0] 8164[7102b80]: 830c000:imap.wit.edu.pl:S-INBOX:CreateNewLineFromSocket: 7 OK Getquotaroot completed. BAD: 7672[71040c0]: 964b000:imap.wit.edu.pl:A:CreateNewLineFromSocket: 2 OK [READ-WRITE] Select completed. 7672[71040c0]: 964b000:imap.wit.edu.pl:S-mail.Sent:SendData: 3 getquotaroot "mail.Sent" 7672[71040c0]: ReadNextLine [stream=95fbe88 nb=16 needmore=0] 7672[71040c0]: 964b000:imap.wit.edu.pl:S-mail.Sent:CreateNewLineFromSocket: 3 OK No quota. 7672[71040c0]: 964b000:imap.wit.edu.pl:S-mail.Sent:SendData: 4 UID fetch 1:* (FLAGS) (CHANGEDSINCE 0) dovecot.conf # 2.0.12: /etc/dovecot/dovecot.conf # OS: Linux 2.6.35.11-83.fc14.x86_64 x86_64 Fedora release 14 (Laughlin) auth_cache_size = 8 k mail_fsync = always mail_location = maildir:~/Maildir:INBOX=/var/spool/mail/%u mail_nfs_index = yes mail_nfs_storage = yes mail_plugins = acl quota zlib trash mail_privileged_group = mail mmap_disable = yes passdb { args = cache_key=%u%r%l max_requests=256 driver = pam } plugin { quota = fs:INBOX:mount=/var/spool/mail quota2 = fs:Others:user quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u } protocols = imap pop3 service anvil { client_limit = 1155 } service auth { client_limit = 5248 user = root } service imap-login { client_limit = 256 inet_listener imap { port = 0 } inet_listener imaps { address = [::], * port = 993 } process_limit = 1024 service_count = 0 } service imap { process_limit = 2048 } service pop3-login { client_limit = 256 inet_listener pop3 { port = 0 } inet_listener pop3s { address = [::], * port = 995 } process_limit = 128 service_count = 0 } service pop3 { process_limit = 2048 } service quota-warning { executable = script /usr/local/bin/quota-warning.sh user = dovenull } ssl_cert = From Bartlomiej.Solarz-Niesluchowski at wit.edu.pl Wed May 18 21:32:43 2011 From: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl (=?UTF-8?B?QmFydMWCb21pZWogU29sYXJ6LU5pZXPFgnVjaG93c2tp?=) Date: Wed, 18 May 2011 20:32:43 +0200 Subject: [Dovecot] Dovecot 2.0 (2.0.11) na nfs quota In-Reply-To: <4DD40E37.6060707@wit.edu.pl> References: <4D774002.2050109@wit.edu.pl> <4D77678B.5070208@Media-Brokers.com> <4D7773E1.5080604@wit.edu.pl> <4D7778EC.60803@Media-Brokers.com> <4D777E93.8060201@wit.edu.pl> <4D809E65.4080402@wit.edu.pl> <4DD40E37.6060707@wit.edu.pl> Message-ID: <4DD410CB.9020300@wit.edu.pl> W dniu 2011-05-18 20:21, Bart?omiej Solarz-Nies?uchowski pisze: > W dniu 2011-03-16 12:26, Bart?omiej Solarz-Nies?uchowski pisze: >> W dniu 2011-03-09 14:20, Bart?omiej Solarz-Nies?uchowski pisze: >>> plugin/quota = fs:INBOX:mount=/var/spool/mail >>> plugin/quota2 = fs:Others:user >> >> OK reason founded. >> >> On system where was compiled dovecot was no quota-devel package.... >> >> Now dovecot works correctly. >> >> BUT >> >> anybody knows why Mozilla Thunderbird shows quota based only on >> plugin/quota2 = fs:Others:user even on INBOX >> > OKi > next problem: > after changing dovecot to v. 2.0.12 TB shows quota on INBOX correctly > but quota on Send and other mailboxes is noquota: Found: fedora 14 has compiled dovecot without nfs quota support Sorry for the noise Best Regards -- Bart?omiej Solarz-Nies?uchowski, Administrator WSISiZ e-mail: Bartlomiej.Solarz-Niesluchowski at wit.edu.pl tel. 223486547, fax 223486501 JID: solarz at jabber.wit.edu.pl 01-447 Warszawa, ul. Newelska 6, pok?j 404, pon.-pt. 8-16 Motto - Jak sobie po?cielisz tak sie wy?pisz -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6020 bytes Desc: S/MIME Cryptographic Signature URL: From dovecot.user at seibercom.net Thu May 19 00:08:43 2011 From: dovecot.user at seibercom.net (Jerry) Date: Wed, 18 May 2011 17:08:43 -0400 Subject: [Dovecot] Dovecot deliver In-Reply-To: References: <4DD3E8A3.8000603@onuva.com> <20110518141048.2ae08eba@scorpio> Message-ID: <20110518170843.5a0844ae@scorpio> On Wed, 18 May 2011 15:14:11 -0300 Gonzalo Rodriguez articulated: > 2011/5/18 Jerry : > > On Wed, 18 May 2011 13:47:19 -0300 > > Gonzalo Rodriguez articulated: > > > >> I add the line: > >> > >> mailbox_command = /usr/lib/dovecot/deliver > > > > Why? You are using virtual delivery. You don't need that. > > > > in my main.cf have virtual_transport = dovecot Which is why you do not need the "mailbox_command" line. What is the output of: pw user show 5001 Again, this really belongs on the Postfix forum. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From anfi at onet.eu Thu May 19 00:25:35 2011 From: anfi at onet.eu (Andrzej Adam Filip) Date: Wed, 18 May 2011 23:25:35 +0200 Subject: [Dovecot] Posfix and Dovecot (dovecot like LDA) and no space left on the disk In-Reply-To: <4AC9F690-85E4-4EF6-998A-29697CCBF3A1@iki.fi> References: <1C40FAA7-948C-4A6D-90CE-8E1622BBE5E2@compsys.cz> <7638EBDA-9290-4CEB-A940-E2E47B938821@iki.fi> <4AC9F690-85E4-4EF6-998A-29697CCBF3A1@iki.fi> Message-ID: <4DD4394F.6020008@onet.eu> On 05/10/2011 08:37 PM, Timo Sirainen wrote: > On 10.5.2011, at 21.32, Andrzej Adam Filip wrote: > >> Do you intent any time soon to provide some hook to alow MTA reject >> in reply to "RCPT TO:" (in SMTP session) messages to over quota >> mailboxes? > > Can you give specifics of what I'd need to do for that? > I remember there is some sendmail protocol that is also supported by > Postfix (I think), but I can't remember specifics (and a bit lazy to > google for it). > v2.0 would finally allow easily implementing such > service. Hmm. I guess such service would both have to check if the > user exists and also the quota value, and give errors about both of them. Both sendmail and postfix support milter protocol/API. Unlike API provided by library the protocol is "not officially" documented. Sendmail/sendmail.cf could also use trivial "socket map" protocol (query->response) [sample Perl scripts implementing it are in contrib directory of sendmail distribution]. IMHO the best honeypot for developers (especially without dovecot expertise) would be simple library providing two functions email_address -> state( does_not_exist, under_quota, over_quota) email_address, message_size -> ( does_not_exist, ....). From errno at cox.net Thu May 19 00:50:54 2011 From: errno at cox.net (errno) Date: Wed, 18 May 2011 14:50:54 -0700 Subject: [Dovecot] integrating procmail Message-ID: <201105181450.54892.errno@cox.net> Hello, list members! I'm new to dovecot, and haven't needed to maintain an email server instance for quite some time. I recently got a fairly simple postfix + dovecot installation functional as needed, however I now need to get procmail filtering incoming mail, and after reading various docs and wikis, I find that I'm still having a tough time feeling confident on how best to approach it in the simplest manner. (this is for a small installation.... 10 email accounts, max). Below, I've provide the relevant snippets of my current functional configuration; how best to integrate procmail into the mix? /etc/postfix/main.cf: ... alias_maps = hash:/etc/mail/aliases local_recipient_maps = hash:/etc/postfix/vmailbox, $alias_maps virtual_transport = dovecot virtual_mailbox_domains = $mydomain virtual_mailbox_base = /var/vmail/ virtual_mailbox_maps = hash:/etc/postfix/vmailbox virtual_minimum_uid = 500 virtual_uid_maps = static:501 virtual_gid_maps = static:501 ... /etc/postfix/master.cf: ... dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f ${sender} - d ${recipient} ... /etc/dovecot/dovecot.conf: ... mail_location = maildir:~/Maildir protocol lda { sendmail_path = /usr/sbin/sendmail } auth default { mechanisms = plain passdb passwd-file { args = /var/vmail/passwd } userdb static { args = uid=vmail gid=vmail home=/var/vmail/%d/%u } socket listen { master { path = /var/run/dovecot/auth-master mode = 0600 user = vmail group = vmail } } } ... Thankyou for any tips, much appreciated! From dovecot.user at seibercom.net Thu May 19 01:07:44 2011 From: dovecot.user at seibercom.net (Jerry) Date: Wed, 18 May 2011 18:07:44 -0400 Subject: [Dovecot] integrating procmail In-Reply-To: <201105181450.54892.errno@cox.net> References: <201105181450.54892.errno@cox.net> Message-ID: <20110518180744.44ecdc76@scorpio> On Wed, 18 May 2011 14:50:54 -0700 errno articulated: > > Hello, list members! > > I'm new to dovecot, and haven't needed to maintain an email server > instance for quite some time. > > I recently got a fairly simple postfix + dovecot installation > functional as needed, however I now need to get procmail filtering > incoming mail, and after reading various docs and wikis, I find that > I'm still having a tough time feeling confident on how best to > approach it in the simplest manner. (this is for a small > installation.... 10 email accounts, max). > > Below, I've provide the relevant snippets of my current functional > configuration; how best to integrate procmail into the mix? Why procmail? Use sieve instead. It is fully supported in Dovecot and IMHO far easier to use. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ . From errno at cox.net Thu May 19 01:20:08 2011 From: errno at cox.net (errno) Date: Wed, 18 May 2011 15:20:08 -0700 Subject: [Dovecot] integrating procmail In-Reply-To: <20110518180744.44ecdc76@scorpio> References: <201105181450.54892.errno@cox.net> <20110518180744.44ecdc76@scorpio> Message-ID: <201105181520.08854.errno@cox.net> On Wednesday, May 18, 2011 03:07:44 PM Jerry wrote: > On Wed, 18 May 2011 14:50:54 -0700 > errno articulated: > > Below, I've provide the relevant snippets of my current functional > > configuration; how best to integrate procmail into the mix? > > Why procmail? Use sieve instead. It is fully supported in Dovecot > and IMHO far easier to use. > I hear you, and agree - I was able to determine that sieve was better supported. Unfortunately, I'm doing this for a client who is rather set in his ways and already has a largish custom procmail filter he wants/needs to use. For me to tell him, "no we need to use sieve instead", he will see that as a failure on my part; and/or will request that I install and configure a different combination of software that will facilitate his familiar territory of procmail. Seeing as I already have postfix and dovecot functioning, I'd rather just get procmail in there and be done with it; is this possible? Thankyou! From Harlan.Stenn at pfcs.com Thu May 19 01:25:25 2011 From: Harlan.Stenn at pfcs.com (Harlan Stenn) Date: Wed, 18 May 2011 18:25:25 -0400 Subject: [Dovecot] integrating procmail In-Reply-To: <201105181520.08854.errno@cox.net> References: <201105181450.54892.errno@cox.net> <20110518180744.44ecdc76@scorpio> <201105181520.08854.errno@cox.net> Message-ID: <20110518222525.E6B482844C@gwc.pfcs.com> I have not tried this: http://www.zimbra.com/forums/users/7239-any-way-add-message-filters-command-line.html H From kjonca at o2.pl Thu May 19 08:04:00 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Thu, 19 May 2011 07:04:00 +0200 Subject: [Dovecot] integrating procmail References: <201105181450.54892.errno@cox.net> <20110518180744.44ecdc76@scorpio> Message-ID: <8739kbz3gf.fsf@alfa.kjonca> Jerry writes: >> Below, I've provide the relevant snippets of my current functional >> configuration; how best to integrate procmail into the mix? > > Why procmail? Use sieve instead. It is fully supported in Dovecot and > IMHO far easier to use. Well, how can I call external program from sieve? (For example for decoding some data, and put them to database?) Is any extension for this? KJ -- http://sporothrix.wordpress.com/2011/01/16/usa-sie-krztusza-kto-nastepny/ GNU is Not Unix From stephan at rename-it.nl Thu May 19 10:07:44 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Thu, 19 May 2011 09:07:44 +0200 Subject: [Dovecot] integrating procmail In-Reply-To: <8739kbz3gf.fsf@alfa.kjonca> References: <201105181450.54892.errno@cox.net> <20110518180744.44ecdc76@scorpio> <8739kbz3gf.fsf@alfa.kjonca> Message-ID: <4DD4C1C0.2000006@rename-it.nl> On 5/19/2011 7:04 AM, Kamil Jo?ca wrote: > Jerry writes: > >>> Below, I've provide the relevant snippets of my current functional >>> configuration; how best to integrate procmail into the mix? >> Why procmail? Use sieve instead. It is fully supported in Dovecot and >> IMHO far easier to use. > Well, how can I call external program from sieve? (For example for > decoding some data, and put them to database?) Is any extension for > this? > KJ Currently, no. Not an official one anyway. We did see the potential of this a few months back and we've built a skeleton implementation of such an extension. 'Skeleton' in this case means that there is a plugin that implements the Sieve language extension, but it does not actually do anything yet. I've documented the language extension as follows: http://hg.rename-it.nl/hidden/pigeonhole-0.2-sieve-pipe/raw-file/tip/doc/rfc/spec-bosch-sieve-pipe.txt I am not sure when we can continue work on this. For security reasons, external programs would not be forked from the Sieve interpreter (LDA/LMTP plugin) directly, but rather using some unix socket and a Dovecot service. It should at least be implemented for Dovecot v2.1. Timo, any comments? Regards, Stephan. From serarien at baqs.net Thu May 19 11:27:04 2011 From: serarien at baqs.net (Pierre) Date: Thu, 19 May 2011 10:27:04 +0200 Subject: [Dovecot] alternative storage taken from sql In-Reply-To: <14EE0F07-C54D-40C2-BD4B-AD4FFA1EF7E1@iki.fi> References: <20110517115955.GA30895@mail3.serarien.com> <14EE0F07-C54D-40C2-BD4B-AD4FFA1EF7E1@iki.fi> Message-ID: <20110519082703.GY14376@mail3.serarien.com> Thanks a lot for quick answer, will try to override it. You were right, it was explicitely written there: http://wiki2.dovecot.org/UserDatabase " mail: Mail location (if needed to override the default mail_location setting) " Pierre On 17/mai - 17:53, Timo Sirainen wrote: > On 17.5.2011, at 14.59, Pierre wrote: > > > I'm looking for a simple way to define alternative storage (ALT parameter in mail_location) > > from userdb query. > > dovecot v2 > > > > Is there a simple way to handle this ? > > The ALT parameter is part of mail_location, so you need to override the entire mail_location. There are many examples how to do that in the wiki, e.g. http://wiki2.dovecot.org/MailLocation#Per-user_mail_locations > From robert at schetterer.org Thu May 19 12:37:32 2011 From: robert at schetterer.org (Robert Schetterer) Date: Thu, 19 May 2011 11:37:32 +0200 Subject: [Dovecot] integrating procmail In-Reply-To: <4DD4C1C0.2000006@rename-it.nl> References: <201105181450.54892.errno@cox.net> <20110518180744.44ecdc76@scorpio> <8739kbz3gf.fsf@alfa.kjonca> <4DD4C1C0.2000006@rename-it.nl> Message-ID: <4DD4E4DC.8070407@schetterer.org> Am 19.05.2011 09:07, schrieb Stephan Bosch: > On 5/19/2011 7:04 AM, Kamil Jo?ca wrote: >> Jerry writes: >> >>>> Below, I've provide the relevant snippets of my current functional >>>> configuration; how best to integrate procmail into the mix? >>> Why procmail? Use sieve instead. It is fully supported in Dovecot and >>> IMHO far easier to use. >> Well, how can I call external program from sieve? (For example for >> decoding some data, and put them to database?) Is any extension for >> this? >> KJ > > Currently, no. Not an official one anyway. > > We did see the potential of this a few months back and we've built a > skeleton implementation of such an extension. 'Skeleton' in this case > means that there is a plugin that implements the Sieve language > extension, but it does not actually do anything yet. I've documented the > language extension as follows: > > http://hg.rename-it.nl/hidden/pigeonhole-0.2-sieve-pipe/raw-file/tip/doc/rfc/spec-bosch-sieve-pipe.txt > > > I am not sure when we can continue work on this. For security reasons, > external programs would not be forked from the Sieve interpreter > (LDA/LMTP plugin) directly, but rather using some unix socket and a > Dovecot service. It should at least be implemented for Dovecot v2.1. yeah that would be extrem nice there always some specials with i.e procmail does better ,not often ,but its nice to have > > Timo, any comments? > > Regards, > > Stephan. > > > -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From anfi at onet.eu Thu May 19 13:54:06 2011 From: anfi at onet.eu (Andrzej Adam Filip) Date: Thu, 19 May 2011 12:54:06 +0200 Subject: [Dovecot] integrating procmail (procmail v. sieve) In-Reply-To: <8739kbz3gf.fsf@alfa.kjonca> ("Kamil =?utf-8?Q?Jo=C5=84ca=22'?= =?utf-8?Q?s?= message of "Thu, 19 May 2011 07:04:00 +0200") References: <201105181450.54892.errno@cox.net> <20110518180744.44ecdc76@scorpio> <8739kbz3gf.fsf@alfa.kjonca> Message-ID: kjonca at o2.pl (Kamil Jo?ca) wrote: > Jerry writes: > >>> Below, I've provide the relevant snippets of my current functional >>> configuration; how best to integrate procmail into the mix? >> >> Why procmail? Use sieve instead. It is fully supported in Dovecot and >> IMHO far easier to use. > > Well, how can I call external program from sieve? (For example for > decoding some data, and put them to database?) Is any extension for > this? KJ I would suggest leaving sieve filtering for most users/mailboxes (delivery via dovecot's deliver) and executing deliver from procmail script of a few exceptions (delivery via procmail). [ I assume postix can be configured to do it ] -- [pl>en: Andrew] Andrzej Adam Filip : anfi at onet.eu I never vote for anyone. I always vote against. -- W. C. Fields From trever.adams at gmail.com Thu May 19 16:20:30 2011 From: trever.adams at gmail.com (Trever L. Adams) Date: Thu, 19 May 2011 07:20:30 -0600 Subject: [Dovecot] possible bug leading to lmtp crashes In-Reply-To: <1305116849.10421.192.camel@hurina> References: <4DAECAAC.3060903@gmail.com> <4DB58F67.4090600@gmail.com> <4DB6FCF7.9070905@gmail.com> <5D19A866-381B-4CA6-B8FF-0F7BCDA36799@iki.fi> <4DBC3F3F.4030605@gmail.com> <1304957973.10421.101.camel@hurina> <4DCA7C6F.40902@gmail.com> <1305116849.10421.192.camel@hurina> Message-ID: <4DD5191E.9040606@gmail.com> On 05/11/2011 06:27 AM, Timo Sirainen wrote: > > That patch only was supposed to make it crash elsewhere, not actually > fix anything. :) > > I just noticed that some asserts were matching the crash times on the different machines. What is strange, I just verified that other than the ldap setup (which only differs where needed for each domain) the configuration of all three machines match perfectly. The two that crash both git the same assert, while the third does not. One that crashes has 384M, the other 2 have 512M. They are pretty much identical installs in every way. The assert: May 17 04:01:02 dovecot: auth: Panic: file ../../src/lib/array.h: line 189 (array_idx_i): assertion failed: (idx * array->element_size < array->buffer->used) This is usually repeated 2 or more times near a crash. On the machine that doesn't crash, I NEVER see this. On the machines that crash, there isn't (or doesn't seem to be) a 1:1 correlation. Trever -- "If destruction be our lot, we must ourselves be its author and finisher. As a nation of freemen, we must live through all time or die by suicide." -- Abraham Lincoln -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From rob0 at gmx.co.uk Thu May 19 17:02:50 2011 From: rob0 at gmx.co.uk (/dev/rob0) Date: Thu, 19 May 2011 09:02:50 -0500 Subject: [Dovecot] integrating procmail In-Reply-To: <201105181520.08854.errno@cox.net> References: <201105181450.54892.errno@cox.net> <20110518180744.44ecdc76@scorpio> <201105181520.08854.errno@cox.net> Message-ID: <20110519140250.GC22540@cardinal> On Wed, May 18, 2011 at 03:20:08PM -0700, errno wrote: > On Wednesday, May 18, 2011 03:07:44 PM Jerry wrote: > > On Wed, 18 May 2011 14:50:54 -0700 > > errno articulated: > > > Below, I've provide the relevant snippets of my current > > > functional configuration; how best to integrate procmail into > > > the mix? > > > > Why procmail? Use sieve instead. It is fully supported in Dovecot > > and IMHO far easier to use. > > I hear you, and agree - I was able to determine that sieve was > better supported. Unfortunately, I'm doing this for a client who is > rather set in his ways and already has a largish custom procmail > filter he wants/needs to use. For me to tell him, "no we need to > use sieve instead", he will see that as a failure on my part; > and/or will request that I install and configure a different > combination of software that will facilitate his familiar territory > of procmail. > > Seeing as I already have postfix and dovecot functioning, I'd rather > just get procmail in there and be done with it; is this possible? This is all on the Postfix side. Leave Dovecot out of it. And it's trivial. main.cf: mydestination = localhost, localhost.$mydomain[, ... ] virtual_alias_maps = (set to something) virtual_alias_maps includes this: real at email.address setnways at localhost Create a Unix user, "setnways". ~setnways/.forward: |/path/to/procmail Populate ~setnways/.procmailrc as desired. Obviously this won't work if you have disabled local(8) delivery. Note: I set reply-to this list, but it would be more appropriate on postfix-users. Start a new thread there if you need help. See also: http://www.postfix.org/virtual.5.html http://www.postfix.org/aliases.5.html http://www.postfix.org/local.8.html And your OS documentation if needed. -- Offlist mail to this address is discarded unless "/dev/rob0" or "not-spam" is in Subject: header From cor at xs4all.nl Thu May 19 18:40:09 2011 From: cor at xs4all.nl (Cor Bosman) Date: Thu, 19 May 2011 17:40:09 +0200 Subject: [Dovecot] fts squat index file not appearing Message-ID: Hey all, im experimenting with squat for a small project but am not having much luck. Debugging tells me squat is being loaded, but the index.search files are not appearing after TEXT/BODY commands. Squat plugin was added to config as well. Anyone have an idea? Cor From gduncan at engr.UVic.CA Thu May 19 03:45:33 2011 From: gduncan at engr.UVic.CA (Gary Duncan) Date: Wed, 18 May 2011 17:45:33 -0700 (PDT) Subject: [Dovecot] How to stop mail_executable from cwd to ~home Message-ID: <20110519004533.C759E3F813F@post.engr.uvic.ca> In our environment home directories are auto-mounted via /home/ including on the server provided mail. Within the various mail services though we try to isolate and override with local /mail/home/ Works well except that dovecot still wants to cd to the real home triggering a useless and potentially hindering automount when it invokes the imap or pop3 process specified by mail_executable, ie an lsof of the process shows cwd of /home/ and the automounted home. It does this even though home is properly overridden within. I suspect this is part of changing to invoke as the user as the *-login process are ok but then they are still running as dovecot. Various recent attempts to explicitly respecify HOME for mail_executable via a wrapper script or using env have been to no avail (as seen below). How can I resolve? And no I don't just want to override /home at the system level. Thanks -- Gary # 1.0.9: /etc/dovecot.conf base_dir: /var/run/dovecot/ syslog_facility: local1 protocols: imap imaps pop3 pop3s listen(default): *:143 listen(imap): *:143 listen(pop3): *:110 ssl_listen(default): *:993 ssl_listen(imap): *:993 ssl_listen(pop3): *:995 ssl_ca_file: /etc/ssl/certs/gd_bundle.crt ssl_cert_file: /etc/ssl/certs/engr.uvic.ca.crt ssl_key_file: /etc/ssl/private/engineeringwildcard.key ssl_parameters_regenerate: 24 disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_log_format_elements: %u [%r] %c login_process_size: 32 login_processes_count: 8 login_max_processes_count: 150 verbose_proctitle: yes first_valid_uid: 100 default_mail_env: mbox:/mail/home/%u/mail/:INBOX=/mail/boxes/%u:INDEX=/mail/indexes/%u mail_location: mbox:/mail/home/%u/mail/:INBOX=/mail/boxes/%u:INDEX=/mail/indexes/%u mbox_read_locks: fcntl dotlock mbox_write_locks: fcntl dotlock mail_executable(default): /bin/env 'HOME=/mail/home/$USER' /usr/libexec/dovecot/imap mail_executable(imap): /bin/env 'HOME=/mail/home/$USER' /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3-home mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(pop3): outlook-idle pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %v.%u pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): oe-ns-eoh outlook-no-nuls auth default: passdb: driver: pam userdb: driver: passwd args: home=/mail/home/%u plugin: home: /mail/home/%u From henri at nerv.fi Thu May 19 21:50:43 2011 From: henri at nerv.fi (Henri Salo) Date: Thu, 19 May 2011 21:50:43 +0300 Subject: [Dovecot] [Dovecot-news] v2.0.13 released In-Reply-To: <1305129141.10421.213.camel@hurina> References: <1305129141.10421.213.camel@hurina> Message-ID: <20110519185043.GK32435@foo.fgeek.fi> On Wed, May 11, 2011 at 06:52:21PM +0300, Timo Sirainen wrote: > http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz > http://dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz.sig > > I've almost managed to read my email backlog, but there are still some > unanswered mails. Feel free to resend if you think I should have > answered some of your mails. > > The most important changes since v2.0.12: > > + Added "doveadm index" command to add unindexed messages into > index/cache. If full text search is enabled, it also adds unindexed > messages to the fts database. > + added "doveadm director dump" command. > + pop3: Added support for showing messages in "POP3 order", which can > be different from IMAP message order. This can be useful for > migrations from other servers. Implemented it for Maildir as 'O' > field in dovecot-uidlist. > - doveconf: Fixed a wrong "subsection has ssl=yes" warning. > - mdbox purge: Fixed wrong warning about corrupted extrefs. > - sdbox: INBOX GUID changed when INBOX was autocreated, leading to > trouble with dsync. > - script-login binary wasn't actually dropping privileges to the > user/group/chroot specified by its service settings. > - Fixed potential crashes and other problems when parsing header names > that contained NUL characters. Header NUL problem got assigned CVE-2011-1929. Best regards, Henri Salo From tss at iki.fi Thu May 19 22:23:31 2011 From: tss at iki.fi (Timo Sirainen) Date: Thu, 19 May 2011 22:23:31 +0300 Subject: [Dovecot] How to stop mail_executable from cwd to ~home In-Reply-To: <20110519004533.C759E3F813F@post.engr.uvic.ca> References: <20110519004533.C759E3F813F@post.engr.uvic.ca> Message-ID: <1305833011.10421.288.camel@hurina> On Wed, 2011-05-18 at 17:45 -0700, Gary Duncan wrote: > Works well except that dovecot still wants to cd to the real home > triggering a useless and potentially hindering automount > when it invokes the imap or pop3 process specified by mail_executable, > ie an lsof of the process shows cwd of /home/ and the automounted home. > > How can I resolve? > # 1.0.9: /etc/dovecot.conf .. > userdb: > driver: passwd > args: home=/mail/home/%u Upgrade to v1.1+ and this home setting will actually work. From dmiller at amfes.com Fri May 20 00:43:46 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Thu, 19 May 2011 14:43:46 -0700 Subject: [Dovecot] Migrate to new server without raw copy Message-ID: I've setup a new virtual machine to run my mail servers. Dovecot is installed and talking with the LDAP server for the user list. Now the question is how to migrate the data from the old Dovecot to the new. The data is stored in mdbox, with some possible corruption. Accordingly, any form of simple file copy is not the answer - I need the messages to be processed by something and then stored fresh on the new server. I do have NFS access both ways if that does anything. I tried imapsync - but it quickly broke on some of the messages. Is dsync the answer? Or do I use a MUA and drag-n-drop the messages a batch at a time between the servers? -- Daniel From jk at jkart.de Fri May 20 00:57:41 2011 From: jk at jkart.de (Jim Knuth) Date: Thu, 19 May 2011 23:57:41 +0200 Subject: [Dovecot] xi.rename-it.nl down? Message-ID: <4DD59255.4020002@jkart.de> Hello, http://xi.rename-it.nl/debian/dists/stable-auto/dovecot-2.0 not available? -- Mit freundlichen Gr??en, with kind regards, Jim Knuth --------- Mit dem Geist ist es wie mit dem Magen: Mann kann ihm nur Dinge zumuten, die er verdauen kann. [Churchill] From dmiller at amfes.com Fri May 20 01:01:55 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Thu, 19 May 2011 15:01:55 -0700 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: References: Message-ID: On 5/19/2011 8:40 AM, Cor Bosman wrote: > Hey all, im experimenting with squat for a small project but am not having much luck. Debugging tells me squat is being loaded, but the index.search files are not appearing after TEXT/BODY commands. Squat plugin was added to config as well. > > Anyone have an idea? > > Cor > +1 -- Daniel From stephan at rename-it.nl Fri May 20 01:13:23 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Fri, 20 May 2011 00:13:23 +0200 Subject: [Dovecot] Released Pigeonhole Sieve v0.1.19 and ManageSieve v0.11.13 for Dovecot v1.2.17 Message-ID: <4DD59603.9030005@rename-it.nl> Hello Dovecot users, As promised, I hereby release new versions of Sieve and ManageSieve for Dovecot v1.2. These releases consist entirely of (backported) bugfixes and introduce no new features. There is a good chance that these are the last releases for Dovecot v1.2. Changelog Sieve v0.1.19: - Enotify extension: fixed inappropriate return type in mailto URI parse function, also fixing ARM compiler warning. - Vacation extension: fixed handling of sendmail errors. It produced an additional confusing success message in case of error. - Removed header MIME-decoding to fix erroneous address parsing. Applies to address test and vacation command. Changelog ManageSieve v0.11.13: - ManageSieve: fixed bug in UTF-8 checking of string values. The releases are available as follows: Sieve http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-sieve-0.1.19.tar.gz http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-sieve-0.1.19.tar.gz.sig ManageSieve http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-managesieve-0.11.13.tar.gz http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-managesieve-0.11.13.tar.gz.sig ManageSieve patch http://www.rename-it.nl/dovecot/1.2/dovecot-1.2.17-managesieve-0.11.13.diff.gz http://www.rename-it.nl/dovecot/1.2/dovecot-1.2.17-managesieve-0.11.13.diff.gz.sig Refer to http://pigeonhole.dovecot.org and the Dovecot wiki for more information. Don't hesitate to notify me when there are any problems. Regards, -- Stephan Bosch stephan at rename-it.nl From stephan at rename-it.nl Fri May 20 01:36:50 2011 From: stephan at rename-it.nl (Stephan Bosch) Date: Fri, 20 May 2011 00:36:50 +0200 Subject: [Dovecot] xi.rename-it.nl down? In-Reply-To: <4DD59255.4020002@jkart.de> References: <4DD59255.4020002@jkart.de> Message-ID: <4DD59B82.5010900@rename-it.nl> On 05/19/2011 11:57 PM, Jim Knuth wrote: > Hello, > > http://xi.rename-it.nl/debian/dists/stable-auto/dovecot-2.0 > > not available? > Yes, it is down. The admin is looking into it. I'm not sure when it will be online again. Regards, Stephan. From tss at iki.fi Fri May 20 01:46:27 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 20 May 2011 01:46:27 +0300 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: References: Message-ID: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> On 19.5.2011, at 18.40, Cor Bosman wrote: > Hey all, im experimenting with squat for a small project but am not having much luck. Debugging tells me squat is being loaded, but the index.search files are not appearing after TEXT/BODY commands. Squat plugin was added to config as well. plugin { fts = squat } ? From tss at iki.fi Fri May 20 01:47:30 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 20 May 2011 01:47:30 +0300 Subject: [Dovecot] Migrate to new server without raw copy In-Reply-To: References: Message-ID: <862B63DB-1200-44F1-9A0F-D7F1E8B245C8@iki.fi> On 20.5.2011, at 0.43, Daniel L. Miller wrote: > I've setup a new virtual machine to run my mail servers. Dovecot is installed and talking with the LDAP server for the user list. Now the question is how to migrate the data from the old Dovecot to the new. > > The data is stored in mdbox, with some possible corruption. Accordingly, any form of simple file copy is not the answer - I need the messages to be processed by something and then stored fresh on the new server. I do have NFS access both ways if that does anything. > > I tried imapsync - but it quickly broke on some of the messages. Is dsync the answer? Or do I use a MUA and drag-n-drop the messages a batch at a time between the servers? dsync should work for this.. If you run into any bugs with corruption, I can fix them. From jk at jkart.de Fri May 20 02:11:17 2011 From: jk at jkart.de (Jim Knuth) Date: Fri, 20 May 2011 01:11:17 +0200 Subject: [Dovecot] xi.rename-it.nl down? In-Reply-To: <4DD59B82.5010900@rename-it.nl> References: <4DD59255.4020002@jkart.de> <4DD59B82.5010900@rename-it.nl> Message-ID: <4DD5A395.70802@jkart.de> am 20.05.11 00:36 schrieb Stephan Bosch : > On 05/19/2011 11:57 PM, Jim Knuth wrote: >> Hello, >> >> http://xi.rename-it.nl/debian/dists/stable-auto/dovecot-2.0 >> >> not available? >> > > > Yes, it is down. The admin is looking into it. I'm not sure when it will > be online again. Thanks. Then I want to have sometimes patience. ;) > > Regards, > > Stephan. -- Mit freundlichen Gr??en, with kind regards, Jim Knuth --------- You don't know where your shadow will fall. (Somebody ..) From jtam.home at gmail.com Fri May 20 03:32:00 2011 From: jtam.home at gmail.com (Joseph Tam) Date: Thu, 19 May 2011 17:32:00 -0700 (PDT) Subject: [Dovecot] How to stop mail_executable from cwd to ~home In-Reply-To: References: Message-ID: Gary Duncan writes: > In our environment home directories are auto-mounted via /home/ > including on the server provided mail. > Within the various mail services though we try to isolate > and override with local /mail/home/ > > Works well except that dovecot still wants to cd to the real home > triggering a useless and potentially hindering automount This becomes really apparent if you have an organization wide-mailing list, and one delivery to it causes a flurry of automounts. I similarly replace per-user mounts with a home mount bundle. > when it invokes the imap or pop3 process specified by mail_executable, > ie an lsof of the process shows cwd of /home/ and the automounted home. I see the same behaviour in 2.0.13, which process tracing of imap shows more clearly (/nfs/user is per user mount, /nfs/home/user is user home bundle) ... 4087: getuid() = 12345 [12345] 4087: chdir("/nfs/test") = 0 4087: stat64("/nfs/home/test/mail", 0xFFBFF6C0) = 0 4087: stat64("/nfs/home/test/mail", 0xFFBFF5A0) = 0 4087: stat64("/nfs/home/test/mail", 0xFFBFF6C0) = 0 ... This happens fairly early after imap-login forks and execs the imap process. I'll see if I can find it after building a debug version, but I think Timo will beat me to this. Joseph Tam From urushkin at telros.ru Fri May 20 08:37:03 2011 From: urushkin at telros.ru (Sergey Urushkin) Date: Fri, 20 May 2011 09:37:03 +0400 Subject: [Dovecot] Global fields for passwd-file database Message-ID: <4DD5FDFF.8080308@telros.ru> Is there a way to specify global fields for passwd-file DB? Currently interested in "home" for userdb and "allow_nets" for passworddb. The next doesn't work, of course: passdb passwd-file { args = username_format=%n allow_nets=127.0.0.1 /etc/dovecot/dovecot.passwd.%d } userdb passwd-file { args = username_format=%n home=/var/mail/%d/%n /etc/dovecot/dovecot.passwd.%d } -- Best regards, Sergey Urushkin From cor at xs4all.nl Fri May 20 12:44:11 2011 From: cor at xs4all.nl (Cor Bosman) Date: Fri, 20 May 2011 11:44:11 +0200 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> References: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> Message-ID: On May 20, 2011, at 12:46 AM, Timo Sirainen wrote: > On 19.5.2011, at 18.40, Cor Bosman wrote: > >> Hey all, im experimenting with squat for a small project but am not having much luck. Debugging tells me squat is being loaded, but the index.search files are not appearing after TEXT/BODY commands. Squat plugin was added to config as well. > > plugin { > fts = squat > } No, it was something wholly unexpected to me. OSX Mail refuses to do remote searches. I expected OSX Mail to issue a BODY/TEXT when doing an fts, but it only ever searches local copies. So I cant even set up a remote archive under OSX Mail without first copying all 1 million emails to a local copy. How stupid. When I issues the commands by hand everything worked as expected. Cor From lists at wildgooses.com Fri May 20 12:53:43 2011 From: lists at wildgooses.com (Ed W) Date: Fri, 20 May 2011 10:53:43 +0100 Subject: [Dovecot] Migrate to new server without raw copy In-Reply-To: References: Message-ID: <4DD63A27.4020101@wildgooses.com> On 19/05/2011 22:43, Daniel L. Miller wrote: > I've setup a new virtual machine to run my mail servers. Dovecot is > installed and talking with the LDAP server for the user list. Now the > question is how to migrate the data from the old Dovecot to the new. Different problem, but please also note the fantastic "proxy" feature in dovecot. With a bit of config this allows you to point all your users at the new server, whilst proxying them back to the old server if that's where their mailbox still remains. This dramatically reduces the challenge of migrating a ton of data in a big bang - you can migrate mailbox by mailbox and update the proxy settings for each user as you go. Good luck Ed W From lists at wildgooses.com Fri May 20 13:04:15 2011 From: lists at wildgooses.com (Ed W) Date: Fri, 20 May 2011 11:04:15 +0100 Subject: [Dovecot] dovecot & OCFS2 Cluster In-Reply-To: <1305549997.10421.250.camel@hurina> References: <1304954316.10421.86.camel@hurina> <7718D25E-9056-405B-B6A3-3206286F42B4@iki.fi> <4DD054A1.9030107@localhost.localdomain.org> <4DD0594D.8040504@localhost.localdomain.org> <1305549997.10421.250.camel@hurina> Message-ID: <4DD63C9F.1050306@wildgooses.com> On 16/05/2011 13:46, Timo Sirainen wrote: > On Mon, 2011-05-16 at 14:08 +0200, Osvaldo Alvarez Pozo wrote: > >> But if I erase mail from Mozilla Thunderbird then I find no mail with >> ref count=0 and doveadm purge does nothing. > > doveadm purge only purges mails that have been expunged. So I guess your > TB has only marked mails \Deleted, but not actually expunged anything. Yes, Thunderbird's default is to only mark as deleted (true of many clients I think?). There are some options to encourage it to expunge "more frequently". Also (and you need EVERY user to change this..) you can set your delete action to (say) move the mails to a Trash folder. I think this (mark, then expunge) behaviour is very alien to most email users, it's just not how any other MUA actually behaves (at best they all hide the imap behaviour). There are some features in dovecot to help hide this, but I think it would actually be quite helpful to have a Dovecot feature which literally intercepts an MUA marking messages deleted and whips them into the Trash folder..? Anyway, just a wierdness in IMAP which I think really hasn't worked out as the model of how the rest of the world decided to work. I personally desire this behaviour to go away since it's confusing to 99% of non technical users... Cheers Ed W From dmiller at amfes.com Fri May 20 18:17:56 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Fri, 20 May 2011 08:17:56 -0700 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> References: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> Message-ID: On 5/19/2011 3:46 PM, Timo Sirainen wrote: > On 19.5.2011, at 18.40, Cor Bosman wrote: > >> Hey all, im experimenting with squat for a small project but am not having much luck. Debugging tells me squat is being loaded, but the index.search files are not appearing after TEXT/BODY commands. Squat plugin was added to config as well. > plugin { > fts = squat > } I do have that - but after executing a command such as "doveadm search text -u user at domain.com something", and then following up with a "find /var/mail -iname 'dovecot*' - the only files I see listed are: dovecot.mailbox.log dovecot.map.index.log dovecot.index.log dovecot.index.cache Where are the squat indexes stored? -- Daniel From tss at iki.fi Fri May 20 22:01:36 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 20 May 2011 22:01:36 +0300 Subject: [Dovecot] Global fields for passwd-file database In-Reply-To: <4DD5FDFF.8080308@telros.ru> References: <4DD5FDFF.8080308@telros.ru> Message-ID: <1305918096.10421.370.camel@hurina> On Fri, 2011-05-20 at 09:37 +0400, Sergey Urushkin wrote: > Is there a way to specify global fields for passwd-file DB? No. From tss at iki.fi Fri May 20 22:02:51 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 20 May 2011 22:02:51 +0300 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: References: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> Message-ID: <1305918171.10421.371.camel@hurina> On Fri, 2011-05-20 at 08:17 -0700, Daniel L. Miller wrote: > > plugin { > > fts = squat > > } > > I do have that - but after executing a command such as "doveadm search > text -u user at domain.com something", and then following up with a "find > /var/mail -iname 'dovecot*' - the only files I see listed are: > > dovecot.mailbox.log > dovecot.map.index.log > dovecot.index.log > dovecot.index.cache > > Where are the squat indexes stored? dovecot -n? From kjonca at o2.pl Fri May 20 22:35:39 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Fri, 20 May 2011 21:35:39 +0200 Subject: [Dovecot] Crash test :) Message-ID: <87hb8pxj04.fsf@alfa.kjonca> I'm considering to move my mails from maildir/mbox to mdbox. One of my doubts is: how can I restore my mails when something terrribly wrong happens. I understand that I should use doveadm import "backup_location" "mailbox" all. So I try to import with: doveadm -v import "sdbox:~/Mail/dbox-temp/spamcop/reports/" "#Dbox/spamcop/reports" all #Dbox namespace were defined as: --8<---------------cut here---------------start------------->8--- namespace { hidden = no inbox = no list = yes location = mdbox:~/Mail/Dbox prefix = "#Dbox/" separator = / subscriptions = yes type = private } --8<---------------cut here---------------end--------------->8--- dbox-temp were defined earlier as --8<---------------cut here---------------start------------->8--- namespace { hidden = no inbox = no list = yes location = sdbox:~/Mail/dbox-temp separator = / subscriptions = yes type = private } --8<---------------cut here---------------end--------------->8--- 1. when I specified for example sdbox:~/Mail/dbox-temp/spamcop/reports/ doveadm search mails under ~/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails/ - am I missing something from documentation? (I expected rather ~/Mail/dbox-temp/mailboxes/spamcop/reports/dbox-Mails) 2. when I move dbox-Mails to proper place I got: doveadm(kjonca): Error: sdbox /home/kjonca/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails: Invalid dbox header size doveadm(kjonca): Error: sdbox /home/kjonca/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails: Invalid dbox header size And nothing were imported. Notices: a) there were only u.* files, no indexes. b) u.* files were created on i386 system, and import test on amd64. KJ -- http://blogdebart.pl/2010/03/17/dalsze-przygody-swinki-w-new-jersey/ From tss at iki.fi Fri May 20 22:57:21 2011 From: tss at iki.fi (Timo Sirainen) Date: Fri, 20 May 2011 22:57:21 +0300 Subject: [Dovecot] Crash test :) In-Reply-To: <87hb8pxj04.fsf@alfa.kjonca> References: <87hb8pxj04.fsf@alfa.kjonca> Message-ID: <1B1EBB7C-2A68-41EE-B520-ACB8F55A270B@iki.fi> On 20.5.2011, at 22.35, Kamil Jo?ca wrote: > So I try to import with: > > doveadm -v import "sdbox:~/Mail/dbox-temp/spamcop/reports/" "#Dbox/spamcop/reports" all You probably want something more like: doveadm import sdbox:~/Mail/dbox-temp "#Dbox" mailbox spamcop/reports > dbox-temp were defined earlier as > --8<---------------cut here---------------start------------->8--- > namespace { > hidden = no > inbox = no > list = yes > location = sdbox:~/Mail/dbox-temp > separator = / > subscriptions = yes > type = private > } > --8<---------------cut here---------------end--------------->8--- This isn't needed. > 2. when I move dbox-Mails to proper place I got: > > doveadm(kjonca): Error: sdbox /home/kjonca/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails: Invalid dbox header size What Dovecot version? I think this is fixed already. > b) u.* files were created on i386 system, and import test on amd64. Index files use the same format in 32bit and 64bit systems (but not in little vs big endian). From dmiller at amfes.com Fri May 20 23:33:08 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Fri, 20 May 2011 13:33:08 -0700 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: <1305918171.10421.371.camel@hurina> References: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> <1305918171.10421.371.camel@hurina> Message-ID: On 5/20/2011 12:02 PM, Timo Sirainen wrote: > On Fri, 2011-05-20 at 08:17 -0700, Daniel L. Miller wrote: >>> plugin { >>> fts = squat >>> } >> I do have that - but after executing a command such as "doveadm search >> text -u user at domain.com something", and then following up with a "find >> /var/mail -iname 'dovecot*' - the only files I see listed are: >> >> dovecot.mailbox.log >> dovecot.map.index.log >> dovecot.index.log >> dovecot.index.cache >> >> Where are the squat indexes stored? > dovecot -n? # 2.0.11: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.35-22-server x86_64 Ubuntu 10.10 auth_cache_size = 4 k auth_mechanisms = plain login default_login_user = nobody disable_plaintext_auth = no listen = * mail_attachment_dir = /var/mail/attachments managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date namespace { hidden = no inbox = yes list = yes location = prefix = separator = . subscriptions = yes type = private } passdb { args = /usr/local/etc/dovecot/dovecot-ldap.conf driver = ldap } plugin/fts = squat plugin/fts_squat = partial=4 full=4 plugin/sieve = ~/.dovecot.sieve plugin/sieve_dir = ~/sieve plugin/zlib_save = gz plugin/zlib_save_level = 9 protocols = imap lmtp sieve service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = mail mode = 0600 user = vmail } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = mail mode = 0666 user = vmail } } service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } process_min_avail = 0 service_count = 1 } ssl_cert = References: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> <1305918171.10421.371.camel@hurina> Message-ID: On 20.5.2011, at 23.33, Daniel L. Miller wrote: > # 2.0.11: /usr/local/etc/dovecot/dovecot.conf > # OS: Linux 2.6.35-22-server x86_64 Ubuntu 10.10 .. > protocol imap { > mail_plugins = " fts fts_squat imap_zlib zlib" > } You've enabled fts for imap protocol, nothing else. Same with zlib, which can cause trouble. Make them global: mail_plugins = fts fts_squat zlib protocol imap { mail_plugins = $mail_plugins imap_zlib } From kjonca at o2.pl Sat May 21 00:07:46 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Fri, 20 May 2011 23:07:46 +0200 Subject: [Dovecot] Crash test :) References: <87hb8pxj04.fsf@alfa.kjonca> <1B1EBB7C-2A68-41EE-B520-ACB8F55A270B@iki.fi> Message-ID: <87d3jdxeql.fsf@alfa.kjonca> Timo Sirainen writes: > On 20.5.2011, at 22.35, Kamil Jo?ca wrote: > >> So I try to import with: >> >> doveadm -v import "sdbox:~/Mail/dbox-temp/spamcop/reports/" "#Dbox/spamcop/reports" all > > You probably want something more like: > > doveadm import sdbox:~/Mail/dbox-temp "#Dbox" mailbox spamcop/reports Thanks. > >> 2. when I move dbox-Mails to proper place I got: >> >> doveadm(kjonca): Error: sdbox /home/kjonca/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails: Invalid dbox header size > > What Dovecot version? I think this is fixed already. Um. :( Files were created about 2 months ago. It was certainly 1.x, but now it is hard to say, what exactly version it was. KJ -- http://sporothrix.wordpress.com/2011/01/16/usa-sie-krztusza-kto-nastepny/ Zuzanka najwyra?niej pe?ni obowi?zki Albina Siwaka w tej ekipie... (C) Slawek Kotynski w dyskusj nt. pl.whatewer.SETI at home... From kjonca at o2.pl Sat May 21 01:21:27 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Sat, 21 May 2011 00:21:27 +0200 Subject: [Dovecot] Crash test :) References: <87hb8pxj04.fsf@alfa.kjonca> <1B1EBB7C-2A68-41EE-B520-ACB8F55A270B@iki.fi> <87d3jdxeql.fsf@alfa.kjonca> Message-ID: <87y621vwrc.fsf@alfa.kjonca> kjonca at o2.pl (Kamil Jo?ca) writes: [...] >>> 2. when I move dbox-Mails to proper place I got: >>> >>> doveadm(kjonca): Error: sdbox /home/kjonca/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails: Invalid dbox header size >> >> What Dovecot version? I think this is fixed already. > > Um. :( Files were created about 2 months ago. It was certainly 1.x, but > now it is hard to say, what exactly version it was. But question is open: Can I (and how) restore mails from so old backup? KJ -- http://modnebzdury.wordpress.com/2009/10/01/niewiarygodny-list-prof-majewskiej-wprowadzenie/ Suma inteligencji na planecie jest stala, liczba ludzi powieksza sie. From tss at iki.fi Sat May 21 01:30:22 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 01:30:22 +0300 Subject: [Dovecot] Crash test :) In-Reply-To: <87y621vwrc.fsf@alfa.kjonca> References: <87hb8pxj04.fsf@alfa.kjonca> <1B1EBB7C-2A68-41EE-B520-ACB8F55A270B@iki.fi> <87d3jdxeql.fsf@alfa.kjonca> <87y621vwrc.fsf@alfa.kjonca> Message-ID: <544A05F0-C45F-404B-AF33-D068FCDD1E04@iki.fi> On 21.5.2011, at 1.21, Kamil Jo?ca wrote: >>>> 2. when I move dbox-Mails to proper place I got: >>>> >>>> doveadm(kjonca): Error: sdbox /home/kjonca/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails: Invalid dbox header size >>> >>> What Dovecot version? I think this is fixed already. >> >> Um. :( Files were created about 2 months ago. It was certainly 1.x, but >> now it is hard to say, what exactly version it was. > > But question is open: Can I (and how) restore mails from so old backup? Dovecot v2.0 should be able to read v1.x's dbox files. If it can, it can restore the backups. The only difference I can think of is that in some version I changed the default to have dbox save everything under "mailboxes/" directory. If your backups don't use that directory, you can use something like: doveadm import sdbox:~/Mail/dbox-temp:MAILBOXDIR= "#Dbox" mailbox spamcop/reports From dovecot-user at spambox.dk Sat May 21 02:10:39 2011 From: dovecot-user at spambox.dk (Henrik Larsson) Date: Sat, 21 May 2011 01:10:39 +0200 Subject: [Dovecot] IMAP COMPRESS not announced while using imap_zlib plugin Message-ID: <4DD6F4EF.4050902@spambox.dk> I'm trying to enable the IMAP COMPRESS plugin listed here: http://wiki2.dovecot.org/Plugins/Compress I have added zlib globally and imap_zlib to the imap protocol. This is the output from doveconf -n with regards to mail_plugins: --cut-- mail_plugins = zlib protocol imap { mail_plugins = zlib imap_zlib } --cut But it seem like the feature is not announced when connecting to the IMAP server: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED AUTH=DIGEST-MD5 AUTH=CRAM-MD5] Dovecot ready. I would expect something like COMPRESS=DEFLATE. I haven't enabled any compression for the Maildir files, zlib_save_level and zlib_save is not set. Does IMAP COMPRESS only work if the mailbox is compressed? Best regards Henrik Larsson From tss at iki.fi Sat May 21 02:17:37 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 02:17:37 +0300 Subject: [Dovecot] IMAP COMPRESS not announced while using imap_zlib plugin In-Reply-To: <4DD6F4EF.4050902@spambox.dk> References: <4DD6F4EF.4050902@spambox.dk> Message-ID: <84AA6648-117B-4D93-BB2E-A2E3954AD57B@iki.fi> On 21.5.2011, at 2.10, Henrik Larsson wrote: > But it seem like the feature is not announced when connecting to the IMAP server: > * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED AUTH=DIGEST-MD5 AUTH=CRAM-MD5] Dovecot ready. Log in first. > I would expect something like COMPRESS=DEFLATE. Not yet. From dovecot-user at spambox.dk Sat May 21 02:31:14 2011 From: dovecot-user at spambox.dk (Henrik Larsson) Date: Sat, 21 May 2011 01:31:14 +0200 Subject: [Dovecot] IMAP COMPRESS not announced while using imap_zlib plugin In-Reply-To: <84AA6648-117B-4D93-BB2E-A2E3954AD57B@iki.fi> References: <4DD6F4EF.4050902@spambox.dk> <84AA6648-117B-4D93-BB2E-A2E3954AD57B@iki.fi> Message-ID: <4DD6F9C2.7090301@spambox.dk> >> But it seem like the feature is not announced when connecting to the IMAP server: >> * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED AUTH=DIGEST-MD5 AUTH=CRAM-MD5] Dovecot ready. > Log in first. Thank you Timo, I see it is listed after login. The reason why I didn't check this was the explanation in the RFC. Here the feature is announced before logging in: --cut-- The following example illustrates how commands and responses are compressed during a simple login sequence: S: * OK [CAPABILITY IMAP4REV1 STARTTLS COMPRESS=DEFLATE] C: a starttls S: a OK TLS active --cut-- Is there any way I can see in the logs if IMAP COMPRESS is used? Best regards Henrik Larsson From dovecot-user at spambox.dk Sat May 21 02:51:08 2011 From: dovecot-user at spambox.dk (Henrik Larsson) Date: Sat, 21 May 2011 01:51:08 +0200 Subject: [Dovecot] Dovecot stops with "Fatal: kevent(): Invalid argument" In-Reply-To: <4DCE8161.8020109@spambox.dk> References: <4DC1D95D.3070603@spambox.dk> <4DCE8161.8020109@spambox.dk> Message-ID: <4DD6FE6C.6010607@spambox.dk> >> That patch doesn't fix anything. It only changes the error message to >> be more informative so I could figure out what is causing it. If you >> haven't seen any more errors, it's just a coincidence. > > I have for some reason not seen the error since applying the above > patch. But wouldn't it make sense to include the patch in the stable > release so others can give input in the rare case they experience the > same issue? At least until the issue has been resolved. > > I don't say that this is a Dovecot issue, and I admit that it have to > be a rare case, but when two independent people experience the same > error, there have to be a problem somewhere. Is there a problem adding a patch like this to the stable code? Should I ask the FreeBSD dovecot2 port maintainer to add it to the FreeBSD port instead? Best regards Henrik Larsson From urushkin at telros.ru Sat May 21 10:23:50 2011 From: urushkin at telros.ru (Sergey Urushkin) Date: Sat, 21 May 2011 11:23:50 +0400 Subject: [Dovecot] Global fields for passwd-file database In-Reply-To: <1305918096.10421.370.camel@hurina> References: <4DD5FDFF.8080308@telros.ru> <1305918096.10421.370.camel@hurina> Message-ID: <68c1d4c1-2f4b-411c-ac2a-df6b806ff5f0@email.android.com> And no hope it'll be implemented ever? -- Best regards, Sergey Urushkin Timo Sirainen wrote: On Fri, 2011-05-20 at 09:37 +0400, Sergey Urushkin wrote: > Is there a way to specify global fields for passwd-file DB? No. From jtam.home at gmail.com Sat May 21 10:51:34 2011 From: jtam.home at gmail.com (Joseph Tam) Date: Sat, 21 May 2011 00:51:34 -0700 (PDT) Subject: [Dovecot] How to stop mail_executable from cwd to ~home In-Reply-To: References: Message-ID: On Thu, 19 May 2011, I wrote: > Gary Duncan writes: > >> Works well except that dovecot still wants to cd to the real home >> triggering a useless and potentially hindering automount when it >> invokes the imap or pop3 process specified by mail_executable, ie an >> lsof of the process shows cwd of /home/ and the automounted >> home. > > I see the same behaviour in 2.0.13, which process tracing of imap > shows more clearly (/nfs/user is per user mount, /nfs/home/user > is user home bundle) This appears to be done (v2.0.13) in mail-storage-service.c in an attempt to make sure core files are dumped into a user's home directory if ((user->flags & MAIL_STORAGE_SERVICE_FLAG_TEMP_PRIV_DROP) != 0 && (user->flags & MAIL_STORAGE_SERVICE_FLAG_ENABLE_CORE_DUMPS) == 0) { /* we don't want to write core files to any users' home directories since they could contain information about other users' mails as well. so do no chdiring to home. */ } else if (*home != '\0' && (user->flags & MAIL_STORAGE_SERVICE_FLAG_NO_CHDIR) == 0) { /* If possible chdir to home directory, so that core file could be written in case we crash. */ if (chdir(home) < 0) { ... debug diagnostics ... } } As to how to stop the mail process from chdir'ing to a home directory rather than putting core files somewhere else, I don't know how to do it without altering the source code or wrapping these processes in something that alters the HOME environment variable. I also can't find how user->flags sets MAIL_STORAGE_SERVICE_FLAG_NO_CHDIR or MAIL_STORAGE_SERVICE_FLAG_ENABLE_CORE_DUMPS that could influence this behaviour. Joseph Tam From tss at iki.fi Sat May 21 18:52:08 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 18:52:08 +0300 Subject: [Dovecot] How to stop mail_executable from cwd to ~home In-Reply-To: References: Message-ID: On 21.5.2011, at 10.51, Joseph Tam wrote: > On Thu, 19 May 2011, I wrote: > >> Gary Duncan writes: >> >>> Works well except that dovecot still wants to cd to the real home >>> triggering a useless and potentially hindering automount when it >>> invokes the imap or pop3 process specified by mail_executable, ie an >>> lsof of the process shows cwd of /home/ and the automounted >>> home. >> I see the same behaviour in 2.0.13, which process tracing of imap >> shows more clearly (/nfs/user is per user mount, /nfs/home/user >> is user home bundle) > > This appears to be done (v2.0.13) in mail-storage-service.c in an attempt to > make sure core files are dumped into a user's home directory That's one reason, yes. It's also needed when doing chrooting. And in general it's cleaner.. > As to how to stop the mail process from chdir'ing to a home directory If you don't want Dovecot to use a home directory, don't tell it a home directory. From tss at iki.fi Sat May 21 18:54:55 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 18:54:55 +0300 Subject: [Dovecot] Dovecot stops with "Fatal: kevent(): Invalid argument" In-Reply-To: <4DD6FE6C.6010607@spambox.dk> References: <4DC1D95D.3070603@spambox.dk> <4DCE8161.8020109@spambox.dk> <4DD6FE6C.6010607@spambox.dk> Message-ID: On 21.5.2011, at 2.51, Henrik Larsson wrote: > >>> That patch doesn't fix anything. It only changes the error message to be more informative so I could figure out what is causing it. If you haven't seen any more errors, it's just a coincidence. >> >> I have for some reason not seen the error since applying the above patch. But wouldn't it make sense to include the patch in the stable release so others can give input in the rare case they experience the same issue? At least until the issue has been resolved. >> >> I don't say that this is a Dovecot issue, and I admit that it have to be a rare case, but when two independent people experience the same error, there have to be a problem somewhere. > > Is there a problem adding a patch like this to the stable code? Annoying to add ugly debug code for a problem that happens so rarely.. > Should I ask the FreeBSD dovecot2 port maintainer to add it to the FreeBSD port instead? I wouldn't mind them adding it. From tss at iki.fi Sat May 21 18:56:28 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 18:56:28 +0300 Subject: [Dovecot] IMAP COMPRESS not announced while using imap_zlib plugin In-Reply-To: <4DD6F9C2.7090301@spambox.dk> References: <4DD6F4EF.4050902@spambox.dk> <84AA6648-117B-4D93-BB2E-A2E3954AD57B@iki.fi> <4DD6F9C2.7090301@spambox.dk> Message-ID: <3DF97395-0599-4BB8-9774-F9B62E464C16@iki.fi> On 21.5.2011, at 2.31, Henrik Larsson wrote: > Is there any way I can see in the logs if IMAP COMPRESS is used? Not currently. Would be nice in the logout message I guess. From tss at iki.fi Sat May 21 18:59:18 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 18:59:18 +0300 Subject: [Dovecot] Global fields for passwd-file database In-Reply-To: <68c1d4c1-2f4b-411c-ac2a-df6b806ff5f0@email.android.com> References: <4DD5FDFF.8080308@telros.ru> <1305918096.10421.370.camel@hurina> <68c1d4c1-2f4b-411c-ac2a-df6b806ff5f0@email.android.com> Message-ID: <06B571C1-45D0-434D-8D82-BF89B1BF1103@iki.fi> On 21.5.2011, at 10.23, Sergey Urushkin wrote: > And no hope it'll be implemented ever? I guess a generic implementation could be added: passdb { # overridden by passdb entries extra_fields_defaults = uid=1000 gid=1000 # these override the passdb entries extra_fields_overrides = home=/home/%u } And the same for userdb. Although I don't really like those setting names. Wonder if there are some better ones. From tss at iki.fi Sat May 21 23:23:41 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 23:23:41 +0300 Subject: [Dovecot] Behavior difference in mbox versus Maildir listing In-Reply-To: <20110521221618.7736bf28@neptune.home> References: <20110521221618.7736bf28@neptune.home> Message-ID: On 21.5.2011, at 23.16, Bruno Pr?mont wrote: > The resulting IMAPv4 session is: > mb1 LIST "" "#mbox.%" > * LIST (\Noselect \HasChildren) "." "#mbox.folder" > mb1 OK List completed. > mb2 LIST "" "#mbox.folder.%" > * LIST (\Noselect \HasChildren) "." "#mbox.folder." > * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1a" > * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1b" > * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1c" > mb2 OK List completed. > md1 LIST "" "#maildir.%" > * LIST (\HasChildren) "." "#maildir.folder" > md1 OK List completed. > md2 LIST "" "#maildir.folder.%" > * LIST (\HasNoChildren) "." "#maildir.folder.folder1a" > * LIST (\HasNoChildren) "." "#maildir.folder.folder1b" > * LIST (\HasNoChildren) "." "#maildir.folder.folder1c" > md2 OK List completed. > > Notice the extra presence of listed folder itself with trailing "." > in mb2 that has no equivalent in md2! > > Is this expected listing behavior? If so, why the differing behavior > between both storage engines? It's expected, although maybe not the best behavior. I'm basically copying UW-IMAP behavior for mbox and Courier/Cyrus behavior for Maildir. There are more detailed reasons for why the "#mbox.folder." should be listed, which are described by Mark Crispin somewhere in imap-protocol mailing list archives I think. I've been thinking about making dbox and Maildir (and maybe mbox) behavior identical though.. From bonbons at linux-vserver.org Sat May 21 23:16:18 2011 From: bonbons at linux-vserver.org (Bruno =?UTF-8?B?UHLDqW1vbnQ=?=) Date: Sat, 21 May 2011 22:16:18 +0200 Subject: [Dovecot] Behavior difference in mbox versus Maildir listing Message-ID: <20110521221618.7736bf28@neptune.home> Hi, My MUA (claws-mail) is having a hard time listing directories for a mail account with two namespaces, one of which using mbox and the other one using maildir to store mails. Let's call the namespaces "#mbox." and "#maildir." and have "." as separator. Assume I have the following folder hierarchy: $namespace $namespace folder $namespace folder folder1a $namespace folder folder1b $namespace folder folder1c The resulting IMAPv4 session is: mb1 LIST "" "#mbox.%" * LIST (\Noselect \HasChildren) "." "#mbox.folder" mb1 OK List completed. mb2 LIST "" "#mbox.folder.%" * LIST (\Noselect \HasChildren) "." "#mbox.folder." * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1a" * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1b" * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1c" mb2 OK List completed. md1 LIST "" "#maildir.%" * LIST (\HasChildren) "." "#maildir.folder" md1 OK List completed. md2 LIST "" "#maildir.folder.%" * LIST (\HasNoChildren) "." "#maildir.folder.folder1a" * LIST (\HasNoChildren) "." "#maildir.folder.folder1b" * LIST (\HasNoChildren) "." "#maildir.folder.folder1c" md2 OK List completed. Notice the extra presence of listed folder itself with trailing "." in mb2 that has no equivalent in md2! Is this expected listing behavior? If so, why the differing behavior between both storage engines? Affected dovecot versions: at least 1.1.16 and 2.0.11 (installed from Gentoo packages) System is x86 on XFS Thanks, Bruno -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From bonbons at linux-vserver.org Sat May 21 23:35:31 2011 From: bonbons at linux-vserver.org (Bruno =?UTF-8?B?UHLDqW1vbnQ=?=) Date: Sat, 21 May 2011 22:35:31 +0200 Subject: [Dovecot] Behavior difference in mbox versus Maildir listing In-Reply-To: References: <20110521221618.7736bf28@neptune.home> Message-ID: <20110521223531.3dd953fb@neptune.home> On Sat, 21 May 2011 Timo Sirainen wrote: > On 21.5.2011, at 23.16, Bruno Pr?mont wrote: > > > The resulting IMAPv4 session is: > > mb1 LIST "" "#mbox.%" > > * LIST (\Noselect \HasChildren) "." "#mbox.folder" > > mb1 OK List completed. > > mb2 LIST "" "#mbox.folder.%" > > * LIST (\Noselect \HasChildren) "." "#mbox.folder." > > * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1a" > > * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1b" > > * LIST (\NoInferiors \UnMarked) "." "#mbox.folder.folder1c" > > mb2 OK List completed. > > md1 LIST "" "#maildir.%" > > * LIST (\HasChildren) "." "#maildir.folder" > > md1 OK List completed. > > md2 LIST "" "#maildir.folder.%" > > * LIST (\HasNoChildren) "." "#maildir.folder.folder1a" > > * LIST (\HasNoChildren) "." "#maildir.folder.folder1b" > > * LIST (\HasNoChildren) "." "#maildir.folder.folder1c" > > md2 OK List completed. > > > > Notice the extra presence of listed folder itself with trailing "." > > in mb2 that has no equivalent in md2! > > > > Is this expected listing behavior? If so, why the differing behavior > > between both storage engines? > > It's expected, although maybe not the best behavior. I'm basically > copying UW-IMAP behavior for mbox and Courier/Cyrus behavior for > Maildir. There are more detailed reasons for why the "#mbox.folder." > should be listed, which are described by Mark Crispin somewhere in > imap-protocol mailing list archives I think. I've been thinking about > making dbox and Maildir (and maybe mbox) behavior identical though.. Hm, at least claws-mail (it uses libetpan) does not survive listing the #mbox namespace here, it loops listing the same folder until it crashes. The mbox behavior must have changed during 1.1.* series as some time ago I could refresh the folder list (unless claws-mail/libetpan changed their approach of listing folders recently) Reporting bug over there as crashing/infinite-looping MUA is bad. If you have a pointer to the detailed reasons for the differing behavior I would appreciate so I could add it to the bug report. Thanks, Bruno -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From tss at iki.fi Sat May 21 23:42:39 2011 From: tss at iki.fi (Timo Sirainen) Date: Sat, 21 May 2011 23:42:39 +0300 Subject: [Dovecot] Behavior difference in mbox versus Maildir listing In-Reply-To: <20110521223531.3dd953fb@neptune.home> References: <20110521221618.7736bf28@neptune.home> <20110521223531.3dd953fb@neptune.home> Message-ID: <6BC7D198-F40F-4736-9BBE-66D71F80F6E6@iki.fi> On 21.5.2011, at 23.35, Bruno Pr?mont wrote: >> It's expected, although maybe not the best behavior. I'm basically >> copying UW-IMAP behavior for mbox and Courier/Cyrus behavior for >> Maildir. There are more detailed reasons for why the "#mbox.folder." >> should be listed, which are described by Mark Crispin somewhere in >> imap-protocol mailing list archives I think. I've been thinking about >> making dbox and Maildir (and maybe mbox) behavior identical though.. > > Hm, at least claws-mail (it uses libetpan) does not survive listing the > #mbox namespace here, it loops listing the same folder until it crashes. Well, then I'd think it always crashes when listing mailboxes with UW-IMAP? If not, it has some special UW-IMAP specific crash-avoidance code.. > If you have a pointer to the detailed reasons for the differing behavior > I would appreciate so I could add it to the bug report. Well, one such link is http://marc.info/?l=imap&m=104561252904979&w=2 but there are probably better. From bonbons at linux-vserver.org Sun May 22 01:04:30 2011 From: bonbons at linux-vserver.org (Bruno =?UTF-8?B?UHLDqW1vbnQ=?=) Date: Sun, 22 May 2011 00:04:30 +0200 Subject: [Dovecot] Behavior difference in mbox versus Maildir listing In-Reply-To: <6BC7D198-F40F-4736-9BBE-66D71F80F6E6@iki.fi> References: <20110521221618.7736bf28@neptune.home> <20110521223531.3dd953fb@neptune.home> <6BC7D198-F40F-4736-9BBE-66D71F80F6E6@iki.fi> Message-ID: <20110522000430.133dd730@neptune.home> On Sat, 21 May 2011 Timo Sirainen wrote: > On 21.5.2011, at 23.35, Bruno Pr?mont wrote: > >> It's expected, although maybe not the best behavior. I'm basically > >> copying UW-IMAP behavior for mbox and Courier/Cyrus behavior for > >> Maildir. There are more detailed reasons for why the "#mbox.folder." > >> should be listed, which are described by Mark Crispin somewhere in > >> imap-protocol mailing list archives I think. I've been thinking about > >> making dbox and Maildir (and maybe mbox) behavior identical though.. > > > > Hm, at least claws-mail (it uses libetpan) does not survive listing the > > #mbox namespace here, it loops listing the same folder until it crashes. > > Well, then I'd think it always crashes when listing mailboxes with UW-IMAP? > If not, it has some special UW-IMAP specific crash-avoidance code.. Don't know if it has heuristics (grepping whole source e.g. for UW-IMAP yields not hit) but it proceeds as one would expect when separator is '/' instead of '.'... (going to check with another separator char just to see!) > > If you have a pointer to the detailed reasons for the differing behavior > > I would appreciate so I could add it to the bug report. > > Well, one such link is http://marc.info/?l=imap&m=104561252904979&w=2 but > there are probably better. Ok, so this would mean that the Maildir storage should also list the parent folder as is done for mbox? If other MTAs show trouble it might be worth having a config flag in dovecot tell if parent folder should be listed or not (for all engines)... Bruno -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From dmiller at amfes.com Sun May 22 05:59:02 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Sat, 21 May 2011 19:59:02 -0700 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: References: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> <1305918171.10421.371.camel@hurina> Message-ID: On 5/20/2011 1:37 PM, Timo Sirainen wrote: > On 20.5.2011, at 23.33, Daniel L. Miller wrote:.. >> protocol imap { >> mail_plugins = " fts fts_squat imap_zlib zlib" >> } > You've enabled fts for imap protocol, nothing else. Same with zlib, which can cause trouble. Make them global: > > mail_plugins = fts fts_squat zlib > protocol imap { > mail_plugins = $mail_plugins imap_zlib > } > Amazing - that works! Now...WHY does that work?! I thought I was doing the RIGHT thing by using the individual protocol plugin variables - not including plugins in areas that I THOUGHT were unnecessary. If there are plugins that need to be global (and there obviously are) - please indicate so in the wiki. -- Daniel From dmiller at amfes.com Sun May 22 06:04:01 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Sat, 21 May 2011 20:04:01 -0700 Subject: [Dovecot] fts crash Message-ID: I've completed my mailbox rebuild - theoretically I should be free of corruption. I used dsync to export from mdbox to maildir (so should be clean) then used a virtual machine with Dovecot to import back to mdbox in another location. So...theoretically I should be free of all corruption now... Running an fts update - "doveadm search text -u user at domain.com xyzzyx" works on some users - other mailboxes crash with: doveadm(dmiller at amfes.com): Panic: file squat-trie.c: line 876 (squat_build_word): assertion failed: (i + bytelen <= size) doveadm(dmiller at amfes.com): Error: Raw backtrace: /usr/local/lib/dovecot/libdovecot.so.0(+0x3ccca) [0x7ffee92b6cca] -> /usr/local/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x32) [0x7ffee92b6db2] -> /usr/local/lib/dovecot/libdovecot.so.0(+0x16dda) [0x7ffee9290dda] -> /usr/local/lib/dovecot/lib21_fts_squat_plugin.so(+0x5bbd) [0x7ffee6607bbd] -> /usr/local/lib/dovecot/lib21_fts_squat_plugin.so(squat_trie_build_more+0x153) [0x7ffee6607d13] -> /usr/local/lib/dovecot/lib20_fts_plugin.so(+0x59bc) [0x7ffee68159bc] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_search_next_nonblock+0x20) [0x7ffee99ac180] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_search_next+0x26) [0x7ffee99ac1d6] -> doveadm() [0x40ce47] -> doveadm() [0x409304] -> doveadm(doveadm_mail_single_user+0x8c) [0x40961c] -> doveadm() [0x409817] -> doveadm(doveadm_mail_try_run+0x141) [0x409c31] -> doveadm(main+0x3b1) [0x40dfd1] -> /lib/libc.so.6(__libc_start_main+0xfe) [0x7ffee8b09d8e] -> doveadm() [0x408c09] Aborted -- Daniel From dmiller at amfes.com Sun May 22 06:17:16 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Sat, 21 May 2011 20:17:16 -0700 Subject: [Dovecot] fts crash In-Reply-To: <4DD87D21.7080902@amfes.com> References: <4DD87D21.7080902@amfes.com> Message-ID: On 5/21/2011 8:04 PM, Daniel L. Miller wrote: > I've completed my mailbox rebuild - theoretically I should be free of > corruption. I used dsync to export from mdbox to maildir (so should > be clean) then used a virtual machine with Dovecot to import back to > mdbox in another location. So...theoretically I should be free of all > corruption now... > Perhaps I spoke too soon... May 21 20:13:38 bubba dovecot: imap(emiller at amfes.com): Error: FETCH [] for mailbox INBOX UID 1274 got too little data: 4443 vs 5253 May 21 20:13:38 bubba dovecot: imap(emiller at amfes.com): Error: Corrupted index cache file /var/mail/amfes.com/emiller/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: Broken virtual size for mail UID 1274 May 21 20:13:38 bubba dovecot: imap(emiller at amfes.com): Disconnected: FETCH failed bytes=103/5395 -- Daniel From dmiller at amfes.com Sun May 22 06:20:40 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Sat, 21 May 2011 20:20:40 -0700 Subject: [Dovecot] fts crash In-Reply-To: <4DD8803C.3060800@amfes.com> References: <4DD87D21.7080902@amfes.com> <4DD8803C.3060800@amfes.com> Message-ID: On 5/21/2011 8:17 PM, Daniel L. Miller wrote: > On 5/21/2011 8:04 PM, Daniel L. Miller wrote: >> I've completed my mailbox rebuild - theoretically I should be free of >> corruption. I used dsync to export from mdbox to maildir (so should >> be clean) then used a virtual machine with Dovecot to import back to >> mdbox in another location. So...theoretically I should be free of >> all corruption now... >> > Perhaps I spoke too soon... > > May 21 20:13:38 bubba dovecot: imap(emiller at amfes.com): Error: FETCH > [] for mailbox INBOX UID 1274 got too little data: 4443 vs 5253 > May 21 20:13:38 bubba dovecot: imap(emiller at amfes.com): Error: > Corrupted index cache file > /var/mail/amfes.com/emiller/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index.cache: > Broken virtual size for mail UID 1274 > May 21 20:13:38 bubba dovecot: imap(emiller at amfes.com): Disconnected: > FETCH failed bytes=103/5395 > > Note that the above logged error appears from a MUA accessing the mailbox - no log entries from a doveadm search text command. -- Daniel From kjonca at o2.pl Sun May 22 08:27:49 2011 From: kjonca at o2.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Date: Sun, 22 May 2011 07:27:49 +0200 Subject: [Dovecot] Crash test :) References: <87hb8pxj04.fsf@alfa.kjonca> <1B1EBB7C-2A68-41EE-B520-ACB8F55A270B@iki.fi> <87d3jdxeql.fsf@alfa.kjonca> <87y621vwrc.fsf@alfa.kjonca> <544A05F0-C45F-404B-AF33-D068FCDD1E04@iki.fi> Message-ID: <87fwo7wbhm.fsf@alfa.kjonca> Timo Sirainen writes: > On 21.5.2011, at 1.21, Kamil Jo?ca wrote: > >>>>> 2. when I move dbox-Mails to proper place I got: >>>>> >>>>> doveadm(kjonca): Error: sdbox /home/kjonca/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails: Invalid dbox header size >>>> >>>> What Dovecot version? I think this is fixed already. >>> >>> Um. :( Files were created about 2 months ago. It was certainly 1.x, but >>> now it is hard to say, what exactly version it was. >> >> But question is open: Can I (and how) restore mails from so old backup? > > Dovecot v2.0 should be able to read v1.x's dbox files. If it can, it can restore the backups. The only difference I can think of is that in some version I changed the default to have dbox save everything under "mailboxes/" directory. If your backups don't use that directory, you can use something like: > > doveadm import sdbox:~/Mail/dbox-temp:MAILBOXDIR= "#Dbox" mailbox spamcop/reports Unfortunately neither debian 2.0.12 nor 2.0.13 version can import these. Strange thing is that message "Invalid dbox header size" is printed after creating "dovecot-uidvalidity" and dovecot-index* files for source dbox, u.* files are not read at all. KJ -- http://blogdebart.pl/2010/03/17/dalsze-przygody-swinki-w-new-jersey/ "Nie mo?na wlecie? w trzecie tysiaclecie na drzwiach od stodo?y" - biskup polowy WP S?awoj Leszek G??d?. From errno at cox.net Sun May 22 08:53:55 2011 From: errno at cox.net (errno) Date: Sat, 21 May 2011 22:53:55 -0700 Subject: [Dovecot] hardluck w/ sieve Message-ID: <201105212253.55956.errno@cox.net> I've followed the docs here: http://wiki.dovecot.org/LDA/Sieve/Dovecot ... in particular, the 'Per-user Sieve script location' scenario. However, I'm unable to get any behavior that indicates that sieve is functioning correctly - well, functioning _at_all_ would be more accurate. Relevant dovecot.conf: protocol lda { ... mail_plugins = sieve } auth default { ... passdb passwd-file { args = /var/vmail/passwd } userdb static { args = uid=vmail gid=vmail home=/var/vmail/%d/%u } } plugin { sieve = /var/sieve-scripts/%d/%u.sieve } ls -l /var/sieve-scripts/domain.com/user.sieve -rw-r--r-- 1 vmail vmail 224 May 22 00:18 /var/sieve-scripts/domain/user.sieve I of course have an extremely simple rule in the example 'user.sieve' file; but for whatever reasons, no filtering is occurring. Is there anything obvious in my configuration that's broke? How best to debug? Thankyou! From errno at cox.net Sun May 22 09:00:40 2011 From: errno at cox.net (errno) Date: Sat, 21 May 2011 23:00:40 -0700 Subject: [Dovecot] hardluck w/ sieve In-Reply-To: <201105212253.55956.errno@cox.net> References: <201105212253.55956.errno@cox.net> Message-ID: <201105212300.40643.errno@cox.net> On Saturday, May 21, 2011 10:53:55 PM errno wrote: > I've followed the docs here: > > http://wiki.dovecot.org/LDA/Sieve/Dovecot > > ... in particular, the 'Per-user Sieve script location' scenario. > > However, I'm unable to get any behavior that indicates that > sieve is functioning correctly - well, functioning _at_all_ would > be more accurate. > > Relevant dovecot.conf: > > plugin { > sieve = /var/sieve-scripts/%d/%u.sieve > } > ... sheesh, of course the moment I send this it dawns on me what the problem is... The following fixed the issue: plugin { sieve = /var/sieve-scripts/%d/%n.sieve } I was using %u when I should have been using %n. Sorry for the noise! From svoop at delirium.ch Sun May 22 10:21:30 2011 From: svoop at delirium.ch (Sven Schwyn) Date: Sun, 22 May 2011 09:21:30 +0200 Subject: [Dovecot] dovecot-antispam dependencies Message-ID: Hi There's currently a version block for the dovecot and dovecot-antispam packages in Gentoo. Dependencies indicate that dovecot-2.0.11 does not accept dovecot-antispam-1.3. Is this correct or should it work? If not: How about the current rc of version 1.4? Cheers, -sven From tss at iki.fi Sun May 22 11:44:28 2011 From: tss at iki.fi (Timo Sirainen) Date: Sun, 22 May 2011 11:44:28 +0300 Subject: [Dovecot] fts squat index file not appearing In-Reply-To: References: <739E862E-36ED-45A7-892A-41878301FB1B@iki.fi> <1305918171.10421.371.camel@hurina> Message-ID: On 22.5.2011, at 5.59, Daniel L. Miller wrote: > On 5/20/2011 1:37 PM, Timo Sirainen wrote: >> On 20.5.2011, at 23.33, Daniel L. Miller wrote:.. >>> protocol imap { >>> mail_plugins = " fts fts_squat imap_zlib zlib" >>> } >> You've enabled fts for imap protocol, nothing else. Same with zlib, which can cause trouble. Make them global: >> >> mail_plugins = fts fts_squat zlib >> protocol imap { >> mail_plugins = $mail_plugins imap_zlib >> } >> > > Amazing - that works! Now...WHY does that work?! I thought I was doing the RIGHT thing by using the individual protocol plugin variables - not including plugins in areas that I THOUGHT were unnecessary. Sure it worked with imap. But you were trying to use doveadm. doveadm isn't imap.. > If there are plugins that need to be global (and there obviously are) - please indicate so in the wiki. Everything that isn't imap_* should probably be global. That is how all the examples are written. I don't know where/how I could say it better. From trever.adams at gmail.com Sun May 22 14:59:53 2011 From: trever.adams at gmail.com (Trever L. Adams) Date: Sun, 22 May 2011 05:59:53 -0600 Subject: [Dovecot] dovecot-antispam dependencies In-Reply-To: References: Message-ID: <4DD8FAB9.7040001@gmail.com> On 05/22/2011 01:21 AM, Sven Schwyn wrote: > Hi > > There's currently a version block for the dovecot and dovecot-antispam packages in Gentoo. Dependencies indicate that dovecot-2.0.11 does not accept dovecot-antispam-1.3. Is this correct or should it work? If not: How about the current rc of version 1.4? > > Cheers, -sven I believe you will find a much cleaned up version here: http://hg.dovecot.org/dovecot-antispam-plugin/ It will work. Thanks to Eugene for his work. Trever -- "Black holes are where God divided by zero." -- Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From alietsantiesteban at gmail.com Sun May 22 15:46:26 2011 From: alietsantiesteban at gmail.com (Aliet Santiesteban Sifontes) Date: Sun, 22 May 2011 08:46:26 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: <1305043528.10421.143.camel@hurina> References: <4DC3D251.4050004@Media-Brokers.com> <1305043528.10421.143.camel@hurina> Message-ID: Timo, Can you recommend us some benchmarking tools to test the dovecot cluster setup?? Best regards 2011/5/10 Timo Sirainen > I don't think those results look too bad, even the original ones. > imaptest doesn't measure real world performance anyway. Some ideas: > > - Try mdbox instead of sdbox. Cluster filesystems apparently like a few > bigger files better than many small ones. > > - Try imaptest with logout=0 (or =1 or something). Now you're measuring > way too much the login performance. > > - autocreate plugin sucks, especially with logout=100 because it has to > check that all of the mailboxes exist. In v2.1 autocreate plugin is > redesigned to not do any disk I/O. > > On Fri, 2011-05-06 at 23:01 -0400, Aliet Santiesteban Sifontes wrote: > > New results, now with all plugins disabled: > > > > os rhel6 x86_64, GFS2 Lun > > > > Totals: > > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > > 30% 5% > > 1- 4514 2189 2250 4514 4264 6163 709 3403 4260 4292 8726 > > 2- 2827 1409 1389 2827 2765 3951 495 2168 2765 2777 5644 > > 3- 2711 1409 1368 2711 2649 3833 512 2145 2647 2662 5396 > > 4- 1799 912 890 1799 1720 2492 360 1370 1719 1735 3592 > > 5- 3817 1869 1896 3760 3717 5313 575 3026 3715 3737 7616 > > 6- 3296 1583 1628 3296 3215 4585 523 2600 3215 3238 6584 > > > > 2011/5/6 Aliet Santiesteban Sifontes > > > > > the configs: > > > > > > [root at n02 ~]# dovecot -n > > > # 2.0.12: /etc/dovecot/dovecot.conf > > > # OS: Linux 2.6.32-71.24.1.el6.x86_64 x86_64 Red Hat Enterprise Linux > > > Server release 6.0 (Santiago) > > > auth_cache_size = 15 M > > > auth_default_realm = test.com > > > auth_mechanisms = plain login > > > auth_worker_max_count = 60 > > > disable_plaintext_auth = no > > > login_greeting = Server ready. > > > mail_fsync = never > > > mail_location = sdbox:~/sdbox:INDEX=/vmail/index/%n > > > mail_plugins = quota zlib > > > managesieve_notify_capability = mailto > > > managesieve_sieve_capability = fileinto reject envelope > encoded-character > > > vacation subaddress comparator-i;ascii-numeric relational regex > imap4flags > > > copy include variables body enotify environment mailbox date > > > mbox_write_locks = fcntl > > > mmap_disable = yes > > > namespace { > > > inbox = yes > > > location = > > > prefix = > > > separator = / > > > } > > > passdb { > > > args = /etc/dovecot/dovecot-ldap.conf.ext > > > driver = ldap > > > } > > > plugin { > > > autocreate = Sent > > > autocreate2 = Trash > > > autocreate3 = Drafts > > > autocreate4 = Junk > > > autocreate5 = Archives > > > autocreate6 = Templates > > > autosubscribe = Sent > > > autosubscribe2 = Trash > > > autosubscribe3 = Drafts > > > autosubscribe4 = Junk > > > autosubscribe5 = Archives > > > autosubscribe6 = Templates > > > quota = dict:User quota::file:%h/sdbox/dovecot-quota > > > quota_rule = *:storage=250M > > > quota_rule2 = Trash:storage=+50M > > > quota_rule3 = Spam:storage=+25M > > > quota_rule4 = Sent:ignore > > > sieve = ~/.dovecot.sieve > > > sieve_before = /var/vmail/sievescripts/before.d > > > sieve_dir = ~/sieve > > > zlib_save = gz > > > zlib_save_level = 6 > > > } > > > postmaster_address = postmaster at test.com > > > protocols = imap pop3 lmtp sieve > > > service auth { > > > unix_listener auth-userdb { > > > group = vmail > > > mode = 0660 > > > user = root > > > } > > > } > > > service imap-login { > > > service_count = 0 > > > } > > > > > > best regards > > > > > > > > > 2011/5/6 Charles Marcus > > > > > >> On 2011-05-05 7:56 PM, Aliet Santiesteban Sifontes wrote: > > >> > We have used sdbox as mailbox format, and all the user data is > > >> configured in > > >> > LDAP Servers > > >> > > >> It might help Timo to provide some suggestions if you also provide > > >> dovecot -n output... ;) > > >> > > >> -- > > >> > > >> Best regards, > > >> > > >> Charles > > >> > > > > > > > > > From dovecot-user at spambox.dk Sun May 22 16:08:42 2011 From: dovecot-user at spambox.dk (Henrik Larsson) Date: Sun, 22 May 2011 15:08:42 +0200 Subject: [Dovecot] Dovecot stops with "Fatal: kevent(): Invalid argument" In-Reply-To: References: <4DC1D95D.3070603@spambox.dk> <4DCE8161.8020109@spambox.dk> <4DD6FE6C.6010607@spambox.dk> Message-ID: <4DD90ADA.5030801@spambox.dk> >> Is there a problem adding a patch like this to the stable code? > Annoying to add ugly debug code for a problem that happens so rarely.. > But what are the alternatives? Best regards Henrik Larsson From bradley.giesbrecht at gmail.com Sun May 22 18:59:03 2011 From: bradley.giesbrecht at gmail.com (Bradley Giesbrecht) Date: Sun, 22 May 2011 08:59:03 -0700 Subject: [Dovecot] dovecot-antispam dependencies In-Reply-To: <4DD8FAB9.7040001@gmail.com> References: <4DD8FAB9.7040001@gmail.com> Message-ID: On May 22, 2011, at 4:59 AM, Trever L. Adams wrote: > On 05/22/2011 01:21 AM, Sven Schwyn wrote: >> Hi >> >> There's currently a version block for the dovecot and dovecot-antispam packages in Gentoo. Dependencies indicate that dovecot-2.0.11 does not accept dovecot-antispam-1.3. Is this correct or should it work? If not: How about the current rc of version 1.4? >> >> Cheers, -sven > I believe you will find a much cleaned up version here: > http://hg.dovecot.org/dovecot-antispam-plugin/ > > It will work. Thanks to Eugene for his work. It would be nice to make a release of Eugene's dovecot-antispam-plugin so packages can be made. I can find no version or tag info at http://hg.dovecot.org/dovecot-antispam-plugin/. -- Bradley Giesbrecht From trever.adams at gmail.com Sun May 22 20:42:23 2011 From: trever.adams at gmail.com (Trever L. Adams) Date: Sun, 22 May 2011 11:42:23 -0600 Subject: [Dovecot] dovecot-antispam dependencies In-Reply-To: References: <4DD8FAB9.7040001@gmail.com> Message-ID: <4DD94AFF.5080609@gmail.com> On 05/22/2011 09:59 AM, Bradley Giesbrecht wrote: > > It would be nice to make a release of Eugene's dovecot-antispam-plugin so packages can be made. > > I can find no version or tag info at http://hg.dovecot.org/dovecot-antispam-plugin/. > > -- > Bradley Giesbrecht Bradley, Just use the latest versions of the files. It works fine (a long time of using it on three servers here, one of which sees thousands of emails every few hours). If you want a rpm spec, I have made one. Trever -- "millihelen, n.: The amount of beauty required to launch one ship." -- Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From tom at whyscream.net Sun May 22 20:51:19 2011 From: tom at whyscream.net (Tom Hendrikx) Date: Sun, 22 May 2011 19:51:19 +0200 Subject: [Dovecot] dovecot-antispam dependencies In-Reply-To: <4DD94AFF.5080609@gmail.com> References: <4DD8FAB9.7040001@gmail.com> <4DD94AFF.5080609@gmail.com> Message-ID: <4DD94D17.2090909@whyscream.net> On 22/05/11 19:42, Trever L. Adams wrote: > On 05/22/2011 09:59 AM, Bradley Giesbrecht wrote: >> >> It would be nice to make a release of Eugene's dovecot-antispam-plugin so packages can be made. >> >> I can find no version or tag info at http://hg.dovecot.org/dovecot-antispam-plugin/. >> >> -- >> Bradley Giesbrecht > Bradley, > > Just use the latest versions of the files. It works fine (a long time of > using it on three servers here, one of which sees thousands of emails > every few hours). If you want a rpm spec, I have made one. > I would like to see a tagged version too, but trunk works fine here. Since the OP mentions Gentoo, my latest ebuild for dovecot-antispam for 2.x is attached. -- Tom -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: dovecot-antispam-9999.ebuild URL: From bradley.giesbrecht at gmail.com Sun May 22 21:30:21 2011 From: bradley.giesbrecht at gmail.com (Bradley Giesbrecht) Date: Sun, 22 May 2011 11:30:21 -0700 Subject: [Dovecot] dovecot-antispam dependencies In-Reply-To: <4DD94D17.2090909@whyscream.net> References: <4DD8FAB9.7040001@gmail.com> <4DD94AFF.5080609@gmail.com> <4DD94D17.2090909@whyscream.net> Message-ID: On May 22, 2011, at 10:51 AM, Tom Hendrikx wrote: > On 22/05/11 19:42, Trever L. Adams wrote: >> On 05/22/2011 09:59 AM, Bradley Giesbrecht wrote: >>> >>> It would be nice to make a release of Eugene's dovecot-antispam-plugin so packages can be made. >>> >>> I can find no version or tag info at http://hg.dovecot.org/dovecot-antispam-plugin/. >>> >>> -- >>> Bradley Giesbrecht >> Bradley, >> >> Just use the latest versions of the files. It works fine (a long time of >> using it on three servers here, one of which sees thousands of emails >> every few hours). If you want a rpm spec, I have made one. >> > > I would like to see a tagged version too, but trunk works fine here. > Since the OP mentions Gentoo, my latest ebuild for dovecot-antispam for > 2.x is attached. I maintain the MacPorts port of dovecot-antispam. Tags or releases help produce packages with consistent build results. I will go ahead and use a hg changeset and a date for a version to produce my package. -- Bradley Giesbrecht From dmiller at amfes.com Mon May 23 00:05:33 2011 From: dmiller at amfes.com (Daniel L. Miller) Date: Sun, 22 May 2011 14:05:33 -0700 Subject: [Dovecot] zlib Message-ID: How can I enable zlib for reading compressed messages but not writing? -- Daniel From patrickdk at patrickdk.com Mon May 23 02:25:00 2011 From: patrickdk at patrickdk.com (Patrick Domack) Date: Sun, 22 May 2011 19:25:00 -0400 Subject: [Dovecot] zlib In-Reply-To: References: Message-ID: <20110522192500.Horde.1CzVE5LnE6FN2ZtM310kKBA@mail.patrickdk.com> only enable the plugin for pop and imap, but not lda or lmtp modes. Quoting "Daniel L. Miller" : > How can I enable zlib for reading compressed messages but not writing? > > -- > Daniel From jom at grosjo.net Mon May 23 05:14:00 2011 From: jom at grosjo.net (Joan Moreau) Date: Sun, 22 May 2011 21:14:00 -0500 Subject: [Dovecot] SVN Compilation error Message-ID: <2e52d7c774fc5337ff8db83a375193e7@grosjo.net> Hi, Here the error I get (SVN) Making all in dns make[3]: Entering directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src/dns' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src/dns' Making all in ipc make[3]: Entering directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src/ipc' MAKE[3]: *** NO RULE TO MAKE TARGET `ALL'. STOP. make[3]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src/ipc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0' make: *** [all] Error 2 From f.bonnet at esiee.fr Mon May 23 07:45:08 2011 From: f.bonnet at esiee.fr (Frank Bonnet) Date: Mon, 23 May 2011 06:45:08 +0200 Subject: [Dovecot] Debian or Ubuntu packages ? Message-ID: <4DD9E654.10800@esiee.fr> Hello Anyone knows which version of Dovecot 2 are availables on Squeeze Debian or Ubuntu server 10.04 LTS ? Also what is the Linux OS that is must up to date ? Thanks From slusarz at curecanti.org Mon May 23 08:37:45 2011 From: slusarz at curecanti.org (Michael M Slusarz) Date: Sun, 22 May 2011 23:37:45 -0600 Subject: [Dovecot] PERMANENTFLAGS response if ACL seen/write rights are missing Message-ID: <20110522233745.Horde.IKZ7HIF5lbhN2fKpuzehF0A@bigworm.curecanti.org> In dovecot 2.0.13, if a user does not have either s or w ACL rights on a mailbox, PERMANENTFLAGS correctly indicates that the mailbox has not permanent flags: * OK [PERMANENTFLAGS ()] Read-only mailbox. However, if one is set but not the other, the PERMANENTFLAGS list is not being pruned appropriately. For example, for a mailbox with the following flags: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded $Junk) If s is set, but not w, I would expect PERMANENTFLAGS to look like: * OK [PERMANENTFLAGS (\Seen)] If w is set, but not s, I would expect this: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Draft $Forwarded $Junk \*)] However, in both cases I currently see all flags in the mailbox: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded $Junk \*)] michael From urushkin at telros.ru Mon May 23 09:35:41 2011 From: urushkin at telros.ru (Sergey Urushkin) Date: Mon, 23 May 2011 10:35:41 +0400 Subject: [Dovecot] Global fields for passwd-file database In-Reply-To: <06B571C1-45D0-434D-8D82-BF89B1BF1103@iki.fi> References: <4DD5FDFF.8080308@telros.ru> <1305918096.10421.370.camel@hurina> <68c1d4c1-2f4b-411c-ac2a-df6b806ff5f0@email.android.com> <06B571C1-45D0-434D-8D82-BF89B1BF1103@iki.fi> Message-ID: <4DDA003D.4090003@telros.ru> 21.05.2011 19:59, Timo Sirainen wrote: > I guess a generic implementation could be added: At least several people are waiting for it. > passdb { > # overridden by passdb entries > extra_fields_defaults = uid=1000 gid=1000 > > # these override the passdb entries > extra_fields_overrides = home=/home/%u > } > > And the same for userdb. Although I don't really like those setting names. Wonder if there are some better ones. Nothing bad with these names. It's clear even without comments. Thanks. -- Best regards, Sergey Urushkin From robert at schetterer.org Mon May 23 09:43:35 2011 From: robert at schetterer.org (Robert Schetterer) Date: Mon, 23 May 2011 08:43:35 +0200 Subject: [Dovecot] Debian or Ubuntu packages ? In-Reply-To: <4DD9E654.10800@esiee.fr> References: <4DD9E654.10800@esiee.fr> Message-ID: <4DDA0217.9070907@schetterer.org> Am 23.05.2011 06:45, schrieb Frank Bonnet: > Hello > > Anyone knows which version of Dovecot 2 are availables > on Squeeze Debian or Ubuntu server 10.04 LTS ? > you mostly got the latest dove here http://xi.rename-it.nl/debian/ anyway read http://wiki1.dovecot.org/PrebuiltBinaries#Automatically_Built_Packages > Also what is the Linux OS that is must up to date ? mostly last one got released so ubuntu 11.4 should may it be for today *g > > Thanks -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From aperezaranda at yaco.es Mon May 23 14:11:27 2011 From: aperezaranda at yaco.es (Antonio Perez-Aranda) Date: Mon, 23 May 2011 13:11:27 +0200 Subject: [Dovecot] [PATCH] Indexing mail attachments with Dovecot + Solr Message-ID: Indexing mail attachments with Dovecot + Solr. This patch has been tested with these versions: * dovecot 2.0.9 * apache-solr 1.4.1 This is a patch for the fts-solr plugin (that indexes mail messages for Dovecot with Solr). In main stream, the plugin does not index attachments; With this patch, you can index mails and their attachments (pdf, docs, openoffice docs...) . You can get others goodies with this patch and the Solr Config provided, like Synonyms and Stemming (Spanish by default). Attachment indexing is provided by Solr Cell and Tika (ExtractingRequestHandler) * http://wiki.apache.org/solr/ExtractingRequestHandler Synonyms and Stemming are provided by SnowballPorterFilterFactory from Solr Language Analysis: * http://wiki.apache.org/solr/LanguageAnalysis We have tested Solr with Tomcat and Jetty. Tomcat is better to handle UTF-8 and bigger POSTS. Attachments file format supported * http://tika.apache.org/0.9/formats.html At present, attachments in attachments (like, for example, attachments in fordwarded "eml" attachments) are not indexed. Also, keep in mind that there are many types of files, and many variants of the same file type. Per Example, some pdf files are "not readable" by solr pdf reader. Config: There are two new options added to fts_solr property: * index-attachments Enable attachments indexing. * manual-update Avoid index on user search. You can trigger indexing using doveadm search or doveadm index commands. There is a new property for the section plugin to filter the mimetypes that you want to index. * fts_solr_mimetype files with this mimetype will be sent to solr. After integrating solr directory in your solr config, and building Dovecot with fts-solr support and with fts-solr-attachments-r885.patch applied, you can update your dovecot config by adding to your dovecot.conf: ... mail_pluings = $mail_plugins fts fts_solr plugin { fts = solr fts_solr = url=http://solrhost:8983/solr/ break-imap-search index-attachments fts_solr_mimetype = application/x-pdf application/vnd.openxmlformats-officedocument.wordprocessingml.document } ... -- Antonio P?rez-Aranda Alcaide aperezaranda at yaco.es Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Tel?fono +34 954 50 00 57 Fax ? ? ?+34 954 50 09 29 From svoop at delirium.ch Mon May 23 14:35:48 2011 From: svoop at delirium.ch (Sven Schwyn) Date: Mon, 23 May 2011 13:35:48 +0200 Subject: [Dovecot] dovecot-antispam dependencies Message-ID: <5CB9D783-008E-410D-B79C-AE807180D98A@delirium.ch> > I would like to see a tagged version too, but trunk works fine here. > Since the OP mentions Gentoo, my latest ebuild for dovecot-antispam for > 2.x is attached. The thing with Gentoo: Unless a tagged version is created, it's very unlikely that the Gentoo guys update the current ebuild (aka: package) and thus the incompatibility between the dovecot and the dovecot-antispam packages in the package tree remains. Thanks for the ebuild. Cheers, -sven From mw+dovecot.org at lw-systems.de Mon May 23 14:52:59 2011 From: mw+dovecot.org at lw-systems.de (Martin =?utf-8?Q?Werthm=C3=B6ller?=) Date: Mon, 23 May 2011 13:52:59 +0200 Subject: [Dovecot] Hide INBOX prefix on shared mailboxes Message-ID: <20110523115259.GA4676@shpere> Hello List, We've upgraded our Dovecot system from 1.2.4 to 2.0.12. If someone now accesses an inbox of another user at the shared namespace, the folder will be shown as: shared/martin/INBOX The 1.2 installation has shown the folder like shared/martin Is it possible to achieve the "old" behavior? ** Configuration of the namespaces * dovecot 1.2 namespace private { separator = / prefix = #location defaults to mail_location. inbox = yes } namespace shared { separator = / prefix = shared/%%n location = maildir:%%h:INDEX=~/shared/%%n/ subscriptions = no list = children } * dovecot 2.0 namespace { type = private separator = / prefix = #location defaults to mail_location. inbox = yes } namespace { type = shared separator = / prefix = shared/%%n/ location = maildir:%%h:INDEX=~/shared/%%n subscriptions = no list = children } Best regards, Martin Werthmoeller -- LWsystems GmbH & Co. KG ++ http://www.lw-systems.de/impressum Phone: +49 +5455 932132 ++ Fax: +49 +5455 932099 Your experts for Linux, Open Source and IT security. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ LWsystems GmbH & Co. KG Headquaters: Tegelerweg 11, D-49186 Bad Iburg, Germany Phone +49 (0)5455 932132 fax +49 (0)5455 932099 register of commerce: Amtsgericht Osnabr?ck, hra 110668 VAT no. DE23852211 Managing Directors: Dipl.-Ing. Ansgar H. Licher, Bad Iburg, Germany Dipl.-Ing. Martin Werthm?ller, Ibbenb?ren, Germany For further company details please look at: http://www.lw-systems.de/impressum ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ From aperezaranda at yaco.es Mon May 23 14:14:01 2011 From: aperezaranda at yaco.es (Antonio Perez-Aranda) Date: Mon, 23 May 2011 13:14:01 +0200 Subject: [Dovecot] [PATCH] Indexing mail attachments with Dovecot + Solr In-Reply-To: References: Message-ID: Sorry, I forgot to include the attachment. 2011/5/23 Antonio Perez-Aranda : > Indexing mail attachments with Dovecot + Solr. > > This patch has been tested with these versions: > ?* dovecot 2.0.9 > ?* apache-solr 1.4.1 > > This is a patch for the fts-solr plugin (that indexes mail messages > for Dovecot with Solr). In main stream, the plugin does not index > attachments; With this patch, you can index mails and their > attachments (pdf, docs, openoffice docs...) . You can get others > goodies with this patch and the Solr > Config provided, like Synonyms and Stemming (Spanish by default). > > Attachment indexing is provided by Solr Cell and Tika (ExtractingRequestHandler) > ?* http://wiki.apache.org/solr/ExtractingRequestHandler > > Synonyms and Stemming are provided by SnowballPorterFilterFactory from > Solr Language Analysis: > ?* http://wiki.apache.org/solr/LanguageAnalysis > > We have tested Solr with Tomcat and Jetty. Tomcat is better to handle > UTF-8 and bigger POSTS. > > Attachments file format supported > ?* http://tika.apache.org/0.9/formats.html > > At present, attachments in attachments (like, for example, attachments > in fordwarded "eml" attachments) are not indexed. Also, keep in mind > that there are many types of files, and many variants of the same file > type. Per Example, some pdf files are "not readable" by solr pdf > reader. > > Config: > > There are two new options added to fts_solr property: > ?* index-attachments > ? ? ? Enable attachments indexing. > ?* manual-update > ? ? ? Avoid index on user search. You can trigger indexing using > doveadm search or doveadm index commands. > > There is a new property for the section plugin to filter the mimetypes > that you want to index. > ?* fts_solr_mimetype > ? ? ? files with this mimetype will be sent to solr. > > After integrating solr directory in your solr config, and building > Dovecot with fts-solr support and with fts-solr-attachments-r885.patch > applied, you can update your dovecot config by adding to your > dovecot.conf: > > ... > mail_pluings = $mail_plugins fts fts_solr > > plugin { > ? fts = solr > ? fts_solr = url=http://solrhost:8983/solr/ break-imap-search > index-attachments > ? fts_solr_mimetype = application/x-pdf > application/vnd.openxmlformats-officedocument.wordprocessingml.document > } > ... > > > > -- > Antonio P?rez-Aranda Alcaide > aperezaranda at yaco.es > > Yaco Sistemas S.L. > http://www.yaco.es/ > C/ Rioja 5, 41001 Sevilla > Tel?fono +34 954 50 00 57 > Fax ? ? ?+34 954 50 09 29 > -- Antonio P?rez-Aranda Alcaide aperezaranda at yaco.es Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Tel?fono +34 954 50 00 57 Fax ? ? ?+34 954 50 09 29 -------------- next part -------------- A non-text attachment was scrubbed... Name: fts-solr-attachments-r885.tar.gz Type: application/x-gzip Size: 28370 bytes Desc: not available URL: From tom at whyscream.net Mon May 23 15:24:57 2011 From: tom at whyscream.net (Tom Hendrikx) Date: Mon, 23 May 2011 14:24:57 +0200 Subject: [Dovecot] dovecot-antispam dependencies In-Reply-To: <5CB9D783-008E-410D-B79C-AE807180D98A@delirium.ch> References: <5CB9D783-008E-410D-B79C-AE807180D98A@delirium.ch> Message-ID: <4DDA5219.6080207@whyscream.net> On 23/05/11 13:35, Sven Schwyn wrote: >> I would like to see a tagged version too, but trunk works fine >> here. Since the OP mentions Gentoo, my latest ebuild for >> dovecot-antispam for 2.x is attached. > > The thing with Gentoo: Unless a tagged version is created, it's very > unlikely that the Gentoo guys update the current ebuild (aka: > package) and thus the incompatibility between the dovecot and the > dovecot-antispam packages in the package tree remains. > > Thanks for the ebuild. > > Cheers, -sven This was discussed some time ago [1], but it seems as if no real progress has been made since. Maybe we can put some spare time into the points Eugene made? Eugene: is there any progress on the issues listed in the mentioned e-mail? Anything we can help you with? [1] http://marc.info/?l=dovecot&m=128631351625368&w=2 -- Regards, Tom From CMarcus at Media-Brokers.com Mon May 23 15:54:22 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Mon, 23 May 2011 08:54:22 -0400 Subject: [Dovecot] [PATCH] Indexing mail attachments with Dovecot + Solr In-Reply-To: References: Message-ID: <4DDA58FE.8080707@Media-Brokers.com> On 2011-05-23 7:11 AM, Antonio Perez-Aranda wrote: > Indexing mail attachments with Dovecot + Solr. > > This patch has been tested with these versions: > * dovecot 2.0.9 > * apache-solr 1.4.1 Isn't it customary - and logical - to always test/patch against the current stable RELEASE version (ie, 2.0.13)? -- Best regards, Charles From CMarcus at Media-Brokers.com Mon May 23 15:56:15 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Mon, 23 May 2011 08:56:15 -0400 Subject: [Dovecot] Hide INBOX prefix on shared mailboxes In-Reply-To: <20110523115259.GA4676@shpere> References: <20110523115259.GA4676@shpere> Message-ID: <4DDA596F.8030104@Media-Brokers.com> On 2011-05-23 7:52 AM, Martin Werthm?ller wrote: > Hello List, > > We've upgraded our Dovecot system from 1.2.4 to 2.0.12. > > If someone now accesses an inbox of another user at the shared > namespace, the folder will be shown as: > > shared/martin/INBOX > > The 1.2 installation has shown the folder like > > shared/martin > > Is it possible to achieve the "old" behavior? What if Martin shared something other than his INBOX though? I think this is a cosmetic issue that could quickly get ugly since different people might like it shown differently... -- Best regards, Charles From tss at iki.fi Mon May 23 16:13:33 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 23 May 2011 16:13:33 +0300 Subject: [Dovecot] PERMANENTFLAGS response if ACL seen/write rights are missing In-Reply-To: <20110522233745.Horde.IKZ7HIF5lbhN2fKpuzehF0A@bigworm.curecanti.org> References: <20110522233745.Horde.IKZ7HIF5lbhN2fKpuzehF0A@bigworm.curecanti.org> Message-ID: <1306156413.10421.387.camel@hurina> On Sun, 2011-05-22 at 23:37 -0600, Michael M Slusarz wrote: > In dovecot 2.0.13, if a user does not have either s or w ACL rights on > a mailbox, PERMANENTFLAGS correctly indicates that the mailbox has not > permanent flags: Fixed in v2.1: http://hg.dovecot.org/dovecot-2.1/rev/189c9baf840a Too big of a change for v2.0. From tss at iki.fi Mon May 23 16:15:52 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 23 May 2011 16:15:52 +0300 Subject: [Dovecot] zlib In-Reply-To: References: Message-ID: <1306156552.10421.388.camel@hurina> On Sun, 2011-05-22 at 14:05 -0700, Daniel L. Miller wrote: > How can I enable zlib for reading compressed messages but not writing? That's the default. Writing is enabled only with zlib_save plugin setting. From jom at grosjo.net Mon May 23 16:24:07 2011 From: jom at grosjo.net (Joan Moreau) Date: Mon, 23 May 2011 08:24:07 -0500 Subject: [Dovecot] HG Compilation error Message-ID: Hi, Here the error I get, when compiling from Mercurial repository Making all in ipc make[3]: Entering directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src/ipc' MAKE[3]: *** NO RULE TO MAKE TARGET `ALL'. STOP. make[3]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src/ipc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/data/admin/src/mail/dovecot2/dovecot-2.0' make: *** [all] Error 2 How to fix that ? thx jm From tss at iki.fi Mon May 23 16:25:02 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 23 May 2011 16:25:02 +0300 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: References: <4DC3D251.4050004@Media-Brokers.com> <1305043528.10421.143.camel@hurina> Message-ID: <1306157102.10421.391.camel@hurina> On Sun, 2011-05-22 at 08:46 -0400, Aliet Santiesteban Sifontes wrote: > Timo, > Can you recommend us some benchmarking tools to test the dovecot cluster > setup?? See http://www.imapwiki.org/Benchmarking - the bottom lists all the benchmarking tools I know of. From tss at iki.fi Mon May 23 16:25:50 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 23 May 2011 16:25:50 +0300 Subject: [Dovecot] Crash test :) In-Reply-To: <87fwo7wbhm.fsf@alfa.kjonca> References: <87hb8pxj04.fsf@alfa.kjonca> <1B1EBB7C-2A68-41EE-B520-ACB8F55A270B@iki.fi> <87d3jdxeql.fsf@alfa.kjonca> <87y621vwrc.fsf@alfa.kjonca> <544A05F0-C45F-404B-AF33-D068FCDD1E04@iki.fi> <87fwo7wbhm.fsf@alfa.kjonca> Message-ID: <1306157150.10421.392.camel@hurina> On Sun, 2011-05-22 at 07:27 +0200, Kamil Jo?ca wrote: > >>> Um. :( Files were created about 2 months ago. It was certainly 1.x, but > >>> now it is hard to say, what exactly version it was. > >> > >> But question is open: Can I (and how) restore mails from so old backup? > > > > Dovecot v2.0 should be able to read v1.x's dbox files. If it can, it can restore the backups. The only difference I can think of is that in some version I changed the default to have dbox save everything under "mailboxes/" directory. If your backups don't use that directory, you can use something like: > > > > doveadm import sdbox:~/Mail/dbox-temp:MAILBOXDIR= "#Dbox" mailbox spamcop/reports > > > Unfortunately neither debian 2.0.12 nor 2.0.13 version can import > these. Strange thing is that message "Invalid dbox header size" is > printed after creating "dovecot-uidvalidity" and dovecot-index* files > for source dbox, u.* files are not read at all. Oh. I think it's entirely possible that current v2.0 can't really read v1.x dbox without giving errors.. From tss at iki.fi Mon May 23 16:27:10 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 23 May 2011 16:27:10 +0300 Subject: [Dovecot] SVN Compilation error In-Reply-To: <2e52d7c774fc5337ff8db83a375193e7@grosjo.net> References: <2e52d7c774fc5337ff8db83a375193e7@grosjo.net> Message-ID: <1306157230.10421.393.camel@hurina> On Sun, 2011-05-22 at 21:14 -0500, Joan Moreau wrote: > Here the error I get (SVN) hg, not svn. > make[3]: Entering directory > `/data/admin/src/mail/dovecot2/dovecot-2.0/src/ipc' > MAKE[3]: *** NO RULE > TO MAKE TARGET `ALL'. STOP. Thanks, fixed: http://hg.dovecot.org/dovecot-2.0/rev/9127a988acb8 From aperezaranda at yaco.es Mon May 23 16:40:17 2011 From: aperezaranda at yaco.es (Antonio Perez-Aranda) Date: Mon, 23 May 2011 15:40:17 +0200 Subject: [Dovecot] [PATCH] Indexing mail attachments with Dovecot + Solr In-Reply-To: <4DDA58FE.8080707@Media-Brokers.com> References: <4DDA58FE.8080707@Media-Brokers.com> Message-ID: Yes and I have it in my TODO, but we are using this version on a production system. And it is our base system for development. 2011/5/23 Charles Marcus : > On 2011-05-23 7:11 AM, Antonio Perez-Aranda wrote: >> Indexing mail attachments with Dovecot + Solr. >> >> This patch has been tested with these versions: >> ?* dovecot 2.0.9 >> ?* apache-solr 1.4.1 > > Isn't it customary - and logical - to always test/patch against the > current stable RELEASE version (ie, 2.0.13)? > > -- > > Best regards, > > Charles > -- Antonio P?rez-Aranda Alcaide aperezaranda at yaco.es Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Tel?fono +34 954 50 00 57 Fax ? ? ?+34 954 50 09 29 From ariel at post.tau.ac.il Mon May 23 18:07:42 2011 From: ariel at post.tau.ac.il (Ariel Biener) Date: Mon, 23 May 2011 18:07:42 +0300 Subject: [Dovecot] delegation of admin rights Message-ID: <4DDA783E.1030706@post.tau.ac.il> Hello, We're a rather largish university (largest in Israel), with some 60-70k users, using Dovecot 1.2.14 (we're cautious about moving to 2.0.x for now). We need to provide admin rights to faculty computer/IT staff, so they can have access to the mailboxes of their respective users. We use LDAP as an authentication/authorization backend. Currently, dovecot has a "master user" which can access all mailboxes. I am looking for a solution, preferably within dovecot, to create a delegation type of administration, allowing certain users to access the mailboxes of other users based on an LDAP filter or LDAP attribute value. If possible, allowing per protocol access(that is, I would like to give them IMAP access and not POP3) and within IMAP allowing only to view a mailbox, but not to change it, that would be even better. Does anyone on this list know of any IMAP proxy providing such abilities, and also, would the Dovecot team consider this as a candidate for a request for enhancement ? This would be very useful in a delegated administration environment, like most larger organizations, hosting & ISP, and other environments where delegation is an important and very much needed ability. thanks a bunch, -- Ariel -- Ariel Biener e-mail: ariel at post.tau.ac.il PGP: http://www.tau.ac.il/~ariel/pgp.html From lists at wildgooses.com Mon May 23 18:15:52 2011 From: lists at wildgooses.com (Ed W) Date: Mon, 23 May 2011 16:15:52 +0100 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: References: <4DC3D251.4050004@Media-Brokers.com> <1305043528.10421.143.camel@hurina> Message-ID: <4DDA7A28.7090505@wildgooses.com> On 11/05/2011 00:00, Aliet Santiesteban Sifontes wrote: > Using local storage(local hard driver ext4 filesystems) > > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 7798 3868 3889 7706 7566 10713 1080 6089 7559 7688 15562 > 7806 3879 3874 7716 7585 10873 1114 6018 7578 7696 15572 > 7866 3910 3855 7773 7748 11053 1076 6253 7747 7761 15710 > 7893 3978 3931 7802 7772 10988 1117 6197 7767 7789 15760 > 7775 3853 3809 7683 7654 10897 1081 6142 7651 7675 15534 > 7877 3919 3872 7789 7758 10986 1085 6218 7755 7773 15720 > > GFS2-mdbox, (no plugins) > > Totals: > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > 30% 5% > 7547 3739 3749 7455 7421 10605 1053 5931 7417 7443 15074 > 7480 3702 3724 7387 7367 10558 1064 5874 7366 7378 14946 > 7523 3759 3711 7428 7394 10560 1126 5898 7390 7412 15014 > 7455 3736 3621 7364 7326 10561 1088 5854 7324 7349 14880 > 7431 3712 3686 7337 7312 10406 1017 5882 7311 7328 14844 > 7426 3704 3671 7334 7296 10364 1076 5791 7296 7325 14834 > 7517 3673 3782 7425 7406 10554 1103 5913 7404 7414 15008 Hi, this performance seems excellent! There is no reason at all why you might try this, but as someone on lower end hardware I would be fascinated to learn how the performance changes is: - Switch FC to gig ethernet? (expecting substantial performance hit?) - Reverting to maildir (suspecting much less of a hit based on your numbers above?) - OCFS vs GFS (although probably not sensible in your architecture since you have a support contract for GFS, some have suggested OCFS can be faster?) Please do post any other performance results - seems like you have found an excellent cluster setup? Ed W From jom at grosjo.net Mon May 23 18:24:10 2011 From: jom at grosjo.net (Joan Moreau) Date: Mon, 23 May 2011 10:24:10 -0500 Subject: [Dovecot] =?utf-8?q?New_IPC_features_=3A_any_configuration_doc_?= =?utf-8?q?=3F?= Message-ID: Hi, Dovecot complains at start for the ipc listener not correctly configured. What is the configuration scheme ? Thanks JM From lists at wildgooses.com Mon May 23 18:38:53 2011 From: lists at wildgooses.com (Ed W) Date: Mon, 23 May 2011 16:38:53 +0100 Subject: [Dovecot] delegation of admin rights In-Reply-To: <4DDA783E.1030706@post.tau.ac.il> References: <4DDA783E.1030706@post.tau.ac.il> Message-ID: <4DDA7F8D.2050201@wildgooses.com> On 23/05/2011 16:07, Ariel Biener wrote: > We need to provide admin rights to faculty computer/IT staff, so they > can have access to the mailboxes > of their respective users. We use LDAP as an > authentication/authorization backend. > > Currently, dovecot has a "master user" which can access all > mailboxes. I am looking for a solution, > preferably within dovecot, to create a delegation type of > administration, allowing certain users to > access the mailboxes of other users based on an LDAP filter or LDAP > attribute value. If possible, > allowing per protocol access(that is, I would like to give them IMAP > access and not POP3) and within IMAP > allowing only to view a mailbox, but not to change it, that would be > even better. If I were doing this in SQL, then I would construct my SQL query to basically be true IFF some complicated where clause confirms the delegation? Possibly you can do a similar query in LDAP? Note one significant limitation is that the username is in the format "admin*user" in variable %u. This makes all your queries quite tricky... I would recommend considering sponsoring some feature request to have this split into two extra variables with the admin and usernames split out? In the case of LDAP that should make it possible to filter on some admin attribute? Also you have Checkpassword script option and you can do anything you like in that script? Good luck Ed W From tss at iki.fi Mon May 23 19:18:00 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 23 May 2011 19:18:00 +0300 Subject: [Dovecot] delegation of admin rights In-Reply-To: <4DDA7F8D.2050201@wildgooses.com> References: <4DDA783E.1030706@post.tau.ac.il> <4DDA7F8D.2050201@wildgooses.com> Message-ID: On 23.5.2011, at 18.38, Ed W wrote: > Note one significant limitation is that the username is in the format > "admin*user" in variable %u. I don't think this is true. > Also you have Checkpassword script option and you can do anything you > like in that script? Maybe something like that.. I think all of the pieces for this already exist in Dovecot. They just need to be put together in a way that works nicely. ACLs can be given to master user (although there still is no "default ACL" which makes this annoying). The checkpassword can anyway figure out if user X can be allowed to give user Y rights. I think all users then need to be both master users and passdb users. From tss at iki.fi Mon May 23 19:18:46 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 23 May 2011 19:18:46 +0300 Subject: [Dovecot] New IPC features : any configuration doc ? In-Reply-To: References: Message-ID: On 23.5.2011, at 18.24, Joan Moreau wrote: > Dovecot complains at start for the ipc listener not correctly > configured. What exactly is the error message? > What is the configuration scheme ? You shouldn't have needed to do anything about it. From aring at gmavt.net Mon May 23 22:47:56 2011 From: aring at gmavt.net (Adam) Date: Mon, 23 May 2011 15:47:56 -0400 Subject: [Dovecot] v1.1.20 vs v1.2 & v2.0 Message-ID: <4DDAB9EC.10202@gmavt.net> I am currently running v1.1.20 and was wondering if there is any compelling reason to upgrade to v1.2 or v2.0? For example is there any security updates in v1.2 or v2.0 that aren't included in v1.1.20? The other major thing I would be interested in knowing is there any speed enhancements in the newer versions? I am using basic PAM Auth and Maildir mailboxes on a Linux box. Let me know if you need any more information to answer my questions. Thanks, Adam From jtam.home at gmail.com Tue May 24 00:48:39 2011 From: jtam.home at gmail.com (Joseph Tam) Date: Mon, 23 May 2011 14:48:39 -0700 (PDT) Subject: [Dovecot] How to stop mail_executable from cwd to ~home In-Reply-To: References: Message-ID: Timo wrote: >> As to how to stop the mail process from chdir'ing to a home directory > > If you don't want Dovecot to use a home directory, don't tell it a home directory. I'm all for that since I don't seem to have any need for a home directory. Any idea of how to do it with a passwd-file userdb backend? I also tried to override home directory with userdb { driver = passwd-file args = /etc/passwd home=/bundled/home/$n } but that didn't work out too well. Or is this feature a rephrasing of the current topic thread "Global fields for passwd-file database". Joseph Tam From tss at iki.fi Tue May 24 00:53:17 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 24 May 2011 00:53:17 +0300 Subject: [Dovecot] How to stop mail_executable from cwd to ~home In-Reply-To: References: Message-ID: On 24.5.2011, at 0.48, Joseph Tam wrote: >>> As to how to stop the mail process from chdir'ing to a home directory >> >> If you don't want Dovecot to use a home directory, don't tell it a home directory. > > I'm all for that since I don't seem to have any need for a home directory. > Any idea of how to do it with a passwd-file userdb backend? Why do you have home directories listed in the passwd-file if you don't want to use them? > I also > tried to override home directory with > > userdb { > driver = passwd-file > args = /etc/passwd home=/bundled/home/$n > } > > but that didn't work out too well. Or is this feature a rephrasing of > the current topic thread "Global fields for passwd-file database". Could be. From jtam.home at gmail.com Tue May 24 01:02:14 2011 From: jtam.home at gmail.com (Joseph Tam) Date: Mon, 23 May 2011 15:02:14 -0700 (PDT) Subject: [Dovecot] How to stop mail_executable from cwd to ~home In-Reply-To: References: Message-ID: On Tue, 24 May 2011, Timo Sirainen wrote: > Why do you have home directories listed in the passwd-file if you don't want to use them? It's the authentication database for everything, not just Dovecot. I I guess I could just synthesize one by creating an auxilliary password file with the other information stripped out. Or just let dovecot do an automount on a per-user demand and see how it goes -- I think this only becomes a concern if I do a doveadm command with wildcarded users. Joseph Tam From jom at grosjo.net Tue May 24 02:42:19 2011 From: jom at grosjo.net (Joan Moreau) Date: Mon, 23 May 2011 18:42:19 -0500 Subject: [Dovecot] =?utf-8?q?New_IPC_features_=3A_any_configuration_doc_?= =?utf-8?q?=3F?= In-Reply-To: References: Message-ID: <94c726cbd87ddd67a42c1cf30d3d42aa@grosjo.net> Here the message at restart, when using the HG version (2.0.13 works nicely) # /etc/init.d/dovecot restart Stopping dovecot done Starting dovecot Fatal: service(ipc) User doesn't exist: dovenull (See service ipc { unix_listener /var/run/dovecot/login/ipc-proxy { user } } setting) startproc: exit status of parent of /usr/sbin/dovecot: 89 On Mon, 23 May 2011 19:18:46 +0300, Timo Sirainen wrote: > On 23.5.2011, at 18.24, Joan Moreau wrote: > >> Dovecot complains at start for the ipc listener not correctly >> configured. > > What exactly is the error message? > >> What is the configuration scheme ? > > You shouldn't have needed to do anything about it. From tss at iki.fi Tue May 24 03:42:17 2011 From: tss at iki.fi (Timo Sirainen) Date: Tue, 24 May 2011 03:42:17 +0300 Subject: [Dovecot] New IPC features : any configuration doc ? In-Reply-To: <94c726cbd87ddd67a42c1cf30d3d42aa@grosjo.net> References: <94c726cbd87ddd67a42c1cf30d3d42aa@grosjo.net> Message-ID: <669AFB3A-2CAE-4D00-AA55-36361EF871A3@iki.fi> default_login_user should be set to the user that runs imap-login and pop3-login processes. Apparently you haven't changed that from the default dovenull, but instead have set service imap-login { user } setting directly. On 24.5.2011, at 2.42, Joan Moreau wrote: > Here the message at restart, when using the HG version (2.0.13 works > nicely) > > # /etc/init.d/dovecot restart > Stopping dovecot done > Starting dovecot Fatal: service(ipc) User doesn't exist: dovenull (See service ipc { unix_listener /var/run/dovecot/login/ipc-proxy { user } } setting) > startproc: exit status of parent of /usr/sbin/dovecot: 89 > > > > On Mon, 23 May 2011 19:18:46 +0300, Timo Sirainen wrote: > >> On 23.5.2011, at 18.24, Joan Moreau wrote: >> >>> Dovecot complains at start for the ipc listener not correctly >>> configured. >> >> What exactly is the error message? >> >>> What is the configuration scheme ? >> >> You shouldn't have needed to do anything about it. > From sansez at yahoo.com Tue May 24 09:16:52 2011 From: sansez at yahoo.com (San San) Date: Mon, 23 May 2011 23:16:52 -0700 (PDT) Subject: [Dovecot] Dovecot 2 and Expire plugins : doesn't have record in DB Message-ID: <929313.39503.qm@web130220.mail.mud.yahoo.com> Dovecot 2 and Expire plugins : doesn't have records in db Hide Details FROM: * San San TO: * ?dovecot at dovecot.org Message flagged Tuesday, May 24, 2011 1:09 PM Dear Dovecot I have already config dovecot server with 2.0.13, and I need to enable expire plugins (in dovecot1 I have already used) but I see in my db doesn't have any record how about to debug or trace to solve this problem doveconf -n : auth_verbose = yes default_internal_user = vmail dict { ? expire = mysql:/usr/local/etc/dovecot/dovecot-dict-expire.conf } disable_plaintext_auth = no first_valid_gid = 200 first_valid_uid = 200 last_valid_gid = 200 last_valid_uid = 200 login_greeting = mail ready. mail_gid = vmail mail_location = maildir:~/Maildir mail_nfs_storage = yes mail_plugins = expire mail_uid = vmail maildir_very_dirty_syncs = yes namespace { ? hidden = no ? inbox = yes ? list = yes ? location =? ? prefix = INBOX. ? separator =? ? subscriptions = yes ? type = private } passdb { ? args = /usr/local/etc/dovecot/dovecot-ldap.conf ? driver = ldap } plugin { ? autocreate = INBOX.Drafts ? autocreate2 = INBOX.Sent ? autocreate3 = INBOX.Trash ? autocreate4 = INBOX.Spam ? autosubscribe = INBOX.Drafts ? autosubscribe2 = INBOX.Sent ? autosubscribe3 = INBOX.Trash ? autosubscribe4 = INBOX.Spam ? expire = INBOX.Trash 15d ? expire2 = INBOX.Spam 30d ? expire_dict = proxy::expire ? quota = maildir ? quota_rule = INBOX.Trash:storage=+200M } protocols = imap service anvil { ? chroot = empty ? client_limit = 0 ? drop_priv_before_exec = no ? executable = anvil ? extra_groups =? ? group =? ? idle_kill =?4294967295?secs ? privileged_group =? ? process_limit = 1 ? process_min_avail = 1 ? protocol =? ? service_count = 0 ? type = anvil ? unix_listener anvil-auth-penalty { ? ? group =? ? ? mode = 0600 ? ? user =? ? } ? unix_listener anvil { ? ? group =? ? ? mode = 0600 ? ? user =? ? } ? user = $default_internal_user ? vsz_limit = 18446744073709551615 B } service auth-worker { ? chroot =? ? client_limit = 1 ? drop_priv_before_exec = no ? executable = auth -w ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 0 ? process_min_avail = 0 ? protocol =? ? service_count = 1 ? type =? ? unix_listener auth-worker { ? ? group =? ? ? mode = 0600 ? ? user = $default_internal_user ? } ? user =? ? vsz_limit = 18446744073709551615 B } service auth { ? chroot =? ? client_limit = 4096 ? drop_priv_before_exec = no ? executable = auth ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 1 ? process_min_avail = 0 ? protocol =? ? service_count = 0 ? type =? ? unix_listener auth-client { ? ? group =? ? ? mode = 0600 ? ? user =? ? } ? unix_listener auth-login { ? ? group =? ? ? mode = 0600 ? ? user = $default_internal_user ? } ? unix_listener auth-master { ? ? group = vmail ? ? mode = 0600 ? ? user = vmail ? } ? unix_listener auth-userdb { ? ? group =? ? ? mode = 0600 ? ? user =? ? } ? unix_listener login/login { ? ? group =? ? ? mode = 0666 ? ? user =? ? } ? user = root ? vsz_limit = 18446744073709551615 B } service config { ? chroot =? ? client_limit = 0 ? drop_priv_before_exec = no ? executable = config ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 0 ? process_min_avail = 0 ? protocol =? ? service_count = 0 ? type = config ? unix_listener config { ? ? group =? ? ? mode = 0600 ? ? user =? ? } ? user =? ? vsz_limit = 18446744073709551615 B } service dict { ? chroot =? ? client_limit = 1 ? drop_priv_before_exec = no ? executable = dict ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 0 ? process_min_avail = 0 ? protocol =? ? service_count = 0 ? type =? ? unix_listener dict { ? ? group =? ? ? mode = 0600 ? ? user = vmail ? } ? user = $default_internal_user ? vsz_limit = 64 M } service director { ? chroot =? ? client_limit = 0 ? drop_priv_before_exec = no ? executable = director ? extra_groups =? ? fifo_listener login/proxy-notify { ? ? group =? ? ? mode = 00 ? ? user =? ? } ? group =? ? idle_kill = 4294967295 secs ? privileged_group =? ? process_limit = 1 ? process_min_avail = 0 ? protocol =? ? service_count = 0 ? type =? ? unix_listener director-admin { ? ? group =? ? ? mode = 0600 ? ? user =? ? } ? unix_listener login/director { ? ? group =? ? ? mode = 00 ? ? user =? ? } ? user = $default_internal_user ? vsz_limit = 18446744073709551615 B } service dns_client { ? chroot =? ? client_limit = 1 ? drop_priv_before_exec = no ? executable = dns-client ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 0 ? process_min_avail = 0 ? protocol =? ? service_count = 0 ? type =? ? unix_listener dns-client { ? ? group =? ? ? mode = 0666 ? ? user =? ? } ? unix_listener login/dns-client { ? ? group =? ? ? mode = 0666 ? ? user =? ? } ? user = $default_internal_user ? vsz_limit = 18446744073709551615 B } service doveadm { ? chroot =? ? client_limit = 1 ? drop_priv_before_exec = no ? executable = doveadm-server ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 0 ? process_min_avail = 0 ? protocol =? ? service_count = 1 ? type =? ? unix_listener doveadm-server { ? ? group =? ? ? mode = 0600 ? ? user =? ? } ? user =? ? vsz_limit = 64 M } service imap-login { ? chroot = login ? client_limit = 800 ? drop_priv_before_exec = no ? executable = imap-login ? extra_groups =? ? group =? ? idle_kill = 0 ? inet_listener imap { ? ? address =? ? ? port = 143 ? ? ssl = no ? } ? inet_listener imaps { ? ? address =? ? ? port = 993 ? ? ssl = yes ? } ? privileged_group =? ? process_limit = 255 ? process_min_avail = 10 ? protocol = imap ? service_count = 0 ? type = login ? user = nobody ? vsz_limit = 64 M } service imap { ? chroot =? ? client_limit = 1024 ? drop_priv_before_exec = no ? executable = imap ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 1024 ? process_min_avail = 8 ? protocol = imap ? service_count = 1 ? type =? ? unix_listener login/imap { ? ? group =? ? ? mode = 0666 ? ? user =? ? } ? user =? ? vsz_limit = 64 M } service lmtp { ? chroot =? ? client_limit = 0 ? drop_priv_before_exec = no ? executable = lmtp ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 0 ? process_min_avail = 0 ? protocol = lmtp ? service_count = 0 ? type =? ? unix_listener lmtp { ? ? group =? ? ? mode = 0666 ? ? user =? ? } ? user =? ? vsz_limit = 0 } service log { ? chroot =? ? client_limit = 0 ? drop_priv_before_exec = no ? executable = log ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 1 ? process_min_avail = 0 ? protocol =? ? service_count = 0 ? type = log ? user =? ? vsz_limit = 18446744073709551615 B } service pop3-login { ? chroot = login ? client_limit = 255 ? drop_priv_before_exec = no ? executable = pop3-login ? extra_groups =? ? group =? ? idle_kill = 0 ? inet_listener pop3 { ? ? address =? ? ? port = 110 ? ? ssl = no ? } ? inet_listener pop3s { ? ? address =? ? ? port = 995 ? ? ssl = yes ? } ? privileged_group =? ? process_limit = 255 ? process_min_avail = 10 ? protocol = pop3 ? service_count = 0 ? type = login ? user = nobody ? vsz_limit = 64 M } service pop3 { ? chroot =? ? client_limit = 1 ? drop_priv_before_exec = no ? executable = pop3 ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 1024 ? process_min_avail = 0 ? protocol = pop3 ? service_count = 1 ? type =? ? unix_listener login/pop3 { ? ? group =? ? ? mode = 0666 ? ? user =? ? } ? user =? ? vsz_limit = 18446744073709551615 B } service ssl-params { ? chroot =? ? client_limit = 0 ? drop_priv_before_exec = no ? executable = ssl-params ? extra_groups =? ? group =? ? idle_kill = 0 ? privileged_group =? ? process_limit = 0 ? process_min_avail = 0 ? protocol =? ? service_count = 0 ? type =? ? unix_listener login/ssl-params { ? ? group =? ? ? mode = 0666 ? ? user =? ? } ? user =? ? vsz_limit = 18446744073709551615 B } ssl = no userdb { ? args = /usr/local/etc/dovecot/dovecot-ldap.conf ? driver = ldap } protocol imap { ? imap_client_workarounds = tb-extra-mailbox-sep ? mail_max_userip_connections = 200 ? mail_plugins = quota imap_quota expire autocreate } protocol pop3 { ? pop3_client_workarounds = outlook-no-nuls oe-ns-eoh ? pop3_uidl_format = %v-%u } protocol lda { ? postmaster_address =?postmaster at example.com } ? and dovecot-dict-expire.conf is? connect = host=10.3.1.31?dbname=dovecot user=dovecot password=dovecot # CREATE TABLE expires ( # ? username varchar(100) not null, # ? mailbox varchar(255) not null, # ? expire_stamp integer not null, # ? primary key (username, mailbox) # ); map { ? pattern = shared/expire/$user/$mailbox ? table = expires ? value_field = expire_stamp ? fields { ? ? username = $user ? ? mailbox = $mailbox ? } } ? Sincerely, Nantharat Puwarang From ricardo at wenn.com Tue May 24 12:44:44 2011 From: ricardo at wenn.com (Ricardo Branco) Date: Tue, 24 May 2011 10:44:44 +0100 Subject: [Dovecot] IMAP Label Updates not showing up across shared account Message-ID: <4DDB7E0C.9090306@wenn.com> Dovecot 2.0.13 Centos 5.4 x86_64 2.6.18-164.9.1.el5 (on ESXi) OS/Logs on local storage, /home all on NFS server for datastore (NFS Store Centos 5.5 x86_64 2.6.18-194.11.1.el5) Thunderbird 3.1.10 on XP/W7 Desktops We are seeing a werid issue where there is a delay of up to a few mins in seeing label updates on messages. I have confirmed that Thunderbird is sending the update to the server with WireShark, its just additional users connected to the same mailbox do not see them. Marking a message as Seen/Un-Seen happens faster just not labels. If you have a label set when you mark a message as Seen/Un-Seen the other clients then see the update straight away. -- The information contained in or attached to this email is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain any message or any part of it. If you have received an email in error, please contact the sender and delete the material from any computer. The contents of this email are not for publication unless specifically stated. Furthermore, the information contained in this message, and any attachment(s) thereto, is for information purposes only and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of WENN or its subsidiaries and associated companies. We make every effort to keep our network free from viruses. However, you do need to check this e-mail and any attachments to it for viruses as we can take no responsibility for any computer virus which may be transferred by way! of this e-mail. WENN Ltd: Registered Office: 35 Tileyard Studios, Tileyard Road, London, N7 9AH, England. Registered No: 4375163. Place of Registration: United Kingdom. USA Entertainment News Inc (d/b/a WENN): Registered Office: 60 Madison Avenue, Suite 1027, New York, NY 10010, USA The WENN name, design and related marks are trademarks of the WENN group of companies. (c) 2011 All Rights Reserved. From cor at in.ter.net Tue May 24 18:01:39 2011 From: cor at in.ter.net (Cor Bosman) Date: Tue, 24 May 2011 17:01:39 +0200 Subject: [Dovecot] slow squat fts index creation Message-ID: <89758552-27E7-4A1F-9705-22506AE812D2@in.ter.net> Hi all, ive been playing with squat indexes. Up to about 300.000 emails in a single mailbox this was working flawlessly. The search index file is about 500MB at that time. Ive now added some more emails, and at 450.000 or so emails im seeing a serious problem with squat index creation. It takes...f o r e v e r . The .tmp file is being so slowly, it will probably take 2-3 hours to create. Upto this point it took maybe a minute. Im doing this in an openvz container, so theoretically i may be hitting some openvz resource limit. But ive upped all the limits and dont see any improvements. I dont see any resources starvation either. Could there be some dovecot issue when the search index reaches say 1GB? (im estimating that it's now trying to save about 1GB search index). Regards, Cor From a.smith at ukgrid.net Tue May 24 20:26:19 2011 From: a.smith at ukgrid.net (a.smith at ukgrid.net) Date: Tue, 24 May 2011 18:26:19 +0100 Subject: [Dovecot] libwrap does it work on in 2.0? Message-ID: <20110524182619.12135qwyw8kflqsc@webmail2.ukgrid.net> Hi, I noticed recently that libwrap (TCP Wrappers) is supported, although disabled by default, in the current Dovecot 2.0 but doesn't seem to be mentioned anywhere on the wiki. Is this working well/at all? Anyone care with experience using this care to share their experiences? My OS is FreeBSD, I noticed on some Linux distributions there may be issues, but this won't affect my installation. thanks Andy. From damien at robinet.net Tue May 24 21:29:01 2011 From: damien at robinet.net (Damien Robinet) Date: Tue, 24 May 2011 20:29:01 +0200 Subject: [Dovecot] Dovecot 1.2 with MySQL limit Trash folder Message-ID: Hi All, I need your help to limit the size of the Trash folder. I want to exclude the Trash folder in my user quota. But I do not want the Trash folder can not exceed 10M for example. I can manage to exclude the size of the Trash folder. But I can not limit the size of the folder. On my test, I've bytes=512000 for the Trash folder. But the user can move more that 512000B on the Trash folder ... Could you help me please ? Bests Regards, Damien ################################ ## My SQL query (dovecot-sql.conf) ## ################################ user_query = SELECT CONCAT( '/home/vmail/', maildir ) AS home, CONCAT( '/home/vmail/', maildir ) AS sieve_dir, 201 AS uid, 201 AS gid, CONCAT('*:storage=',ROUND((quota*1048.576)),'B') AS quota_rule, 'Trash:storage=50000B' AS quota_rule2, 'Trash:ignore' AS quota_rule3 FROM mail_mailbox WHERE username = '%u' AND actif = '1' ############ ## My Log: ## ############ 2011-05-24 20:08:59 imap-login: Info: Login: user=, method=PLAIN, rip=192.168.1.101, lip=192.168.1.10 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Loading modules from directory: /usr/lib/dovecot/modules/imap 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib20_autocreate_plugin.so 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib20_expire_plugin.so 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Effective uid=201, gid=201, home=/home/vmail/d/o/domain.tld/postmaster/ 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Quota root: name=user backend=dict args=:proxy::quota 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Quota rule: root=user mailbox=* bytes=1048576 messages=0 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Quota rule: root=user mailbox=Trash bytes=512000 messages=0 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: expire: No expire or expire_altmove settings - plugin disabled 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: dict quota: user=postmaster at domain.tld, uri=proxy::quota, noenforcing=0 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: maildir: data=/home/vmail/d/o/domain.tld/postmaster/ 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: maildir++: root=/home/vmail/d/o/domain.tld/postmaster, index=, control=, inbox=/home/vmail/d/o/domain.tld/postmaster 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Namespace : Using permissions from /home/vmail/d/o/domain.tld/postmaster: mode=0700 gid=-1 2011-05-24 20:08:59 IMAP(postmaster at domain.tld): Info: Connection closed bytes=38/363 ################### ## My dovecot.conf ## ################### dict { quota = mysql:/etc/dovecot/dovecot-quota.conf } plugin { args = /etc/dovecot/dovecot-sql.conf quota = dict:user::proxy::quota autocreate = Junk autocreate2 = NonJunk autocreate3 = Drafts autocreate4 = Sent autocreate5 = Trash autosubscribe = Junk autosubscribe2 = NonJunk autosubscribe3 = Drafts autosubscribe4 = Sent autosubscribe5 = Trash } From jom at grosjo.net Wed May 25 00:38:08 2011 From: jom at grosjo.net (Joan Moreau) Date: Tue, 24 May 2011 16:38:08 -0500 Subject: [Dovecot] =?utf-8?q?New_IPC_features_=3A_any_configuration_doc_?= =?utf-8?q?=3F?= In-Reply-To: <669AFB3A-2CAE-4D00-AA55-36361EF871A3@iki.fi> References: <94c726cbd87ddd67a42c1cf30d3d42aa@grosjo.net> <669AFB3A-2CAE-4D00-AA55-36361EF871A3@iki.fi> Message-ID: <443189154fbbbd1add631a3c1173528a@grosjo.net> That shall appear in the doc somewhere, as "default_login_user" is not a mandatory field, or you shall make this field mandatory On Tue, 24 May 2011 03:42:17 +0300, Timo Sirainen wrote: > default_login_user should be set to the user that runs imap-login and pop3-login processes. Apparently you haven't changed that from the default dovenull, but instead have set service imap-login { user } setting directly. > > On 24.5.2011, at 2.42, Joan Moreau wrote: > >> Here the message at restart, when using the HG version (2.0.13 works nicely) # /etc/init.d/dovecot restart Stopping dovecot done Starting dovecot Fatal: service(ipc) User doesn't exist: dovenull (See service ipc { unix_listener /var/run/dovecot/login/ipc-proxy { user } } setting) startproc: exit status of parent of /usr/sbin/dovecot: 89 On Mon, 23 May 2011 19:18:46 +0300, Timo Sirainen wrote: >> >>> On 23.5.2011, at 18.24, Joan Moreau wrote: >>> >>>> Dovecot complains at start for the ipc listener not correctly configured. >>> What exactly is the error message? >>> >>>> What is the configuration scheme ? >>> You shouldn't have needed to do anything about it. From Steven.Jones at vuw.ac.nz Wed May 25 04:29:36 2011 From: Steven.Jones at vuw.ac.nz (Steven Jones) Date: Wed, 25 May 2011 01:29:36 +0000 Subject: [Dovecot] problems with debian 5.0 and thunderbird Message-ID: <833D8E48405E064EBC54C84EC6B36E40063589C3@STAWINCOX10MBX1.staff.vuw.ac.nz> Hi, Does anyone have a setup guide for Thunderbird and Dovecot on Debian please? Dovecot is 1.0.15 I have Dovecot running listening on 143 and I can telnet from the XP guest but Thunderbird cant or wont talk to it. I have taken the # off listen and I get a telnet reply, no firewall is configured.... Ive set thunderbird up lots so I suspect its not Thunderbird but a dovecot config I have wrong. regards From lists at binarus.de Wed May 25 14:12:21 2011 From: lists at binarus.de (Binarus) Date: Wed, 25 May 2011 13:12:21 +0200 Subject: [Dovecot] 2.0.12 (fa2e92526716): Deleting mails and folders from public namespaces In-Reply-To: <1D83A6C4-14F4-43F5-8F8B-9A4ED4D00F79@iki.fi> References: <4DB72F8D.5030401@binarus.de> <1D83A6C4-14F4-43F5-8F8B-9A4ED4D00F79@iki.fi> Message-ID: <4DDCE415.8080806@binarus.de> On 26.04.2011 23:25, Timo Sirainen wrote: > On 26.4.2011, at 23.48, Binarus wrote: > >> But whenever a user tries to delete a folder from the public namespace, >> dovecot gives the following error: "Renaming not supported across >> non-private namespaces". > .. >> Furthermore, I haven't completely understood the reason for the >> different behaviour of folders in the public namespace and a single >> message therein. > > > Talking only about ACLs I guess it would be ok to allow renaming from public namespace to a private namespace. Renaming one of your own private mailboxes to public namespace is a bit trickier, because the default ACL is "no permissions". So when renaming, a new explicit ACL should be added to the user who did the renaming, because otherwise user could no longer access that mailbox at all. Still doable I guess. > > Although it is possible to give user permission to delete foo/bar but not give permission to create children to foo. Then if user renames foo/bar to Trash/foo/bar, it's not possible to rename it back. Probably not a real problem. > > Renaming from/to shared namespace needs to update the shared users acl dict. > > Quota also needs to be updated. I'm not sure if lazy-expunge has any trouble with this. Multi-dbox backend can't do a fast rename at all, because it would have to physically copy all of the messages from one mdbox storage to another mdbox storage. Maybe there are other problems I can't remember now. > > So looks like it should be possible to do all this, with the exception of adding an inefficiency to mdbox, but it's some work.. Thank you very much for your answer which shows that -as always- problems are more complicated than they seem first. Nevertheless, I don't want to give up, have a few thoughts and just would like to know I am right and what others are thinking: - I have used Cyrus 2.2 for a long time before I switched to Dovecot; in Cyrus 2.2, I did not have the problem. So I am wondering how the problem has been solved there. - Obviously, users can create new folders in public namespace (if the ACL allows) and their private mailboxes; furthermore, they can delete folders from public namespace and private mailboxes (if the ACL allows) (I am talking of a pure delete here, not of moving the folder to Trash). Thus, we could emulate moving folders between any namespaces (for example, from public namespace to private Trash) by first copying them to the new location and then deleting them from the original location. Let's assume we have a folder in a public namespace and are allowed to do everything with it. Then, we could delete this folder (this time, I am meaning moving it to private Trash) by doing the following steps manually: a) Create a new folder with the same name in Trash (which may be in the private mailbox); recursively repeat this with all subfolders. b) Move all messages from the folder in the public namespace to the folder in Trash; recursively repeat this with all subfolders (remark: moving messages does not seem to cause problems, as opposed to moving folders). c) Recursively delete the folder with all subfolders (which are completely empty now) from the public namespace (of course, this again is a "real" delete). I have tested this procedure with multiple IMAP clients against Dovecot, and there were no problems. Automation of the procedure would not be expected to lead to problems, would it?. - From a user's point of view, it is not important how messages get deleted or moved behind the scenes. A users which wants his stuff moved doesn't care if moving is accomplished by a rename or by another mechanism. In fact, he doesn't even know about renaming. He just wants the stuff which was in some folder to show up in some other folder. It seems that the problems come from the fact that deletion is done by renaming. I am not in IMAP but suppose that there is some rename command which is used by email clients in such cases. Maybe there is also a delete command which dovecot is "emulating" by doing a rename - I really don't know... So why not implement the rename / delete command in the way that I have described above? I know that a rename probably (for example on a file system or Dovecot's backends) is by far much more efficient than the copy-move-delete mechanism, but we could do the following: If the renaming is problematic due to reasons Timo has mentioned in his first reply, then emulate the renaming by the copy-move-delete mechanism; if renaming would be no problem, then use the normal method (the method which is already implemented). The inefficiency of the copy-move-delete mechanism would be no argument against using it: the alternative would be having the user to do these steps by hand, for every single subfolder (there may be thousands of them...). This is just not acceptable. One could argue that this functionality should be in the client, and indeed, I suspect that some clients are working that way in some situations. Nevertheless, I think such clients are bad, by using inefficient operations where it would not be necessary and putting the servers under load. IMHO, such functionality belongs into the server side since only the server can reliably decide if there will be problems before trying the operation. I am absolutely sure users would prefer waiting for inefficient copy-move-delete operations instead of not being able to move their stuff at all. Perhaps implementing such a behaviour would not be too difficult? At the end, I would like to stress that this is not just an academic question. The need to move folders, especially between public and private namespaces, is very common in small and large companies, and although my original post was about deleting folders, the problem in fact is a real big one (although some clients seem to circumvent it by wasting server resources). I am curiously looking forward to any comments. Regards, Peter From mfioretti at nexaima.net Wed May 25 14:49:30 2011 From: mfioretti at nexaima.net (M. Fioretti) Date: Wed, 25 May 2011 13:49:30 +0200 (CEST) Subject: [Dovecot] Error: file_dotlock_create failed: Permission denied Message-ID: <37522.151.25.103.156.1306324170.squirrel@nexaima.net> Hi, I have a Fedora 14 x86_64 computer. I run dovecot 2.0.12 on it, only to keep a local imap copy of all my email, in maildir format. A couple days ago the hard disk broke, so I bought a new one, and reinstalled Fedora 14 x86_64 with all the updates. Then I copied all the maildirs from a backup to the new drive. But I can't access email now. No matter how I change sticky bits or ownership and permissions of all the involved files and directories, etc.. Login succeeds, but I get this error whenever I try to create new mailboxes or access existing ones: May 25 13:36:03 polaris dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=8489, secured May 25 13:36:06 polaris dovecot: imap(marco): Error: file_dotlock_open(/home/z/email/marco/dovecot.index.log) failed: Permission denied (euid=500(marco) egid=500(marco) missing +w perm: /home/z/email/marco, euid is not dir owner) May 25 13:36:06 polaris dovecot: imap(marco): Error: file_dotlock_create(/home/z/email/marco/dovecot-uidlist) failed: Permission denied (euid=500(marco) egid=500(marco) missing +w perm: /home/z/email/marco, euid is not dir owner) May 25 13:36:06 polaris dovecot: imap(marco): Error: file_dotlock_create(/home/z/email/marco/dovecot-uidlist) failed: Permission denied (euid=500(marco) egid=500(marco) missing +w perm: /home/z/email/marco, euid is not dir owner) May 25 13:36:06 polaris dovecot: imap(marco): Error: opendir(/home/z/email/marco/new) failed: Permission denied (euid=500(marco) egid=500(marco) missing +r perm: /home/z/email/marco/new, euid is not dir owner) May 25 13:36:06 polaris dovecot: imap(marco): Error: file_dotlock_create(/home/z/email/marco/dovecot-uidlist) failed: Permission denied (euid=500(marco) egid=500(marco) missing +w perm: /home/z/email/marco, euid is not dir owner) Again, this doesn't change changing ownership. Output of dovecot -n is below The only possible difference I can find between this and the previous install of the SAME distro/dovecot package is that this time I use ext4 filesystem. Maybe, I don't remember, I was using ext3 in the original install. What must I change to gain access again to my mailboxes??? thanks! Marco dovecot -n # 2.0.12: /etc/dovecot/dovecot.conf doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:88: ssl_disable has been renamed to ssl doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:979: auth_user has been replaced by service auth { user } doveconf: Warning: SSL is disabled because global ssl=no, ignoring ssl=yes for subsection # OS: Linux 2.6.35.13-91.fc14.x86_64 x86_64 Fedora release 14 (Laughlin) ext4 auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login listen = * mail_location = maildir:/home/z/email/%u mail_privileged_group = mail_imap passdb { args = scheme=plain username_format=%n /etc/local_dovecot_passwords driver = passwd-file } protocols = imap service auth { user = root } ssl = no userdb { args = username_format=%n /etc/local_dovecot_passwords driver = passwd-file } protocol lda { postmaster_address = postmaster at example.com } From lists at binarus.de Wed May 25 15:13:34 2011 From: lists at binarus.de (Binarus) Date: Wed, 25 May 2011 14:13:34 +0200 Subject: [Dovecot] problems with debian 5.0 and thunderbird In-Reply-To: <833D8E48405E064EBC54C84EC6B36E40063589C3@STAWINCOX10MBX1.staff.vuw.ac.nz> References: <833D8E48405E064EBC54C84EC6B36E40063589C3@STAWINCOX10MBX1.staff.vuw.ac.nz> Message-ID: <4DDCF26E.3080206@binarus.de> On 25.05.2011 03:29, Steven Jones wrote: > Hi, > > Does anyone have a setup guide for Thunderbird and Dovecot on Debian please? > > Dovecot is 1.0.15 > > I have Dovecot running listening on 143 and I can telnet from the XP guest but Thunderbird cant or wont talk to it. Did I get this right: You can telnet to port 143 of the server? > I have taken the # off listen and I get a telnet reply, no firewall is configured.... > > Ive set thunderbird up lots so I suspect its not Thunderbird but a dovecot config I have wrong. > > > regards > Perhaps Thunderbird wants to talk via SSL (Port 993)? If that is not the case, the common recommendation is to look into the logs at the server side (/var/log/syslog, /var/log/mail and so on). For further details and how to increase the debug level, look here: http://wiki1.dovecot.org/Logging If that doesn't help, install Thunderbird's addon accountex, export your account settings to a file (don't forget to clear your logins and passwords before doing so) and provide them to the community so that somebody could take a look. Regards, Peter From aring at gmavt.net Wed May 25 16:39:25 2011 From: aring at gmavt.net (Adam) Date: Wed, 25 May 2011 09:39:25 -0400 Subject: [Dovecot] v1.1.20 vs v1.2 & v2.0 In-Reply-To: <4DDAB9EC.10202@gmavt.net> References: <4DDAB9EC.10202@gmavt.net> Message-ID: <4DDD068D.1050208@gmavt.net> Ping... Any thoughts on this? Any assistance would be appreciated. Thanks, Adam Adam wrote: > I am currently running v1.1.20 and was wondering if there is any > compelling reason to upgrade to v1.2 or v2.0? > > For example is there any security updates in v1.2 or v2.0 that aren't > included in v1.1.20? > > The other major thing I would be interested in knowing is there any > speed enhancements in the newer versions? I am using basic PAM Auth and > Maildir mailboxes on a Linux box. Let me know if you need any more > information to answer my questions. > > Thanks, > Adam > From tom at whyscream.net Wed May 25 16:45:50 2011 From: tom at whyscream.net (Tom Hendrikx) Date: Wed, 25 May 2011 15:45:50 +0200 Subject: [Dovecot] v1.1.20 vs v1.2 & v2.0 In-Reply-To: <4DDD068D.1050208@gmavt.net> References: <4DDAB9EC.10202@gmavt.net> <4DDD068D.1050208@gmavt.net> Message-ID: <4DDD080E.1080506@whyscream.net> On 25/05/11 15:39, Adam wrote: > Ping... > > Any thoughts on this? Any assistance would be appreciated. > > Thanks, > Adam > > Adam wrote: >> I am currently running v1.1.20 and was wondering if there is any >> compelling reason to upgrade to v1.2 or v2.0? >> >> For example is there any security updates in v1.2 or v2.0 that aren't >> included in v1.1.20? >> >> The other major thing I would be interested in knowing is there any >> speed enhancements in the newer versions? I am using basic PAM Auth and >> Maildir mailboxes on a Linux box. Let me know if you need any more >> information to answer my questions. >> >> Thanks, >> Adam >> > Please review the release notes / upgrade instructions for differenes between the versions, you can find them in the wiki or in the respective tarballs. If there are still questions after that: ask them here, and be specific ;) Kind regards, Tom From bill+dovecot at blunn.org Wed May 25 17:35:22 2011 From: bill+dovecot at blunn.org (William Blunn) Date: Wed, 25 May 2011 15:35:22 +0100 Subject: [Dovecot] v1.1.20 vs v1.2 & v2.0 In-Reply-To: <4DDAB9EC.10202@gmavt.net> References: <4DDAB9EC.10202@gmavt.net> Message-ID: <4DDD13AA.70907@blunn.org> On 23/05/2011 20:47, Adam wrote: > I am currently running v1.1.20 and was wondering if there is any > compelling reason to upgrade to v1.2 or v2.0? > > For example is there any security updates in v1.2 or v2.0 that aren't > included in v1.1.20? > > The other major thing I would be interested in knowing is there any > speed enhancements in the newer versions? I am using basic PAM Auth > and Maildir mailboxes on a Linux box. Let me know if you need any > more information to answer my questions. 1.1 doesn't appear to have been touched since 2009-11-09 1.2 last is 1.2.17 dated 2011-05-11 2.0 last is 2.0.13 dated 2011-05-11 So it looks like 1.1 is unmaintained 1.2 is maintained for security and bug fixes 2.0 is maintained The differences between 1.1 and 1.2, and 1.2 and 2.0 can be seen at http://www.dovecot.org/doc/NEWS-2.0. A compelling reason for me to use 2.0.x was the inclusion of multi-dbox / mdbox ( http://wiki2.dovecot.org/MailboxFormat/dbox#Multi-dbox ). Bill From stan at hardwarefreak.com Wed May 25 18:54:19 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Wed, 25 May 2011 10:54:19 -0500 Subject: [Dovecot] v1.1.20 vs v1.2 & v2.0 In-Reply-To: <4DDD068D.1050208@gmavt.net> References: <4DDAB9EC.10202@gmavt.net> <4DDD068D.1050208@gmavt.net> Message-ID: <4DDD262B.5040403@hardwarefreak.com> On 5/25/2011 8:39 AM, Adam wrote: > Adam wrote: >> I am currently running v1.1.20 and was wondering if there is any >> compelling reason to upgrade to v1.2 or v2.0? There have been a large number of bug fixes between 1.1.20 and 1.2.17. If you are a distro package user, I recommend, at minimum, upgrading to the latest 1.2.x version you can get. If later down the road you need some of the advanced features of 2.x, such as director or mdbox, you'll be in a little bit better position to upgrade to 2.x, though you certainly can upgrade straight to 2.x at this time if you wish. Carefully read the upgrade procedures beforehand. -- Stan From sf.rique at gmail.com Thu May 26 01:44:10 2011 From: sf.rique at gmail.com (Henrique Fernandes) Date: Wed, 25 May 2011 19:44:10 -0300 Subject: [Dovecot] Per user Namespaces From SQL Message-ID: Hello folks, i am lookign in the wiki, but did not find anything very clear about what i want. I need to have namespace for each user from mysql. But like, i need all configruation comming from mysql, not only the location. Is that possible? here: http://wiki2.dovecot.org/Namespaces at section: Per-user Namespace Location From SQLI can set the location, is there an way to make everything ? Like the name of namespace, and etc ? Thanks to all! []'sf.rique From wgillespie+dovecot at es2eng.com Thu May 26 09:38:01 2011 From: wgillespie+dovecot at es2eng.com (Willie Gillespie) Date: Thu, 26 May 2011 00:38:01 -0600 Subject: [Dovecot] 2.0.12 (fa2e92526716): Deleting mails and folders from public namespaces In-Reply-To: <4DDCE415.8080806@binarus.de> References: <4DB72F8D.5030401@binarus.de> <1D83A6C4-14F4-43F5-8F8B-9A4ED4D00F79@iki.fi> <4DDCE415.8080806@binarus.de> Message-ID: <4DDDF549.6050203@es2eng.com> On 5/25/2011 5:12 AM, Binarus wrote: > It seems that the problems come from the fact that deletion is done by > renaming. I am not in IMAP but suppose that there is some rename command > which is used by email clients in such cases. Maybe there is also a > delete command which dovecot is "emulating" by doing a rename - I really > don't know... Just a little correction here: Deletion is NOT done by renaming. Deletion of folders is done with a DELETE command which gets rid of it entirely. What your mail clients are doing is renaming the folder, which is done with a RENAME command. For example, if "SomeFolder" is deleted then your mail client is doing: RENAME "SomeFolder" "Trash.SomeFolder" which effectively just moves the folder as a subfolder of Trash. So, mail clients are asking to rename the folder (not delete it) in the case you are concerned about. Timo, you said > Talking only about ACLs I guess it would be ok to allow renaming from > public namespace to a private namespace. Renaming one of your own > private mailboxes to public namespace is a bit trickier, because the > default ACL is "no permissions". So when renaming, a new explicit ACL > should be added to the user who did the renaming, because otherwise > user could no longer access that mailbox at all. Still doable I guess. I don't think any ACL should be added automatically in this case. If they set their trash folder to be in a public/shared namespace for which they have only CREATE permissions, then I think that's their fault and the admins problem... not Dovecot's. From robert at schetterer.org Thu May 26 10:40:37 2011 From: robert at schetterer.org (Robert Schetterer) Date: Thu, 26 May 2011 09:40:37 +0200 Subject: [Dovecot] Per user Namespaces From SQL In-Reply-To: References: Message-ID: <4DDE03F5.9080303@schetterer.org> Am 26.05.2011 00:44, schrieb Henrique Fernandes: > Hello folks, i am lookign in the wiki, but did not find anything very clear > about what i want. > > I need to have namespace for each user from mysql. But like, i need all > configruation comming from mysql, not only the location. > > Is that possible? > > here: http://wiki2.dovecot.org/Namespaces > at section: > Per-user Namespace Location From SQLI can set the location, is there an way > to make everything ? Like the name of namespace, and etc ? > > Thanks to all! > > []'sf.rique > there is a example with sql and virtual plugin namespace perhaps you can use as starting point to modify to your needs http://wiki2.dovecot.org/Plugins/Virtual --snip user_query = SELECT ..., \ CASE '%s' WHEN 'pop3' THEN NULL ELSE 'yes' END AS 'namespace/default/inbox', \ CASE '%s' WHEN 'pop3' THEN 'yes' ELSE NULL END AS 'namespace/virtual/inbox' \ WHERE ... --- -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From tkrah at fachschaft.imn.htwk-leipzig.de Thu May 26 12:21:07 2011 From: tkrah at fachschaft.imn.htwk-leipzig.de (Torsten Krah) Date: Thu, 26 May 2011 11:21:07 +0200 Subject: [Dovecot] passdb: password contains illegal chars question Message-ID: <201105261121.12894.tkrah@fachschaft.imn.htwk-leipzig.de> Hi, some question about passdb backend: I'll receive this (using dovecot 2.0.13, pgsql passdb backend) for some users: mail dovecot: auth: passdb(account-username,127.0.0.1): Attempted login with password having illegal chars Password schema ist crypt-md5. So what "chars" does dovecot not like (why?) and whats the preferred way to fix this? regards Torsten -- Bitte senden Sie mir keine Word- oder PowerPoint-Anh?nge. Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." -- Linus Torvalds -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1996 bytes Desc: not available URL: From lists at binarus.de Thu May 26 12:43:31 2011 From: lists at binarus.de (Binarus) Date: Thu, 26 May 2011 11:43:31 +0200 Subject: [Dovecot] 2.0.12 (fa2e92526716): Deleting mails and folders from public namespaces In-Reply-To: <4DDDF549.6050203@es2eng.com> References: <4DB72F8D.5030401@binarus.de> <1D83A6C4-14F4-43F5-8F8B-9A4ED4D00F79@iki.fi> <4DDCE415.8080806@binarus.de> <4DDDF549.6050203@es2eng.com> Message-ID: <4DDE20C3.6040200@binarus.de> On 26.05.2011 08:38, Willie Gillespie wrote: > On 5/25/2011 5:12 AM, Binarus wrote: >> It seems that the problems come from the fact that deletion is done by >> renaming. I am not in IMAP but suppose that there is some rename command >> which is used by email clients in such cases. Maybe there is also a >> delete command which dovecot is "emulating" by doing a rename - I really >> don't know... > > Just a little correction here: Deletion is NOT done by renaming. > Deletion of folders is done with a DELETE command which gets rid of it > entirely. What your mail clients are doing is renaming the folder, > which is done with a RENAME command. > > For example, if "SomeFolder" is deleted then your mail client is doing: > RENAME "SomeFolder" "Trash.SomeFolder" > which effectively just moves the folder as a subfolder of Trash. > I suspected something like that, and you can see it from the fact that some IMAP clients indeed are able to do the moving (obviously by internally emulating it by the copy-move-delete method). That was the reason why I was proposing the server-side copy-move-delete implementation for such cases. I think it is the correct behaviour for clients to use renaming instead of more inefficient operations, but I also think that the server should try to obey the user and should emulate renaming by the copy-move-delete method if a "pure" renaming is not possible for some reason. Obviously, Dovecot incorporates code for creating new folders in any namespace, for moving messages regardless of namespaces and for deleting (empty?) folders in any namespace (we can do all these actions manually provided the ACLs allow). Therefore, emulating renaming by copy-move-delete in problematic cases might be possible without pain. I know that it is not a completely "clean" solution; on the other hand, it would be reasonable and immediately understandable by users. The purists among us might be happy if there was a configuration directive to enable or disable such behaviour. What do you think about that? > > Timo, you said >> Talking only about ACLs I guess it would be ok to allow renaming from >> public namespace to a private namespace. Renaming one of your own >> private mailboxes to public namespace is a bit trickier, because the >> default ACL is "no permissions". So when renaming, a new explicit ACL >> should be added to the user who did the renaming, because otherwise >> user could no longer access that mailbox at all. Still doable I guess. > > I don't think any ACL should be added automatically in this case. If > they set their trash folder to be in a public/shared namespace for which > they have only CREATE permissions, then I think that's their fault and > the admins problem... not Dovecot's. > I agree with Willie. Once again, look at the analogy: what does a user expect to happen when he tries to move a folder from his private space to public space? He expects - a new folder (with subfolder structure) to be created in public, every folder having the same name as it's counterpart in private - all messages to be moved from the folder structure in private to the folder structure in public - the folder structure in private to be deleted These steps could be done by hand, and thus, the behaviour, ACL handling and error messages should exactly be the same as when doing the steps by hand. For example, when a user creates a folder in public by hand, he eventually will not be able to access that folder, depending of the ACLs of the parent folder. This is normal and expected, so there is no reason to handle it in special way when moving (renaming?) folders. By the way, if I got it right, the same problem might appear if the user was copying folders within the same public namespace. What if a user copies a folder (in public) to another parent folder (also in public) where the user only has create rights? I don't know for sure, but I think the ACL won't be copied in this case, so the user might not have access to the new folder. But I may be wrong here, and I am unsure what would happen if the folder would be moved instead of copied; I think if moving is done by renaming, the ACL would be moved as well, so there should not be any problem. We also could look at it the other way: Logically, from my (naive) point of view, any folder in a user's private namespace is connected with a standard ACL; however, this ACL can't be altered by users (or the admin), has only one entry (respective user has full access) and is created / kept automatically by the server. In this model, renaming from private to public would be the same as renaming from public to public and thus would solve the problems. I don't know how difficult it would be to make Dovecot look at things that way. Maybe my point of view is completely wrong, but then I hope somebody will tell me about it... Personally, I could live very well with both solutions (emulating moving by copy-move-delete in problematic cases or handling private namespace just as public namespace with special ACLs that can't be altered). I don't know which is easier, more logic, and if any of them completely respects RFCs. But I know for sure that being unable to move folders between any namespaces is a big problem for users and even a bigger one for admins (guess what a user does if he can't move this one, super-important folder with hundreds of subfolders - this usually ends with the admin trying to move the whole thing on file-system level, of course during work time where Dovecot can't be shut down, or the admin desperately trying to find and configure an IMAP client which emulates moving internally by copy-move-delete). Regards, Peter From jom at grosjo.net Thu May 26 16:46:49 2011 From: jom at grosjo.net (Joan Moreau) Date: Thu, 26 May 2011 08:46:49 -0500 Subject: [Dovecot] doveadm segfault Message-ID: Hi, Using HG latest version, I get the following in the dmesg : [38041.387112] doveadm[20515]: segfault at 8 ip 000000000040f51d sp 00007fffb774c010 error 4 in doveadm[400000+2a000] [38041.397966] doveadm[20613]: segfault at 8 ip 000000000040f51d sp 00007fff953c1790 error 4 in doveadm[400000+2a000] [38041.428206] doveadm[20615]: segfault at 8 ip 000000000040f51d sp 00007ffffdce0cf0 error 4 in doveadm[400000+2a000] [38041.444879] doveadm[20619]: segfault at 8 ip 000000000040f51d sp 00007fffbb0668b0 error 4 in doveadm[400000+2a000] [38041.451815] doveadm[20622]: segfault at 8 ip 000000000040f51d sp 00007fff91d9b670 error 4 in doveadm[400000+2a000] [38041.459231] doveadm[20624]: segfault at 8 ip 000000000040f51d sp 00007fffe92b31b0 error 4 in doveadm[400000+2a000] [38041.468292] doveadm[20625]: segfault at 8 ip 000000000040f51d sp 00007fff5a4895c0 error 4 in doveadm[400000+2a000] [38041.481951] doveadm[20626]: segfault at 8 ip 000000000040f51d sp 00007fff8e84d010 error 4 in doveadm[400000+2a000] [38041.489414] doveadm[20629]: segfault at 8 ip 000000000040f51d sp 00007fff79206180 error 4 in doveadm[400000+2a000] [38041.512329] doveadm[20630]: segfault at 8 ip 000000000040f51d sp 00007ffff10582d0 error 4 in doveadm[400000+2a000] hundreds of times... No clue what is the bug.... JM From wgillespie+dovecot at es2eng.com Thu May 26 17:37:59 2011 From: wgillespie+dovecot at es2eng.com (Willie Gillespie) Date: Thu, 26 May 2011 08:37:59 -0600 (MDT) Subject: [Dovecot] Moving maildir mailboxes Message-ID: <1306420679.51194931@apps.rackspace.com> I am using Maildir with Dovecot 1.2. (Config available if needed, but should be a simple question.) I have a bunch of mail that I would like to do a one-time move from a private namespace to a shared namespace. The namespaces are already set up, etc. Can I just move the folders to their new location? I am not merging with existing folders, they would be new subfolders. Thanks! - Willie From CMarcus at Media-Brokers.com Thu May 26 18:06:10 2011 From: CMarcus at Media-Brokers.com (Charles Marcus) Date: Thu, 26 May 2011 11:06:10 -0400 Subject: [Dovecot] Moving maildir mailboxes In-Reply-To: <1306420679.51194931@apps.rackspace.com> References: <1306420679.51194931@apps.rackspace.com> Message-ID: <4DDE6C62.8020003@Media-Brokers.com> On 2011-05-26 10:37 AM, Willie Gillespie wrote: > I have a bunch of mail that I would like to do a one-time move from a > private namespace to a shared namespace. The namespaces are already > set up, etc. > > Can I just move the folders to their new location? I am not merging > with existing folders, they would be new subfolders. Yes. -- Best regards, Charles From alietsantiesteban at gmail.com Thu May 26 19:00:44 2011 From: alietsantiesteban at gmail.com (Aliet Santiesteban Sifontes) Date: Thu, 26 May 2011 12:00:44 -0400 Subject: [Dovecot] Dovecot imaptest on RHEL4/GFS1, RHEL6/GFS2, NFS and local storage results In-Reply-To: <4DDA7A28.7090505@wildgooses.com> References: <4DC3D251.4050004@Media-Brokers.com> <1305043528.10421.143.camel@hurina> <4DDA7A28.7090505@wildgooses.com> Message-ID: Thanks Ed, right now we are finishing the setup, next week we will continue the tests and will let you know the results... best regards 2011/5/23 Ed W > On 11/05/2011 00:00, Aliet Santiesteban Sifontes wrote: > > Using local storage(local hard driver ext4 filesystems) > > > > > > Totals: > > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > > 30% 5% > > 7798 3868 3889 7706 7566 10713 1080 6089 7559 7688 15562 > > 7806 3879 3874 7716 7585 10873 1114 6018 7578 7696 15572 > > 7866 3910 3855 7773 7748 11053 1076 6253 7747 7761 15710 > > 7893 3978 3931 7802 7772 10988 1117 6197 7767 7789 15760 > > 7775 3853 3809 7683 7654 10897 1081 6142 7651 7675 15534 > > 7877 3919 3872 7789 7758 10986 1085 6218 7755 7773 15720 > > > > GFS2-mdbox, (no plugins) > > > > Totals: > > Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo > > 100% 50% 50% 100% 100% 100% 50% 100% 100% 100% 100% > > 30% 5% > > 7547 3739 3749 7455 7421 10605 1053 5931 7417 7443 15074 > > 7480 3702 3724 7387 7367 10558 1064 5874 7366 7378 14946 > > 7523 3759 3711 7428 7394 10560 1126 5898 7390 7412 15014 > > 7455 3736 3621 7364 7326 10561 1088 5854 7324 7349 14880 > > 7431 3712 3686 7337 7312 10406 1017 5882 7311 7328 14844 > > 7426 3704 3671 7334 7296 10364 1076 5791 7296 7325 14834 > > 7517 3673 3782 7425 7406 10554 1103 5913 7404 7414 15008 > > Hi, this performance seems excellent! > > There is no reason at all why you might try this, but as someone on > lower end hardware I would be fascinated to learn how the performance > changes is: > > - Switch FC to gig ethernet? (expecting substantial performance hit?) > - Reverting to maildir (suspecting much less of a hit based on your > numbers above?) > - OCFS vs GFS (although probably not sensible in your architecture since > you have a support contract for GFS, some have suggested OCFS can be > faster?) > > Please do post any other performance results - seems like you have found > an excellent cluster setup? > > Ed W > From juan at inti.gob.ar Thu May 26 21:39:16 2011 From: juan at inti.gob.ar (Juan Bernhard) Date: Thu, 26 May 2011 15:39:16 -0300 Subject: [Dovecot] PAM config problem... Message-ID: <4DDE9E54.8020105@inti.gob.ar> Hi, I had some troubles with PAM configuration. I need to restrict imap access to some users (and allow pop3 to all). I followed the wiki example of using "args = %s" to use 2 pams configurations (one for imap and another for pop3) When I start the service, it starts, but when I try to auth its hangs Here is the log: May 26 15:16:09 claudia dovecot: master: Warning: Killed with signal 15 (by pid=15424 uid=0 code=kill) May 26 15:16:10 claudia dovecot: master: Dovecot v2.0.13 starting up May 26 15:16:24 claudia dovecot: auth: Debug: Loading modules from directory: /usr/local/lib/dovecot/auth May 26 15:16:24 claudia dovecot: auth: Fatal: pam: Unknown setting: %s May 26 15:16:24 claudia dovecot: master: Error: service(auth): command startup failed, throttling May 26 15:16:59 claudia dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=15435, input bytes=0 Is this option working? Im I missing somethin? I had the same proble in Solaris (but i thought that was a solaris thing, solaris is ALWAYS diferent) here is my doveconf -n # 2.0.13: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.18-238.9.1.el5 x86_64 CentOS release 5.6 (Final) ext3 auth_cache_size = 10 M auth_debug = yes base_dir = /var/run/dovecot/ disable_plaintext_auth = no listen = * login_greeting = Server ready. mail_debug = yes mail_location = maildir:/var/mail/%u:INDEX=~/ mail_plugins = quota passdb { args = %s failure_show_msg=yes driver = pam } plugin { quota = maildir:Cuota de correo quota_rule = *:storage=1G quota_rule2 = Trash:storage=+100M } protocols = imap pop3 ssl = no ssl_cert = Hi, I am getting the following error trying to search a virtual folder. May 26 11:35:29 xam dovecot: imap(egh): Panic: Trying to sync mailbox archive with open transactions May 26 11:35:29 xam dovecot: imap(egh): Error: Raw backtrace: /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot.so.0(+0x39ce1) [0xd2dce1] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot.so.0(+0x39d4f) [0xd2dd4f] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot.so.0(i_fatal+0) [0xd0485e] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot-storage.so.0(+0x24dd6) [0xf5add6] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/lib20_virtual_plugin.so(virtual_storage_sync_init+0x80f) [0x4a1a7f] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x39) [0xf5ada9] -> dovecot/imap(imap_sync_init+0x54) [0x805df74] -> dovecot/imap(cmd_sync_delayed+0x1bc) [0x805ecdc] -> dovecot/imap(client_handle_input+0x21a) [0x805658a] -> dovecot/imap(client_input+0x5f) [0x8056daf] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x51) [0xd3b681] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xd3) [0xd3c8b3] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot.so.0(io_loop_run+0x40) [0xd3b600] -> /usr/local/stow/dovecot-2.0.13/lib/dovecot/libdovecot.so.0(master_service_run+0x2a) [0xd26e1a] -> dovecot/imap(main+0x32d) [0x805f99d] -> /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x808e37] -> dovecot/imap() [0x804e131] May 26 11:35:29 xam dovecot: master: Error: service(imap): child 18403 killed with signal 6 (core dumps disabled) As you can see, I am using fts_solr plugin. the virtual mailbox is pretty simple: INBOX * -spam -Trash -trash -drafts My client is Wanderlust. Let me know any other information I can provide. Thank you! best, Erik Hetzner -------------- next part -------------- # 2.0.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.38-8-generic i686 Ubuntu 11.04 log_timestamp = "%Y-%m-%d %H:%M:%S " mail_location = maildir:~/maildir mail_plugins = " virtual fts fts_solr" mail_privileged_group = mail namespace { inbox = yes location = maildir:~/maildir prefix = separator = / type = private } namespace { location = virtual:~/maildir/virtual prefix = virtual/ separator = / } passdb { args = failure_show_msg=yes dovecot driver = pam } plugin { fts = solr fts_solr = url=http://localhost:8080/solr/mail/ break-imap-search } protocols = imap service auth { user = root } ssl = required ssl_cert = . From grenouille at c-base.org Fri May 27 02:59:44 2011 From: grenouille at c-base.org (wulf) Date: Fri, 27 May 2011 01:59:44 +0200 Subject: [Dovecot] unexpected subfolder locaton in Maildir/.INBOX.subfolder Message-ID: <20110526235943.GC848@coulmann.de> Hallo, I try to migrate existing imap server to dovecot 1.2 in debian squeeze if I connect to imap://user at host/INBOX Inbox works as expected and I get the content of Maildir/{cur,new,tmp} Maildir/.subfolder already exists if I connect to imap://user at host/INBOX.subfolder I get "folder not found" if I do a imap directory listing (raw mutt config, no subscriptions) - I see "../" - If I navigate to "../" I se all my existing subfolders if I create a new folder via imap the folder is created in Maildir/.INBOX.new_subfolder I expect the creation of Maildir/.new_subfolder This doesn't fit to the client configs and if I move the existing folders it doesn't fit to existing delivery agent filters and settings. I enabled mail_debug and the expansion looks ok for me: dovecot: imap-login: Login: user=, method=PLAIN, rip=85.178.xx.xxx, lip=80.81.xxx.xxx, TLS dovecot: IMAP(wulf): Effective uid=112, gid=114, home=/var/mail/home/wulf dovecot: IMAP(wulf): maildir: data=~/Maildir dovecot: IMAP(wulf): maildir++: root=/var/mail/home/wulf/Maildir, index=, control=, inbox=/var/mail/home/wulf/Maildir the existing subscription information from courier-imap looks like INBOX.subolder Yes I can sed them to subfolder (of course I have to copy them to Maildir/subscriptions anyhow) But is that the idea? I like to avoid trouble with all the users and their already configured mail-clients. Where is my mistake? Thanks for feedback Best Wulf CONF: protocols = imap imaps log_timestamp = "%Y-%m-%d %H:%M:%S " ssl = required ssl_cert_file = /etc/exim4/xxxxxxxxxxxxxxx.pem ssl_key_file = /etc/exim4/xxxxxx.key mail_location = maildir:~/Maildir mail_uid = 112 mail_gid = 114 mail_access_groups = vmail mail_debug = yes first_valid_uid = 112 protocol imap { } protocol pop3 { pop3_uidl_format = %08Xu%08Xv } protocol managesieve { } auth_verbose = yes auth_debug = yes auth default { mechanisms = plain passdb ldap { args = /etc/dovecot/dovecot-ldap.conf } userdb static { args = uid=112 gid=114 home=/var/mail/home/%u } user = root } dict { } plugin { } dovecot-ldap.conf: hosts = 127.0.0.1:389 auth_bind = yes auth_bind_userdn = uid=%u,ou=users,dc=xxxxxxxx,dc=de base = dc=xxxxxxxx,dc=de From Steven.Jones at vuw.ac.nz Fri May 27 03:35:49 2011 From: Steven.Jones at vuw.ac.nz (Steven Jones) Date: Fri, 27 May 2011 00:35:49 +0000 Subject: [Dovecot] unexpected subfolder locaton in Maildir/.INBOX.subfolder In-Reply-To: <20110526235943.GC848@coulmann.de> References: <20110526235943.GC848@coulmann.de> Message-ID: <833D8E48405E064EBC54C84EC6B36E400635B6B5@STAWINCOX10MBX1.staff.vuw.ac.nz> Hi, I dont know if this will help but, When I upgraded from Debain 5.0 to 6.0 I had to specify the mail directory explicitly, it then all worked fine. so in the dovecot.conf there is this line, "mail_location = mbox:~/mail:INBOX=/var/mail/%u" I took the # out and restarted Dovecot and it was happy. regards ________________________________________ From: dovecot-bounces at dovecot.org [dovecot-bounces at dovecot.org] on behalf of wulf [grenouille at c-base.org] Sent: Friday, 27 May 2011 11:59 a.m. To: dovecot at dovecot.org Subject: [Dovecot] unexpected subfolder locaton in Maildir/.INBOX.subfolder Hallo, I try to migrate existing imap server to dovecot 1.2 in debian squeeze if I connect to imap://user at host/INBOX Inbox works as expected and I get the content of Maildir/{cur,new,tmp} Maildir/.subfolder already exists if I connect to imap://user at host/INBOX.subfolder I get "folder not found" if I do a imap directory listing (raw mutt config, no subscriptions) - I see "../" - If I navigate to "../" I se all my existing subfolders if I create a new folder via imap the folder is created in Maildir/.INBOX.new_subfolder I expect the creation of Maildir/.new_subfolder This doesn't fit to the client configs and if I move the existing folders it doesn't fit to existing delivery agent filters and settings. I enabled mail_debug and the expansion looks ok for me: dovecot: imap-login: Login: user=, method=PLAIN, rip=85.178.xx.xxx, lip=80.81.xxx.xxx, TLS dovecot: IMAP(wulf): Effective uid=112, gid=114, home=/var/mail/home/wulf dovecot: IMAP(wulf): maildir: data=~/Maildir dovecot: IMAP(wulf): maildir++: root=/var/mail/home/wulf/Maildir, index=, control=, inbox=/var/mail/home/wulf/Maildir the existing subscription information from courier-imap looks like INBOX.subolder Yes I can sed them to subfolder (of course I have to copy them to Maildir/subscriptions anyhow) But is that the idea? I like to avoid trouble with all the users and their already configured mail-clients. Where is my mistake? Thanks for feedback Best Wulf CONF: protocols = imap imaps log_timestamp = "%Y-%m-%d %H:%M:%S " ssl = required ssl_cert_file = /etc/exim4/xxxxxxxxxxxxxxx.pem ssl_key_file = /etc/exim4/xxxxxx.key mail_location = maildir:~/Maildir mail_uid = 112 mail_gid = 114 mail_access_groups = vmail mail_debug = yes first_valid_uid = 112 protocol imap { } protocol pop3 { pop3_uidl_format = %08Xu%08Xv } protocol managesieve { } auth_verbose = yes auth_debug = yes auth default { mechanisms = plain passdb ldap { args = /etc/dovecot/dovecot-ldap.conf } userdb static { args = uid=112 gid=114 home=/var/mail/home/%u } user = root } dict { } plugin { } dovecot-ldap.conf: hosts = 127.0.0.1:389 auth_bind = yes auth_bind_userdn = uid=%u,ou=users,dc=xxxxxxxx,dc=de base = dc=xxxxxxxx,dc=de From djonas at vitalwerks.com Fri May 27 09:25:59 2011 From: djonas at vitalwerks.com (David Jonas) Date: Thu, 26 May 2011 23:25:59 -0700 Subject: [Dovecot] dsync: Invalid mailbox first_recent_uid Message-ID: <4DDF43F7.8020707@vitalwerks.com> For the life of me I can't get dsync to work. Please help! Remote server runs dovecot out of /usr/local/dovecot2. Everything makes sense until this line: dsync-local(djonas at vitalwerks.com): Error: Invalid mailbox input from worker server: Invalid mailbox first_recent_uid The local uid is 8989 and the remote uid is 89. I added "first_valid_uid = 89" to the local conf but to no avail. Local version is 2.0.12, remote is 2.0.1. # dsync -Dv -u djonas at vitalwerks.com mirror \ ssh vmail at 192.168.15.54 \ /usr/local/dovecot2/bin/dsync -Dv -u djonas at vitalwerks.com dsync(vmail): Debug: Effective uid=8989, gid=8989, home=/home/vmail/domains/vitalwerks.com/djonas dsync(vmail): Debug: Quota root: name=user backend=dict args=vitalwerks.com-djonas:proxy::quota dsync(vmail): Debug: dict quota: user=vitalwerks.com-djonas, uri=proxy::quota, noenforcing=0 dsync(vmail): Debug: Namespace : type=private, prefix=, sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir:INBOX=~/Maildir dsync(vmail): Debug: maildir++: root=/home/vmail/domains/vitalwerks.com/djonas/Maildir, index=, control=, inbox=/home/vmail/domains/vitalwerks.com/djonas/Maildir dsync-local(djonas at vitalwerks.com): Debug: Namespace : Using permissions from /home/vmail/domains/vitalwerks.com/djonas/Maildir: mode=0770 gid=-1 dsync-local(djonas at vitalwerks.com): Error: Invalid mailbox input from worker server: Invalid mailbox first_recent_uid dsync-remote(djonas at vitalwerks.com): Error: read() from proxy client failed: EOF From aperezaranda at yaco.es Fri May 27 11:17:17 2011 From: aperezaranda at yaco.es (Antonio Perez-Aranda) Date: Fri, 27 May 2011 10:17:17 +0200 Subject: [Dovecot] [PATCH] Indexing mail attachments with Dovecot + Solr In-Reply-To: References: <4DDA58FE.8080707@Media-Brokers.com> Message-ID: I can confirm that this patch is running against Dovecot 2.0.13 2011/5/23 Antonio Perez-Aranda : > Yes and I have it in my TODO, but we are using this version on a > production system. And it is our base system for development. > > 2011/5/23 Charles Marcus : >> On 2011-05-23 7:11 AM, Antonio Perez-Aranda wrote: >>> Indexing mail attachments with Dovecot + Solr. >>> >>> This patch has been tested with these versions: >>> ?* dovecot 2.0.9 >>> ?* apache-solr 1.4.1 >> >> Isn't it customary - and logical - to always test/patch against the >> current stable RELEASE version (ie, 2.0.13)? >> >> -- >> >> Best regards, >> >> Charles >> > > > > -- > Antonio P?rez-Aranda Alcaide > aperezaranda at yaco.es > > Yaco Sistemas S.L. > http://www.yaco.es/ > C/ Rioja 5, 41001 Sevilla > Tel?fono +34 954 50 00 57 > Fax ? ? ?+34 954 50 09 29 > -- Antonio P?rez-Aranda Alcaide aperezaranda at yaco.es Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Tel?fono +34 954 50 00 57 Fax ? ? ?+34 954 50 09 29 From mfioretti at nexaima.net Fri May 27 11:25:46 2011 From: mfioretti at nexaima.net (M. Fioretti) Date: Fri, 27 May 2011 10:25:46 +0200 (CEST) Subject: [Dovecot] Error: file_dotlock_create failed: Permission denied In-Reply-To: <37522.151.25.103.156.1306324170.squirrel@nexaima.net> References: <37522.151.25.103.156.1306324170.squirrel@nexaima.net> Message-ID: <44237.151.25.116.171.1306484746.squirrel@nexaima.net> On Wed, May 25, 2011 1:49 pm, M. Fioretti wrote: > Hi, > > I have a Fedora 14 x86_64 computer. I run dovecot 2.0.12 on it, only to > keep a local imap copy of all my email, in maildir format. A couple days > ago the hard disk broke, so I bought a new one, and reinstalled Fedora 14 > x86_64 with all the updates. > > Then I copied all the maildirs from a backup to the new drive. > > But I can't access email now. No matter how I change sticky bits or > ownership and permissions of all the involved files and directories, etc.. > Login succeeds, but I get this error whenever I try to create new > mailboxes or access existing ones: sorry to nag the list, but is it possible that there is no way to restore this dovecot install, or at least any indication of what else I should check/try to do? Should I provide more information? TIA for any feedback, Marco From aperezaranda at yaco.es Fri May 27 11:44:44 2011 From: aperezaranda at yaco.es (Antonio Perez-Aranda) Date: Fri, 27 May 2011 10:44:44 +0200 Subject: [Dovecot] This is appear a fts bug Message-ID: I have checked this on dovecot 2.0.9 and 2.0.13 with fts-solr without patching. If you execute the follow IMAP script, then the imap process die by and a "assert" . select "inbox." . search text something After search, the connection is aborted in the client side, and imap process died on the server. When the log in dovecot says: (fts_backend_solr_init): assertion failed: (*box_name != '\0') After debug the code, there isn't in context any possibility to get "box_name". With squat plugin it is running. -- Antonio P?rez-Aranda Alcaide aperezaranda at yaco.es Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Tel?fono +34 954 50 00 57 Fax ? ? ?+34 954 50 09 29 From grenouille at c-base.org Fri May 27 14:05:06 2011 From: grenouille at c-base.org (wulf) Date: Fri, 27 May 2011 13:05:06 +0200 Subject: [Dovecot] unexpected subfolder locaton in Maildir/.INBOX.subfolder In-Reply-To: <833D8E48405E064EBC54C84EC6B36E400635B6B5@STAWINCOX10MBX1.staff.vuw.ac.nz> References: <20110526235943.GC848@coulmann.de> <833D8E48405E064EBC54C84EC6B36E400635B6B5@STAWINCOX10MBX1.staff.vuw.ac.nz> Message-ID: <20110527110504.GB7401@coulmann.de> Hi Steve, On Fri, May 27, 2011 at 12:35:49AM +0000, Steven Jones wrote: > I dont know if this will help but, When I upgraded from Debain 5.0 to > 6.0 I had to specify the mail directory explicitly, it then all worked > fine. no, it don't I already tried this, and as you can see there is a correct expansion off INBOX in the log. > dovecot: IMAP(wulf): maildir++: root=/var/mail/home/wulf/Maildir, > index=, control=, inbox=/var/mail/home/wulf/Maildir best wulf From warden at geneseo.edu Fri May 27 15:51:10 2011 From: warden at geneseo.edu (David Warden) Date: Fri, 27 May 2011 08:51:10 -0400 Subject: [Dovecot] PAM config problem... In-Reply-To: <4DDE9E54.8020105@inti.gob.ar> References: <4DDE9E54.8020105@inti.gob.ar> Message-ID: <17660AE4-188E-4FCC-87D5-75F8B3BBDFA2@geneseo.edu> Someone else may have responded to this already but it looks like you have a problem in the passdb section of your config. See my inline... On May 26, 2011, at 2:39 PM, Juan Bernhard wrote: > Hi, > I had some troubles with PAM configuration. I need to restrict imap > access to some users (and allow pop3 to all). I followed the wiki > example of using "args = %s" to use 2 pams configurations (one for imap > and another for pop3) > When I start the service, it starts, but when I try to auth its hangs > Here is the log: > May 26 15:16:09 claudia dovecot: master: Warning: Killed with signal 15 > (by pid=15424 uid=0 code=kill) > May 26 15:16:10 claudia dovecot: master: Dovecot v2.0.13 starting up > May 26 15:16:24 claudia dovecot: auth: Debug: Loading modules from > directory: /usr/local/lib/dovecot/auth > May 26 15:16:24 claudia dovecot: auth: Fatal: pam: Unknown setting: %s > May 26 15:16:24 claudia dovecot: master: Error: service(auth): command > startup failed, throttling > May 26 15:16:59 claudia dovecot: pop3-login: Error: Timeout waiting for > handshake from auth server. my pid=15435, input bytes=0 > > Is this option working? Im I missing somethin? I had the same proble in > Solaris (but i thought that was a solaris thing, solaris is ALWAYS diferent) > > here is my doveconf -n > # 2.0.13: /usr/local/etc/dovecot/dovecot.conf > # OS: Linux 2.6.18-238.9.1.el5 x86_64 CentOS release 5.6 (Final) ext3 > auth_cache_size = 10 M > auth_debug = yes > base_dir = /var/run/dovecot/ > disable_plaintext_auth = no > listen = * > login_greeting = Server ready. > mail_debug = yes > mail_location = maildir:/var/mail/%u:INDEX=~/ > mail_plugins = quota > passdb { > args = %s failure_show_msg=yes I think you want %s (service) after failure_show_msg=yes. At least the default config file says that the PAM service comes after the key,value config pars for args. > driver = pam > } > plugin { > quota = maildir:Cuota de correo > quota_rule = *:storage=1G > quota_rule2 = Trash:storage=+100M > } > protocols = imap pop3 > ssl = no > ssl_cert = ssl_key = userdb { > driver = passwd > } > protocol imap { > imap_client_workarounds = tb-extra-mailbox-sep tb-lsub-flags > mail_plugins = quota imap_quota > } > protocol pop3 { > pop3_client_workarounds = outlook-no-nuls oe-ns-eoh > pop3_lock_session = yes > pop3_uidl_format = %08Xv%08Xu > } > > > And the build options: > Build options: ioloop=epoll notify=inotify ipv6 openssl io_block_size=8192 > Mail storages: cydir maildir mbox mdbox raw sdbox shared > SQL drivers: > Passdb: checkpassword ldap pam passwd passwd-file shadow > Userdb: checkpassword ldap nss passwd prefetch passwd-file > > > Thanks, Juan. > > > > > > From jayw at interoceansystems.com Fri May 27 20:16:36 2011 From: jayw at interoceansystems.com (Jay Welch) Date: Fri, 27 May 2011 10:16:36 -0700 Subject: [Dovecot] Email being stored in "cur" folder and not being downloaded in Thunderbird Message-ID: <4DDFDC74.9020205@interoceansystems.com> Hi, I have recently noticed that a random number of emails are being stored in the "cur" folder under certain users and cannot be downloaded in Thunderbird. I have tried moving the emails from "cur" to "new" but everytime I try to download the email from Thunderbird, the emails go back to the "cur" folder. What could be causing this? What is the "cur" folder used for? I had thought that the "cur" folder was used for IMAP but all the users here are using POP. Also, I have tried testing this on Outlook and Outlook seems to download the files from "cur". Thanks From kgc at corp.sonic.net Fri May 27 22:00:25 2011 From: kgc at corp.sonic.net (Kelsey Cummings) Date: Fri, 27 May 2011 12:00:25 -0700 Subject: [Dovecot] Client IP log variable for proxy/director setups? Message-ID: <20110527190025.GH70065@corp.sonic.net> Timo - it would be very convenient if we could get a variable that held the real client ip for use in logging with director/proxy setups. It's clearly already passed around in client->user->remote_ip but at this point, I don't see anyway to get it into the logs and it would take me ages to figure out the Right place to add it since client->user doesn't seem to be available in client-common.c: get_var_expand_table(..). Perhaps I'm missing something obvious? -- Kelsey Cummings - kgc at corp.sonic.net sonic.net, inc. System Architect 2260 Apollo Way 707.522.1000 Santa Rosa, CA 95407 From sven at svenhartge.de Fri May 27 23:29:38 2011 From: sven at svenhartge.de (Sven Hartge) Date: Fri, 27 May 2011 22:29:38 +0200 Subject: [Dovecot] Email being stored in "cur" folder and not being downloaded in Thunderbird References: <4DDFDC74.9020205@interoceansystems.com> Message-ID: <37srmedh8hv8@mids.svenhartge.de> Jay Welch wrote: > I have recently noticed that a random number of emails are being > stored in the "cur" folder under certain users and cannot be > downloaded in Thunderbird. I have tried moving the emails from "cur" > to "new" but everytime I try to download the email from Thunderbird, > the emails go back to the "cur" folder. What could be causing this? Perfectly normal, this is the way the Maildir format works. > What is the "cur" folder used for? I had thought that the "cur" folder > was used for IMAP but all the users here are using POP. No, the way the mail is stored and the way it is accessed are two different things. Gr??e, Sven. -- Sigmentation fault. Core dumped. From nick.z.edwards at gmail.com Sat May 28 10:53:38 2011 From: nick.z.edwards at gmail.com (Nick Edwards) Date: Sat, 28 May 2011 17:53:38 +1000 Subject: [Dovecot] recipient delimiters and virtual users Message-ID: Is there a known workaround for users who want to use the old recipient delimiter plus sign method of sorting their mail? eg: foo.bat +dovecot at example.com This does not work with postfix/dovecot, but if we tell postfix/system-passwd to use the recipient_delimiter = + it works just like I recall sendmail did, but we no longer use local users only virtual dovecot LDA w/mysql. postfix appears to accept it testing by telnet, but then the message gets a new DSN generated saying no user, so dovecot LDA must not work by default with this. Postfix 2.8.3 Dovecot 1.2.17 MySQL 5.5.12 our postfix master.cf is dovecot unix - n n - - pipe flags=DRhu user=mail:mail argv=/usr/libexec/dovecot/deliver -e -d ${recipient} From dovecot.user at seibercom.net Sat May 28 13:31:11 2011 From: dovecot.user at seibercom.net (Jerry) Date: Sat, 28 May 2011 06:31:11 -0400 Subject: [Dovecot] recipient delimiters and virtual users In-Reply-To: References: Message-ID: <20110528063111.3c7955bd@scorpio> On Sat, 28 May 2011 17:53:38 +1000 Nick Edwards articulated: > Is there a known workaround for users who want to use the old > recipient delimiter plus sign method of sorting their mail? eg: > foo.bat +dovecot at example.com > > This does not work with postfix/dovecot, but if we tell > postfix/system-passwd to use the recipient_delimiter = + it works > just like I recall sendmail did, but we no longer use local users > only virtual dovecot LDA w/mysql. > > postfix appears to accept it testing by telnet, but then the message > gets a new DSN generated saying no user, so > dovecot LDA must not work by default with this. > > Postfix 2.8.3 > Dovecot 1.2.17 > MySQL 5.5.12 > > > our postfix master.cf is > dovecot unix - n n - - pipe > flags=DRhu user=mail:mail argv=/usr/libexec/dovecot/deliver -e -d > ${recipient} I use "+" addressing with Postfix & dovecot without a problem. This is from the Postfix master.cf file: dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -a ${recipient} You should include the log entries, both Postfix and Dovecot that pertain to this situation. And please, do not mangle them. It makes figuring out what is happening so very much harder. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From jk at jkart.de Sat May 28 13:36:28 2011 From: jk at jkart.de (Jim Knuth) Date: Sat, 28 May 2011 12:36:28 +0200 Subject: [Dovecot] Segmentation fault again Message-ID: <4DE0D02C.4060807@jkart.de> Hi, I have the following report after a cron job again? /root/tools/expunge: Zeile 3: 4869 Speicherzugriffsfehler doveadm expunge -A mailbox Spam savedbefore 5d /root/tools/expunge: Zeile 5: 4915 Speicherzugriffsfehler doveadm expunge -A mailbox Papierkorb savedbefore 4d See the attachment. Any ideas greatly appreciated. Thanks -- Mit freundlichen Gr??en, with kind regards, Jim Knuth --------- Das Leben ist bezaubernd, man muss es nur durch die richtige Brille sehen. (Alexandre Dumas) -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: doveadm-bt_full.txt URL: From trever.adams at gmail.com Sat May 28 18:33:07 2011 From: trever.adams at gmail.com (Trever L. Adams) Date: Sat, 28 May 2011 09:33:07 -0600 Subject: [Dovecot] possible bug leading to lmtp crashes In-Reply-To: <4DD5191E.9040606@gmail.com> References: <4DAECAAC.3060903@gmail.com> <4DB58F67.4090600@gmail.com> <4DB6FCF7.9070905@gmail.com> <5D19A866-381B-4CA6-B8FF-0F7BCDA36799@iki.fi> <4DBC3F3F.4030605@gmail.com> <1304957973.10421.101.camel@hurina> <4DCA7C6F.40902@gmail.com> <1305116849.10421.192.camel@hurina> <4DD5191E.9040606@gmail.com> Message-ID: <4DE115B3.7080706@gmail.com> On 05/19/2011 07:20 AM, Trever L. Adams wrote: > > The assert: > > May 17 04:01:02 dovecot: auth: Panic: file ../../src/lib/array.h: line > 189 (array_idx_i): assertion failed: (idx * array->element_size < > array->buffer->used) > > This is usually repeated 2 or more times near a crash. On the machine > that doesn't crash, I NEVER see this. On the machines that crash, there > isn't (or doesn't seem to be) a 1:1 correlation. > > Trever This bug still exists in Dovecot 2.0.13. I am sorry I had thought it was fixed. Again, two machines are crashing with the above message, the third doesn't. Trever -- "The only true happiness comes from squandering ourselves for a purpose." -- William Cowper -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From mail at tomsommer.dk Sat May 28 22:16:29 2011 From: mail at tomsommer.dk (Tom Sommer) Date: Sat, 28 May 2011 21:16:29 +0200 Subject: [Dovecot] Bug: Fixed a duplicate Message-ID: <4DE14A0D.6030704@tomsommer.dk> I restored a dovecot mailserver today, and when I started the server again, the logs filled up with "Fixed a duplicate" warnings. This in itself it not a problem, the problem is that it appears the fix is not done correct. Consider this: Warning: Fixed a duplicate: [X]/cur/1305907573.V807I37682f3M146183.mail8.xxx.com:2,S -> 1306601066.M382668P27710.mail8.xxx.com The problem appears to be the timestamp of this new file isn't updated correctly. Now I got hundreds of mailboxes filled with mails named 1305907573.* with random (in the past) timestamps, leading to mangled miss-sorted inboxes for customers. 3575 May 25 02:05 1306600913.M982997P26976.mail8.xxx.com:2,S 55313 May 6 01:50 1306600913.M982998P26976.mail8.xxx.com:2,S 9839 May 7 23:59 1306600913.M982999P26976.mail8.xxx.com:2,S 3453 May 10 01:32 1306600913.M983000P26976.mail8.xxx.com:2,S 16616 May 14 00:22 1306600913.M983001P26976.mail8.xxx.com:2,S 68850 May 25 00:46 1306600913.M983002P26976.mail8.xxx.com:2,S etc. Dovecot is v. 2.0.11 I guess I should have deleted all dovecot.* files after the restore, before I started dovecot? // Tom From dmiller at amfes.com Sun May 29 12:09:29 2011 From: dmiller at amfes.com (Daniel Miller) Date: Sun, 29 May 2011 02:09:29 -0700 Subject: [Dovecot] solr substring schema.xml Message-ID: I'm trying a modified schema.xml with solr - it appears I now have substring searches! I took the schema.xml file shipped with Dovecot, and modified the text field definition to be: Changing to the new "SnowballPorter" instead of the deprecated "EnglishPorter" filters is probably minor - the magic is the "NGramFilterFactory". 3 & 15 seemed reasonable defaults for the min/max size to search on. -- Daniel From jk at jkart.de Sun May 29 13:12:10 2011 From: jk at jkart.de (Jim Knuth) Date: Sun, 29 May 2011 12:12:10 +0200 Subject: [Dovecot] Segmentation fault again In-Reply-To: <4DE0D02C.4060807@jkart.de> References: <4DE0D02C.4060807@jkart.de> Message-ID: <4DE21BFA.4020300@jkart.de> am 28.05.11 12:36 schrieb Jim Knuth : > Hi, > > I have the following report after a cron job again? > > /root/tools/expunge: Zeile 3: 4869 Speicherzugriffsfehler doveadm > expunge -A mailbox Spam savedbefore 5d > /root/tools/expunge: Zeile 5: 4915 Speicherzugriffsfehler doveadm > expunge -A mailbox Papierkorb savedbefore 4d > > See the attachment. > > Any ideas greatly appreciated. Thanks > Does nobody know, how will this be solved? :-/ -- Mit freundlichen Gr??en, with kind regards, Jim Knuth --------- Und aus dem Chaos sprach eine Stimme zu mir: "L?chle und sei froh, es k?nnte schlimmer kommen!" Und ich lachte und war froh - denn es kam schlimmer. (Otto Waalkes) From user+dovecot at localhost.localdomain.org Sun May 29 13:57:08 2011 From: user+dovecot at localhost.localdomain.org (Pascal Volk) Date: Sun, 29 May 2011 12:57:08 +0200 Subject: [Dovecot] Segmentation fault again In-Reply-To: <4DE21BFA.4020300@jkart.de> References: <4DE0D02C.4060807@jkart.de> <4DE21BFA.4020300@jkart.de> Message-ID: <4DE22684.6070806@localhost.localdomain.org> On 05/29/2011 12:12 PM Jim Knuth wrote: > am 28.05.11 12:36 schrieb Jim Knuth : > >> Hi, >> >> I have the following report after a cron job again? >> >> /root/tools/expunge: Zeile 3: 4869 Speicherzugriffsfehler doveadm >> expunge -A mailbox Spam savedbefore 5d >> /root/tools/expunge: Zeile 5: 4915 Speicherzugriffsfehler doveadm >> expunge -A mailbox Papierkorb savedbefore 4d >> >> See the attachment. Which attachment? >> Any ideas greatly appreciated. Thanks Did you apply that patch? http://hg.dovecot.org/dovecot-2.0/rev/475e6633b1d7 Upgrading to v2.0.13 may also solve your problem. > Does nobody know, how will this be solved? :-/ Provide some details about the crash. See that thread for details: http://dovecot.org/list/dovecot/2011-April/058518.html Regards, Pascal -- The trapper recommends today: c01dcafe.1114912 at localdomain.org From jk at jkart.de Sun May 29 14:08:14 2011 From: jk at jkart.de (Jim Knuth) Date: Sun, 29 May 2011 13:08:14 +0200 Subject: [Dovecot] Segmentation fault again In-Reply-To: <4DE22684.6070806@localhost.localdomain.org> References: <4DE0D02C.4060807@jkart.de> <4DE21BFA.4020300@jkart.de> <4DE22684.6070806@localhost.localdomain.org> Message-ID: <4DE2291E.1070803@jkart.de> am 29.05.11 12:57 schrieb Pascal Volk : > On 05/29/2011 12:12 PM Jim Knuth wrote: >> am 28.05.11 12:36 schrieb Jim Knuth: >> >>> Hi, >>> >>> I have the following report after a cron job again? >>> >>> /root/tools/expunge: Zeile 3: 4869 Speicherzugriffsfehler doveadm >>> expunge -A mailbox Spam savedbefore 5d >>> /root/tools/expunge: Zeile 5: 4915 Speicherzugriffsfehler doveadm >>> expunge -A mailbox Papierkorb savedbefore 4d >>> >>> See the attachment. > > Which attachment? I`ve send already with the first post. Whatever. here again. > Upgrading to v2.0.13 may also solve your problem. That is V 2.0.13 > Regards, > Pascal -- Mit freundlichen Gr??en, with kind regards, Jim Knuth --------- Die Antwort ist 42. (Per Anhalter durch die Galaxis) -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: doveadm-bt_full.txt URL: From jk at jkart.de Sun May 29 14:14:05 2011 From: jk at jkart.de (Jim Knuth) Date: Sun, 29 May 2011 13:14:05 +0200 Subject: [Dovecot] Segmentation fault again In-Reply-To: <4DE22684.6070806@localhost.localdomain.org> References: <4DE0D02C.4060807@jkart.de> <4DE21BFA.4020300@jkart.de> <4DE22684.6070806@localhost.localdomain.org> Message-ID: <4DE22A7D.3010403@jkart.de> am 29.05.11 12:57 schrieb Pascal Volk : > > Did you apply that patch? http://hg.dovecot.org/dovecot-2.0/rev/475e6633b1d7 > Upgrading to v2.0.13 may also solve your problem. # 2.0.13 (936f6c2ddfdd): /etc/dovecot/dovecot.conf # OS: Linux 2.6.29.4 i686 Debian wheezy/sid > Regards, > Pascal -- Mit freundlichen Gr??en, with kind regards, Jim Knuth --------- Kluge Menschen suchen sich selbst die Erfahrungen aus, die sie zu machen w?nschen. (Aldous Huxley) From user+dovecot at localhost.localdomain.org Sun May 29 14:16:04 2011 From: user+dovecot at localhost.localdomain.org (Pascal Volk) Date: Sun, 29 May 2011 13:16:04 +0200 Subject: [Dovecot] Segmentation fault again In-Reply-To: <4DE2291E.1070803@jkart.de> References: <4DE0D02C.4060807@jkart.de> <4DE21BFA.4020300@jkart.de> <4DE22684.6070806@localhost.localdomain.org> <4DE2291E.1070803@jkart.de> Message-ID: <4DE22AF4.9060803@localhost.localdomain.org> On 05/29/2011 01:08 PM Jim Knuth wrote: > am 29.05.11 12:57 schrieb Pascal Volk > : >> Which attachment? > > I`ve send already with the first post. > Whatever. here again. When you compare them??, you will see the difference. >> Upgrading to v2.0.13 may also solve your problem. > > That is V 2.0.13 Yeah, the backtrace looks different and I'm sure, Timo will fix the problem soon. Regards, Pascal -- [1] http://dovecot.org/pipermail/dovecot/attachments/20110409/245be60b/attachment.txt [2] http://dovecot.org/pipermail/dovecot/attachments/20110529/f2b2ffd0/attachment-0001.txt -- The trapper recommends today: fabaceae.1114913 at localdomain.org From nick.z.edwards at gmail.com Mon May 30 03:52:37 2011 From: nick.z.edwards at gmail.com (Nick Edwards) Date: Mon, 30 May 2011 10:52:37 +1000 Subject: [Dovecot] recipient delimiters and virtual users In-Reply-To: <20110528063111.3c7955bd@scorpio> References: <20110528063111.3c7955bd@scorpio> Message-ID: On Sat, May 28, 2011 at 8:31 PM, Jerry wrote: > On Sat, 28 May 2011 17:53:38 +1000 > Nick Edwards articulated: > > > > > > > > our postfix master.cf is > > dovecot unix - n n - - pipe > > flags=DRhu user=mail:mail argv=/usr/libexec/dovecot/deliver -e -d > > ${recipient} > > I use "+" addressing with Postfix & dovecot without a problem. This is > from the Postfix master.cf file: > > dovecot unix - n n - - pipe > flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f > ${sender} > -d ${user}@${nexthop} -a ${recipient} > > This was the problem, thanks, though the -a is not needed from reading the wiki options tells me it defaults to same. (BTW I got this message in my spam folder ???? it must not like the dollar signs?) But all is working thanks again for your help! Nicki From sean at donelan.com Mon May 30 06:39:36 2011 From: sean at donelan.com (Sean Donelan) Date: Sun, 29 May 2011 23:39:36 -0400 (EDT) Subject: [Dovecot] v2.0.13 released Message-ID: After configure and compiling dovecot-2.0.13, running "make check" fails on a few tests on sparc/solaris net_is_in_network(0) ................................................. : ok net_is_in_network(1) ................................................. : ok net_is_in_network(2) ................................................. : ok net_is_in_network(3) ................................................. : ok net_is_in_network(4) ................................................. : ok net_is_in_network(5) ................................................. : ok net_is_in_network(6) ................................................. : ok net_is_in_network(7) ................................................. : ok net_is_in_network(8) ................................................. : ok net_is_in_network(9) ................................................. : ok net_is_in_network(10) ................................................ : ok net_is_in_network(11) ................................................ : FAILED net_is_in_network(12) ................................................ : FAILED net_is_in_network(13) ................................................ : ok net_is_in_network(14) ................................................ : ok net_is_in_network(15) ................................................ : ok net_is_in_network(16) ................................................ : ok The failing tests are for { "255.255.255.255", "128.0.0.0", 1, TRUE }, { "255.255.255.255", "127.0.0.0", 1, FALSE } src/lib/network.c src/lib/test-network From dovecot.user at seibercom.net Mon May 30 14:05:15 2011 From: dovecot.user at seibercom.net (Jerry) Date: Mon, 30 May 2011 07:05:15 -0400 Subject: [Dovecot] recipient delimiters and virtual users In-Reply-To: References: <20110528063111.3c7955bd@scorpio> Message-ID: <20110530070515.3d0f147d@scorpio> On Mon, 30 May 2011 10:52:37 +1000 Nick Edwards articulated: > (BTW I got this message in my spam folder ???? it must not like the > dollar signs?) Interesting! I hope this does not end up in the Spam folder also. Out of morbid curiosity, did it give any indication why it was marked "Spam"? -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ From hanns at hannsmattes.de Mon May 30 14:52:36 2011 From: hanns at hannsmattes.de (Hanns Mattes) Date: Mon, 30 May 2011 13:52:36 +0200 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server Message-ID: <4DE38504.2020608@hannsmattes.de> Hi, is there a problem with the server, which is running this list, or do I have an issue with my DNS-server? mail:/ # host 193.210.130.67 Host 67.130.210.193.in-addr.arpa. not found: 3(NXDOMAIN) which leads to postfix complaining: May 30 13:28:39 mail postfix/smtpd[25014]: NOQUEUE: reject_warning: RCPT from unknown[193.210.130.67]: 450 4.7.1 Client host rejected: cannot find your reverse hostname, [193.210.130.67]; from= to= proto=ESMTP helo= Regards Hanns From tss at iki.fi Mon May 30 14:59:36 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 30 May 2011 14:59:36 +0300 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: <4DE38504.2020608@hannsmattes.de> References: <4DE38504.2020608@hannsmattes.de> Message-ID: <1306756776.10421.408.camel@hurina> On Mon, 2011-05-30 at 13:52 +0200, Hanns Mattes wrote: > is there a problem with the server, which is running this list, or do I > have an issue with my DNS-server? > > mail:/ # host 193.210.130.67 > Host 67.130.210.193.in-addr.arpa. not found: 3(NXDOMAIN) The IP changed last Friday and the ISP is being slow in adding the reverse DNS.. From dovecot-user at spambox.dk Mon May 30 15:11:59 2011 From: dovecot-user at spambox.dk (Henrik Larsson) Date: Mon, 30 May 2011 14:11:59 +0200 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: <4DE38504.2020608@hannsmattes.de> References: <4DE38504.2020608@hannsmattes.de> Message-ID: <1adc0844a2632d88f5d4b4fb29534576@larsson.as> > which leads to postfix complaining: > > May 30 13:28:39 mail postfix/smtpd[25014]: NOQUEUE: reject_warning: > RCPT > from unknown[193.210.130.67]: 450 4.7.1 Client host rejected: cannot > find your reverse hostname, [193.210.130.67]; > from= to= > proto=ESMTP > helo= If your are checking for reverse hostname and won't accept e-mails if this is not present you will reject a lot of legitimate mail. From imap at tnde.org Mon May 30 15:18:21 2011 From: imap at tnde.org (imap at tnde.org) Date: Mon, 30 May 2011 08:18:21 -0400 Subject: [Dovecot] Unknown setting: dbox_attachment_dir Message-ID: <6aa4663f8f159b8334230cb285386628.squirrel@emailmg.dot5hosting.com> Hi, I am trying to set up Dovecot with sdbox and sis (single instance storage of attachments), however I get the following error when attempting to start dovecot: Starting Dovecot Imap: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 89: Unknown setting: dbox_attachment_dir I'd appreciate help on getting this up and running. This is a virtual (for the time being) server, running Centos, and Dovecot 2. [root at localhost ~]# dovecot --build-options Build options: ioloop=epoll notify=inotify ipv6 openssl io_block_size=8192 Mail storages: cydir maildir mbox mdbox raw sdbox shared SQL driver plugins: mysql postgresql sqlite Passdb: checkpassword ldap pam passwd passwd-file shadow sql Userdb: checkpassword ldap(plugin) nss passwd prefetch passwd-file sql [root at localhost ~]# dovecot -n # 2.0.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.18-238.9.1.el5 x86_64 CentOS release 5.6 (Final) auth_debug = yes auth_debug_passwords = yes auth_verbose = yes disable_plaintext_auth = no mail_location = sdbox:~/dbox mbox_write_locks = fcntl passdb { driver = pam } ssl_cert = References: <20110528063111.3c7955bd@scorpio> <20110530070515.3d0f147d@scorpio> Message-ID: On Mon, May 30, 2011 at 9:05 PM, Jerry wrote: > On Mon, 30 May 2011 10:52:37 +1000 > Nick Edwards articulated: > > > (BTW I got this message in my spam folder ???? it must not like the > > dollar signs?) > > Interesting! I hope this does not end up in the Spam folder also. Out > of morbid curiosity, did it give any indication why it was marked > "Spam"? > > It did, and I don't know why, gmail is pretty brain dead so could be anything. It must be the list triggering it? From mikael.bak at yandex.ru Mon May 30 15:45:22 2011 From: mikael.bak at yandex.ru (=?UTF-8?B?0JHQsNC6INCc0LjQutCw0LXQuw==?=) Date: Mon, 30 May 2011 14:45:22 +0200 Subject: [Dovecot] recipient delimiters and virtual users In-Reply-To: References: <20110528063111.3c7955bd@scorpio> <20110530070515.3d0f147d@scorpio> Message-ID: <4DE39162.7080105@yandex.ru> Nick Edwards wrote: > On Mon, May 30, 2011 at 9:05 PM, Jerry wrote: > >> On Mon, 30 May 2011 10:52:37 +1000 >> Nick Edwards articulated: >> >>> (BTW I got this message in my spam folder ???? it must not like the >>> dollar signs?) >> Interesting! I hope this does not end up in the Spam folder also. Out >> of morbid curiosity, did it give any indication why it was marked >> "Spam"? >> >> > It did, and I don't know why, gmail is pretty brain dead so could be > anything. It must be the list triggering it? > Sorry for the off topic comment. My email provider (Yandex) is randomly placing email from Dovecot and Postfix list in the spam folder. I have no idea why. Big providers has lousy spam filter. Sometimes Gmail is doing the same. Thought I'd let you know that I have the same problem. Cheers, Mikael From nick.z.edwards at gmail.com Mon May 30 15:48:33 2011 From: nick.z.edwards at gmail.com (Nick Edwards) Date: Mon, 30 May 2011 22:48:33 +1000 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: <1adc0844a2632d88f5d4b4fb29534576@larsson.as> References: <4DE38504.2020608@hannsmattes.de> <1adc0844a2632d88f5d4b4fb29534576@larsson.as> Message-ID: On Mon, May 30, 2011 at 10:11 PM, Henrik Larsson wrote: > which leads to postfix complaining: >> >> May 30 13:28:39 mail postfix/smtpd[25014]: NOQUEUE: reject_warning: RCPT >> from unknown[193.210.130.67]: 450 4.7.1 Client host rejected: cannot >> find your reverse hostname, [193.210.130.67]; >> from= to= proto=ESMTP >> helo= >> > > If your are checking for reverse hostname and won't accept e-mails if this > is not present you will reject a lot of legitimate mail. > This also stops more spam than the good mail it blocks, when people get blocked for this, they should complain to their ISP, why should we accept NON RFC compliant mail servers because the sys admin has not got around to reading dns 101? Yes I know some ISP dont care and shrug their shoulders, I tell the people who complain to postmaster address to find an ISP who can set up their networks and cares about their users! My employer does not pay me to sit here and update the whitelist files every 15 minutes because of some ISP who doesn't care about their users sending mail, and at my last employer a couple of years ago, we did the sums, 92% of spam stopped by rejecting no dns hosts! even here I still see it mx-in1 ~$ cat maillog | grep -c "cannot find your hostname" 5328 mx-in2 ~$ cat maillog | grep -c "cannot find your hostname" 7041 in only 20 hours since logs rolled!!!!!!! enjoy your spam :-> From hanns at hannsmattes.de Mon May 30 16:00:33 2011 From: hanns at hannsmattes.de (Hanns Mattes) Date: Mon, 30 May 2011 15:00:33 +0200 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: <1adc0844a2632d88f5d4b4fb29534576@larsson.as> References: <4DE38504.2020608@hannsmattes.de> <1adc0844a2632d88f5d4b4fb29534576@larsson.as> Message-ID: <4DE394F1.704@hannsmattes.de> Am 30.05.2011 14:11, schrieb Henrik Larsson: > If your are checking for reverse hostname and won't accept e-mails if > this is not present you will reject a lot of legitimate mail. No problem here, using the Postfix-restriction reject_unknown_reverse_client_hostname Regards Hanns From giles at coochey.net Mon May 30 16:05:59 2011 From: giles at coochey.net (Giles Coochey) Date: Mon, 30 May 2011 15:05:59 +0200 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: References: <4DE38504.2020608@hannsmattes.de> <1adc0844a2632d88f5d4b4fb29534576@larsson.as> Message-ID: <75c6bd28758ed622773a82695612d5f5.squirrel@www.coochey.net> On Mon, May 30, 2011 14:48, Nick Edwards wrote: > On Mon, May 30, 2011 at 10:11 PM, Henrik Larsson > wrote: > > > > This also stops more spam than the good mail it blocks, when people get > blocked for this, they should complain to their ISP, why should we accept > NON RFC compliant mail servers because the sys admin has not got around to > reading dns 101? > If you can afford to block legitimate email (RFC compliant or not) in order to reduce your spam then something is seriously wrong. Regardless of how efficient you spam filters are, if they produce false positives, then they're not usable at all. If you disagree, then nere is a 100% guaranteed way to stop ALL your spam: /etc/init.d/postfix stop Regards, Giles From tom at whyscream.net Mon May 30 16:12:16 2011 From: tom at whyscream.net (Tom Hendrikx) Date: Mon, 30 May 2011 15:12:16 +0200 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: <4DE394F1.704@hannsmattes.de> References: <4DE38504.2020608@hannsmattes.de> <1adc0844a2632d88f5d4b4fb29534576@larsson.as> <4DE394F1.704@hannsmattes.de> Message-ID: <4DE397B0.4060900@whyscream.net> On 30/05/11 15:00, Hanns Mattes wrote: > Am 30.05.2011 14:11, schrieb Henrik Larsson: >> If your are checking for reverse hostname and won't accept e-mails if >> this is not present you will reject a lot of legitimate mail. > > No problem here, using the Postfix-restriction > reject_unknown_reverse_client_hostname > > Regards Hanns > I just saw a complaint regarding some possible DNS issue on someone's mail server. The person who was asking around, had some issue with not receiving e-mails from a valid mailing list that he was subscribed to. His name looked just like yours :) -- Regards, Tom From hanns at hannsmattes.de Mon May 30 16:47:06 2011 From: hanns at hannsmattes.de (Hanns Mattes) Date: Mon, 30 May 2011 15:47:06 +0200 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: <4DE397B0.4060900@whyscream.net> References: <4DE38504.2020608@hannsmattes.de> <1adc0844a2632d88f5d4b4fb29534576@larsson.as> <4DE394F1.704@hannsmattes.de> <4DE397B0.4060900@whyscream.net> Message-ID: <4DE39FDA.2010904@hannsmattes.de> Am 30.05.2011 15:12, schrieb Tom Hendrikx: > On 30/05/11 15:00, Hanns Mattes wrote: >> Am 30.05.2011 14:11, schrieb Henrik Larsson: >>> If your are checking for reverse hostname and won't accept e-mails if >>> this is not present you will reject a lot of legitimate mail. >> >> No problem here, using the Postfix-restriction >> reject_unknown_reverse_client_hostname >> > > I just saw a complaint regarding some possible DNS issue on someone's > mail server. The person who was asking around, had some issue with not > receiving e-mails from a valid mailing list that he was subscribed to. > > His name looked just like yours :) :-) Nevertheless: There WAS a DNS-Issue on someone's mail server. And I'won't give up one of my most effective Anti-Spam measures, because an ISP ist slow in adding a reverse DNS. Yes, there is as risk of false positives, if you try to block spam (though in this case, it is no false positive at all), but what is the alternative? Stop blocking Spam? I don't think so. Regards Hanns From tss at iki.fi Mon May 30 16:59:12 2011 From: tss at iki.fi (Timo Sirainen) Date: Mon, 30 May 2011 16:59:12 +0300 Subject: [Dovecot] OT: DNS-Problem with Mailnglist-Server In-Reply-To: <1306756776.10421.408.camel@hurina> References: <4DE38504.2020608@hannsmattes.de> <1306756776.10421.408.camel@hurina> Message-ID: <1306763952.10421.410.camel@hurina> On Mon, 2011-05-30 at 14:59 +0300, Timo Sirainen wrote: > On Mon, 2011-05-30 at 13:52 +0200, Hanns Mattes wrote: > > > is there a problem with the server, which is running this list, or do I > > have an issue with my DNS-server? > > > > mail:/ # host 193.210.130.67 > > Host 67.130.210.193.in-addr.arpa. not found: 3(NXDOMAIN) > > The IP changed last Friday and the ISP is being slow in adding the > reverse DNS.. Looks like they finally added it. From user+dovecot at localhost.localdomain.org Mon May 30 21:19:15 2011 From: user+dovecot at localhost.localdomain.org (Pascal Volk) Date: Mon, 30 May 2011 20:19:15 +0200 Subject: [Dovecot] Unknown setting: dbox_attachment_dir In-Reply-To: <6aa4663f8f159b8334230cb285386628.squirrel@emailmg.dot5hosting.com> References: <6aa4663f8f159b8334230cb285386628.squirrel@emailmg.dot5hosting.com> Message-ID: <4DE3DFA3.2080708@localhost.localdomain.org> On 05/30/2011 02:18 PM imap at tnde.org wrote: > Starting Dovecot Imap: doveconf: Fatal: Error in configuration file > /etc/dovecot/dovecot.conf line 89: Unknown setting: dbox_attachment_dir ,--[ conf.d/10-mail.conf:319-330 ]-- | ## | ## Mail attachments | ## | | # sdbox and mdbox support saving mail attachments to external files, which | # also allows single instance storage for them. Other backends don't support | # this for now. | | # WARNING: This feature hasn't been tested much yet. Use at your own risk. | | # Directory root where to store mail attachments. Disabled, if empty. | #mail_attachment_dir = `-- Regards, Pascal -- The trapper recommends today: c01dcafe.1115020 at localdomain.org From juan at inti.gob.ar Mon May 30 22:02:17 2011 From: juan at inti.gob.ar (Juan Bernhard) Date: Mon, 30 May 2011 16:02:17 -0300 Subject: [Dovecot] PAM config problem... In-Reply-To: <17660AE4-188E-4FCC-87D5-75F8B3BBDFA2@geneseo.edu> References: <4DDE9E54.8020105@inti.gob.ar> <17660AE4-188E-4FCC-87D5-75F8B3BBDFA2@geneseo.edu> Message-ID: <4DE3E9B9.6070402@inti.gob.ar> El 27/05/2011 09:51, David Warden escribi?: > Someone else may have responded to this already but it looks like you have a problem in the passdb section of your config. See my inline... > > On May 26, 2011, at 2:39 PM, Juan Bernhard wrote: > >> Hi, >> I had some troubles with PAM configuration. I need to restrict imap >> access to some users (and allow pop3 to all). I followed the wiki >> example of using "args = %s" to use 2 pams configurations (one for imap >> and another for pop3) >> When I start the service, it starts, but when I try to auth its hangs >> Here is the log: >> May 26 15:16:09 claudia dovecot: master: Warning: Killed with signal 15 >> (by pid=15424 uid=0 code=kill) >> May 26 15:16:10 claudia dovecot: master: Dovecot v2.0.13 starting up >> May 26 15:16:24 claudia dovecot: auth: Debug: Loading modules from >> directory: /usr/local/lib/dovecot/auth >> May 26 15:16:24 claudia dovecot: auth: Fatal: pam: Unknown setting: %s >> May 26 15:16:24 claudia dovecot: master: Error: service(auth): command >> startup failed, throttling >> May 26 15:16:59 claudia dovecot: pop3-login: Error: Timeout waiting for >> handshake from auth server. my pid=15435, input bytes=0 >> >> Is this option working? Im I missing somethin? I had the same proble in >> Solaris (but i thought that was a solaris thing, solaris is ALWAYS diferent) >> >> here is my doveconf -n >> # 2.0.13: /usr/local/etc/dovecot/dovecot.conf >> # OS: Linux 2.6.18-238.9.1.el5 x86_64 CentOS release 5.6 (Final) ext3 >> auth_cache_size = 10 M >> auth_debug = yes >> base_dir = /var/run/dovecot/ >> disable_plaintext_auth = no >> listen = * >> login_greeting = Server ready. >> mail_debug = yes >> mail_location = maildir:/var/mail/%u:INDEX=~/ >> mail_plugins = quota >> passdb { >> args = %s failure_show_msg=yes > I think you want %s (service) after failure_show_msg=yes. At least the default config file says that the PAM service comes after the key,value config pars for args. Doh!... Thanks you!! That solved my problem! Its seems easy when you know what to do, hehe... args = failure_show_msg=yes %s Works. Thanks again >> driver = pam >> } >> plugin { >> quota = maildir:Cuota de correo >> quota_rule = *:storage=1G >> quota_rule2 = Trash:storage=+100M >> } >> protocols = imap pop3 >> ssl = no >> ssl_cert = > ssl_key = > userdb { >> driver = passwd >> } >> protocol imap { >> imap_client_workarounds = tb-extra-mailbox-sep tb-lsub-flags >> mail_plugins = quota imap_quota >> } >> protocol pop3 { >> pop3_client_workarounds = outlook-no-nuls oe-ns-eoh >> pop3_lock_session = yes >> pop3_uidl_format = %08Xv%08Xu >> } >> >> >> And the build options: >> Build options: ioloop=epoll notify=inotify ipv6 openssl io_block_size=8192 >> Mail storages: cydir maildir mbox mdbox raw sdbox shared >> SQL drivers: >> Passdb: checkpassword ldap pam passwd passwd-file shadow >> Userdb: checkpassword ldap nss passwd prefetch passwd-file >> >> >> Thanks, Juan. >> >> >> >> >> >> > > From dmiller at amfes.com Tue May 31 02:16:25 2011 From: dmiller at amfes.com (Daniel Miller) Date: Mon, 30 May 2011 16:16:25 -0700 Subject: [Dovecot] Admin access to shared mailboxes Message-ID: Having enabled shared mailboxes - is there a way to provide access to all users' mailboxes by a given user? Instead of having to manually provide ACL rights to every mailbox of every user? -- Daniel From gouravjoshi at gmail.com Tue May 31 08:53:39 2011 From: gouravjoshi at gmail.com (=?UTF-8?B?4KSX4KWM4KSw4KS1IOCknOCli+CktuClgA==?=) Date: Tue, 31 May 2011 11:23:39 +0530 Subject: [Dovecot] Help needed on dovecot 2.0.13 Message-ID: Hi, We have just installed dovecot version 2.0.13 on our server. while load testing we get below error in logs. May 30 19:57:19 [My Server]dovecot: imap-login: Error: read(imap) failed: Connection reset by peer May 30 19:57:19 [My Server] dovecot: imap-login: Internal login failure (pid=25816 id=1) (auth failed, 1 attempts): Please help as we want to use this on live environment and if these tests fails we can not move this server into live structure. Have a nice time, Gourav Joshi Have a look at www.linuxquestions.in From joseba.torre at ehu.es Tue May 31 11:16:03 2011 From: joseba.torre at ehu.es (Joseba Torre) Date: Tue, 31 May 2011 10:16:03 +0200 Subject: [Dovecot] Admin access to shared mailboxes In-Reply-To: References: Message-ID: <201105311016.04024.joseba.torre@ehu.es> On Martes 31 Mayo 2011 01:16:25 Daniel Miller escribi?: > Having enabled shared mailboxes - is there a way to provide access to > all users' mailboxes by a given user? Instead of having to manually > provide ACL rights to every mailbox of every user? http://wiki2.dovecot.org/Authentication/MasterUsers -- Joseba Torre. Vicegerencia de TICs, ?rea de Explotaci?n From stan at hardwarefreak.com Tue May 31 11:28:53 2011 From: stan at hardwarefreak.com (Stan Hoeppner) Date: Tue, 31 May 2011 03:28:53 -0500 Subject: [Dovecot] Help needed on dovecot 2.0.13 In-Reply-To: References: Message-ID: <4DE4A6C5.60605@hardwarefreak.com> On 5/31/2011 12:53 AM, ???? ???? wrote: > Hi, > > We have just installed dovecot version 2.0.13 on our server. while load > testing we get below error in logs. > > May 30 19:57:19 [My Server]dovecot: imap-login: Error: read(imap) failed: > Connection reset by peer > May 30 19:57:19 [My Server] dovecot: imap-login: Internal login failure > (pid=25816 id=1) (auth failed, 1 attempts): > > > Please help as we want to use this on live environment and if these tests > fails we can not move this server into live structure. Always include 'dovecot -n' output when reporting a problem. In this scenario, you should also have included a detailed description of your load testing methodology. -- Stan From martin.rabl at rablnet.de Tue May 31 10:05:43 2011 From: martin.rabl at rablnet.de (Martin Rabl) Date: Tue, 31 May 2011 09:05:43 +0200 Subject: [Dovecot] Admin access to shared mailboxes In-Reply-To: References: Message-ID: <777DDC9F-5B4D-4255-B15A-66CAFE07B136@rablnet.de> Look for - Global ACL - Master user The Master User can login in a users' box as it Greeetings, Martin Am 31.05.2011 um 01:16 schrieb Daniel Miller: > Having enabled shared mailboxes - is there a way to provide access to all users' mailboxes by a given user? Instead of having to manually provide ACL rights to every mailbox of every user? > -- > Daniel > From harenberg at physik.uni-wuppertal.de Tue May 31 16:36:03 2011 From: harenberg at physik.uni-wuppertal.de (Torsten Harenberg) Date: Tue, 31 May 2011 15:36:03 +0200 Subject: [Dovecot] shared folders "invisible" on new setup Message-ID: Dear list, I hope this is not an old issue, but I couldn't find a solution even after google'ing quite some time. I try to migrate our institute's mail server (~200 users) from an old cyrus-based Mac installation to a new machine (NetBSD, dovecot 2.0.13). Everything went quite smoothly so far, but we are used to have "shared folders" ("public" folders in dovecot) and I simply couldn't make them to appear. I have two separate folders for private (user) mails and for public ones (yes, I set everything to 777 for the moment to avoid file access problems) : mailserver# pwd /var/mail mailserver# ls -al total 8 drwxrwxrwt 4 dovecot wheel 512 May 31 12:26 . drwxr-xr-x 28 root wheel 512 Mar 29 15:05 .. drwxrwxrwx 3 root mail 512 May 31 15:18 public drwxrwxrwx 4 root wheel 512 May 31 12:26 user In the public folder there is a shared folder named "fb8": mailserver# pwd /var/mail/public mailserver# ls -al total 8 drwxrwxrwx 3 root mail 512 May 31 15:18 . drwxrwxrwt 4 dovecot wheel 512 May 31 12:26 .. -rw-rw-rw- 1 10001 mail 0 May 31 15:14 dovecot-acl-list -rwxrwxrwx 1 root mail 0 May 31 11:06 dovecot-shared drwxrwxrwx 5 root mail 512 May 31 12:03 fb8 Now my own username (LDAP-based) is "harenber" and I try to subscribe myself to this list: mailserver# doveadm mailbox subscribe -u harenber public.fb8 mailserver# So a "subscriptions" file appears: mailserver# ls -al total 8 drwxrwxrwx 3 root mail 512 May 31 15:18 . drwxrwxrwt 4 dovecot wheel 512 May 31 12:26 .. -rw-rw-rw- 1 10001 mail 0 May 31 15:14 dovecot-acl-list -rwxrwxrwx 1 root mail 0 May 31 11:06 dovecot-shared drwxrwxrwx 5 root mail 512 May 31 12:03 fb8 -rw-rw-rw- 1 10001 mail 4 May 31 15:18 subscriptions mailserver# cat subscriptions fb8 mailserver# (although I think this is wrong, as I have namespace { list = children location = maildir:/var/mail/public:INDEX=~/public prefix = public. separator = . subscriptions = no type = public } I would assume this file to appear somewhere in /var/mail/user/harenber/public... ) But I cannot access this "fb8" folder with any client. Alpine says that the public folder is empty: ----------------------------------------------------------------------------------------------------------------------------------Folder-Collection ---------------------------------------------------------------------------------------------------------------------------------- [No Folders in Collection] and also Apple Mail sees nothing beneath "public". Tried to speak IMAP directly shows: 01 login harenber XXXXX 01 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS ACL RIGHTS=texk] Logged in 02 namespace * NAMESPACE (("" ".")) NIL (("public." ".")) 02 OK Namespace completed. 03 list "" * * LIST (\HasNoChildren) "." "Trash" * LIST (\HasNoChildren) "." "ALiCEnext" [...] * LIST (\HasNoChildren) "." "sent-mail" * LIST (\HasNoChildren) "." "tier2" * LIST (\HasNoChildren) "." "trash" * LIST (\HasNoChildren) "." "INBOX" * LIST (\Noselect \HasChildren) "." "public" 03 OK List completed Maybe someone of you has a clue what I do wrong here, I'm completely lost at the moment. Thanks for any hint and best regards, Torsten mailserver# doveconf -n # 2.0.13: /usr/pkg/etc/dovecot/dovecot.conf # OS: NetBSD 5.1 amd64 ffs auth_debug = yes auth_verbose = yes base_dir = /var/run/dovecot/ mail_debug = yes mail_gid = 6 mail_location = maildir:/var/mail/user/%u mail_plugins = acl managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date namespace { inbox = yes location = prefix = separator = . type = private } namespace { list = children location = maildir:/var/mail/public:INDEX=%u/public prefix = public. separator = . subscriptions = no type = public } passdb { args = /usr/pkg/etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { acl = vfile sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } protocols = imap pop3 lmtp sieve service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = dovecot user = dovecot } } service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } } ssl_cert = <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> <> <> <> Dr. Torsten Harenberg harenberg at physik.uni-wuppertal.de <> <> Bergische Universitaet <> <> FB C - Physik Tel.: +49 (0)202 439-3521 <> <> Gaussstr. 20 Fax : +49 (0)202 439-2811 <> <> 42097 Wuppertal <> <> <> <><><><><><><>< Of course it runs NetBSD http://www.netbsd.org ><> From jimkarlsson82 at gmail.com Tue May 31 12:36:00 2011 From: jimkarlsson82 at gmail.com (Theatre) Date: Tue, 31 May 2011 02:36:00 -0700 (PDT) Subject: [Dovecot] How to make SUBdirectories in Dovecot... Message-ID: <31739301.post@talk.nabble.com> Hi! I wonder how i can get subdirectories (.INBOX/***/*** etc...) in dovecot... I just stardet a mail server and when i tried to create it from the mail client (MS Outlook) it says that the server wont allow it... Anyone who knows a solution? -- View this message in context: http://old.nabble.com/How-to-make-SUBdirectories-in-Dovecot...-tp31739301p31739301.html Sent from the Dovecot mailing list archive at Nabble.com. From robert at schetterer.org Tue May 31 17:32:34 2011 From: robert at schetterer.org (Robert Schetterer) Date: Tue, 31 May 2011 16:32:34 +0200 Subject: [Dovecot] How to make SUBdirectories in Dovecot... In-Reply-To: <31739301.post@talk.nabble.com> References: <31739301.post@talk.nabble.com> Message-ID: <4DE4FC02.80301@schetterer.org> Am 31.05.2011 11:36, schrieb Theatre: > > Hi! > > I wonder how i can get subdirectories (.INBOX/***/*** etc...) in dovecot... > I just stardet a mail server and when i tried to create it from the mail > client (MS Outlook) it says that the server wont allow it... > > Anyone who knows a solution? > > yes post your conf -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria From dmiller at amfes.com Tue May 31 18:53:38 2011 From: dmiller at amfes.com (Daniel Miller) Date: Tue, 31 May 2011 08:53:38 -0700 Subject: [Dovecot] dbox single instance storage maintenance Message-ID: Does the "doveadm purge" operation delete unused attachments? -- Daniel