大网数据广告活动
服务器运维问答

dovecot start "Address already in use" error

· 52CE 我爱测

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: E…

问题原文

原帖链接 · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2013-06-17)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。