You need to know who runs email for a domain: a customer's, a prospect's, one you've just inherited at work, or one you're about to migrate. The fastest answer is one DNS lookup. The MX record names the servers that accept the domain's mail, and their host names usually give the provider away. When they don't, because a security gateway sits in front, a few more public records fill in the rest.
TL;DR
- Step 1: look up the MX records (our MX lookup names the provider for you).
google.comhosts mean Google;mail.protection.outlook.commeans Microsoft 365. - Gateways hide the mailbox host:
pphosted.com(Proofpoint),mimecast.com(Mimecast) andiphmx.com(Cisco) filter mail and pass it on, often to Microsoft 365 or Google. - Look behind them with the SPF includes, the
autodiscoverCNAME,MS=and Google verification TXT records, DKIM selectors, and, if you have a message, its headers.
The method in four steps
- Look up the MX records. Run dig MX example.com +short or use an MX lookup. Match the host names to a provider: google.com hosts mean Google, mail.protection.outlook.com means Microsoft 365, pphosted.com means Proofpoint, mimecast.com means Mimecast.
- If the MX is a gateway, look behind it. Security gateways accept the mail and pass it on to the real mailbox host. Their MX records don't reveal it, so move on to the other DNS records.
- Read SPF, DKIM and verification records. Check the SPF TXT record for includes such as _spf.google.com or spf.protection.outlook.com, the autodiscover CNAME, MS= or google-site-verification TXT records, and DKIM selectors such as google._domainkey or selector1._domainkey.
- Confirm with message headers. If you have an email to or from the domain, read the Received headers and the provider-specific X- headers. They show every system the message passed through.
Four companies, not one
"Who hosts this domain" has four answers, and they're often different companies:
| Role | How to find it | What it controls |
|---|---|---|
| Registrar | A WHOIS or RDAP lookup | Who owns the domain name and where it renews |
| DNS host | dig NS example.com +short | Where the records, including MX, are edited |
| Web host | dig A example.com +short | The website |
| Email provider | dig MX example.com +short, then the checks below | The mailboxes |
Our own domain is a small example: mailexchange.com uses Cloudflare name servers (kanye.ns.cloudflare.com, celine.ns.cloudflare.com) and Google Workspace for mail. If you're changing mail settings, the DNS host is where you'll make the edit; the email provider's console is where you'll get the values.
Step 1: read the MX host
The MX record is the authoritative answer to "where does mail for this domain go?" (RFC 5321, section 5.1). The host names follow patterns. These were all checked live on 24 November 2026:
| MX host looks like | Provider | Seen on |
|---|---|---|
smtp.google.com, or aspmx.l.google.com plus alt1-alt4.aspmx.l.google.com | Google Workspace (the single record is Google's current value; the five-record set is the older one, still supported) | ucla.edu, mailexchange.com |
<domain-key>.mail.protection.outlook.com | Microsoft 365 (Exchange Online) | github.com, mit.edu |
mail.protonmail.ch, mailsec.protonmail.ch | Proton Mail | proton.me |
in1-smtp.messagingengine.com, in2-smtp… | Fastmail | fastmail.com |
mx01.mail.icloud.com, mx02.mail.icloud.com | Apple iCloud Mail | icloud.com |
*.pphosted.com | Proofpoint (gateway) | salesforce.com, stanford.edu |
*.mimecast.com | Mimecast (gateway) | hp.com |
*.iphmx.com | Cisco Secure Email (gateway) | bu.edu |
The domain's own name, e.g. mx1.a.mail.example.edu | Self-hosted, or a provider behind a branded name: resolve the host and check its reverse DNS | umich.edu, cisco.com |
Exact values for each provider, with the provider's own documentation, are on our pages for Google Workspace, Microsoft 365, Zoho Mail, Proton Mail and Fastmail.
Branded or self-hosted names need one more hop. Resolve the MX host to an address and look up its reverse DNS (PTR): dig +short A mx.example.com, then dig +short -x <address>. Google's servers, for example, reverse-resolve to names under 1e100.net: aspmx.l.google.com answered from 142.251.2.26, which reverse-resolves to dl-in-f26.1e100.net. The MX lookup shows the IPs and reverse DNS for every record.
Step 2: spot a gateway in front
Large organisations often route inbound mail through a filtering service first. The gateway is what the MX record points to; it scans the mail and relays it to the mailbox system, which is where the inbox actually lives. The MX lookup then tells you "Proofpoint" when the honest answer is "Proofpoint, then Microsoft 365".
$ dig MX salesforce.com +short
10 mxa-00177002.gslb.pphosted.com.
10 mxb-00177002.gslb.pphosted.com.
$ dig MX hp.com +short
10 us-smtp-inbound-1.mimecast.com.
Gateway host names are per-customer: the 00177002 part is an account identifier, and the us- prefix in Mimecast's name is a region. Never copy them from another domain. If you run one, the values come from your gateway's console (see our Proofpoint and Mimecast pages). To see what's behind a gateway, read the domain's other records.
Step 3: read SPF, DKIM and verification records
Every hosted provider asks the domain owner to publish records that prove ownership and authorise sending. Those records are public, and they're where the mailbox provider shows up even behind a gateway.
$ dig +short TXT hp.com | grep -E 'spf1|MS='
"v=spf1 mx include:_spf.hp.com include:_spf.salesforce.com include:us._netblocks.mimecast.com" " include:spf.protection.outlook.com ..."
"MS=ms38857149"
$ dig +short CNAME autodiscover.hp.com
autodiscover.outlook.com.
Three Microsoft signals behind a Mimecast MX: spf.protection.outlook.com in SPF, an MS= domain verification record, and an autodiscover CNAME to Outlook. The likely reading is Mimecast in front of Microsoft 365. The Proofpoint example points the other way:
$ dig +short TXT salesforce.com | grep spf1
"v=spf1 include:_spf.google.com include:_spf.salesforce.com exists:%{i}._spf.corp.salesforce.com ~all"
$ dig +short TXT google._domainkey.salesforce.com | cut -c1-30
"v=DKIM1;k=rsa;p=MIGfMA0GCSqG
Google's SPF include plus a DKIM key at Google's default google selector suggests Google Workspace behind Proofpoint. Here is what each signal means, and how much weight it carries:
| Record | Google Workspace | Microsoft 365 | Weight |
|---|---|---|---|
| SPF include | include:_spf.google.com | include:spf.protection.outlook.com | Strong, but SPF also lists sending tools |
| DKIM selector | google._domainkey (TXT with the key) | selector1._domainkey and selector2._domainkey (CNAMEs) | Strong: only the signing provider publishes these |
| Autodiscover | none | autodiscover CNAME to autodiscover.outlook.com | Strong for Microsoft |
| Verification TXT | google-site-verification=… | MS=ms… | Weak: Google's is also used for Search Console |
Sources for the provider values: Google's SPF value v=spf1 include:_spf.google.com ~all (Google) and Microsoft's v=spf1 include:spf.protection.outlook.com -all, autodiscover CNAME and selector1/selector2 DKIM CNAMEs (Microsoft), both checked 2026-11-24.
Don't read every SPF include as a mailbox host. github.com's record, for instance, includes spf.protection.outlook.com and Google's netblocks, but also mail.zendesk.com, _spf.salesforce.com, servers.mcsv.net (Mailchimp), mktomail.com (Marketo) and sendgrid.net. Those are tools that send on the domain's behalf. Its MX (github-com.mail.protection.outlook.com) and its selector1 DKIM CNAME settle it: Microsoft 365.
All of these at once, for any domain:
d=example.com
dig +short MX $d | sort -n
dig +short TXT $d | grep -iE 'v=spf1|MS=|google-site-verification'
dig +short CNAME autodiscover.$d
dig +short TXT google._domainkey.$d | cut -c1-40
dig +short CNAME selector1._domainkey.$d
Or paste the domain into the authentication checker, which reads MX, SPF, DKIM and DMARC for up to 25 domains at once.
Step 4: confirm with message headers
DNS shows how a domain is set up; a message shows what actually happened to it. Every mail server that handles a message "MUST insert trace" information, a Received header, at the top (RFC 5321, section 4.4). Read them bottom to top and you see every hop. For a message to the domain, the top hops are its inbound path; for a message from it, the bottom hops are its outbound path.
What to look for (an illustrative, shortened chain for mail into a domain behind a gateway):
Received: from xxx.prod.outlook.com ... by xxx.prod.outlook.com ... <- mailbox host: Microsoft 365
Received: from mx0a-0012ab34.pphosted.com (...) by xxx.mail.protection.outlook.com ...
Received: from sender.example.net (...) by mx0a-0012ab34.pphosted.com ... <- gateway: Proofpoint
X-Proofpoint-...: ...
X-MS-Exchange-Organization-...: ...
- Google: the inbound hop reads
by mx.google.com with ESMTPS. - Microsoft 365: hosts under
protection.outlook.comandprod.outlook.com, plus manyX-MS-Exchange-headers. - Gateways: their own hop and their own header family, such as
X-Proofpoint-orX-Mimecast-.
Paste raw headers into our email header analyzer to get the hops in order with delays, and the SPF, DKIM and DMARC results. It runs in your browser, so the headers aren't uploaded.
Why the provider matters
For an IT team, the provider decides which admin console, which DNS values and which support line apply. For anyone sending to the domain, it predicts how mail and verification will behave, because providers answer unknown recipients differently.
In Mail Exchange's checks of 779,784 unique business addresses across 200,799 domains (17 Oct to 22 Nov 2026), we grouped domains by the mail host in their MX records. Counting domains where the catch-all test reached a verdict:
| Mail host (from MX) | Domains | Share catch-all |
|---|---|---|
| Google Workspace | 83,789 | 51.9% |
| Other hosts | 54,070 | 25.6% |
| Microsoft 365 | 51,853 | 0.1% |
The sample is mostly business contacts from B2B PR, media and marketing lists, not a random sample of all email, and results also depend on how each provider answers verification checks. Microsoft 365 rejects unknown recipients by default, so its domains almost never accept everything; about half of Google Workspace domains in our data did (is Google Workspace a catch-all?).
So a list heavy in Google-hosted companies will have far more addresses that can't be confirmed one by one. Mail Exchange reads the MX for every address and runs the mailbox and catch-all checks to match. Try it on your own list: 25 free checks, then plans from $49 a month for 10,000 verifications and daily checks on 10 sending domains.
Common questions
How do I find out who hosts a domain's email?
Look up the domain's MX records with dig MX example.com +short or an online MX lookup. The host names usually name the provider: smtp.google.com or aspmx.l.google.com for Google Workspace, a host under mail.protection.outlook.com for Microsoft 365. If the MX points to a gateway such as Proofpoint or Mimecast, check the SPF record and message headers to find the mailbox provider behind it.
Is the domain registrar the same as the email provider?
Not necessarily. The registrar sold the domain name, the DNS host runs its name servers, the web host serves the website and the email provider runs the mailboxes. They can be four different companies. The MX record shows only the mail side.
What does pphosted.com in an MX record mean?
It means inbound mail goes through Proofpoint's hosted email security service first. Proofpoint filters the mail and passes it on to the organisation's real mailbox system, which is often Microsoft 365 or Google Workspace. The SPF record and DNS verification records usually show which.
Can the SPF record tell me the email provider?
It's a strong hint, not proof. SPF lists every service allowed to send for the domain, which includes the mailbox provider but also marketing, CRM and help-desk tools. An include of _spf.google.com or spf.protection.outlook.com suggests Google or Microsoft mailboxes; includes such as sendgrid.net or servers.mcsv.net are sending services.
Why does it matter which provider hosts an email address?
Providers handle mail differently. For email verification it changes the outcome: in Mail Exchange's data, 51.9% of Google Workspace domains accepted mail for any address (catch-all), against 0.1% of Microsoft 365 domains. It also tells IT teams which admin console, DNS values and support channel apply.