At some point, I want to get rid of GSuite for email, and I am trying to learn the basics of email administration.
I have a VPS that I use for my webserver to host about a dozen sites.
I want to set up another VPS to serve as an email server. Since it will handle email for multiple domains, I THINK I want to use Virtualmin and just close the ports I don’t need, and maybe turn off some services to reduce overhead.
What I don’t understand is how to configure the server to handle email for my domain.
This seems straightforward if Web and Email are both handled by the same VPS, but I’m lost as to how to accomplish this with them on two different VPS’s.
domain.tld points to IP address of web optimized Virtualmin
www.domain.tld points to IP address of web optimized Virtualmin
mail.domain.tld points to IP address of mail optimized Virtualmin
And this is the most important thing to wrap yoor head around: on mail optimised Virtualmin as well as on web optimised Virtualmin, create a virtual server for domain.tld (yes! Same domain name on both Virtualmins).
Then everything will work perfectly. When creating a virtual server on mail optimised Virtualmin, uncheck the boxes for web services and vice versa.
Oh, if you manually configure the DNS record of the web optimised Virtualmin to point to the MX of the mail optimised Virtualmin, you will attain nirvana forthwith.
Is thunderbird configured to use the hostname of the mail optimized server as the incoming server and outgoing server of the domain?
You could also test if mail is working normally on the mail optimized Virtualmin server by using Virtualmin’s webmail instead of Thunderbird. That would simplify the testing.