Dovecot Address Already in Use Error – How to Fix Dovecot Start Error

centosdovecotemail

I'm currently trying to use some "me@mydomain.com" adresses on my dedicated server (Centos5).

To do so, I'm tring to launch dovecot with /etc/init.d/dovecot start, but I get the following error message :

Starting Dovecot Imap: Error: service(pop3-login): listen(*, 110) failed:
Address already in use
Error: service(pop3-login): listen(*, 995) failed: Address already in use
Error: service(imap-login): listen(*, 143) failed: Address already in use
Error: service(imap-login): listen(*, 993) failed: Address already in use
Fatal: Failed to start listeners
                                                           [FAILED]

Something is already listening on these ports, but I don't know what. Qmail was previously installed on my server, so I removed it, but it didn't solve the problem.

Do you know how to fix this ?

Best Answer

This command will show you what's listening:

$ sudo netstat -lnp | grep 993
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      4470/imap-login

The last column gives you the PID and name of the process bound to that particular port.