Skip to main content
Guides/Email Security

Email Hosting: Understand and Use the Results

Detect email service provider

EdgeDNS Team·Updated ·5 min read

What email provider is a domain actually using?

Email hosting detection is the practice of figuring out which email provider — Google Workspace, Microsoft 365, Zoho Mail, ProtonMail, Fastmail, Apple iCloud, Amazon SES, or a self-hosted setup — a particular domain is using to handle its email. The detection is almost entirely a matter of reading the MX records in DNS and recognizing the hostname patterns of the major providers. Each provider uses a distinctive set of MX hostnames: Google's MX records all end in `aspmx.l.google.com`; Microsoft 365's all match `*.mail.protection.outlook.com`; Zoho's are `mx.zoho.com`; and so on. Once you know the pattern, the provider is obvious from a single DNS query.

You should care because knowing which email provider a company uses is one of the most useful signals in B2B sales, partnerships, and migration planning. A salesperson selling email security tools wants to know whether the prospect is on Google Workspace (which has its own native security features) or Microsoft 365 (which has different ones). A consultancy planning an email migration needs to know the source platform before quoting the project. An M&A analyst doing diligence on an acquisition target wants to know whether the company is on a modern hosted provider or a legacy in-house setup. In every one of those situations, the fastest way to learn is to read the MX records.

The five things every email-hosting check looks at:

  • The MX hostnames. This is the primary signal. Each major provider has a distinct fingerprint.

  • The TXT records on the apex domain. Many providers add their own verification TXT records (`google-site-verification=...`, `MS=ms12345`, etc.) that confirm the provider.

  • The SPF includes. A `v=spf1 include:_spf.google.com -all` is unmistakable evidence of Google Workspace.

  • The DKIM selectors. Google uses `google._domainkey`, Microsoft uses `selector1._domainkey` and `selector2._domainkey`, etc.

  • The DMARC reporting addresses. Some organizations use third-party DMARC services whose addresses are recognizable.

Three questions an email-hosting check answers:

  • Which email provider is this domain currently using?

  • Has the prospect or partner I'm researching migrated recently — and if so, from where?

  • For a competitive teardown, what does the email-provider choice tell me about the company's stage and engineering culture?

The cost of guessing instead of checking is wasted sales calls, mis-scoped consulting proposals, and embarrassing pitches that misread the customer's actual stack. The fix is one DNS lookup. This is one of the cheapest pieces of intelligence available in B2B and one of the most useful for any team that needs to understand what a target company is running. The SMTP protocol that underlies all of this is defined in RFC 5321.

The Email Hosting endpoint, in plain language

Detect email service provider

Email provider identification is essential for sales intelligence (enterprise email = higher-value prospect), security assessments (detecting security gateways and encryption capabilities), competitive analysis (tracking provider adoption across industries), email migration planning (understanding current infrastructure), and vendor risk management (identifying organizations using consumer-grade email for business).

What is actually happening when you call it

Queries MX records via Cloudflare DoH (DNS over HTTPS) and matches mail server hostnames against a comprehensive library of 30+ email provider patterns. Sorts MX records by priority (lowest = primary), detects the primary email provider, identifies service type (enterprise/business/consumer/transactional/security), lists provider features, calculates detection confidence (high/medium/low based on primary vs backup MX match), and detects email security gateways (Mimecast, Proofpoint, Barracuda, etc.) that filter email before delivery.

Why this specific tool matters

Choose a task: Sales Intelligence. Identify prospect email providers to qualify leads based on technology sophistication. Enterprise email (Google Workspace, Microsoft 365) correlates with larger, better-funded organizations.

Run the Email Hosting request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the Email Hosting reference to check the field definitions and supported options.

Info:

Available on the free plan. The technical details: `GET /v1/domain/email-hosting`.

When would I actually use this?

Sales Intelligence

Identify prospect email providers to qualify leads based on technology sophistication. Enterprise email (Google Workspace, Microsoft 365) correlates with larger, better-funded organizations.

Use the finding: Prioritize prospects using enterprise email solutions for higher conversion rates.

Security Assessment

Detect email security gateways (Mimecast, Proofpoint, Barracuda) and identify email infrastructure maturity as part of vendor or partner security assessments.

Use the finding: Assess partner email security posture without requiring access to their infrastructure.

Competitive Intelligence

Analyze email provider adoption across industry verticals or competitor sets. Track migration trends from consumer to enterprise email.

Use the finding: Understand market preferences for email solutions and identify technology trends.

Email Migration Planning

Identify current email infrastructure before planning migration to a new provider. Detect multiple MX configurations and security gateway layers.

Use the finding: Plan email migrations with full understanding of existing infrastructure complexity.

The easiest way: just ask your AI assistant

Connect the MCP server. Just ask in plain English:

Use domain_email_hosting with domain=example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.

Confirm the tool and inputs in the client before accepting its summary. For Email Hosting, use the response fields below to separate observations from recommendations.

Tip:

The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.

The technical way: call it from code

This Email Hosting request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the free plan or higher; adapt the target to your task.

bash
curl --request GET 'https://api.edgedns.dev/v1/domain/email-hosting?domain=example.com' \
  --header "Authorization: Bearer YOUR_API_KEY"

Prepare inputs for Email Hosting

Start with the inputs below. Keep the same hostname, path, and options when comparing Email Hosting observations. The API reference contains the complete parameter contract, optional settings, and access requirements.

FieldTypeRequired?What it meansExample

domain

string

Yes

The domain to identify email provider for

example.com

Interpret Email Hosting findings

Read these fields alongside the full response from your Email Hosting check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.

FieldTypeWhat you'll see in it

domain

string

The queried domain

hasEmail

boolean

Whether email hosting was detected

provider

string

Email provider name

Words you might be wondering about

DoH (DNS over HTTPS) — A modern way of sending DNS queries that hides them inside encrypted HTTPS traffic, so people on the same network can't see which websites you're looking up.

Need Programmatic Access?

Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.

Email Hosting: Results Guide | EdgeDNS