Name
- In the example
- example.com
- Meaning
- The domain that receives mail
An MX record is a DNS record that says which mail servers accept email for a domain. See the fields, how priority works, an example and Google Workspace values.
An MX (mail exchange) record is a DNS record that names the mail server that accepts email for a domain. It has a preference number and a host. RFC 1035 says of the preference: "Lower values are preferred." Senders try the lowest number first and move up if delivery fails.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
The record has two fields in RFC 1035. PREFERENCE is "A 16 bit integer which specifies the preference given to this RR among others at the same owner. Lower values are preferred." EXCHANGE is "A <domain-name> which specifies a host willing to act as a mail exchange for the owner name."
example.com. 3600 IN MX 10 mail1.example.com.
example.com. 3600 IN MX 20 mail2.example.com.The host should itself resolve through an A record (or AAAA for IPv6). RFC 5321 covers how a sending server locates the target host: the records are ordered by preference with the lowest number most preferred, and if a domain has no MX records at all, the domain itself is treated as an implicit MX with preference 0.
smtp.google.com, with the Priority set to 1. It warns "It can take up to 72 hours for the new MX records to be recognized." Google adds that domains that started on Workspace before 2023 may have older values starting with "aspmx", which are still supported. Always copy values from your mail provider's current instructions.dig MX example.com +short in a terminal, or use any MX lookup tool.For a site owner, a wrong MX record can mean email never arrives, including contact-form replies and password resets.
4 questions people ask next, answered from the sources on this page.
A preference number and the hostname of a mail server, attached to a domain name.
Run dig MX yourdomain.com +short, or use a DNS lookup tool. Your DNS host's dashboard also shows them.
Lower numbers are tried first. Higher numbers act as fallbacks if the preferred server can't take the message.
Usually. Senders look up MX records to find where to deliver mail for your domain. RFC 5321 treats a domain with no MX records as its own mail host, but most domains set MX records explicitly.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.