What an MX record is and how to check yours

By the outr team9 min read

An MX record (mail exchanger record) is the DNS record that tells other mail servers where to deliver email for your domain. It does not send your cold email. It decides where the replies go, and where the bounces go, and in cold email those are the messages you can least afford to lose.

Get it wrong and nothing warns you for weeks. You buy a domain for outreach, set up SPF, DKIM and DMARC, warm up the inboxes and start sending. Three weeks in, a prospect writes back:

Example

Hi Sam,

Thursday at 10 works. Send me an invite.

Priya

Priya gets a bounce. You get nothing. Your dashboard says zero replies, and you start rewriting a subject line that was fine all along. Sam and Priya are made up, but the failure is real and silent, and five minutes on your MX record prevents it.

Key points

  • An MX record says which mail server receives email for your domain; it plays no part in sending.
  • The number in front of each MX host is a preference, and lower numbers are tried first.
  • Google Workspace now uses a single MX record, smtp.google.com with priority 1, and older aspmx records still work.
  • Leftover MX records from an old provider, an IP address as the target, or a target that is a CNAME can all break incoming mail quietly.
  • The surest test is a reply: write to your cold email inbox from an outside address and see if it lands.

How an MX record decides where your replies go

When Priya hits Reply, her mail server needs to find a server that accepts mail for your domain. RFC 5321, the standard for how email moves between servers, says the lookup "first attempts to locate an MX record" for the domain. Whatever the MX record names is where the message goes.

Each MX record has three parts:

PartExampleWhat it means
Host (or name)@The domain the record is for. @ means the root domain, such as example.com.
Priority (or preference)1Which server to try first when there are several.
Target (or value)smtp.google.comThe host name of the mail server that accepts the mail.

The priority trips people up because it runs backwards. RFC 1035, the original DNS standard, defines it as a number that "specifies the preference given to this RR among others" and adds "Lower values are preferred." So a server at priority 1 gets the mail before one at priority 10. If two records share the same number and nothing favours one, RFC 5321 tells the sending server to pick at random to spread the load.

One more rule. If a domain has no MX records at all, RFC 5321 treats it as having "an implicit MX RR" pointing at the domain itself. In practice that is whatever server your domain's address record points at, usually your website host, which often has no mailbox for you. The rule applies only when there are no MX records. If there are some and none of them work, the standard says that is an error.

Why a cold email domain needs a working MX record

Your MX record is one of four DNS records every sending domain should have. The other three, SPF, DKIM and DMARC, prove your mail is really from you, and the full setup is in how to set up SPF, DKIM and DMARC for cold email. The MX record is different. It is the only one of the four that deals with mail coming in, and cold email lives on what comes in.

Three things travel through it:

  • Replies. The reason you are sending at all.
  • Bounces. When an address does not exist, the "delivery failed" notice comes back to your domain. Without it you keep emailing dead addresses, and your bounce rate climbs where you cannot see it.
  • Out-of-office and "I've left the company" notes. Annoying, but they often name the right person to write to next.

The anti-abuse industry group M3AAWG puts it plainly in its Sending Domains Best Common Practices (2019): "Domains used to send emails should have a proper MX record pointing to a functional email server." It lists the visible From address and the Return-Path (the hidden address bounces go to), plus Reply-To and Sender.

There is a deliverability side too, though it is softer. RFC 7505 notes that "Many receiving systems reject mail that has an invalid return address" and that "An invalid return address often signals that the message is spam." Google, Yahoo and Microsoft do not publish a rule saying they filter mail from domains without an MX record, so we will not claim they do. But a domain that sends hundreds of emails a day and cannot receive a single one looks odd, and odd is not what you want a filter to think.

Our opinion: treat a missing or broken MX record as a launch blocker, the same as a missing SPF record. It is quicker to fix than either.

How to check your MX record

You can do this in under a minute. On a Mac or Linux terminal:

dig MX example.com +short

On Windows, open Command Prompt and run:

nslookup -type=MX example.com

Replace example.com with your sending domain. For a domain on Google Workspace with the current setup, you should see one line:

1 smtp.google.com.

The 1 is the priority, and the full stop at the end is normal in DNS output. It just means the name is complete.

Rather not open a terminal? Two free options. Google's Check MX tool in the Admin Toolbox finds "common misconfigurations in your MX DNS records", and Google's diagnostic tools page says it reports a green, yellow or red flag. Or check your domain's records with our free checker, which reads MX alongside SPF, DKIM and DMARC and gives you a fix to paste if something is off.

Then do the test that counts. From a personal address outside your company, reply to one of your own cold emails. If the reply lands in your sending inbox, your MX record works. If it bounces, read the bounce. It usually says what went wrong.

What the result tells you

One line, `smtp.google.com`. You are on Google Workspace with the current single-record setup. Good.

Several lines starting with `aspmx`. Also Google Workspace, set up the older way. Google's MX setup page says that if you started before 2023 you might see values that start with "aspmx", and "If your email is working, no changes are required." The legacy values are still supported. Leave them alone.

A line ending in `mail.protection.outlook.com`. You are on Microsoft 365. The part before it is the MX token Microsoft gives your domain.

Nothing at all. No MX record. Your replies are heading for the implicit MX, usually your web host, and most likely bouncing. Fix this first.

`0 .` A null MX, which is a domain saying on purpose that it accepts no email. RFC 7505 says mail systems "SHOULD NOT publish a null MX record for domains that they use" in From or Return-Path addresses, and that a domain that does "risks having its mail rejected." If you see this on a domain you send from, someone copied a parked-domain setup. Delete it and add your real MX.

Hosts from two different providers. For example, Google lines next to an old host from your registrar's free email. More on that in a moment.

The MX values for Google Workspace and Microsoft 365

Google Workspace

From Google's MX setup page:

Type:      MX
Host:      @ (or leave blank)
Priority:  1
Value:     smtp.google.com

When you add it, Google says to "Remove any other MX records", because "Your email might not work correctly if you keep old or incorrect MX records." Some registrars want a full stop at the end (smtp.google.com.), others want the priority and the value on one line (1 smtp.google.com). Follow your registrar's format. For TTL, Google says to use your registrar's default.

Two things people forget. First, it "can take up to 72 hours for the new MX records to be recognized," so a failed test five minutes after the change proves nothing. Second, adding the record is step one. Step two is going to the Admin console, Account, Domains, Manage domains, and clicking Activate Gmail for the domain.

Microsoft 365

From Microsoft's external DNS records reference:

Type:      MX
Host:      @ (your domain)
Priority:  1 (lower than any other MX record)
Value:     <MX token>.mail.protection.outlook.com
TTL:       3600

You find your token in the Microsoft 365 admin center under Domains: pick your domain, choose Fix issues, then What do I fix? in the MX records section. Microsoft also says that "Once email is flowing to Exchange Online, you should remove the MX records that are pointing to your old system."

Mistakes that break replies without an error

None of these throw a warning when you save the record. You only find out when a reply goes missing.

  • Old records left behind. You moved from your registrar's free mailbox to Google, added the new record, and never deleted the old one. Both Google and Microsoft tell you to remove it.
  • Two providers at once. Microsoft says "You can have multiple MX records; however, that can cause problems for mail delivery," and that a single MX record pointing at one mail system "removes many potential problems." M3AAWG makes the same point in its advice on switching providers: "The MX record, however, should only point to one vendor." Pick one.
  • An IP address as the target. RFC 5321 says the data in an MX record "MUST contain a domain name," and that name must resolve to an address. 1 203.0.113.10 is not a valid MX target. Use the host name your provider gives you.
  • A target that is a CNAME. RFC 2181 says the name in an MX record "must not be an alias", that is, not a CNAME. The fix is to put the real host name in the MX record. Copy your provider's value exactly and you never hit this.
  • The domain typed into the host field. Some DNS panels add your domain to whatever you type as the host. Type example.com and you may have created a record for example.com.example.com. Use @ or leave it blank, as Google says.
  • A sending subdomain with no MX. If you send from outreach.example.com, that subdomain needs its own MX record. The one on example.com does not cover it. Google's page has a note for this case: enter the subdomain part, such as support, in the host field.

One related trap sits in a different record. SPF has an mx mechanism that authorises your MX servers to send. With Google or Microsoft, the servers that receive your mail are not the ones that send it, so mx in your SPF record is usually dead weight. And under RFC 7208 it counts towards SPF's limit of 10 DNS lookups. If your record is near that limit, see how to fix the SPF 10 lookup limit.

Checking a prospect's MX is a different job

Everything above is about your own domain. Looking up a prospect's MX record answers a different question: does their domain accept email at all? That is one step in cleaning a list, and it is covered properly, null MX and all, in how to verify a list of emails before you send.

Where to go from here

Run dig MX on every domain you send from, today. Then send yourself that reply from a personal address. If you just bought a new domain for outreach, set the MX record up on day one, before warm-up starts, along with the rest of the checklist in should you use a separate domain for cold email.

After that, the risk is drift. Someone moves DNS to a new host and the MX record does not come along, or a trial of another email provider leaves a stray line behind. That is why outr checks SPF, DKIM, DMARC and MX every day. Without a tool doing it, put a monthly reminder in your calendar and run the lookup again. It takes less time than reading this paragraph did.

Questions people ask

Do I need an MX record to send cold email?

Your email will leave without one, because sending does not use your MX record. But every reply and every bounce has to find a server for your domain, and that lookup starts with MX. M3AAWG says domains used to send email should have a proper MX record pointing to a working mail server.

How long does an MX record change take to work?

Google says it can take up to 72 hours for new MX records to be recognized. Many changes show up much sooner, but do not judge a change by a test sent a few minutes after you saved it. Check with dig MX yourdomain.com +short until you see the new value.

What does MX priority mean?

It is the order in which mail servers are tried, and lower numbers go first. A record with priority 1 is tried before one with priority 10. If two records share a priority, the sending server is told to pick between them at random.

Can I have MX records for Google and Microsoft at the same time?

You can publish them, but you should not. Mail would go to whichever one has the lower number, or to either at random if they match, so some replies end up in a mailbox you never open. Microsoft recommends a single MX record pointing at one mail system.

What is a null MX record?

A null MX is a single MX record with priority 0 and a target of just a full stop, written 0 .. It tells the world the domain accepts no email at all. RFC 7505 says domains you send from should not publish one, because mail from them risks being rejected.

Sources

  1. RFC 5321: Simple Mail Transfer Protocol, section 5.1
  2. RFC 1035: Domain Names, Implementation and Specification
  3. RFC 2181: Clarifications to the DNS Specification, section 10.3
  4. RFC 7505: A "Null MX" No Service Resource Record
  5. RFC 7208: Sender Policy Framework (SPF)
  6. Set up MX records for Google Workspace, Google Workspace Admin Help
  7. Check MX, Google Admin Toolbox
  8. Google Workspace diagnostic tools, Google Workspace Admin Help
  9. External Domain Name System records for Microsoft 365, Microsoft Learn
  10. Sending Domains Best Common Practices, M3AAWG

Written by the outr team

We build outr, an AI sales team that sends from your own inboxes and drafts every reply for you to approve. Every figure in this article links to the page it comes from, listed above.

Read next

An AI sales team in your own inbox

Our AI-driven SDR researches every lead, writes every email and follows up until they answer.