Skip to main content
Guides/DNS Records

MX Health: Understand and Use the Results

Check mail server health and redundancy

EdgeDNS Team·Updated ·7 min read

MX health: why a 'valid' record can still be silently broken

MX health is the broader category of "are your mail servers actually working?" — beyond just "do the MX records exist?" An MX record can pass every basic validation check (it resolves, it has the right priority, it points at a real hostname) and still be completely broken in production. The mail server it points at might be refusing connections. It might be on a public spam blocklist. It might be advertising the wrong TLS version. It might be running on an IP address with bad reverse DNS. Each of these is a silent failure mode that breaks email delivery without breaking the MX record itself.

You should care because email is the highest-stakes piece of infrastructure most businesses run, and "works" is not the same as "healthy". An MX setup that looks fine in a basic DNS lookup can be quietly losing 5%, 20%, or 100% of inbound mail because of one of the deeper problems above. The first symptom is usually a customer saying "I never got your reply" or a partner saying "your invoices keep bouncing." By the time you hear about it, you have already lost real conversations and real revenue. Health checks catch these problems before customers do.

The five things every MX health check looks at:

  • TCP port 25 connectivity. Can the mail server actually be reached on the standard SMTP port from the public internet? Some misconfigured firewalls block it.

  • SMTP banner. When you connect to port 25, the server should respond with a `220` greeting. A blank response or a `421` deferral means the server is up but unhealthy.

  • STARTTLS support. Modern mail servers should advertise STARTTLS so that incoming mail is encrypted in transit. Servers without it are quietly downgrading every message to plaintext.

  • Reverse DNS. The IP address of the mail server should have a PTR record that resolves to the same hostname listed in the MX record. Mismatched reverse DNS is one of the strongest spam-filter signals.

  • Public blocklists. Is the mail server's IP address listed on Spamhaus, SpamCop, Barracuda, or any other widely-used reputation feed? Even one listing can dramatically cut inbox placement.

Three questions an MX health check answers:

  • Is my mail server actually reachable, healthy, and accepting mail right now?

  • Are there any silent issues (blocklist listings, missing TLS, broken reverse DNS) that are quietly costing me deliverability?

  • After my recent infrastructure change, is everything still healthy in all the places that matter?

The cost of skipping MX health checks is the slow accumulation of small deliverability problems that nobody notices until customers start complaining. The fix is a few minutes of automated checks on a recurring schedule. Email is too important to leave unmonitored; this is the cheapest insurance you can give it.

The MX Health endpoint, in plain language

Check mail server health and redundancy

A name that says "Health" should health-check the actual mail service, not just resolve names. Reading the SMTP greeting and verifying the TLS (Transport Layer Security) handshake answers the questions email administrators actually have: is the server up? does it offer opportunistic TLS as RFC (Request for Comments) 8314 requires? are the cipher and certificate negotiation healthy? Failed handshakes and missing STARTTLS (STARTTLS) surface as actionable issues, not buried network noise. Complements SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), DMARC (Domain-based Message Authentication, Reporting and Conformance), and MTA-STS (Mail Transfer Agent Strict Transport Security) by testing the live mail-transport layer.

What is actually happening when you call it

Discovers MX hosts and performs bounded SMTP relay probes on port 25, retaining greeting, capabilities, TLS (Transport Layer Security) negotiation, certificate verification and validation outcomes. Checks at most five MX hosts and reports truncation. Set smtp_probe=false for DNS-only checks. Submission ports 587/465 are not used as evidence of inbound MX relay health.

Why this specific tool matters

Choose a task: Pre-Campaign TLS Posture Check. Before launching a major campaign, verify that recipient mail servers accept connections AND offer opportunistic TLS (Transport Layer Security) on inbound relay port 25. The live SMTP probe sends EHLO, parses advertised capabilities, and confirms relay STARTTLS (STARTTLS) works — the exact controls Gmail and Microsoft 365 require under their bulk-sender policies.

Run the MX Health 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 MX Health reference to check the field definitions and supported options.

Info:

Available on the developer plan. The technical details: `GET /v1/dns/mx-health`.

When would I actually use this?

Pre-Campaign TLS Posture Check

Before launching a major campaign, verify that recipient mail servers accept connections AND offer opportunistic TLS (Transport Layer Security) on inbound relay port 25. The live SMTP probe sends EHLO, parses advertised capabilities, and confirms relay STARTTLS (STARTTLS) works — the exact controls Gmail and Microsoft 365 require under their bulk-sender policies.

Use the finding: Catch recipients whose MX is up but TLS (Transport Layer Security) is broken (expired cert, missing STARTTLS (STARTTLS)) — the failure mode that turns deliverable mail into spam-folder mail.

Vendor Email Security Assessment

Evaluate a vendor's mail infrastructure during onboarding. The probe surfaces whether their MX accepts inbound relay connections, advertises proper capabilities (SIZE, 8BITMIME, AUTH), and completes the handshake cleanly. Combined with SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), and DMARC (Domain-based Message Authentication, Reporting and Conformance) checks, gives a complete email-stack posture in two API (Application Programming Interface) calls.

Use the finding: Identify partners running outdated or misconfigured mail servers before signing contracts that depend on reliable email exchange.

Continuous TLS-Posture Monitoring

Schedule mx-health probes against business-critical partner domains. Alert on `all_tls_ok` regressions — the most common cause is a silently-expired TLS (Transport Layer Security) cert on the MX, which degrades from "works" to "delivered as cleartext" without any visible error.

Use the finding: Detect TLS (Transport Layer Security) regressions on inbound mail paths within minutes, not after the certificate-monitoring tool finally surfaces the renewal.

The easiest way: just ask your AI assistant

Connect the MCP server. Just ask in plain English:

Use dns_mx_health 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 MX Health, 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 MX Health request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the developer plan or higher; adapt the target to your task.

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

Prepare inputs for MX Health

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

FieldTypeRequired?What it meansExample

domain

string

Yes

The domain to check mail server health for

example.com

Interpret MX Health findings

Read these fields alongside the full response from your MX Health 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

mx_records

array

Per-MX priority, host, IPs, reachability and optional port-25 relay smtp_probe: greeting, capabilities, STARTTLS (STARTTLS), certificate verification and completion status.

has_valid_mx

boolean

Whether domain has at least one reachable MX server (resolves to A/AAAA records)

Words you might be wondering about

DNS (Domain Name System) — The internet's address book. When you type a website name, DNS turns it into the actual numeric address computers use to find each other.

API (Application Programming Interface) — A way for one program to ask another program for something — like a waiter taking your order to the kitchen.

SPF (Sender Policy Framework) — A list, published in your DNS, of which servers are allowed to send email pretending to be you. Helps stop spammers from forging your address.

DKIM (DomainKeys Identified Mail) — A digital signature added to every email you send. The receiving mail server checks the signature to make sure the message really came from you and was not changed in transit.

DMARC (Domain-based Message Authentication, Reporting and Conformance) — An email rulebook you publish in your DNS. It tells receiving servers what to do with email that fails SPF or DKIM checks — ignore it, send it to spam, or block it entirely.

MTA-STS (Mail Transfer Agent Strict Transport Security) — A way to tell other mail servers "always use encryption when sending email to me, and refuse to fall back to unencrypted delivery."

TLS (Transport Layer Security) — The encryption that puts the 'S' in HTTPS. It scrambles data so nobody between you and a website can read it.

RFC (Request for Comments) — The official internet standards documents. When someone says 'RFC 8484' they mean a specific numbered standards document — in that case, the one defining DNS over HTTPS.

STARTTLS (STARTTLS) — A protocol upgrade that turns a plaintext SMTP connection into an encrypted TLS one. RFC 8314 makes opportunistic TLS the modern baseline — an MX without STARTTLS is delivering mail in cleartext.

Need Programmatic Access?

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

MX Health: Results Guide | EdgeDNS