What Are MX Records? How They Route Email and Why Verification Checks Them
MX records are DNS records that tell sending mail servers where to deliver email for a domain. MX stands for Mail Exchange. When you send an email, the sending server looks up the MX records of the recipient domain, finds the mail servers listed there, and delivers the message to one of them. Without MX records, the sending server has no destination for the mail.
You never type MX records or see them, but they decide whether a message reaches the right inbox, waits in a queue, or bounces. This guide explains what MX records are, how they route email, what happens when they are missing or wrong, how to look them up, and why verification tools check them before you send.

What Is an MX Record?
An MX record is a type of DNS record. DNS, the Domain Name System, is the directory that maps domain names to the servers that handle different services for that domain. Just as one record type points web browsers to a website, the MX record type points mail servers to the servers that accept email for the domain.
Each MX record contains two main pieces of information:
- The mail server hostname. This is the name of the server that accepts mail for the domain, for example mail.example.com. It must be a hostname, not a bare IP address.
- A priority value. This is a number that tells sending servers which mail server to try first. Lower numbers are tried before higher numbers.
A domain can have one MX record or several, so if the first server is busy or offline, the sending server can try the next one. How sending servers locate these records is defined in RFC 5321, the SMTP standard, which describes how mail is transported and how the target host for a message is found.
How Do MX Records Route Email?
Every time an email is sent, a short lookup sequence happens before the message moves:
- The sending server reads the recipient address. For an address like name@example.com, it takes the domain part after the @ symbol, which is example.com.
- It queries DNS for the MX records of that domain. The DNS answer lists the mail servers for the domain, each with its priority value.
- It sorts the servers by priority. The server with the lowest priority number is tried first.
- It resolves the chosen hostname to an IP address. The MX record gives a hostname, and a separate DNS lookup turns that hostname into the IP address the server connects to.
- It connects and delivers the message. If the first server does not respond, the sending server tries the next one in the list. If none respond, the message is usually queued and retried for a period of time before it bounces.
This lookup happens for every message, so the health of a domain’s MX records directly decides whether its email can be received at all.
What Do MX Priority Values Mean?
The priority value, sometimes called the preference value, controls the order in which sending servers attempt delivery. The rule is simple: lower number, higher preference. A server with priority 10 is tried before a server with priority 20.
Priority values let a domain set up a clear primary and backup structure:
- Primary server. The lowest priority number points to the main mail server that should receive mail first.
- Backup servers. Higher numbers point to fallback servers. If the primary is unavailable, mail goes to the backup instead of bouncing immediately.
- Equal priorities. When two servers share the same priority value, sending servers can choose between them, which spreads the load across both.
The exact numbers do not matter, only their order. A domain might use 10 and 20, or 1 and 5. What matters is that the most preferred server carries the lowest value.
What Does an MX Record Look Like?
When you look up the MX records for a domain, the result is a small list. Using a fictional domain as an example, the records might look like this:
| Domain | Priority | Mail server |
|---|---|---|
| example.com | 10 | mail1.example.com |
| example.com | 20 | mail2.example.com |
In this example, a sending server would try mail1.example.com first because it has the lower priority value, and fall back to mail2.example.com if the first is unreachable. The hostnames must also resolve to IP addresses through DNS, otherwise the sending server still cannot connect.
What Happens When MX Records Are Missing or Wrong?
Because MX records are the delivery address for a domain’s email, problems with them cause direct, visible failures:
- No MX records at all. The sending server has no mail server to deliver to. Some sending servers fall back to trying the domain’s own address record as a last resort, but delivery is unreliable and often fails. In most cases the message bounces.
- MX records pointing to a server that does not accept mail. The connection fails or is refused, and the message bounces or sits in a queue until it expires.
- MX records pointing to the wrong provider. After a mailbox migration, old MX records may still send mail to the previous provider. Messages arrive in the wrong place, or nowhere, even though the new mailboxes exist.
- Hostnames that do not resolve. If the mail server hostname in the MX record has no valid address record, the sending server cannot connect, and delivery fails.
- Priority mistakes. If a backup server accidentally gets the lowest priority value, mail is delivered to the backup first, which can cause delays or mail landing in a system nobody monitors.
One special case: a domain that never receives email can publish a “null MX” record, with priority 0 and a target of “.” (a single dot). This signals that the domain accepts no mail, so sending servers fail fast instead of retrying. It suits parked domains, but must never be added to a domain that should receive email.

How Do You Look Up MX Records?
MX records are public DNS information, so anyone can look them up. You do not need access to the domain. There are two common ways:
- Use an online MX lookup tool. Enter the domain name, and the tool queries DNS and shows the MX records, their priority values, and the IP addresses the hostnames resolve to. This is the easiest option for a quick check.
- Use a command line tool. On Windows, open Command Prompt and run
nslookup -type=mx example.com. On Mac or Linux, open Terminal and rundig MX example.comornslookup -type=mx example.com. The output lists each mail server with its priority value.
When you read the results, check three things: at least one MX record exists, the hostnames match the mail provider the domain actually uses, and the priority order puts the main server first. If you have just changed MX records, allow time for the change to spread before judging the result, since cached old records can show up for a while.
How Are MX Records Different from SPF, DKIM, and DMARC?
MX records are often mentioned in the same breath as SPF, DKIM, and DMARC, but they do different jobs:
- MX records route mail. They answer the question “which servers accept email for this domain?” They are about delivery destination.
- SPF, DKIM, and DMARC authenticate mail. They help receiving servers check whether a message claiming to come from a domain was sent by an authorized server and was not altered in transit. They are about trust and identity.
A domain needs correct MX records to receive mail, and correct authentication records so the mail it sends is trusted. One does not replace the other. Our guide to SPF, DKIM, and DMARC explained covers the authentication side.
Why Does Email Verification Check MX Records?
Email verification checks whether an address can receive mail before you send. The MX check is a core step, because it answers a simple question: does this domain have a mail server that accepts email?
Here is why that check matters:
- It catches dead domains. If a domain has no MX records and no fallback, mail to any address at that domain cannot be delivered. Verification flags those addresses as invalid so you can remove them before sending.
- It catches typos in domains. A mistyped domain in an address, such as a misspelled company name, usually has no MX records. The MX check exposes the typo even when the address format looks fine.
- It is fast and safe. Looking up MX records is a public DNS query. It does not send any mail to the recipient, so it can be run on a whole list in bulk.
- It works with the other checks. A valid MX result does not guarantee the specific mailbox exists. Verification combines the MX check with format checks, mailbox checks, and risk checks to sort addresses into valid, invalid, and risky groups. Our explainer on how email verification works walks through each step.
The practical benefit is straightforward: addresses at domains with no working MX records would bounce if mailed, and bounces hurt sender reputation. Removing them during verification keeps campaigns cleaner. You can see current verification options on our pricing page.
What Do MX Problems Look Like in Bounce Messages?
When delivery fails because of MX problems, the bounce message (also called a non-delivery report) usually describes a routing or connection failure rather than a bad mailbox, such as the domain having no mail exchanger or the connection to the mail server failing.
These bounces differ from “user unknown” bounces, where the server was reached but the mailbox does not exist. An MX-related bounce means the sending server could not find or reach a server for the domain. If you see this pattern across many addresses at the same domain, the domain’s MX setup is the likely cause. Our reference on email bounce codes explained helps you tell these failure types apart.
For list cleaning, the response is the same either way: addresses that repeatedly produce MX or connection failures should be removed or suppressed.

Frequently Asked Questions
What are MX records in simple terms?
MX records are DNS entries that tell sending mail servers which servers accept email for a domain. When you send an email, the sending server looks up the recipient domain’s MX records and delivers the message to one of the servers listed there.
What does MX stand for?
MX stands for Mail Exchange. The name reflects the job of the record: it identifies the mail exchanger hosts, meaning the servers that exchange and accept mail on behalf of the domain.
What happens if a domain has no MX records?
The sending server has no listed destination for the mail. Some servers try the domain’s own address as a fallback, but delivery is unreliable and usually fails with a bounce. A domain that wants to receive email needs working MX records.
What does the MX priority number mean?
The priority value sets the order in which sending servers try the mail servers. Lower numbers are tried first, so the main mail server should carry the lowest value, with backup servers at higher values.
How can I check the MX records of a domain?
Use an online MX lookup tool, or run a command: nslookup -type=mx example.com on Windows, or dig MX example.com on Mac and Linux. The results show each mail server and its priority value.
Why does email verification check MX records?
The MX check confirms that a domain has a mail server that accepts email. If none exist, addresses at that domain cannot receive mail and would bounce. Verification combines this check with format and mailbox checks to sort addresses into valid, invalid, and risky groups.
Can a domain have more than one MX record?
Yes. Many domains list two or more mail servers with different priority values. Sending servers try them in priority order, so a backup server can accept mail when the primary server is unavailable.