Add or correct MX records
MX records route incoming mail. Use the destination and priority assigned by the service that receives mail for your domain.
Reviewed by Mira John Updated
Get the intended mail route
Open the mailbox provider’s domain setup and copy its complete MX set. For a mail gateway, use the gateway’s designated inbound targets.
Update the active DNS zone
At the domain’s DNS host, add MX records with the supplied hostnames and priorities. Replace retired targets as part of the planned cutover. Lower numbers are tried first.
Test delivery from outside
Run the MX check again, compare both resolvers and send a message from an independent mailbox. Confirm it reaches the intended account.
Check the published record
Replace example.com with your domain.
nslookup -type=MX example.com
MX changed, but mail still goes to the old service
The old target still appears
Query the active authoritative zone, then compare the public resolver answers. An edit in a retired DNS zone does not change the live MX records.
Both old and new targets appear
Read the complete set and its priorities. Lower preference numbers are tried first; equal values can send mail to either service.
MX matches, but delivery fails
Check the destination domain and mailbox in the receiving service, then send a new message from an independent account.
Confirm: Public MX targets and priorities match the intended receiving service, and a new test message reaches the mailbox.