[Dovecot] postfix + dspam + dovecot problem
Hi All,
I'm new to dovecot (coming from cyrus) and have a bit of a problem setting up postfix + dspam + dovecot.
postfix + dovecot: works like a charm.
Using "mailbox_command = /usr/lib/dovecot/deliver" in postfix main.cf
adding dspam to the equation: unable to deliver: net_connect(/usr/var/run/dovecot/auth-master) failed: No such file or directory
Using "mailbox_transport = lmtp:unix:/var/tmp/dspam.sock" in postfix main.cf (instead of the above mailbox_command), and the corresponding setting in master.cf.
In /etc/dspam.conf I'm using... TrustedDeliveryAgent "/usr/lib/dovecot/deliver"
And here's the full error message:
Sep 11 02:10:38 nwinnie postfix/pickup[18313]: 090F1C042: uid=0 from=<root> Sep 11 02:10:38 nwinnie postfix/cleanup[7010]: 090F1C042: message-id=20070911001038.090F1C042@nwinnie.telcotec.se Sep 11 02:10:38 nwinnie postfix/qmgr[18318]: 090F1C042: from=root@nwinnie.telcotec.se, size=431, nrcpt=1 (queue active) Sep 11 02:10:38 nwinnie deliver(stava@nwinnie.telcotec.se): net_connect(/usr/var/run/dovecot/auth-master) failed: No such file or directory Sep 11 02:10:38 nwinnie dspam[10379]: Delivery agent returned exit code 75: /usr/lib/dovecot/deliver -d stava@nwinnie.telcotec.se Sep 11 02:10:38 nwinnie postfix/lmtp[7018]: 090F1C042: to=stava@nwinnie.telcotec.se, orig_to=<stava>, relay=nwinnie.telcotec.se[/var/tmp/dspam.sock], delay=0.35, delays=0.32/0.01/0.01/0.01, dsn=4.3.0, status=deferred (host nwinnie.telcotec.se[/var/tmp/dspam.sock] said: 421 4.3.0 stava@nwinnie.telcotec.se Delivered (in reply to end of DATA command))
So, postfix hands the message to dspam, dspam does its thing, dspam tries to deliver and fails.
What throws me is that the delivery works as expected in case 1) but not in case 2), despite the fact I'm using the same delivery agent, i.e. /usr/lib/dovecot/deliver.
Why would dovecot go for some other authentication method in case 2)?
BTW, we're using PAM on top of LDAP.
Any ideas appreciated.
Cheers /Lars
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Lars Stavholm wrote:
Hi All,
I'm new to dovecot (coming from cyrus) and have a bit of a problem setting up postfix + dspam + dovecot.
postfix + dovecot: works like a charm.
Using "mailbox_command = /usr/lib/dovecot/deliver" in postfix main.cf
adding dspam to the equation: unable to deliver: net_connect(/usr/var/run/dovecot/auth-master) failed: No such file or directory where u put auth-master , on dovecot.conf
Using "mailbox_transport = lmtp:unix:/var/tmp/dspam.sock" in postfix main.cf (instead of the above mailbox_command), and the corresponding setting in master.cf.
In /etc/dspam.conf I'm using... TrustedDeliveryAgent "/usr/lib/dovecot/deliver"
And here's the full error message:
Sep 11 02:10:38 nwinnie postfix/pickup[18313]: 090F1C042: uid=0 from=<root> Sep 11 02:10:38 nwinnie postfix/cleanup[7010]: 090F1C042: message-id=20070911001038.090F1C042@nwinnie.telcotec.se Sep 11 02:10:38 nwinnie postfix/qmgr[18318]: 090F1C042: from=root@nwinnie.telcotec.se, size=431, nrcpt=1 (queue active) Sep 11 02:10:38 nwinnie deliver(stava@nwinnie.telcotec.se): net_connect(/usr/var/run/dovecot/auth-master) failed: No such file or directory Sep 11 02:10:38 nwinnie dspam[10379]: Delivery agent returned exit code 75: /usr/lib/dovecot/deliver -d stava@nwinnie.telcotec.se Sep 11 02:10:38 nwinnie postfix/lmtp[7018]: 090F1C042: to=stava@nwinnie.telcotec.se, orig_to=<stava>, relay=nwinnie.telcotec.se[/var/tmp/dspam.sock], delay=0.35, delays=0.32/0.01/0.01/0.01, dsn=4.3.0, status=deferred (host nwinnie.telcotec.se[/var/tmp/dspam.sock] said: 421 4.3.0 stava@nwinnie.telcotec.se Delivered (in reply to end of DATA command))
So, postfix hands the message to dspam, dspam does its thing, dspam tries to deliver and fails.
What throws me is that the delivery works as expected in case 1) but not in case 2), despite the fact I'm using the same delivery agent, i.e. /usr/lib/dovecot/deliver.
Why would dovecot go for some other authentication method in case 2)?
BTW, we're using PAM on top of LDAP.
Any ideas appreciated.
Cheers /Lars
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG5fb++z1lI7BxfPURAjRCAJ9mbZkUT1xBvW3pmiuatHqs/NHOugCgriKl l/Iyk74GP8hEbPme5hZa8xs= =AGyI -----END PGP SIGNATURE-----
indra wardhana wrote:
Lars Stavholm wrote:
Hi All,
I'm new to dovecot (coming from cyrus) and have a bit of a problem setting up postfix + dspam + dovecot.
- postfix + dovecot: works like a charm.
Using "mailbox_command = /usr/lib/dovecot/deliver" in postfix main.cf
- adding dspam to the equation: unable to deliver: net_connect(/usr/var/run/dovecot/auth-master) failed: No such file or directory where u put auth-master , on dovecot.conf
Have no idea, don't use it. Since case 1. above worked as is, I didn't think I'd be meeding any more than what's in there. I've included my dovecot.conf below.
Using "mailbox_transport = lmtp:unix:/var/tmp/dspam.sock" in postfix main.cf (instead of the above mailbox_command), and the corresponding setting in master.cf.
In /etc/dspam.conf I'm using... TrustedDeliveryAgent "/usr/lib/dovecot/deliver"
And here's the full error message:
Sep 11 02:10:38 nwinnie postfix/pickup[18313]: 090F1C042: uid=0 from=<root> Sep 11 02:10:38 nwinnie postfix/cleanup[7010]: 090F1C042: message-id=20070911001038.090F1C042@nwinnie.telcotec.se Sep 11 02:10:38 nwinnie postfix/qmgr[18318]: 090F1C042: from=root@nwinnie.telcotec.se, size=431, nrcpt=1 (queue active) Sep 11 02:10:38 nwinnie deliver(stava@nwinnie.telcotec.se): net_connect(/usr/var/run/dovecot/auth-master) failed: No such file or directory Sep 11 02:10:38 nwinnie dspam[10379]: Delivery agent returned exit code 75: /usr/lib/dovecot/deliver -d stava@nwinnie.telcotec.se Sep 11 02:10:38 nwinnie postfix/lmtp[7018]: 090F1C042: to=stava@nwinnie.telcotec.se, orig_to=<stava>, relay=nwinnie.telcotec.se[/var/tmp/dspam.sock], delay=0.35, delays=0.32/0.01/0.01/0.01, dsn=4.3.0, status=deferred (host nwinnie.telcotec.se[/var/tmp/dspam.sock] said: 421 4.3.0 stava@nwinnie.telcotec.se Delivered (in reply to end of DATA command))
So, postfix hands the message to dspam, dspam does its thing, dspam tries to deliver and fails.
What throws me is that the delivery works as expected in case 1) but not in case 2), despite the fact I'm using the same delivery agent, i.e. /usr/lib/dovecot/deliver.
Why would dovecot go for some other authentication method in case 2)?
BTW, we're using PAM on top of LDAP.
Any ideas appreciated.
Cheers /Lars
base_dir = /var/run/dovecot/ protocols = imap imaps pop3 pop3s listen = * disable_plaintext_auth = no shutdown_clients = yes syslog_facility = mail ssl_disable = yes login_dir = /var/run/dovecot/login login_user = dovecot mail_location = maildir:~/Mail mail_extra_groups = mail mail_full_filesystem_access = yes protocol imap { login_executable = /usr/lib/dovecot/imap-login mail_executable = /usr/lib/dovecot/imap mail_plugin_dir = /usr/lib/dovecot/modules/imap imap_client_workarounds = outlook-idle } protocol pop3 { login_executable = /usr/lib/dovecot/pop3-login mail_executable = /usr/lib/dovecot/pop3 pop3_uidl_format = %v.%u mail_plugin_dir = /usr/lib/dovecot/modules/pop3 pop3_client_workarounds = outlook-no-nuls } protocol lda { postmaster_address = postmaster@localhost mail_plugins = quota cmusieve mail_plugin_dir = /usr/lib/dovecot/modules/lda } auth_executable = /usr/lib/dovecot/dovecot-auth auth_verbose = yes auth_debug = yes auth_debug_passwords = yes auth default { mechanisms = plain login gssapi passdb pam { args = blocking=yes dovecot } userdb passwd { args = blocking=yes } user = root } dict { } plugin { quota = fs:storage=102400:messages=0 trash = /etc/dovecot/trash.conf sieve = .dovecot.sieve }
Thanks /Lars
More investigation shows the following:
- posfix + dovecot: works like a charm, extract from mail log:
Sep 11 10:08:02 nwinnie postfix/pickup[12904]: 0F2B4C03D: uid=1001 from=<stava> Sep 11 10:08:02 nwinnie postfix/cleanup[20596]: 0F2B4C03D: message-id=20070911080802.0F2B4C03D@nwinnie.telcotec.se Sep 11 10:08:02 nwinnie postfix/qmgr[12905]: 0F2B4C03D: from=stava@telcotec.se, size=436, nrcpt=1 (queue active) Sep 11 10:08:02 nwinnie postfix/local[20598]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled Sep 11 10:08:02 nwinnie deliver(stava): Loading modules from directory: /usr/lib/dovecot/modules/lda Sep 11 10:08:02 nwinnie deliver(stava): Module loaded: /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so Sep 11 10:08:02 nwinnie deliver(stava): Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so Sep 11 10:08:02 nwinnie deliver(stava): maildir: data=/home/stava/Mail Sep 11 10:08:02 nwinnie deliver(stava): maildir: root=/home/stava/Mail, index=/home/stava/Mail, control=, inbox= Sep 11 10:08:02 nwinnie deliver(stava): fs quota add storage dir = /home/stava/Mail Sep 11 10:08:02 nwinnie deliver(stava): fs quota block device = /dev/mapper/sys-home Sep 11 10:08:02 nwinnie deliver(stava): fs quota mount point = /home Sep 11 10:08:02 nwinnie deliver(stava): msgid=20070911080802.0F2B4C03D@nwinnie.telcotec.se: saved mail to INBOX Sep 11 10:08:02 nwinnie postfix/local[20598]: 0F2B4C03D: to=stava@nwinnie.telcotec.se, orig_to=<stava>, relay=local, delay=0.94, delays=0.2/0.01/0/0.73, dsn=2.0.0, status=sent (delivered to command: /usr/lib/dovecot/deliver) Sep 11 10:08:02 nwinnie postfix/qmgr[12905]: 0F2B4C03D: removed
- postfix + dspam + dovecot: fails, extract from mail log:
Sep 11 10:10:48 nwinnie postfix/pickup[27124]: 612AEC03D: uid=1001 from=<stava> Sep 11 10:10:48 nwinnie postfix/cleanup[27441]: 612AEC03D: message-id=20070911081048.612AEC03D@nwinnie.telcotec.se Sep 11 10:10:48 nwinnie postfix/qmgr[27126]: 612AEC03D: from=stava@telcotec.se, size=436, nrcpt=1 (queue active) Sep 11 10:10:48 nwinnie deliver(stava@nwinnie.telcotec.se): Loading modules from directory: /usr/lib/dovecot/modules/lda Sep 11 10:10:48 nwinnie deliver(stava@nwinnie.telcotec.se): Module loaded: /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so Sep 11 10:10:48 nwinnie deliver(stava@nwinnie.telcotec.se): Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so Sep 11 10:10:48 nwinnie dovecot: auth(default): master in: USER 1 stava@nwinnie.telcotec.se service=deliver Sep 11 10:10:48 nwinnie dovecot: auth-worker(default): passwd(stava@nwinnie.telcotec.se): lookup Sep 11 10:10:48 nwinnie dovecot: auth-worker(default): passwd(stava@nwinnie.telcotec.se): unknown user Sep 11 10:10:48 nwinnie dovecot: auth(default): master out: NOTFOUND 1 Sep 11 10:10:48 nwinnie dspam[27127]: Delivery agent returned exit code 67: /usr/lib/dovecot/deliver -d stava@nwinnie.telcotec.se Sep 11 10:10:48 nwinnie postfix/lmtp[27444]: 612AEC03D: to=stava@nwinnie.telcotec.se, orig_to=<stava>, relay=nwinnie.telcotec.se[/var/tmp/dspam.sock], delay=0.2, delays=0.17/0.01/0.01/0.01, dsn=4.3.0, status=deferred (host nwinnie.telcotec.se[/var/tmp/dspam.sock] said: 421 4.3.0 stava@nwinnie.telcotec.se Delivered (in reply to end of DATA command))
One big difference is that in case 1) the user being looked up is "stava", whereas in case 2) it's "stava@domain", which fails.
"auth_username_format = %n" is set in dovecot.conf, but to no avail.
dovecot -n: # 1.0.5: /etc/dovecot/dovecot.conf base_dir: /var/run/dovecot/ protocols: imap imaps pop3 pop3s ssl_disable: yes 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_extra_groups: mail mail_location: maildir:~/Mail mail_debug: yes mail_full_filesystem_access: yes dotlock_use_excl: yes maildir_copy_with_hardlinks: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugins: quota trash 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 imap_client_workarounds(default): delay-newmail outlook-idle imap_client_workarounds(imap): delay-newmail outlook-idle 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): outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login gssapi username_format: %n verbose: yes debug: yes debug_passwords: yes passdb: driver: pam args: blocking=yes dovecot userdb: driver: passwd args: blocking=yes socket: type: listen master: path: /var/run/dovecot/auth-master mode: 384 plugin: quota: fs:storage=102400:messages=0 trash: /etc/dovecot/trash.conf sieve: .dovecot.sieve
Any ideas appreciated
Cheers /Lars
participants (2)
-
indra wardhana
-
Lars Stavholm