How to check MX records and fix email that isn't arriving

MX records tell the world where to deliver a domain's email. Here is how to check them, what correct records look like for Google Workspace and Microsoft 365, and the mistakes that lose mail.

To check MX records, type the domain (or any email address at it) into an MX lookup. You'll see the mail servers in the order senders try them, which provider hosts the email, each server's IP address and reverse DNS, and any mistake that makes mail bounce. If email to your domain isn't arriving, the MX records are the first thing to check, because they decide where every incoming message goes.

Check MX records step by step

  1. Open the MX lookup and type your domain, for example yourcompany.com.
  2. Press Find mail servers.
  3. Check the provider line. It should name the service you pay for (Google Workspace, Microsoft 365, Zoho Mail and others are recognised). If it names your old provider, or two providers, that is your problem.
  4. Read the problems listed under the table, if any, and fix them at your DNS host.

On a computer you can also run nslookup -type=mx yourcompany.com (Windows) or dig mx yourcompany.com +short (Mac, Linux). Our guide to checking DNS records covers those commands.

How to read the result

Each MX record has a priority number and a server name. Senders try the lowest number first and move to the next only if they can't connect. Servers with the same number share the load. The number is a preference, not a score: 1 and 10 work the same if there is only one record.

What correct MX records look like

ProviderMX record(s)Source
Google Workspace (new set-ups)1 smtp.google.com. Domains set up before 2023 often have several aspmx records, which Google still supports.Google Workspace Admin Help, "Set up MX records" (updated 10 Nov 2026)
Microsoft 365One record, priority 1: <domain-key>.mail.protection.outlook.com, with the domain key shown in your Microsoft 365 admin centre.Microsoft Learn, "Connect your DNS records at Cloudflare to Microsoft 365" (updated 16 Jun 2026)

Both providers say the same thing: delete every other MX record. For any other provider, copy the values from its setup page rather than from a forum post, because they differ by region and plan.

Five MX mistakes that lose email

MistakeWhat happensFix
Old provider's records left in place after a switchSome mail goes to the old mailbox, at randomDelete every MX record that isn't the new provider's
No MX records at allSenders fall back to the domain's A record, usually a web server that refuses mail, so messages bounce or are delayedAdd your provider's MX records
MX points to an IP addressNot allowed: an MX must name a host (RFC 5321), so many senders ignore itPoint it at a host name, such as mail.yourdomain.com, that has an A record
MX host name doesn't resolveNothing can be delivered to that serverFix the typo or remove the record
Records added at the wrong DNS hostThe change never shows upCheck the NS records with the DNS lookup and edit DNS where they point

The lookup also warns when an MX host is an alias (CNAME), which RFC 2181 doesn't allow; large senders usually cope, some don't. And it notes a "null MX" (0 .), which is how a domain says it never receives email (RFC 7505); that is correct for domains used only for a website.

Changed your MX records? How long it takes

Senders that cached the old records keep using them until the old record's TTL runs out. Microsoft says DNS changes typically take about 15 minutes; Google tells Workspace customers it can take up to 72 hours for new MX records to be recognised. Keep the old mailbox open for a few days after switching and check it once a day, then run the MX lookup again: when it names only the new provider, you're done.

Receiving works, but your emails go to spam?

MX records only control incoming mail. Whether your own emails reach other people's inboxes depends on SPF, DKIM and DMARC. Run the email deliverability checker for all three, test a DKIM key on its own with the DKIM record checker, and read why emails go to spam for the other causes.

Frequently asked questions

What does MX stand for?

Mail exchanger. An MX record names a server that accepts email for the domain, with a priority number.

Can I have MX records from two providers?

Only with a deliberate set-up such as a filtering service in front of your mailbox, and then the filtering service's records alone go in MX. Records from two mailbox providers split your mail between them.

Do I need MX records for a subdomain?

Only if you want to receive email at addresses on that subdomain, such as [email protected]. Sending newsletters from a subdomain needs SPF and DKIM there, not MX.