MX target is a CNAME
RFC 2181 forbids it. Some servers resolve it anyway, others bounce mail.
Monitor
Protect
Manage
By role
Security
Renewals
Monitoring
An MX (mail exchanger) record names the mail servers that accept email for a domain, each with a priority number where the lowest value is tried first. Without a valid MX record, senders fall back to the domain address record or fail delivery.
gmail.com MX preference = 5, mail exchanger = gmail-smtp-in.l.google.com
gmail.com MX preference = 10, mail exchanger = alt1.gmail-smtp-in.l.google.com
gmail.com MX preference = 20, mail exchanger = alt2.gmail-smtp-in.l.google.com
gmail.com MX preference = 30, mail exchanger = alt3.gmail-smtp-in.l.google.com
gmail.com MX preference = 40, mail exchanger = alt4.gmail-smtp-in.l.google.com| Setup | Example | What happens |
|---|---|---|
| One server | 10 mail.example.com | All mail goes there; the number only matters with several records |
| Primary and backup | 10 mx1 / 20 mx2 | Mail goes to the priority 10 host and uses 20 only if 10 is unreachable |
| Equal priorities | 10 mx1 / 10 mx2 | Senders spread delivery across both hosts roughly equally |
| No MX at all | (none) | Senders may fall back to the domain A/AAAA record, which usually is not a mail server |
| Null MX | 0 . | Declares the domain accepts no email, so senders fail at once (RFC 7505) |
Lower preference values are preferred per RFC 1035, section 3.3.9. Priority is a 16-bit number (0 to 65535).
Google Workspace, Microsoft 365, Fastmail and others publish the exact hostnames and priorities. Never guess them.
Leftover MX records from a previous provider can send some mail to the wrong place.
Type MX, name @ (the bare domain), the priority and the mail server hostname. Do not enter an IP address.
Run the MX lookup or nslookup -type=MX example.com 1.1.1.1 and send a test message from an outside account.
RFC 2181 forbids it. Some servers resolve it anyway, others bounce mail.
The MX name must resolve to an A or AAAA record or delivery fails.
Two providers at similar priorities split mail between mailboxes.
MX stands for mail exchanger. An MX record lists the hostnames of the servers that receive email for a domain, together with a priority number that sets the order senders try them in.
The lowest number is tried first. A server at priority 10 is preferred over one at 20. If several records share the same number, senders pick among them more or less evenly.
No. The MX value must be a hostname, and that hostname must resolve through an A or AAAA record. A bare IP address in the MX field is invalid.
Not required, but a null MX record (0 and a single dot) tells senders immediately that the domain accepts no mail, so they do not retry for days. RFC 7505 defines it.
Senders cache the old MX set for its TTL, so the switch completes within that time, commonly an hour or less if the TTL was short. Lower the TTL a day before the move to shorten the overlap.
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.