问题原文
原帖链接 · Nicolas Reynolds · CC BY-SA 3.0
I'm currently trying to use some "[email omitted]" 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 ?
社区高分解答
原帖链接 · rsfault · CC BY-SA 4.0
Just did an upgrade on an AWS Linux instance and dovecot wouldn't start with Address already in use errors (same as original poster).
netstat and lsof didn't show any process attached to those TCP ports.
Eventually I discovered that as part of the upgrade the portreserve package was installed. It had a config file /etc/portreserve/dovecot which had listed the problematic ports. I renamed the file to /etc/portreserve/dovecot~ and now everything works fine.
According to https://bugzilla.redhat.com/show_bug.cgi?id=1570282 because portreserve only does a bind() to the port, and doesn't do a listen() it won't show up in lsof or netstat. That makes it really tricky to troubleshoot.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
