Hello, I have a web server that is running, and a mailinabox server. The mailinabox server is hosted on server1.com, which I intend to send and receive mail to/from email@example.com (IP of 18.104.22.168). I have another server, a web server, which will have an SMTP client, let’s call this server2.com (IP of 22.214.171.124). I wish to also send and receive mail to/from firstname.lastname@example.org , but the mail server for email@example.com is actually server1.com .
So I setup on my Namecheap account this:
HOST| type | value
@ | A | 126.96.36.199
@ | AAAA | 1111:1111:1111:1111:1111:1111
@ | TXT | v=spf1 mx -all
@ | TXT | v=DMARC1; p=quarantine
@ | TXT | v=DKIM1; k=rsa; s=email; p=blawblawblawblawblawblawblawthing
HOST | type | value
@ | A | 188.8.131.52
@ | AAAA | 2222:2222:2222:2222:2222:2222
@ | MX | server2.com priority=10
The thing is, I would like to continue to use Namecheap’s DNS server for my records, so changing the glue/nameserver record to my MIAB server isn’t something I want. I also cannot change the A/AAAA record for server2.com, as that would not allow the webserver to be a webserver.
The most confusing part is that in the MIAB control panel, under System > External DNS > server2.com there are two entries that are confusing:
server2.com A 184.108.40.206
server2.com TXT v=spf1 mx -all
Recommended. Specifies that only the box is permitted to send @server2.com mail.