If you use dovecot's SASL with postfix, smtpd cant be started, because of a missing socket. dovecot should be started prior to postfix. Reproducible: Always Steps to Reproduce: 1. rc-update add dovecot default 2. rc-update add postfix default 3. init 6 4. tail -n100 /var/log/messages Actual Results: postfix/master[4233]: daemon started -- version 2.5.5, configuration /etc/postfix postfix/smtpd[4287]: warning: SASL: Connect to /var/run/dovecot/sasl-client-auth failed: No such file or directory postfix/smtpd[4287]: fatal: no SASL authentication mechanisms nexusone postfix/master[4233]: warning: process /usr/lib/postfix/smtpd pid 4287 exit status 1 nexusone postfix/master[4233]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling nexusone dovecot: Dovecot v1.1.1 starting up
The problem persists with the recently stabilized net-mail/dovecot-1.1.4-r1. Oct 9 15:20:48 nexusone postfix/postfix-script[4234]: starting the Postfix mail system Oct 9 15:20:48 nexusone postfix/master[4235]: daemon started -- version 2.5.5, configuration /etc/postfix Oct 9 15:20:48 nexusone postfix/smtpd[4289]: warning: SASL: Connect to /var/run/dovecot/sasl-client-auth failed: No such file or directory Oct 9 15:20:48 nexusone postfix/smtpd[4289]: fatal: no SASL authentication mechanisms Oct 9 15:20:49 nexusone postfix/master[4235]: warning: process /usr/lib/postfix/smtpd pid 4289 exit status 1 Oct 9 15:20:50 nexusone postfix/master[4235]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling Oct 9 15:20:50 nexusone dovecot: Dovecot v1.1.4 starting up
No change with net-mail/dovecot-1.1.6. Nov 2 17:42:41 nexusone postfix/smtpd[4293]: warning: SASL: Connect to /var/run/dovecot/sasl-client-auth failed: No such file or directory Nov 2 17:42:41 nexusone postfix/smtpd[4293]: fatal: no SASL authentication mechanisms Nov 2 17:42:42 nexusone postfix/master[4235]: warning: process /usr/lib/postfix/smtpd pid 4293 exit status 1 Nov 2 17:42:42 nexusone postfix/master[4235]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling Nov 2 17:42:42 nexusone dovecot: Dovecot v1.1.6 starting up
Yes, i know that problem and it still exists. Edit /etc/init.d/postfix and add 'dovecot' to the use line in depend() function. This should be updated in '/usr/portage/mail-mta/postfix/files/postfix.rc6.2.5' as well. HTH, Oliver
Thanks, I use this solution since the initial bug report, but forgot to report it here. It works fine and I think it should be incorporated into the init script.
you can just add RC_NEED="dovecot" (baselayout-1) or rc_need="dovecot" (baselayout-2/OpenRC) to /etc/conf.d/postfix.
+ 10 Sep 2009; Patrick Lauer <patrick@gentoo.org> files/dovecot.init-r2: + Fixing init script ordering to avoid postfix/sasl failure, fixes #239535