Re: [Dovecot] Postfix Dovecot LDA
Hi. I know, this is a pretty old thread, but since I just ran into similar problems while setting up my one-user-per-virtual-domain postfix + multi-instance-dovecot/-lda, I thought I might share my fix in this related (and most useful) thread. My setup might not be used often - I am running two dovecot instances (on different IP addresses on the same server, in case you're wondering), with the first instance exporting the auth-master socket. I am using different UID/GIDs for my virtual domains/mailboxes. I couldn't get postfix setgid accordingly when callig deliver, and I didn't want to use SUID on deliver. The versions I am using are: dovecot 1.0.13 postfix 2.3.8 My first dovecot instance is using: auth default { socket listen { master { path = /var/run/dovecot/auth-master mode = 0600 user = vmail } } } The other is using: protocol lda { auth_socket_path = /var/run/dovecot/auth-master } And my postfix's master.cf is: dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient} dovecot-other unix -n n - - pipe flags=DRhu user=vmail-other:vmail-other argv=/usr/lib/dovecot/deliver -c /etc/dovecot/other/dovecot.conf -f ${sender} -d ${recipient} My fix is: I use filesystem ACLs and just set the ACLs of the auth-master socket after starting the first dovecot instance (which creates the socket). I.e. I run after starting dovecot (and waiting for a second...): setfacl -m u:vmail-other:rw /var/run/dovecot/auth-master This works only for filesystems with ACL support, of course. I use setfacl with ext2/3; other filesystem ACL tools might differ. Oh, and thanks for dovecot and this supportive mailinglist btw. (even though this is my first post: hi everyone :) ) Greetings, Jens
Re: [Dovecot] postfix, dovecot-lda, sieve smartsieve not working on 1.1-rc4
On Fri, 2008-04-04 at 16:52 +0200, [EMAIL PROTECTED] wrote: Seems there is a bug in 1.1-rc4 in regards to sieve/managesieve, this problem goes away if I downgrade to 1.0.13. Since it's not logging Using sieve path it most likely means it doesn't find Sieve script. Could you patch your Sieve plugin with: http://hg.dovecot.org/dovecot-sieve-1.1/rev/af18c7215bde Then it should show where it's looking for the script. signature.asc Description: This is a digitally signed message part
[Dovecot] postfix, dovecot-lda, sieve smartsieve not working on 1.1-rc4
Seems there is a bug in 1.1-rc4 in regards to sieve/managesieve, this problem goes away if I downgrade to 1.0.13. Gentoo x86_64 2.6.18-028stab053 (OpenVZ) Intel(R) Core(TM)2 Quad CPU Q6600 Maildirs are not NFS mounted The VE in question runs daemons with the following USE flags; mail-mta/postfix-2.4.6-r2 USE=dovecot-sasl ipv6 ldap mailwrapper mysql pam ssl net-mail/dovecot-1.0.13-r1 USE=ipv6 ldap managesieve mysql pam sieve ssl Sieve rules are setup only in Smartsieve(1.0-RC2), running in Lighttpd(1.4.18-r3). --- # 1.0.13: /etc/dovecot/dovecot.conf protocols: imaps managesieve ssl_cert_file: /etc/ssl/private/hoiseth.no.pem ssl_key_file: /etc/ssl/private/hoiseth.no.key login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(managesieve): /usr/libexec/dovecot/managesieve-login mail_location: maildir:~/.maildir mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(managesieve): /usr/libexec/dovecot/managesieve mail_plugin_dir(default): /usr/lib64/dovecot/imap mail_plugin_dir(imap): /usr/lib64/dovecot/imap mail_plugin_dir(managesieve): /usr/lib64/dovecot/managesieve sieve_storage(default): sieve_storage(imap): sieve_storage(managesieve): ~/sieve sieve(default): sieve(imap): sieve(managesieve): ~/.dovecot.sieve auth default: passdb: driver: pam args: login userdb: driver: passwd --- 1.1-rc4; deliver(kjetil): Apr 04 15:17:43 Info: Loading modules from directory: /usr/lib/dovecot/lda deliver(kjetil): Apr 04 15:17:43 Info: Module loaded: /usr/lib/dovecot/lda/lib90_cmusieve_plugin.so deliver(kjetil): Apr 04 15:17:43 Info: maildir: data=/home/kjetil/.maildir deliver(kjetil): Apr 04 15:17:43 Info: maildir++: root=/home/kjetil/.maildir, index=, control=, inbox=/home/kjetil/.maildir deliver(kjetil): Apr 04 15:17:43 Info: msgid=[EMAIL PROTECTED]: saved mail to INBOX 1.0.13; deliver(kjetil): Apr 04 15:33:14 Info: Loading modules from directory: /usr/lib/dovecot/lda deliver(kjetil): Apr 04 15:33:14 Info: Module loaded: /usr/lib/dovecot/lda/lib90_cmusieve_plugin.so deliver(kjetil): Apr 04 15:33:14 Info: maildir: data=/home/kjetil/.maildir deliver(kjetil): Apr 04 15:33:14 Info: maildir: root=/home/kjetil/.maildir, index=/home/kjetil/.maildir, control=, inbox= deliver(kjetil): Apr 04 15:33:14 Info: cmusieve: Using sieve path: /home/kjetil/.dovecot.sieve deliver(kjetil): Apr 04 15:33:14 Info: cmusieve: Executing script /home/kjetil/.dovecot.sievec deliver(kjetil): Apr 04 15:33:14 Info: msgid=[EMAIL PROTECTED]: saved mail to priv I upgraded to 1.1-rc4 and indeed the problem re-occured, Id be happy to bring more info/ax to the VE if it helps nailing the issue.
[Dovecot] Postfix Dovecot LDA
Hi, I was using Dovecot (POP3,IMAP+quotas) with postfix quota addon. But the postfix's quotas were reported differently and the quota file gets messed up all the time. So now I have also Dovecot's LDA, and everything works like charm... but... Now postfix can pass only one mail at a time to LDA. And that slows down delivery. Postfix master file: dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient} Is there a way to pass more than one mail at a time?
Re: [Dovecot] postfix + dovecot lda,
On Wed, 2007-08-29 at 16:53 +0100, Michael Moritz wrote: I'm trying to replace procmail with deliver but I'm having problems with the group part of things. I keep getting: Aug 29 16:44:19 dingbat deliver(mimo): open(/var/mail/.temp.dingbat.3969.d1689935a308e0dd) failed: Permission denied Aug 29 16:44:19 dingbat deliver(mimo): file_lock_dotlock() failed with mbox file /var/mail/mimo: Permission denied My primary group is mimo and I think it's trying to use that. I changed it to mail and things work. But I do not want all my users to have a primary group mail. Is there a way I can force deliver to use group mail as group and ignore the per user gid? Do you run deliver as root? If so, for now you could do this: protocol lda { restrict_setextragroups = mail } I'll fix mail_extra_groups to work with deliver for v1.0.5. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] postfix + dovecot lda,
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 29 Aug 2007, Michael Moritz wrote: Is there a way I can force deliver to use group mail as group and ignore the per user gid? I tried chmod 6755 /usr/lib/dovecot/deliver but no change. If I remember correctly, there is a setting mail_extra_groups to do right this. Bye, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBRtZqTi9SORjhbDpvAQLa0AgAxYcQ5yeekyl2Mo3NTtdPlf76ndTWGJoh i5bFzzpRfdskhpFN8+PYz15rnoTtXF3pCb65QXmUXFp7DkSspxewW7eaOdA2d+s/ LfAAXGJ59T9M4NXX/PrDkpwDpr6E4dcX3ZwtsLPDi4hx8fEc3yHIz6wYzK1zX7T6 ZraT5W974B0UceZ1EkegysKwGeqlG6bE3Lzw7k805NUJ5er72vi3BwtkMUtt/g9T YE6/xpHqPiXWygwua/d7J2fYGd8Js9nULgIUCNi3u0hgtK8YaojiVbHTGx7xyszY HihLgS0FPZdT3nAPFjAtKMpFtirlDVXviI15VG5FZ2X9mPT2/pxsfw== =qqFz -END PGP SIGNATURE-
Re: [Dovecot] postfix + dovecot lda,
On Thursday 30 August 2007 07:57:15 Steffen Kaiser wrote: On Wed, 29 Aug 2007, Michael Moritz wrote: Is there a way I can force deliver to use group mail as group and ignore the per user gid? I tried chmod 6755 /usr/lib/dovecot/deliver but no change. If I remember correctly, there is a setting mail_extra_groups to do right this. Bye, Sorry, I should have included this before # dovecot -n # /etc/dovecot/dovecot.conf log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login mail_extra_groups: mail mail_location: mbox:~/mail:INBOX=/var/mail/%u auth default: passdb: driver: pam userdb: driver: passwd socket: type: listen client: master: path: /var/run/dovecot/auth-master mode: 384 user: mail group: mail