Dovecot failed to restart after deletion of subdomain

After deletion of a subdomain the dovecot server is no longer able to start (crashes immediately after booting).

I did some research and found the reason:

In the file /etc/dovecot/dovecot.conf there is a SSL-entry for every subdomain - even if mailing is disabled for the subdomain! The entry is in this form:

local_name { ssl_cert = </home/domain/domains/ ssl_key = </home/domain/domains/ }

The refering cert and key files are removed while deleting the subdomain, but the entry in this file still exists. Dovecot can not start with this config!

Solution: * such entrys are not useful for subdomains without mailing * such entrys should be removed while deleting the domain.

Maybe it matters: I first deactivated the subdomain and deleted it later. This is my standard workflow for doing this. I was not able to test it with direct deletion because I have only one productive system at moment.



Ilia's picture
Submitted by Ilia on Mon, 01/27/2020 - 04:03

Assigned: Unassigned ยป


I will pass this to Jamie for review.

What are Dovecot, Virtualmin and Webmin versions are you currently running?

CentOS Linux 7.7.1908 Webmin 1.941 Dovecot 2.2.36-3.el7_7.1 Where can I see the version of VirtualMin? I have installed virtualmin-release 6.0-3.gpl and wbm-virtual-server 6.08.gpl-1

Ilia's picture
Submitted by Ilia on Mon, 01/27/2020 - 06:01

You should have installed latest Virtualmin 6.08. You can see it on the Dashboard.