Dovecot ssl_listen is obsolete and has been replaced

Jamie,

I've entered this as a "bug" request but it's more of a notice for you. It still works in the current configuration but FYI - see dovecot warning from our maillog below.

Aug 31 04:33:39 mail4 dovecot: config: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:42: protocol { ssl_listen } has been replaced by service { inet_listener { address } }

Thanks!
-- Craig

Status: 
Active

Comments

That's odd, as Virtualmin shouldn't set the ssl_listen directive unless it already exists in the Dovecot config file.

Which Dovecot version are you running there?

Version 2.0.9

This may be my fault, I did manually edit the file so that's probably what happened.

Here's a copy of my dovecot.conf file.

[root@mail4 sbin]# cat /etc/dovecot/dovecot.conf
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-19-pve x86_64 CentOS release 6.4 (Final)
auth_mechanisms = plain login
disable_plaintext_auth = no
mail_location = maildir:~/Maildir
mbox_write_locks = fcntl
passdb {
  driver = pam
}
protocols = imap pop3
service imap-login {
  inet_listener imap {
    port = 143
  }
  inet_listener imaps {
    address = *
    port = 993
ssl = yes
  }
}
service pop3-login {
  inet_listener pop3 {
    port = 110
  }
  inet_listener pop3s {
    address = *
    port = 995
    ssl = yes
  }
}
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
  driver = passwd
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}
ssl_ca = </etc/dovecot/dovecot.ca.pem
ssl_cipher_list = ECDHE-RSA-AES256-SHA384:AES256-SHA256:AES256-SHA256:RC4:HIGH:MEDIUM:+TLSv1:!MD5:!SSLv2:+SSLv3:!ADH:!aNULL:!eNULL:!NULL:!DH:!ADH:!EDH:!AESGCM
listen = *
ssl_listen = *

I think the issue is that the ssl_listen and listen lines are no longer supported in Dovecot 2. You should try just removing them, and then restarting Dovecot.

I think that did the trick, I will let you know if there are any more issues.
-- Craig

My problem might be different but I stumbled across this post. I'm running Dovecot Version 2.2.13 and it keeps switching back to only enabling port 993 IMAPS for IPV6 only. When I remove ssl_listen and listen they get put back by the virtualmin interface and the error comes back.

Mar  7 17:13:22 perseus dovecot: master: Dovecot v2.2.13 starting up for imap, pop3, pop3 (core dumps disabled)
Mar  7 17:13:22 perseus dovecot: config: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
Mar  7 17:13:22 perseus dovecot: config: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:129: protocol { ssl_listen } has been replaced by service { inet_listener { address } }

And still I can't seem to connect to port 993 though IPv4... IPv6 connects all good.

If you go to Webmin -> Servers -> Dovecot IMAP Server, what version does it show?