I'm trying to setup Virtualmin on a VPS to host a couple websites with email. I've been having troubles the whole week and I'm not sure what to do anymore. Any help on this would be greatly appreciated.
I have been able to get the websites online with a "hello world" HTML page that I loaded into the file manager. Getting email to work has been harder and I think all of my issues seem to be stemming from DNS configurations.
I have registered the domains with porkbun.com and they have a UI to manage DNS records that looks like this:
Type, Host, Answer, TTL, Priority
A, excelblade.com, 18.104.22.168, 300
MX, excelblade.com, excelblade.com, 300, 10
SRV, _autodiscover._tcp.excelblade.com, 10 443 webmail.porkbun.com, 300, 10
TXT, excelblade.com, v=spf1 mx ~all, 300
(22.214.171.124 is the ip for my VPS)
This is what I'm using, but shouldn't I let Virtualmin handle that? What would I need to do to make that happen?
My ultimate goal is to host 3 websites, each with email.
I am checking my MX config using https://mxtoolbox.com/SuperTool.aspx I am getting the following results: No DMARC Record found DNS Record found DMARC Quarantine/Reject policy not enabled