Guide

MX Record Priority: What the Number Means, With Examples

MX record priority sets the order senders try your mail servers. Lowest number first, ties share the load. Values for Google, Microsoft 365, Zoho and more.

MX record priority is the order senders try your mail servers in. The lowest number wins, and records with the same number share the load.

Every MX record is a number plus a hostname, like 10 mx1.example.net. The spec calls the number preference, your DNS panel probably says Priority, and it's the same field either way.

How MX record priority works

When a server has mail for you@yourdomain.com, it looks up the domain's MX records and sorts them by number, lowest first. It tries the first host, and if that one is down or doesn't answer, it moves to the next number up until one accepts the message.

Here's a domain with two records:

yourdomain.com.   3600 IN MX 10 mx1.example.net.
yourdomain.com.   3600 IN MX 20 mx2.example.net.

Every sender goes to mx1 first. mx2 only gets mail when mx1 can't be reached.

Hosts with the same number have no order between them. RFC 5321, section 5.1 says the sender MUST randomize among equal-preference hosts to spread the load, so each sender picks one of them at random.

Does the number itself matter?

Only the order matters. Section 5.1 uses the numbers to sort the list and gives them no other meaning, so my reading is that 10 and 20 behave exactly like 1 and 2 (or 5 and 500). A sender ends up with the same list either way.

Same for 0 vs 1 vs 10. 0 is the lowest value there is, so it's as preferred as a record gets, and Microsoft 365 asks for it. Google uses 1 for its single record. Zoho, Namecheap and Postmark start at 10, I think because it leaves room to add something above it later.

With one MX record, the number doesn't change anything: 0, 1 and 10 all mean this is the only server.

MX priority values by provider

These are the values each provider documents, checked on 2026-12-01. Copy what yours gives you; there's nothing to gain from tidying the numbers.

ProviderMX hostPriority
Google Workspacesmtp.google.com1 (the only record)
Microsoft 365Copy it from the Microsoft 365 admin centerTypically 0
Zoho Mailmx.zoho.com, mx2.zoho.com, mx3.zoho.com10, 20, 50
Cloudflare Email Routingroute1.mx.cloudflare.net, route2.mx.cloudflare.net, route3.mx.cloudflare.netSet automatically by Cloudflare
Namecheap Private Emailmx1.privateemail.com, mx2.privateemail.com10 and 10
Mailyond (on a subdomain)inbound.postmarkapp.com, on updates.yourdomain.com10

Google's MX setup page lists the single smtp.google.com record. Workspace domains from before 2023 may still have the older aspmx records, which Google still supports. If mail arrives, leave them.

Microsoft's DNS records guide says to set the priority to the "highest value available, typically 0". That means highest priority, which is the lowest number.

Zoho mail goes to mx.zoho.com at 10, and mx2 and mx3 only get it when that one is down (Zoho's guide). The .com changes with your account's data center.

With Cloudflare, Email Routing adds its three records and picks the priorities itself (Cloudflare's docs), so leave them as they are. My own domain receives this way, and the setup is in Cloudflare email forwarding.

Equal priority vs backup MX

Multiple MX records do one of two jobs, and the numbers tell you which.

Equal numbers share the work. Namecheap's two hosts at 10 are both primary: a sender picks one at random and tries the other if it's down.

Different numbers make a backup MX record. Zoho's 20 and 50 wait until the 10 fails, and since they're Zoho's too, they deliver into the same mailboxes.

The backup MX I'd skip is one from a different company that accepts mail it can't deliver. It doesn't know which of your addresses exist, so it takes everything, spam included, and later sends bounces for whatever your real server refuses.

If your only MX is down for a while, senders queue the mail and retry later. Google runs Workspace on a single MX record. For most domains, the provider's own records are all the backup you need.

Common priority mistakes

The priority mistakes that lose mail are about which records exist and where they sit.

  1. An old provider's MX left at a lower number than the new one. You move hosts, add the new MX at 10 and leave the old one at 1. Senders keep going to the old host first, so mail bounces if that account is closed, or lands in a mailbox you stopped checking if it isn't. Microsoft's guide says to remove the old MX or give it a higher number than Microsoft's. I'd remove it.
  2. Two providers' MX on one name. Say Google is at 1 and Zoho is at 10, left over from a trial. Mail goes to Zoho whenever a sender can't reach Google, and with equal numbers it splits between them at random. Either way, some mail sits in an inbox you aren't reading. If you need both, put one on a subdomain.
  3. A record on the wrong name. For you@yourdomain.com the MX goes on the root, usually @ in a DNS panel. Some panels add the domain to whatever you type, so entering yourdomain.com creates a record for yourdomain.com.yourdomain.com, which no sender looks up. And mail for hello@updates.yourdomain.com needs its own MX on updates.

No MX, and null MX

A domain with no MX records can still get delivery attempts. RFC 5321 section 5.1 says the sender then uses the domain's A or AAAA host as an implicit MX with preference 0, which in practice means whatever IP your website is on.

A null MX says no on purpose. RFC 7505 defines it as a single MX record with preference 0 and . as the host:

yourdomain.com.   3600 IN MX 0 .

Senders then fail the message right away instead of trying. I'd put one on any domain that only runs a website. It has to be the only MX on that name; RFC 7505 doesn't allow it next to other MX records.

How to check your MX priority

Paste the domain into our MX record checker. It lists the records sorted by priority, lowest first, so the top row is where senders go first, and it labels the providers it recognizes.

If a hostname there means nothing to you, how to tell who hosts your email covers matching it to a provider.

In a terminal, dig +short MX yourdomain.com prints each record as number and host, in whatever order the answer came in. Sort by the numbers yourself.

Mail on a subdomain with its own MX

MX priority only compares records on the same name. A sender delivering to you@yourdomain.com never looks up updates.yourdomain.com, so an MX there can't compete with the root's.

That's how I'd add app email to a domain that's already on Google Workspace or Microsoft 365. The root keeps its MX and the people using it don't notice anything. App mail goes out from the subdomain, and replies come back through its own record:

yourdomain.com.           3600 IN MX 1 smtp.google.com.
updates.yourdomain.com.   3600 IN MX 10 inbound.postmarkapp.com.

Each is the top record for its own name. The email on a subdomain guide has the rest of the records and the CNAME clash to look out for.

The second line is what Mailyond uses. You connect the subdomain with one 5-minute DNS setup (a DKIM TXT record, a Return-Path CNAME and that MX), and replies to your app's email land in one inbox with your other domains, where you answer from the address they were sent to. Your app can send on the same subdomain through a Resend-compatible API.

Plans are from $10/month (Basic $10, Pro $20, Agency $40), and Basic and Pro have a 7-day trial. If the mail on your root domain works, keep it there and try Mailyond on a subdomain.

FAQ

What does MX priority 0 mean?

It's the lowest number there is, so it's the most preferred server. Microsoft 365 typically uses 0 for its record. On its own it's a normal MX. The one special case is 0 ., a null MX, which means the domain accepts no email.

What does priority 10 mean?

It's a position in the order: 10 is tried before 20 and after 5. It's a common default, and a single record at 10 works exactly like a single record at 0 or 1.

Can two MX records have the same priority?

Yes. Senders have to pick between equal-priority hosts at random, so mail is shared between them. Namecheap Private Email sets both of its hosts at 10 this way.

Which MX priority is highest?

The lowest number. A record at 0 or 1 is the top, and a record at 50 is a fallback. Microsoft's docs say "highest value available, typically 0", which means the same thing.

Do I need a backup MX?

For most domains, the records your provider gives you are enough, including its own backups if it lists any (Zoho lists two). A backup MX from another company only helps if it can deliver to your real mailboxes. If it can't, it mostly collects spam and sends bounces.

Send and answer email across all your domains

Every address on every domain in one inbox, plus a Resend-compatible API for your app's email.

One DNS setup per domain
Verify in about five minutes
Price
Starting from $10 / month
Replies on the same domain
Answer from the address they wrote to