[Dovecot] postfix + dspam + dovecot problem

Lars Stavholm stava at telcotec.se
Tue Sep 11 03:16:00 EEST 2007


Hi All,

I'm new to dovecot (coming from cyrus) and have a bit of a problem
setting up postfix + dspam + dovecot.

1. postfix + dovecot: works like a charm.

   Using "mailbox_command = /usr/lib/dovecot/deliver"
   in postfix main.cf

2. 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 at nwinnie.telcotec.se>
   Sep 11 02:10:38 nwinnie postfix/qmgr[18318]: 090F1C042:
   from=<root at nwinnie.telcotec.se>, size=431, nrcpt=1 (queue active)
   Sep 11 02:10:38 nwinnie deliver(stava at 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 at nwinnie.telcotec.se
   Sep 11 02:10:38 nwinnie postfix/lmtp[7018]: 090F1C042:
   to=<stava at 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 at 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



More information about the dovecot mailing list