In Webmin Tab go to servers > Postfix Mail Server > Edit Config Files
In drop down files /etc/postfix/main.cf
look for inet_interfaces =
Make it look like this:
inet_interfaces = loopback-only
Click on the button: Save and close
Click on the button: Stop Postfix
after
Click on the button: Start postfix
This will only allow mail out from system if you need it to talk to another.
You will not receive any email from outside, Only from within the server itself.
You can check system emails by clicking Read User Mail under Servers
thanks - i edited the config and disabled the mail server for the virtual server and all seems to be fine
just a note to others who may read this; i don’t think there’s any need to set up any MX/TXT records for mail on the register if using a 3rd party mail provider on the virtual server
could use a “bit” of assistance (that’s putting it mildly!) with setting up DKIM, DMARC and SPF - all this was installed/enabled in Virtualmin and mail is working locally on the server
DNS is managed at the registrar - this was suggested but i don’t know that i like it - all the DNS records were created by Virtualmin, which seems to make things simple, however since DNS is at the registrar, now i have to create the MX/TEXT/whatever records there and i don’t know how to do this and no amount of reading is helping me
is the MX record in the right place (domain vs. subdomain records)?
1.a. the record on Vm… MX 5 mail.12bytes.org.
this is different than what’s on the registrar - is the “5” the priority?
also there’s a trailing dot - does that get copied to the registrar also?
where does the SPF record go (domain or subdomain)?
this is the record on Vm… TXT "v=spf1 a mx a:12bytes.org ip4:45.42.246.86 ip4:45.42.246.86 ?all"
where does the DKIM record go (domain or subdomain)?
this is the record on Vm… TXT "v=DKIM1; k=rsa; t=s; p=<a long string of potentially sensitive gobbledygook>"
when creating the DKIM record, does that whole string get copied (roughly 409 chars long)?
where does the DMARC record go (domain or subdomain)?
this is the record on Vm… TXT "v=DMARC1; p=none; pct=100; ruf=mailto:postmaster@12bytes.org; rua=mailto:postmaster@12bytes.org"