- Updated
- View as Markdown
Glossary
MX record.
An MX (mail exchanger) record is a DNS record that names the mail servers accepting email for a domain, each with a priority number. Sending servers look it up to find where to deliver mail addressed to that domain.
What is MX Record?
In short
An MX record has a preference number and a hostname: example.com MX 10 mx1.mailhost.com.
Senders try the lowest number first, and records with equal numbers share the load. The target must be a hostname with its own A or AAAA record. RFC 2181 forbids pointing an MX at a CNAME alias. If a domain has no MX record at all, senders fall back to its address record, which RFC 5321 calls an implicit MX.
MX records control inbound mail only. Which servers may send for you is SPF's job. They still matter for outbound: a sending domain without working MX records can't receive replies or bounce messages, and email verification tools start every check by looking up the domain's MX.
MX Record example.
Example: a team sets up a new sending domain on Google Workspace and adds one MX record, smtp.google.com, priority 1. Without it, prospects who reply to the first campaign would get a bounce back, and the team would never see those replies.
MX Record in practice.
Mailbox providers publish the values to use. Google Workspace now uses a single MX record, smtp.google.com with priority 1, and still supports the older values that start with aspmx on domains set up before 2023. Its setup steps are to remove any other MX records on the domain, add the Google record in the registrar's format (some want a trailing period, others the priority and host on one line), then activate Gmail in the Admin console. Google warns that new MX records can take up to 72 hours to take effect, and its Admin Toolbox Dig tool shows what the domain publishes in the meantime.
Frequently asked questions.
A DNS record that tells other mail servers where to deliver email for your domain. It holds a priority number and the hostname of a mail server.
The number before the hostname. RFC 5321 says lower numbers are more preferred, so senders try the lowest first and move to higher ones if it fails. Records with the same number share the load.
Senders fall back to the domain's own address record, which RFC 5321 treats as an implicit MX. If there is no address record either, mail to the domain cannot be delivered.
No. RFC 2181 says the name in an MX record must not be an alias. Point it to a hostname that has its own A or AAAA record.
One record: smtp.google.com with priority 1, with every other MX record removed from the domain. Domains set up before 2023 may still use the older values that start with aspmx. Google continues to support them, so a domain where mail already works needs no change.
Do this in Kenso.
Do this in Kenso
Delivery handles DNS setup for the domains it provisions and checks MX on each one, so replies reach the mailbox and show up in Inbox.
Open in Kenso- Module
- Delivery
Related pages.
Sources we checked.
| Source | Checked |
|---|---|
| RFC 5321: Simple Mail Transfer Protocol | |
| RFC 2181: Clarifications to the DNS Specification | |
| Google Workspace Admin Help: Set up MX records for Google Workspace |
What changed on this page.
- Page published.