[Bug 870244] [NEW] mail-stack-delivery package install needs to restart dovecot
Imre Gergely
870244 at bugs.launchpad.net
Fri Oct 7 19:35:00 UTC 2011
Public bug reported:
When installing mail-stack-delivery, it generates some custom config files for postfix and dovecot (to integrate dovecot in postfix for delivery and auth). After the package is done installing, postfix is restarted to load the new configuration, but dovecot is NOT restarted.
Because of this, when trying to do STARTTLS, the connection is interrupted and a message appears in the logs:
Oct 7 22:30:11 nns32-postfix postfix/smtpd[9708]: warning: SASL: Connect to private/dovecot-auth failed: No such file or directory
Oct 7 22:30:11 nns32-postfix postfix/smtpd[9708]: fatal: no SASL authentication mechanisms
Oct 7 22:30:12 nns32-postfix postfix/master[9684]: warning: process /usr/lib/postfix/smtpd pid 9708 exit status 1
Oct 7 22:30:12 nns32-postfix postfix/master[9684]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
This is because SASL authentication through dovecot is enabled but there
is no socket (dovecot wasn't restarted).
root at nns32-postfix:/etc/dovecot/auth.d# cat /etc/postfix/main.cf | grep auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/dovecot-auth
root at nns32-postfix:~# ls -la /var/spool/postfix/private/dovecot-auth
ls: cannot access /var/spool/postfix/private/dovecot-auth: No such file or directory
After manually restarting dovecot, the socket gets created and
everything is ok
root at nns32-postfix:~# restart dovecot
dovecot start/running, process 9756
root at nns32-postfix:~# ls -la /var/spool/postfix/private/dovecot-auth
srw-rw---- 1 postfix postfix 0 2011-10-07 22:32 /var/spool/postfix/private/dovecot-auth
I guess this will not happen if dovecot is already configured to open
that socket BEFORE installing mail-stack-delivery, but new installations
will have this bug. Found in natty.
** Affects: dovecot (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in Ubuntu.
https://bugs.launchpad.net/bugs/870244
Title:
mail-stack-delivery package install needs to restart dovecot
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dovecot/+bug/870244/+subscriptions
More information about the Ubuntu-server-bugs
mailing list