MX lookup

Enter a domain to see which servers receive its mail, in which order senders try them and whether each one can be reached.

Only public DNS records are read; nothing is stored.

What MX records do

MX records name the servers that accept mail for a domain. Senders try the lowest priority number first and fall back to the others when it does not answer.

Each MX record must point to a host name with an address, never to an IP address or a CNAME. A domain that should receive no mail at all can say so with a null MX record.

How senders pick a server

The priority is only relative: 10 and 20 work exactly like 1 and 2. All that counts is the order.

example.com.  3600  IN  MX  10 mx1.example.com.
example.com.  3600  IN  MX  10 mx2.example.com.
example.com.  3600  IN  MX  20 backup.example.net.

Here mx1 and mx2 share the work: for equal numbers, RFC 5321 requires senders to pick one at random so the load spreads. backup.example.net only gets mail when neither of them can take it.

If no server can be reached, the mail is not lost. The sender queues it and retries, according to RFC 5321 generally for at least four to five days. A permanent rejection is different: if a server refuses an address with an error code starting with 5, the sender usually does not try the other servers and sends a bounce right away.

No MX record, or a null MX

Without any MX record, RFC 5321 has the sender deliver to the address in the domain's own A or AAAA record (an "implicit MX"). That is usually a web server, which rarely accepts mail, so senders keep retrying for days before the bounce arrives.

For a domain that should never receive mail, such as a parked domain, RFC 7505 defines the null MX:

example.org.  3600  IN  MX  0 .

The target is a single dot, the priority is 0, and it must be the only MX record. Senders then give up immediately. Receivers may also reject mail whose Return-Path uses such a domain, since a bounce could never reach it. If a domain does not use mail at all, add an SPF record of v=spf1 -all and a DMARC policy of p=reject; the SPF checker covers the SPF part.

How to read the result

The table shows up to ten servers in the order senders try them, with their IPv4 and IPv6 addresses. The findings below it mean:

  • "… mail servers found": the domain has MX records. The tool counts a server as reachable when its name has an address; whether a mail server actually answers there, DNS cannot tell.
  • "No MX record for …": publish an MX record, or a null MX if the domain needs no mail.
  • "… accepts no mail (null MX)": counts as fine because the domain says so on purpose. If it is a mistake, no mail gets through.
  • "… is an alias (CNAME)": the MX record points to a name that is itself a CNAME, which RFC 2181 forbids. Many senders follow it anyway, some do not. Point the MX record at the final host name.
  • "The MX record points to an IP address": create a name such as mail.example.com with an A record for that IP and point the MX record at it.
  • "… has no IP address": usually a typo, a host of a former provider or a missing trailing dot. In a zone file, mail.example.com without the final dot turns into mail.example.com.example.com.

The provider line only appears when every server belongs to one well-known service, such as Google Workspace, Microsoft 365, Proton Mail or IONOS. With your own servers, a mix of providers or a spam filter in front, it is usually missing. A forwarding service such as Cloudflare Email Routing shows up as the provider, though the mailboxes live elsewhere.

Moving to a new mail provider

  1. Lower the TTL. The TTL says how long resolvers may cache a record. Lower it to around 300 seconds, at least as long before the move as the old TTL.
  2. Set up first, switch second. Create the mailboxes at the new provider before changing MX.
  3. Replace every old record. If an old server stays at the same priority, mail lands at random at the old or the new provider.
  4. Keep the old mailboxes open. Anyone who still has the old records cached keeps delivering there for a while.
  5. Update SPF. MX only covers receiving; SPF says which servers may send.

Copy the values exactly as your provider gives them. Google Workspace recommends a single record, smtp.google.com at priority 1, for new setups; older setups with aspmx.l.google.com and the alt servers keep working. Microsoft 365 shows the host in its admin center, such as example-com.mail.protection.outlook.com or, for newer setups, a name ending in .mx.microsoft. Shortly after the change, this tool may also still see the old records.

Do you need a backup MX?

A second server with a higher number that steps in during outages is rarely needed today: senders queue mail for days anyway, and large providers run many servers behind one name. It also has downsides:

  • It attracts spam. Spammers target the server with the highest number, because backups often filter less.
  • It creates backscatter. If it does not know which mailboxes exist, it accepts mail for made-up addresses and bounces it later, often to forged senders.

It only makes sense with the same filters and recipient list as the main server.

What an MX lookup does not show

  • Whether a mailbox exists. Whether anna@example.com accepts mail is decided by the server at delivery time.
  • Who may send. Receivers check that with SPF, DKIM and DMARC, see SPF, DKIM and DMARC explained.
  • Subdomains. The records of example.com do not apply to news.example.com. Every name that receives mail needs its own MX records.