After changing the name of a subdomain (from a staging site to a real top level domain, but without changing the owner) using Virtualmin > Server Configuration > Change Domain Name I noticed that POP3 connections to my server were failing. It turned out that dovecot.conf was still pointing to the old directory and dovecot couldn't therefore find the SSL certificate.
Problem fixed by manually editing dovecot.conf to point to the new location.
Specifically, the site files had been located at /home/beechesit/domains/buildon.beechesit.uk/ and had moved to /home/beechesit/domains/buildon.co.uk/ when the site was renamed, but dovecot.conf still had lines with ssl_cert =
Oh, I forgot to mention that the monitor I set up (Webmin > Others> System and Server Status > Dovecot IMAP/POP3 Server) failed to trigger when this happened, even though POP3 connections were no longer succeeding. Since I don't use POP3 myself it took me a while to realise anything was wrong, so I didn't initially connect it to the domain change I made some time earlier.
Ok, that looks like a bug. I assume that the
dovecotserver process was still running though, which is why the status monitor didn't fail.The upcoming 6.02 release of Virtualmin will fix this rename issue though.