MX lookup

Short answer

How do I find the MX record of a domain?

You find the MX record by making a DNS lookup of type MX on the domain, which shows which servers receive email and in what order. For Microsoft 365 it looks like 0 company-com.mail.protection.outlook.com, and for Google Workspace smtp.google.com. Enter the domain above to see the servers, the priority and the service.

See which mail servers receive email for the domain, in which order, and which service they belong to.

What MX records are

The MX records tell other mail servers where email to the domain should be delivered. Without an MX record the domain cannot receive email.

Priority

Every MX record has a number. The server with the lowest number is tried first. Equal numbers share the traffic.

Domains that do not receive email

A domain that should not receive email should have a null MX, which is one MX record with priority 0 and only a dot. Senders then know not to try.

Common mistakes

  • MX points to an IP address. It must point to a host name that has an A or AAAA record.
  • MX points to a CNAME. That is not allowed by the standard, even if some servers accept it.
  • Old MX records from the previous provider remain after a move, so some email is delivered to the wrong place.

If you change email provider, lower the TTL a few days before, change all the MX records at the same time and check that SPF, DKIM and MTA-STS are updated for the new service.

Questions and answers

Why does the domain have several MX records?

For redundancy. If the first server is down, the next one is tried. Microsoft 365 and Google Workspace handle this themselves with one or more records.

How long does it take before a new MX record works?

It depends on the TTL of the old record, which is shown in the result. Usually from a few minutes to an hour.

What happens if the domain has no MX record?

Then senders try to deliver to the A record of the domain. That rarely works. If the domain should not receive email, set a null MX instead.