Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239535 - net-mail/dovecot-1.1.1-r1 should be started prior to mail-mta/postfix-2.5.5
Summary: net-mail/dovecot-1.1.1-r1 should be started prior to mail-mta/postfix-2.5.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-04 13:55 UTC by Roland Ramthun
Modified: 2009-09-10 17:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Ramthun 2008-10-04 13:55:46 UTC
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
Comment 1 Roland Ramthun 2008-10-09 13:34:50 UTC
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
Comment 2 Roland Ramthun 2008-11-02 16:47:10 UTC
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
Comment 3 Oliver Sucker 2009-07-05 21:12:23 UTC
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
Comment 4 Roland Ramthun 2009-07-06 08:44:53 UTC
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.
Comment 5 Wolfram Schlich (RETIRED) gentoo-dev 2009-07-08 08:03:16 UTC
you can just add RC_NEED="dovecot" (baselayout-1)
or rc_need="dovecot" (baselayout-2/OpenRC)
to /etc/conf.d/postfix.
Comment 6 Patrick Lauer gentoo-dev 2009-09-10 17:24:30 UTC
+  10 Sep 2009; Patrick Lauer <patrick@gentoo.org> files/dovecot.init-r2:
+  Fixing init script ordering to avoid postfix/sasl failure, fixes #239535