Menu

#5048 Domain rename breaks dovecot

1.860
open
nobody
None
5
2017-12-02
2017-12-01
No

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 =

Discussion

  • Phil McKerracher

    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.

     
  • Jamie Cameron

    Jamie Cameron - 2017-12-02

    Ok, that looks like a bug. I assume that the dovecot server process was still running though, which is why the status monitor didn't fail.

     
  • Jamie Cameron

    Jamie Cameron - 2017-12-02

    The upcoming 6.02 release of Virtualmin will fix this rename issue though.

     

Log in to post a comment.

Auth0 Logo