GTM Engineering term, email infrastructure

MX record

An MX (mail exchanger) record is a DNS record that names the mail servers responsible for receiving email for a domain, each with a priority number.

Also called: mail exchanger record, MX, DNS MX record

MX record lives in reach, the part of the funnel about reaching buyers, near related terms like SPF, DKIM and DMARC (the blue squares).

An MX record, short for mail exchanger record, is a DNS entry that tells the rest of the internet which servers accept email for your domain. When someone replies to your outbound email, their mail server looks up your MX record to find where to deliver it. No MX record, no replies, and a domain that looks half-built to spam filters.

How it works

An MX record has three parts: the domain it applies to, a priority number and the hostname of a mail server. A sending server looks up the recipient domain's MX records, sorts them by priority (lowest first) and tries to deliver to that host.

A typical setup looks like this:

example.com.   MX   1    smtp.google.com.

That single record is what Google Workspace has recommended for newer setups. Older Workspace domains often list five records with priorities 1, 5, 5, 10, 10 pointing at Google's ASPMX hosts, and both work. Microsoft 365 uses a single record pointing at a host under mail.protection.outlook.com. Your provider gives you the exact values, and you add them at your DNS host, such as Cloudflare or your registrar.

Three rules keep it clean:

  • The MX target must be a hostname, never an IP address or a CNAME.
  • Keep only your active provider's records. Leftover MX records from an old host can split incoming mail.
  • If a domain should never receive mail, publish a null MX (0 .) so senders stop trying.

Example

Say a team buys three secondary domains for cold outreach and sets up two Google Workspace mailboxes on each. They add SPF and DKIM but forget MX on one domain.

Two problems follow. First, replies sent to that domain bounce back to the prospect, so roughly a third of potential positive replies (assumption: replies are spread evenly across domains) never reach the team. If the program would have produced 30 positive replies a month, about 10 disappear. Second, some receiving servers check whether the sending domain can accept mail before trusting it, so the domain's sender reputation starts weaker. A five-minute DNS fix closes both gaps.

How to check yours

Run dig MX yourdomain.com or nslookup -type=mx yourdomain.com, or use any free DNS lookup tool. Confirm that:

  1. Every domain you send from returns MX records.
  2. The records point only to your current provider.
  3. Priorities match the provider's documentation.
  4. Your DMARC aggregate reports and replies arrive, which proves the path works end to end.

We put this check in every cold email deliverability audit, because it is the cheapest problem to find and fix.

Common mistakes

  • Leaving old MX records from a previous email host alongside the new ones.
  • Pointing an MX record at an IP address or a CNAME instead of a hostname.
  • Setting up mailboxes on new outbound domains and never adding MX at all.
  • Confusing MX with SPF, which controls who may send, not where mail is received.
  • Changing MX during a migration without lowering the TTL first, which stretches out the cutover.

FAQ

Does an MX record affect sending email?

Not directly, because MX records control where incoming mail goes. Indirectly they matter: replies and bounces need somewhere to land, and receiving servers may treat a sending domain that cannot receive mail as suspicious. Every domain you send from should have working MX records.

What does MX priority mean?

Each MX record carries a number, and lower numbers are tried first. If you list two servers with priorities 10 and 20, senders try the 10 server and fall back to the 20 server only if the first is unavailable. Equal numbers spread load between servers.

How long do MX record changes take to work?

It depends on the record's TTL (time to live) and on how long other resolvers cached the old value. Many changes show up within minutes to a few hours, but full propagation can take up to a day or two if the previous TTL was long.

See all email infrastructure terms ↳

Used in these articles