[Dovecot] Dovecot failing to start
So I rebooted my mail server, and now dovecot fails to start with: Stopping Dovecot Imap: [FAILED] Starting Dovecot Imap: Fatal: listen(::, 143) failed: Address already in use [FAILED]
[root@agencymail postfix]# dovecot -n # 1.1.8: /etc/dovecot.conf # OS: Linux 2.6.18-92.el5 i686 Red Hat Enterprise Linux Server release 5.2 (Tikanga) ext3 ssl_cert_file: /etc/httpd/certs/agencymail_example_com.crt ssl_key_file: /etc/httpd/certs/agencymail.example.com.key.no.password login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_max_processes_count: 256 mail_uid: 1015 mail_gid: 105 mail_location: maildir:/var/spool/mail/%d/%n/Maildir mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugins(default): acl quota imap_quota expire trash mail_plugins(imap): acl quota imap_quota expire trash mail_plugins(pop3): expire quota mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 imap_client_workarounds(default): delay-newmail outlook-idle imap_client_workarounds(imap): delay-newmail outlook-idle imap_client_workarounds(pop3): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh dict_db_config: /etc/dovecot-db.conf auth default: mechanisms: plain login passdb: driver: sql args: /etc/dovecot-sql.conf userdb: driver: passwd userdb: driver: sql args: /etc/dovecot-sql.conf userdb: driver: static socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vuser group: vuser plugin: quota: maildir quota_rule: *:storage=102400000 quota_rule2: Trash:storage=100M acl: vfile:/etc/dovecot/acls trash: /etc/dovecot-trash.conf expire: Trash 14 Trash/* 14 Spam 14 expire_dict: proxy::expire dict: expire: mysql:/etc/dovecot-dict-expire.conf
Rick Steeves http://www.sinister.net
"The more I learn, it seems, the less I know." Frazz
On 06/22/2009 02:49 PM dovecot@corwyn.net wrote:
So I rebooted my mail server, and now dovecot fails to start with: Stopping Dovecot Imap: [FAILED] Starting Dovecot Imap: Fatal: listen(::, 143) failed: Address already in use [FAILED]
What is listening on port 143? aka: netstat -tlnp | grep ':143 '
Regards, Pascal
The trapper recommends today: 5e1f1e55.0917317@localdomain.org
At 11:26 AM 6/22/2009, Pascal Volk wrote:
On 06/22/2009 02:49 PM dovecot@corwyn.net wrote:
So I rebooted my mail server, and now dovecot fails to start with: Stopping Dovecot Imap: [FAILED] Starting Dovecot Imap: Fatal: listen(::, 143) failed: Address already in use [FAILED]
What is listening on port 143? aka: netstat -tlnp | grep ':143 '
Nothing was listening on 143. The problem was that the default configuration of dovecot is for listening for ipv4 and ipv6. We had previously disabled ipv4 on the NIC and in the kernel, but not reloaded the settings in modprob.conf.
When we rebooted the server, ipv6 was therefore GONE. dovecot was trying to listed on 143 on both ipv4 and ipv6, not finding ipv6 and not starting.
adding "listen = *" to dovecot.conf (so that it only listens for ipv4) resovled the problem.
Rick
Regards, Pascal
The trapper recommends today: 5e1f1e55.0917317@localdomain.org
participants (2)
-
dovecot@corwyn.net
-
Pascal Volk