dovecot fail after a server is deleted

Webmin 1.932
Virtualmin 6.08
Centos 7
Server example.com

I deleted a server: example.com. Some days later I had a reason to reboot the server. After the reboot Dovecot failed to start.

/etc/dovecot/dovecot.conf was looking for the ssl cert and key for the deleted server (example.com) and couldn’t find it.

I edited dovecot.conf to manually remove the deleted server’s entry, below, restarted dovecot and things were fine.

local_name example.com {
ssl_cert = </home/example/ssl.cert
ssl_key = </home/example/ssl.key
}

Apparently Virtualmin does not delete the sever entry in dovecot.conf and that causes the failure upon rebooting.

I deleted another server today, dovecot crashed, and required a VPS reboot to restart. This time /etc/dovecot/dovecot.conf automatically deleted the deleted server’s entry and I did not have to do it manually.

Why is this happening?

● dovecot.service - Dovecot IMAP/POP3 email server
Loaded: loaded (/usr/lib/systemd/system/dovecot.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2020-04-09 11:01:47 EDT; 32s ago
Docs: man:dovecot(1)
http://wiki2.dovecot.org/
Process: 13707 ExecStop=/usr/bin/doveadm stop (code=exited, status=75)
Process: 2097 ExecStart=/usr/sbin/dovecot (code=exited, status=0/SUCCESS)
Process: 2051 ExecStartPre=/usr/libexec/dovecot/prestartscript (code=exited, status=0/SUCCESS)
Main PID: 2190 (code=exited, status=0/SUCCESS)

Apr 09 11:01:47 host.bluebassdesign.com dovecot[2211]: imap(greg@windyhillassociates.com): Server shutting down. in=200 out=790
Apr 09 11:01:47 host.bluebassdesign.com dovecot[2211]: imap(greg@windyhillassociates.com): Server shutting down. in=8117 out=32336
Apr 09 11:01:47 host.bluebassdesign.com dovecot[2211]: imap(greg@rosalysgarden.com): Server shutting down. in=8319 out=32755
Apr 09 11:01:47 host.bluebassdesign.com doveadm[13707]: Fatal: Dovecot is not running (read from /var/run/dovecot/master.pid)
Apr 09 11:01:47 host.bluebassdesign.com systemd[1]: dovecot.service: control process exited, code=exited status=75
Apr 09 11:01:47 host.bluebassdesign.com dovecot[2211]: imap-login: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 09 11:01:47 host.bluebassdesign.com dovecot[2211]: imap-login: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 09 11:01:47 host.bluebassdesign.com dovecot[2211]: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 09 11:01:47 host.bluebassdesign.com systemd[1]: Unit dovecot.service entered failed state.
Apr 09 11:01:47 host.bluebassdesign.com systemd[1]: dovecot.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.