---
title: "MX Lookup: Mail Servers, Provider and Fallback"
url: "https://coldagentai.com/tools/mx-lookup.md"
canonical_url: "https://coldagentai.com/tools/mx-lookup"
last_updated: "2026-10-18"
type: "tool"
summary: "Look up the MX records of any domain. See mail servers in order of preference with their addresses, the provider behind each, null MX and fallback handling."
related: ["https://coldagentai.com/tools.md", "https://coldagentai.com/tools/spf-checker.md", "https://coldagentai.com/tools/dmarc-checker.md", "https://coldagentai.com/tools/dkim-checker.md", "https://coldagentai.com/tools/email-blacklist-checker.md", "https://coldagentai.com/tools/domain-checker.md"]
install: "claude mcp add --transport http coldagentai-free https://coldagentai.com/api/mcp"
---

# MX Lookup: Mail Servers, Provider and Fallback

> **For AI agents:** the complete index of ColdAgentAI pages is [llms.txt](https://coldagentai.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Look up the MX records of any domain. See mail servers in order of preference with their addresses, the provider behind each, null MX and fallback handling.

MX records tell the world which servers receive mail for a domain. This lookup lists them in the order senders try them, resolves every mail server to its addresses, names the provider behind each one when we can, and explains the special cases: a domain that publishes a null MX to say it accepts no mail, and a domain with no MX at all.

The domain you type is sent to our server, which reads its public DNS records through 1.1.1.1 and 8.8.8.8 and returns the result; nothing is stored, and each visitor can run 20 checks a minute.

## Inputs

- A domain such as example.com, or a full email address. Only the part after the last @ is used.
- No scheme, port, path or IP address.

## How it works

- We read the MX records of the domain and sort them by preference, lowest number first. A sender tries the lowest number first and moves up only when a server cannot be reached.
- Records with the same number are shown as sharing the load: senders pick among them.
- We resolve each mail server to its A (IPv4) and AAAA (IPv6) addresses. A server that resolves to no address at all is a fail, because senders cannot reach it.
- We match each host name against a table of mail providers by the end of the name, at a name boundary, so evilzoho.com never matches zoho.com. Each provider in the table was taken from that provider's own help page.
- A null MX, the single record 0 followed by a dot, means the domain accepts no mail. We report it as that, and fail the domain if other MX records sit beside it, which RFC 7505 forbids.
- With no MX record at all, senders fall back to the domain's own A or AAAA record. We show those addresses and say so. With no MX and no address, the domain cannot receive mail and the check fails.
- A lookup that fails with a server error is reported as "could not read", never as "no record". The page also shows the SPF and DMARC results for the same domain as context.

## How senders pick a mail server

RFC 5321 section 5.1 says the records are first ordered by preference, with the lowest-numbered records being most preferred. So a record with preference 10 beats one with preference 20, and the number has no meaning beyond the order. People often read the number as a priority score and expect the larger one to win. It is the opposite.

When two records share a number, senders can use either, which spreads the load. A common setup is one primary server at a low number and a backup at a higher number, used only when the primary does not answer.

## What the provider name tells you

The host names in an MX record usually show who runs the mailboxes. A name ending in mail.protection.outlook.com is Microsoft 365, and one ending in messagingengine.com is Fastmail. Knowing the provider tells you which SPF include a domain should carry, which DKIM selectors to look for, and which provider's sending rules apply. Forwarding services such as Cloudflare Email Routing only pass mail on, so a domain that uses one is not hosting mailboxes at all.

If you plan to send cold email from a domain, check where its mail goes. A mailbox provider in the MX records means replies land in a real inbox. A null MX means every reply bounces.

## Null MX, implicit MX and broken records

RFC 7505 defines the null MX: a domain that never receives mail publishes one record with preference 0 and a single dot as the host. It lets senders fail at once instead of retrying for days, and it must be the only MX record. If you see other records beside it, one of them is a mistake.

With no MX record, RFC 5321 treats the domain as if it had one pointing at its own address, with preference 0. It works only when a mail server runs at that address, which is rarely true for a website. Publish explicit MX records so delivery does not depend on a fallback. A host name in an MX record that has no address is the other common fault, usually a typo or a provider host name that was retired.

## What to do next

Once the MX records are right, check SPF, DKIM and DMARC for the same domain. The context table under the result shows SPF and DMARC at a glance, and each has its own page with the full detail.

## Worked example

Input:

```
shop.example.com
```

Result:

```
MX report for shop.example.com
10 in1-smtp.messagingengine.com (Fastmail, mailbox provider): 192.0.2.10, 2001:db8::10
20 in2-smtp.messagingengine.com (Fastmail, mailbox provider): 192.0.2.20
```

## Limits

- The provider table lists mailbox providers and forwarding services whose own pages we could read. A mail server not in the table shows as "Not in our table", which is not a problem.
- We resolve the first 10 MX records. Few domains publish more.
- We read DNS at the moment you run the check. A change you made seconds ago can take up to the record's TTL to show.
- We check that a mail server has an address, not that it accepts connections or delivers your mail.

## Questions

**Which MX record wins?**

The lowest number. RFC 5321 section 5.1 says records are ordered by preference with the lowest-numbered records most preferred. A sender moves to a higher number only when the lower one cannot be reached.

**What is a null MX record?**

A single MX record with preference 0 and a dot as the host, defined in RFC 7505. It states that the domain accepts no mail, so senders stop at once instead of retrying.

**What happens when a domain has no MX record?**

Senders fall back to the domain's own address record, as if it had an MX with preference 0 pointing at itself (RFC 5321). That works only if a mail server runs there, so publish explicit MX records.

**Why does my MX host show no addresses?**

The host name has no A or AAAA record, usually because of a typo or a retired provider name. Senders cannot reach it, so correct the name in the MX record or publish an address for it.

**What does it mean when two MX records have the same number?**

Senders can use either one, which spreads incoming mail across both. Providers publish several equal records for this reason.

**Can I have MX records from two providers?**

Yes, but mail goes to the lowest number first and to the other only when the first is unreachable. If you really use both, say with a forwarding setup, check that the order is on purpose.

**Does a passing MX check mean my email works?**

It means mail servers are published and have addresses. It does not test that they accept your mail. Check SPF, DKIM and DMARC next, then send a real message.

## Sources

- [RFC 5321: Simple Mail Transfer Protocol, section 5.1](https://www.rfc-editor.org/rfc/rfc5321) (read 2026-10-18)
- [RFC 7505: A "Null MX" No Service Resource Record for Domains That Accept No Mail](https://www.rfc-editor.org/rfc/rfc7505) (read 2026-10-18)
- [Google Workspace Admin Help: Set up MX records for Gmail](https://support.google.com/a/answer/174125) (read 2026-10-18)
- [Zoho Mail Help: Configure email delivery](https://www.zoho.com/mail/help/adminconsole/configure-email-delivery.html) (read 2026-10-18)
- [Fastmail Help: Manual DNS configuration](https://www.fastmail.help/hc/en-us/articles/360060591153-Manual-DNS-configuration) (read 2026-10-18)
- [Cloudflare Docs: Email Routing DNS records](https://developers.cloudflare.com/email-routing/setup/email-routing-dns-records/) (read 2026-10-18)

## Related tools

- [SPF checker](https://coldagentai.com/tools/spf-checker.md)
- [DMARC checker](https://coldagentai.com/tools/dmarc-checker.md)
- [DKIM checker](https://coldagentai.com/tools/dkim-checker.md)
- [Email blacklist checker](https://coldagentai.com/tools/email-blacklist-checker.md)
- [domain-checker](https://coldagentai.com/tools/domain-checker.md)
- [Email checker](https://coldagentai.com/tools/email-checker.md)

## Related

- [Free cold email tools](https://coldagentai.com/tools.md)
- [SPF Checker with Lookup Tree and Lookup Count](https://coldagentai.com/tools/spf-checker.md)
- [DMARC checker with rollout steps](https://coldagentai.com/tools/dmarc-checker.md)
- [DKIM Checker: Find and Test a DKIM Record](https://coldagentai.com/tools/dkim-checker.md)
- [Email blacklist checker for domains and IPs](https://coldagentai.com/tools/email-blacklist-checker.md)
- [Domain email checker: SPF, DMARC, MX](https://coldagentai.com/tools/domain-checker.md)
