Protect new mailboxesFresh mailboxes burn fast on a dirty list

Verify every lead before the first send and keep bounces low from day one.

Verify 25 emails free →
Product Bulk verificationReal-time APISignup form widget Catch-all detectionRole and disposable flagsFree email checker
Solutions Cold email agenciesSales teams and SDRsDevelopers and SaaS InstantlySmartleadApollolemlistClayHubSpotMailchimpWoodpeckerReply.ioSaleshandyZapierMaken8n All integrations
Mailboxes Google Workspace mailboxesOutlook mailboxesNew cold domain checklist
Compare vs ZeroBouncevs NeverBouncevs Emailable Pricing comparedCredit expiry comparedAll comparisons
Resources GuidesBounce rate benchmarksHow many bounces burn a domain?MX records MX lookupDomain health reportEmail list cleanerAll MX Tools
Pricing
Home / MX records / MX priority

MX priority (preference) explained

The number in front of each MX host decides which mail server senders try first. Lower wins, ties are shared at random, and the actual value only matters relative to the others.

Updated 2026-11-24

You open your DNS panel and every MX record has a number next to it: 0, 1, 5, 10, 20. Which one gets the mail? The rule has been the same since 1986: senders try the lowest number first, move to higher numbers only if they can't deliver, and split mail at random between servers that share a number.

TL;DR

  • Lower is preferred. RFC 5321: "Lower numbers are more preferred than higher ones." Priority 0 beats 10, which beats 20 (RFC 5321, section 5.1).
  • Equal numbers share the load. When several hosts have the same priority, the sender "MUST randomize them". Yahoo publishes three hosts at priority 1; ICANN publishes four at 10.
  • Only the order matters. The value is a 16-bit number (0 to 65,535). 1 and 2 behave exactly like 10 and 20.
  • If every server fails, mail waits. Senders queue and retry, at least 30 minutes apart, for at least 4 to 5 days before bouncing.

What the priority number means

Each MX record has two parts: a preference value and a host name. The DNS standard defines the preference as "a 16 bit integer which specifies the preference given to this RR among others at the same owner. Lower values are preferred" (RFC 1035, section 3.3.9). DNS panels call it priority, preference, distance or pref. They all mean the same field.

; zone-file style
example.org.   3600  IN  MX  10 mx1.example.org.
example.org.   3600  IN  MX  20 mx2.example.org.

; DNS panel style
Type  Host  Priority  Value              TTL
MX    @     10        mx1.example.org    3600
MX    @     20        mx2.example.org    3600

The number has no units and no meaning on its own. When Paul Mockapetris introduced the record in RFC 973 (January 1986), he wrote that the values "should only be used to establish relative rankings", and of his example: "The values 10 and 20 have no significance other than 10<20." Gaps like 10, 20, 30 are just a convention that leaves room to slot a server in between later (a short history of the MX record).

If a domain has only one MX record, its priority doesn't matter at all. Microsoft 365's admin docs ask for "the highest value available, typically 0", Google asks for 1, and either would work the same with a 50.

How a sender walks the list

RFC 5321 spells out the procedure. The sending server looks up the MX records, sorts them by preference and works down the list:

  1. Sort the hosts by preference, lowest first.
  2. Shuffle ties. Hosts with the same preference are put in random order, so they share the load.
  3. Resolve and connect. Look up each host's A and AAAA records and try its addresses in order.
  4. Fall back to the next host if a connection fails or the server answers with a temporary error. The client "SHOULD try at least two addresses", and may cap how many it tries.
  5. Queue the message if no host accepts it, and retry later.

Real mail servers do cap the list. Postfix, a widely used mail server, by default stops after 5 MX IP addresses (smtp_mx_address_limit) and 2 SMTP sessions per delivery attempt (smtp_mx_session_limit), according to its configuration reference (checked 2026-11-24). A long tail of backup hosts at priority 50, 60 and 70 may never be tried on a given attempt.

A fallback only happens when the preferred server can't take the message. If the priority-10 server answers "550 user unknown", that's a final answer: the sender bounces the message and doesn't ask the priority-20 server.

Gmail’s live MX set on 24 November 2026. A sender moves right only when it can’t deliver; a 550 from the first server is final. Postfix by default tries at most 5 MX IP addresses per attempt.

Equal priority: load balancing

When two or more hosts share the lowest number, none of them is a backup. RFC 5321 says that if there's no clear reason to favour one, "the sender-SMTP MUST randomize them to spread the load across multiple mail exchangers". The earlier host requirements, RFC 1123 (1989), only said SHOULD.

Large receivers use this deliberately. On 24 November 2026, Cloudflare's resolver returned:

yahoo.com.   MX  1 mta5.am0.yahoodns.net.
yahoo.com.   MX  1 mta6.am0.yahoodns.net.
yahoo.com.   MX  1 mta7.am0.yahoodns.net.

icann.org.   MX  10 pechora1.icann.org.
icann.org.   MX  10 pechora6.icann.org.
icann.org.   MX  10 pechora7.icann.org.
icann.org.   MX  10 pechora8.icann.org.

Each sender picks one of those at random, so over thousands of senders the traffic spreads roughly evenly. Load balancing also happens one level down: a single MX host name can resolve to many addresses. smtp.google.com returned five IPv4 and four IPv6 addresses the same day, which is why Google needs only one MX record.

The flip side: if you leave an old provider's MX at the same priority as the new one during a migration, half your senders will deliver to the old system at random. This is why Google and Microsoft both tell you to deal with old records when you switch.

Yahoo publishes three hosts at priority 1, so each sender picks one at random and the load spreads across all three. None of them is a backup.

Real examples: Google, Microsoft and others

Live answers from Cloudflare's public resolver, 24 November 2026. Check any of them, or your own domain, with our MX lookup.

DomainMX records (priority host)Pattern
google.com10 smtp.google.comOne host; redundancy lives behind the name
gmail.com5 gmail-smtp-in.l.google.com
10, 20, 30, 40 alt1 to alt4.gmail-smtp-in.l.google.com
Strict ladder: one primary, four ranked fallbacks
nytimes.com1 aspmx.l.google.com
5 alt1, alt2.aspmx.l.google.com
10 alt3, alt4.aspmx.l.google.com
Google Workspace legacy five-record set: a ladder with ties on each step
microsoft.com10 microsoft-com.mail.protection.outlook.comOne host (Microsoft 365)
github.com0 github-com.mail.protection.outlook.comOne host (Microsoft 365) at 0
yahoo.com1 mta5, mta6, mta7.am0.yahoodns.netPure load balancing
apple.com10 mx-in.g.apple.com
20 five regional mx-in hosts
One primary, a tied pool of fallbacks
proton.me10 mail.protonmail.ch
20 mailsec.protonmail.ch
Primary plus one fallback

Three things stand out. Values differ wildly (0, 1, 5, 10) and it doesn't matter. Single-record setups are normal for the biggest providers. And Microsoft 365 domains at 0 and at 10 behave identically, because each has only one record.

What Google and Microsoft recommend

Google Workspace. Google's setup guide gives one MX record, smtp.google.com, at priority 1, and says "Remove any other MX records. Your email might not work correctly if you keep old or incorrect MX records." Domains set up before 2023 may still use the older aspmx hosts, which Google says are still supported (Google Workspace admin help, checked 2026-11-24). Provider detail: Google Workspace MX records.

Microsoft 365. Microsoft gives one host under mail.protection.outlook.com for your domain, with priority "the highest value available, typically 0" and TTL 3600. If an old provider's MX remains, Microsoft says to remove it or "set the MX record priority for the previous email provider to a lower priority than the MX record for Microsoft 365. In MX records, lower numbers indicate higher priority" (Microsoft 365 admin docs, checked 2026-11-24). Its Exchange troubleshooting guide goes further: "We recommend that you have only one MX record for each Microsoft 365 domain," because Microsoft 365 "already has extreme redundancy" and extra MX records "can actually make mail delivery less reliable" (Microsoft Learn, checked 2026-11-24). Provider detail: Microsoft 365 MX records.

Note the wording trap in Microsoft's sentence: "lower priority" means a higher number. When a guide says "highest priority", read it as "smallest number".

Common priority mistakes

  • Reading the numbers backwards. Putting the backup at 5 and the real server at 10 sends all mail to the backup. Lower number, higher priority.
  • Old and new providers at the same number. Mail splits at random between them. Remove the old record, or at least give it a higher number, then remove it once mail has moved (how to change MX records safely).
  • A "backup" that isn't one. A fallback host that accepts everything and filters nothing invites spam, because spam senders don't have to respect your order (backup MX: when it helps).
  • Treating 0 as "off". Priority 0 is the most preferred value, not a disabled record. The only special 0 is the null MX, MX 0 ., where the dot is what means "no mail" (null MX).
  • The priority typed into the host field. Some panels have a separate priority box; others want 10 mx1.example.org in one field. Typing both gives a host name like 10 mx1... that doesn't resolve. More in MX record mistakes.

How verifiers use MX priority

An email verifier follows the same order a sender would. Mail Exchange sorts a domain's MX records by preference, runs the mailbox check against the most-preferred host and, if that connection fails, tries the next host. It never sends a message. Because the primary host is the one that answers, a misconfigured backup rarely changes the result, but a domain whose only MX hosts don't resolve comes back unknown rather than deliverable.

If you're cleaning a list before a campaign, that check runs on every address: syntax, MX, mailbox and catch-all. The free trial covers 25 checks and plans start at $49 a month for 10,000 verifications and daily checks on 10 sending domains, with unknowns refunded (pricing).

Common questions

Is a lower or higher MX priority number used first?

Lower. RFC 5321 says lower numbers are more preferred than higher ones, so a sender tries the MX record with the smallest number first and only moves to higher numbers if it can't deliver there. Priority 0 is the most preferred value.

What happens if two MX records have the same priority?

The sender picks between them at random. RFC 5321 says equal-preference servers must be randomized to spread the load, so each host gets a roughly equal share of senders. Neither is a backup for the other.

Does the MX priority value matter if I only have one MX record?

No. With a single MX record every sender uses it, whatever the number. Microsoft 365 suggests 0 and Google Workspace suggests 1, but any value from 0 to 65535 works the same when it is the only record.

What happens if all MX servers are down?

The message is queued, not bounced. RFC 5321 says senders should wait at least 30 minutes between retries and keep trying for at least 4 to 5 days before giving up and returning the message to the sender.

Will a sender try my backup MX if the primary rejects a recipient?

No. Senders fall back only when the preferred server can't be reached or returns a temporary error. A permanent rejection such as 550 user unknown is final, and the sender bounces the message without trying the other MX hosts.

Start your free trial →