Updated
How to Find a Domain's E-mail Provider (MX Record Lookup)
1. Query the MX records
dig +short MX github.com
# 0 github-com.mail.protection.outlook.com.
# Without dig, with DNS over HTTPS:
curl -s -H 'accept: application/dns-json' \
'https://cloudflare-dns.com/dns-query?name=proton.me&type=MX' | jq -r '.Answer[].data'
# 10 mail.protonmail.ch.
# 20 mailsec.protonmail.ch.The number is the preference: lower is tried first. A response with "Status": 3 (NXDOMAIN) means the domain does not exist at all.
2. Match the host to a provider
| MX host ends with | Provider |
|---|---|
| google.com, googlemail.com | Google Workspace |
| mail.protection.outlook.com | Microsoft 365 |
| protonmail.ch | Proton Mail |
| mail.ovh.net | OVHcloud |
| zoho.com, zoho.eu | Zoho Mail |
| messagingengine.com | Fastmail |
| pphosted.com | Proofpoint (gateway) |
| mimecast.com | Mimecast (gateway) |
3. What real domains returned
Lookups made on 2 December 2026 through Cloudflare DNS over HTTPS:
- apify.com, stripe.com, lemonde.fr:
aspmx.l.google.comand backups, Google Workspace. - github.com: one host,
github-com.mail.protection.outlook.com, Microsoft 365. - proton.me:
mail.protonmail.ch, Proton Mail. - ovhcloud.com: four hosts under
mail.ovh.net, OVHcloud. - europa.eu: two
gslb.pphosted.comhosts, a Proofpoint gateway. - python.org:
mail.python.org, a self-hosted server. - example.com:
0 ., a null MX (RFC 7505): the domain accepts no mail at all.
4. Common mistakes
- Reading the MX of
www.example.cominstead ofexample.com: mail goes to the bare domain. - Taking a gateway (Proofpoint, Mimecast) for the mailbox provider.
- Treating a DNS timeout as “no MX”: retry before concluding.
- Assuming the provider that receives mail also sends it: check the SPF record too (see How to check SPF, DKIM and DMARC).
5. Many domains
Plainprobe Domain & Tech Stack Intelligence reads the MX records of each domain and names the provider (about 30 patterns, gateways included), together with SPF, DMARC, DKIM, an e-mail security score, SSL and RDAP dates, as one JSON record per domain at $0.003 per domain.
Limits to keep in mind
- MX shows who receives mail, not who sends it or which mailbox app people use.
- Self-hosted or unknown hosts cannot be named; the raw host is still returned.
FAQ
How do I find which e-mail provider a domain uses?
Look up the domain's MX records. The host names point to the service that receives its mail: aspmx.l.google.com means Google Workspace, *.mail.protection.outlook.com means Microsoft 365, *.protonmail.ch means Proton Mail, *.mail.ovh.net means OVHcloud.
What does the number before an MX host mean?
It is the preference. Senders try the lowest number first and fall back to higher numbers if it does not answer. Equal numbers share the load.
What if a domain has no MX record?
Mail servers then fall back to the domain's A or AAAA address, which rarely accepts mail. A domain that never receives mail should publish a null MX (priority 0 and a single dot) to say so explicitly.
Why do I see Proofpoint or Mimecast instead of Google or Microsoft?
Those are security gateways that filter mail before passing it on. The MX record shows the first hop only; the mailbox provider behind the gateway is not visible in DNS.