Lowest first
Lower numbers are more preferred and the value must be used in sorting.
Monitor
Protect
Manage
By role
Security
Renewals
Monitoring
MX priority (preference) is a number where lower means more preferred: sending servers try the lowest number first and fall back to higher numbers if it fails. Records with the same number are tried in random order to spread load, as RFC 5321 requires.
| MX record | Priority | Used |
|---|---|---|
| mx1.example.com | 10 | Tried first, shares load with mx2 |
| mx2.example.com | 10 | Tried first, shares load with mx1 |
| backup.example.net | 20 | Only if both priority-10 hosts are unusable |
Rules from RFC 5321, section 5.1.
Lower numbers are more preferred and the value must be used in sorting.
Same-preference records must be randomized to spread load.
With no MX records, senders treat the domain own A or AAAA record as an implicit MX at preference 0.
One record, priority 0, target a single dot, declares the domain accepts no mail (RFC 7505).
example.com. IN MX 10 mx1.example.com.
example.com. IN MX 20 backup.example.net.
; domain that never receives mail (RFC 7505)
example.org. IN MX 0 .After moving providers, an old record at a lower priority number still receives mail. Microsoft says to remove old MX records or give them a lower priority (higher number) than the new one.
Use the MX lookup and note every host with its number.
Primary gets the lowest number. Backups get higher numbers.
Keep at least one working record at all times.
A short TTL makes a rollback faster if mail stops arriving.
Confirm the order from more than one resolver.
A second host with a higher number covers an outage of the first, if it can store and forward mail.
Providers such as Google use a single record, so you do not add a backup.
A backup MX with weaker filtering can become the easiest path for spam.
The lowest number. Priority 0 or 1 is tried before 10, and 10 before 20. RFC 5321 says lower numbers are more preferred and senders must sort by the value.
It spreads delivery across the hosts. RFC 5321 says that if several MX records share the lowest preference and nothing favors one, the sender must randomize them.
Only the relative order matters. 5, 10 and 20 behave the same as 1, 2 and 3. Providers pick numbers such as 1, 10 or 0 by habit, so follow their instructions exactly.
A single MX with priority 0 and target a dot. It says the domain accepts no email, so senders fail immediately instead of retrying. RFC 7505 says it must be the only MX record.
RFC 5321 says that when no MX records exist, senders treat the domain as having an implicit MX with preference 0 pointing to the domain itself and use its A or AAAA record. A null MX avoids that.
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.