おうちサーバのアカウントがメールクライアントからアクセセスできない。ps axしたら起動されていないっぽい。
kazz@lance ~# sudo service dovecot status ● dovecot.service - Dovecot IMAP/POP3 email server Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset: Active: failed (Result: exit-code) since Sun 2018-07-22 13:09:25 JST; 27min a Docs: man:dovecot(1) http://wiki2.dovecot.org/ Process: 980 ExecStart=/usr/sbin/dovecot -F (code=exited, status=89) Main PID: 980 (code=exited, status=89) 7月 22 13:09:10 lance systemd[1]: Started Dovecot IMAP/POP3 email server. 7月 22 13:09:25 lance dovecot[980]: doveconf: Fatal: Error in configuration fil 7月 22 13:09:25 lance systemd[1]: dovecot.service: Main process exited, code=ex 7月 22 13:09:25 lance systemd[1]: dovecot.service: Failed with result 'exit-cod kazz@lance ~#
エラーで起動失敗したらしい。
kazz@lance ~# sudo dovecot doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 13: ssl_key: Can't open file /etc/dovecot/private/dovecot.key: No such file or directory kazz@lance ~#
なるほど。まず10-ssl.comfの ssl=yes をssl=no にしてみるが、同様。
同じファイル内の以下の2行をコメントアウト。
#ssl_cert = </etc/dovecot/private/dovecot.pem #ssl_key = </etc/dovecot/private/dovecot.key
無事復旧。
18.04LTSにアップグレードしたときに書き換えられたっぽい。