Score:1

How to change A record in DNS and keep email working when MX record point to the domain itself

sx flag

For my client, I'm migrating domain to point to a new website server. In order to do that, I'm changing A records to point to new server IP. After such change, client has lost possibility to send e-mails from his mail accounts located on old server. DNS Configuration is as follows:

Domain name: example.com

Host Type Content
@ A XXX.XXX.XXX.XXX
www A XXX.XXX.XXX.XXX
@ MX 10 example.com

After changing A records to YYY.YYY.YYY.YYY it seems like the MX records are now pointing to IP of new server, which does not have mail functionality, and that stops the e-mail from working. Can I somehow point the MX record towards the old server?

Score:1
us flag

Since your MX record currently points to the domain itself, that means it's essentially pointing to the @ DNS record. So when you update that the MX destination is changed.

Add an additional A record to the domain which points to the old server, for instance mail.example.com, and then point the MX record to that A record rather than the main ones that are being moved. So you end up with this.

Host Type Content
@ A YYY.YYY.YYY.YYY
www A YYY.YYY.YYY.YYY
mail A XXX.XXX.XXX.XXX
@ MX 10 mail.example.com
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.