Dovecot gives error message on startup

Dovecot gives error message on startup" port 143 already in use". Centos 5.3. , Sendmail server. Can anybody help??

Are you sure Dovecot isn’t already running?

What does this show:

ps auxw | grep dovecot

This command should in theory restart it in the case that it is:

/etc/init.d/dovecot restart

If that doesn’t help, it means another daemons is running that handles IMAP. What we’d need in order to help is the full output of this command:

ps auxw