MX lookup
See where email for a domain is delivered, and whether those mail servers actually work.
The record that receives your mail
MX records tell other mail servers which machines accept mail for your domain and in what order to try them, and they cover incoming mail only.
Read moreShow less: The record that receives your mail
When someone sends a message to anyone@yourdomain.com, their mail server has to find out which machine accepts mail for yourdomain.com. It asks DNS for the domain's MX (mail exchanger) records. Each record holds two things: a priority number and the hostname of a mail server.
The sender tries the server with the lowest number first. If several records share that number, it picks among them, which spreads the load. If none of them answers, it moves to the next number up, and if every server fails it keeps the message in its queue and retries for a few days before bouncing it. So the numbers set an order, not a quality score, and only their relative size matters: 0 and 10 behave exactly like 1 and 20.
MX records only govern incoming mail. Sending is handled by SPF, DKIM and DMARC, which is why a domain can receive perfectly and still have its outgoing mail land in spam.
How to read our MX result
The result opens with where the domain's mail goes, then a finding with the outcome or the problem, and every record sits in a table under Technical details.
Read moreShow less: How to read our MX result
The summary names where mail goes, using the provider when we recognise the hostnames: "Mail for google.com is delivered to Google Workspace." When we don't, it names the first mail server.
The finding underneath is one of:
- "1 mail server found (Google Workspace)", or however many there are, marked Pass, when at least one server resolves to an address.
- "No MX records": nothing is published, so senders fall back to the domain's own address (usually the web server), which rarely accepts mail, and messages sit in queues for days before bouncing; with no address either, they bounce at once.
- "Null MX: the domain says it accepts no email": the domain publishes
0 ., a deliberate "this domain receives no mail" (RFC 7505). - "Null MX mixed with real MX records": remove the
0 .record. - "Domain does not exist": DNS has no such domain, usually a typo or a lapsed registration.
- "mail.example.com has no IP address", "MX points at an IP address" and "… is a CNAME": individual records that break the rules; the first two come with a fix, and the CNAME one is shown as a Note.
- "No working mail server": records exist but none of them resolves.
Technical details is a four-column table: Priority, Host, Addresses (the IPv4 and IPv6 addresses the hostname resolves to, or "none") and Provider when we know it.
Real MX records, 21 October 2026
Real records for four domains, from Google's single Workspace hostname and GitHub's Microsoft 365 one to Cloudflare's two tiers of servers.
Read moreShow less: Real MX records, 21 October 2026
google.com 10 smtp.google.com Google Workspace
github.com 0 github-com.mail.protection.outlook.com Microsoft 365
openbsd.org 5 mail.openbsd.org
cloudflare.com 5 mxa-canary.global.inbound.cf-emailsecurity.net
5 mxb-canary.global.inbound.cf-emailsecurity.net
10 mxa.global.inbound.cf-emailsecurity.net
10 mxb.global.inbound.cf-emailsecurity.net
Google's own domain uses the single hostname it now gives every Workspace customer. GitHub receives mail through Microsoft 365, and the hostname shows Microsoft's naming pattern: the domain with dots turned into dashes, then mail.protection.outlook.com. Cloudflare publishes four records in two tiers: senders share the load between the two priority-5 servers, and only fall back to the priority-10 pair if neither answers. OpenBSD runs its own server with a single record.
Problems and the records that fix them
The records to publish for Google Workspace or Microsoft 365, and fixes for leftover old records, IP or CNAME targets, a misplaced null MX and Microsoft's DNSSEC format.
Read moreShow less: Problems and the records that fix them
No MX at all. Publish your provider's values at the bare domain (host @):
- Google Workspace: one record, priority 1, value
smtp.google.com. Remove any other MX records. Domains set up before 2023 may still use the older "aspmx" hostnames, which Google continues to support. - Microsoft 365: one record whose value is the token Microsoft shows in the admin center, in the form
yourdomain-com.mail.protection.outlook.com, with the lowest priority number on the domain. Microsoft's format can change for newly added domains, so always copy the exact value the admin center shows.
Old records left behind after a move. If records for a previous provider remain at a lower number, senders deliver there first; at the same number, part of your mail goes there. Either way, that mail never reaches the new mailboxes. Delete them once the new records are in place.
MX pointing to an IP address. The value must be a hostname. Illustrative example of the fix:
example.com. MX 10 mail.example.com.
mail.example.com. A 192.0.2.25
MX pointing to a CNAME. The DNS rules don't allow an MX target to be an alias (RFC 2181). Point the MX at the real hostname the alias leads to.
A null MX on a domain that should receive mail, or a null MX alongside real records: delete the 0 . record.
Microsoft 365 with DNSSEC. If you turn on DNSSEC and inbound DANE for a Microsoft 365 domain, Microsoft gives you a new MX in the form yourdomain-com.o-v1.mx.microsoft (the middle part varies), which replaces the mail.protection.outlook.com record during the switch-over. Both formats are valid; copy the exact value Microsoft shows.
MX record questions
Short answers on how long changes take, what priority numbers mean, equal priorities, IP or CNAME targets and null MX.
How long do MX record changes take to work?
Senders keep using the old MX until their cached copy expires, which is the old record's TTL, often an hour and sometimes a day. Keep the old mailboxes running through the overlap so no message is lost.
What do MX priority numbers mean?
They set the order in which servers are tried, lowest first, and equal numbers share the load. Only the order matters, not the values.
Can I have two MX records with the same priority?
Yes. Senders choose between them, which spreads incoming mail across both, as Cloudflare's two priority-5 servers do above.
Can an MX record point to an IP address or a CNAME?
Neither. An MX record must name a hostname that has its own A or AAAA record; senders that follow the standards won't deliver to a bare address, and the DNS rules don't allow an alias as the target.
What is a null MX record?
A single MX record with priority 0 and a lone dot as the target, defined in RFC 7505. It tells senders the domain accepts no mail at all, so they bounce at once instead of retrying for days. It suits domains that only host a website.
Keep going
MX records only cover incoming mail, so if replies or invoices are going missing, run the health check to see the sending side as well.
Guides: MX, PTR and reverse DNS, SMTP ports and Mail-server certificates.