![为什么 dovecot pop3/imap 服务器宕机了?](https://linux22.com/image/763173/%E4%B8%BA%E4%BB%80%E4%B9%88%20dovecot%20pop3%2Fimap%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%AE%95%E6%9C%BA%E4%BA%86%EF%BC%9F.png)
VPS 在某个时候宕机了,我正在查看日志,但不明白为什么会宕机以及如何修复它以避免将来再次发生宕机。
我在事件发生时所掌握的日志如下:
- Feb 04 16:16:41 imap([email protected]): Info: Connection closed (EXAMINE finished 0.078 secs ago) in=290 out=4306
- Feb 04 16:18:25 auth: Error: passwd-file(webadmin,141.98.10.183): stat(/etc/exim/domains//passwd) failed: No such file or directory
- Feb 04 16:23:00 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=37.48.20.176, lip=46.36.37.22, mpid=8772, TLS, session=<qZdwR4S626ElMBSw>
- Feb 04 16:23:00 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=37.48.20.176, lip=46.36.37.22, mpid=8774, TLS, session=<ZPd2R4S63KElMBSw>
- Feb 04 16:23:01 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=37.48.20.176, lip=46.36.37.22, mpid=8775, TLS, session=<2f53R4S6j6ElMBSw>
- Feb 04 16:23:01 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=37.48.20.176, lip=46.36.37.22, mpid=8779, TLS, session=<8Hp+R4S6o6ElMBSw>
- Feb 04 16:23:01 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=37.48.20.176, lip=46.36.37.22, mpid=8780, TLS, session=<lHp+R4S6pKElMBSw>
- Feb 04 16:23:01 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=37.48.20.176, lip=46.36.37.22, mpid=8781, TLS, session=<JqWAR4S6mKElMBSw>
- Feb 04 16:23:01 imap([email protected]): Info: Connection closed (UID FETCH finished 0.068 secs ago) in=337 out=1853
- Feb 04 16:23:01 imap([email protected]): Info: Connection closed (UID SEARCH finished 0.047 secs ago) in=104 out=864
- Feb 04 16:23:01 imap([email protected]): Info: Connection closed (IDLE running for 0.001 + waiting input for 0.789 secs, 2 B in + 10 B out, state=wait-input) in=27 out=720
- Feb 04 16:23:01 imap([email protected]): Info: Connection closed (IDLE running for 0.001 + waiting input for 0.844 secs, 2 B in + 10 B out, state=wait-input) in=27 out=711
- Feb 04 16:23:01 imap([email protected]): Info: Connection closed (UID SEARCH finished 0.076 secs ago) in=104 out=849
- Feb 04 16:23:02 imap([email protected]): Info: Connection closed (IDLE running for 0.001 + waiting input for 0.988 secs, 2 B in + 10 B out, state=wait-input) in=27 out=712
- Feb 04 16:23:06 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=37.48.20.176, lip=46.36.37.22, mpid=8783, TLS, session=<vynJR4S6mqElMBSw>
- Feb 04 16:23:06 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=37.48.20.176, lip=46.36.37.22, mpid=8786, TLS, session=<AxzSR4S6oaElMBSw>
- Feb 04 16:23:06 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=37.48.20.176, lip=46.36.37.22, mpid=8787, TLS, session=<mafSR4S6vKElMBSw>
- Feb 04 16:23:07 imap([email protected]): Info: Connection closed (UID SEARCH finished 0.244 secs ago) in=140 out=945
- Feb 04 16:23:07 imap([email protected]): Info: Connection closed (UID SEARCH finished 0.136 secs ago) in=142 out=946
- Feb 04 16:23:07 imap([email protected]): Info: Connection closed (UID FETCH finished 0.162 secs ago) in=460 out=2160
- Feb 04 16:23:21 imap([email protected]): Info: Server shutting down. in=5478 out=40976
- Feb 04 16:23:21 imap([email protected]): Info: Server shutting down. in=10678 out=144474
- Feb 04 16:23:21 imap([email protected]): Info: Server shutting down. in=5253 out=37892
- Feb 06 17:30:07 master: Info: Dovecot v2.2.36 (1f10bfa63) starting up for imap, pop3 (core dumps disabled)
- Feb 06 17:30:27 auth: Error: passwd-file(test,36.133.44.246): stat(/etc/exim/domains//passwd) failed: No such file or directory
- Feb 06 17:30:38 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=213.220.236.56, lip=46.36.37.22, mpid=15309, TLS, session=<SUUEda26fGfV3Ow4>
答案1
Dovecot 找不到任何可用的用户列表。我可能位于给定路径 ( /etc/exim/domains/passwd
) 或不在(配置可能更改不当)。确保您知道使用 Webmin 或自行管理服务器时要做什么。
真正的 Linux/Unix 管理员的帮助可能是最好的选择。
您可以尝试在前台 (-F) 启动 Dovecot,并准确查看启动时发生的情况。请确定您希望它事先执行什么操作。例如,Exim 运行良好吗?