Hostname - Domain -Mail help

So I have installed Virtualmin GPL and have everything running. I have about 20 domains with mail working. My problem is that since I set up the box as prod-01.mydomain.local some email servers won’t accept mail coming from my server as there are obviously no mx records for .local, so I want to change my server name to What steps do I need to take to do this as to not break the mail services for the 20 some domains on this box?




Whenever you change your hostname, just make sure you update that name in /etc/hosts, as well as on the “mydestination” line of /etc/postfix/, and then restart Postfix when you’re done.

If you update the hosts file and, you should be in good shape!


What about TLS? Do I need to regenerate anything due to the change and if so how?

Nope, the things I mentioned above should do it :slight_smile: