Postfix, Dovecot & RoundCube broke after Ubuntu upgrade
Here are the issues encountered:
1. When user tried to log in via the webmail interface (roundcube) , there is a message that says "Connection to Storage server failed". And the login failed.
2. Whenever I send an email to someone on the mail server, I noticed that it gets stuck in the Postfix Queue Messages. The status message says:
"host jupiter.myserver.com[private/dovecot-lmtp] said: 451 4.3.0 <
mail.log shows the following wherever an email was received by Postfix:
jupiter postfix/lmtp[5839]: 4236D10F10: to=<
/var/log/dovecot.log shows this for failed login:
imap-login: Info: Login: user=<
Sep 21 04:09:36 imap(
Sep 21 04:09:36 imap(
Sep 21 04:09:36 imap(
Sep 21 04:09:36 imap(
Sep 21 04:09:36 imap(
Sep 21 04:10:51 lmtp(5840): Debug: none: root=, index=, indexpvt=, control=, inbox=, alt=
Sep 21 04:10:51 lmtp(5840): Info: Connect from local
Sep 21 04:10:51 lmtp(5840): Debug: auth input:
Sep 21 04:10:51 lmtp(5840,
Sep 21 04:10:51 lmtp(5840,
Sep 21 04:10:51 lmtp(5840,
Sep 21 04:10:51 lmtp(5840,
Sep 21 04:10:51 lmtp(5840): Info: Disconnect from local: Successful quit
Postfix config file /etc/postfix/main.cf
smtpdbanner = $myhostname ESMTP $mailname (Ubuntu)
biff = no
appenddotmydomain = no
readme_directory = no
smtpdtlscert_file=/etc/ssl/certs/dovecot.pem
smtpdtlskey_file=/etc/ssl/private/dovecot.pem
smtpdusetls=yes
smtpdtlsauth_only = yes
smtpdsasltype = dovecot
smtpdsaslpath = private/auth
smtpdsaslauth_enable = yes
smtpdrecipientrestrictions =
permitsaslauthenticated,
permit_mynetworks,
rejectunauthdestination
myhostname = jupiter.myserver.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailboxsizelimit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_transport = lmtp:unix:private/dovecot-lmtp
virtualmailboxdomains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtualmailboxmaps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtualaliasmaps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
smtpdrelayrestrictions = permitsaslauthenticated, permitmynetworks, rejectunauth_destination
My dovecot conf file:
!include_try /usr/share/dovecot/protocols.d/*.protocol
protocols = imap pop3 lmtp
dict {
quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
}
!include conf.d/*.conf
!include_try local.conf
In closing, these config files were working fine all along and I have not changed anything. I guess there was something in the Ubuntu upgrade that changed something, to break it. I have been working on this for hours but having no success. Any help would be greatly appreciated. Thanks
3 Replies
It's possible that there are incompatible changes in the configuration files for these. In my experience, Postfix2.102.11Dovecot
Basically the latest version of Dovecot, its configuration is quite particular about namespaces, which it wasn't in the past. Anyhow adding this to the dovecot.conf file help resolved the issue:
namespace inbox {
inbox = yes
}
Also in the event you have also have an error message that says "Connection refused" when postfix trying to connect to dovecot, within dovecot.conf, uncomment out this line :
listen = *, [::]
This will allow it to listen on both IPv4 and IPv6 interfaces. I had this issue too after I resolved the namespace issue. Hopefully this will help someone else.
> Error: Invalid user settings. Refer to server log for more information.
Error: user
xxx@yyy.org : Initialization failed: namespace configuration error: inbox=yes namespace missing
i can confirm that adding a "namespace inbox" section with a "inbox = yes" entry fixed the problem.
however, i did not make the raw change to dovecot.conf as sloo did above. instead, i tweaked conf.d/10-mail.conf, where i had read that namespace definitions are "meant" to go (dovecot.conf includes all the conf.d/*.conf files). i uncommented the topmost namespace definition within 10-mail.conf, and ensured that its inbox= line was uncommented and set to yes. now i'm running fine.