Skip to main content
Guides/Email Security

MTA-STS Check: Understand and Use the Results

Validate email transport encryption policy

EdgeDNS Team·Updated ·6 min read

MTA-STS: the lock that closes the email downgrade window

MTA-STS (Mail Transfer Agent Strict Transport Security) is an email-security standard that closes a longstanding vulnerability in how mail servers negotiate encryption. The original version of email transport, STARTTLS, lets two mail servers upgrade an unencrypted connection to an encrypted one mid-conversation. The problem is that the upgrade is opportunistic: an attacker who can sit in the middle of the connection (a malicious ISP, a compromised router, a state-level adversary) can simply strip out the upgrade signal, and the mail servers will silently fall back to plaintext without raising any alarms. Email between the two servers — including potentially sensitive business correspondence — flows over the public internet completely unencrypted. MTA-STS fixes this by letting the receiving domain publish a public policy that says, "every server sending mail to me must use TLS, and must verify my certificate, no exceptions."

You should care because opportunistic STARTTLS is one of the longest-running quiet security failures in email, and most senders have no idea it affects them. If you handle anything sensitive over email — financial information, customer data, contracts, healthcare records, internal HR conversations — there is a real risk that a portion of it has been transmitted in plaintext at some point because a downstream mail relay quietly dropped TLS. MTA-STS is the only widely-deployed standard that closes this gap, and it is now treated as a baseline requirement by serious email-security and compliance reviews.

The four things every MTA-STS check looks at:

  • Is there an MTA-STS DNS record? Lives at `_mta-sts.example.com` as a TXT record with a version and an ID.

  • Is there a published policy file? The actual policy lives at `https://mta-sts.example.com/.well-known/mta-sts.txt` and lists the allowed MX hostnames and the enforcement mode.

  • Is the policy in `enforce` mode? The other modes are `testing` (logs failures but doesn't actually block) and `none` (effectively disabled).

  • Is TLS-RPT (TLS Reporting) configured? A complementary standard (RFC 8460) that tells you when other senders' attempts to use TLS to reach you fail.

Three questions an MTA-STS check answers:

  • Is incoming email to my domain protected against TLS downgrade attacks?

  • Is the policy actually in enforcement mode, or is it stuck in testing?

  • If a sending server failed to negotiate TLS to me, would I find out?

The cost of skipping MTA-STS is the small but persistent risk that some fraction of inbound mail is being silently transmitted in plaintext across the public internet. The fix is publishing two records and one HTTPS file, and is increasingly expected on financial-services and healthcare email infrastructure. The standard is defined in RFC 8461.

The MTA-STS Check endpoint, in plain language

Validate email transport encryption policy

MTA-STS (Mail Transfer Agent Strict Transport Security) prevents email interception by requiring TLS (Transport Layer Security) encryption between mail servers (RFC (Request for Comments) 8461). Without MTA-STS, even domains with HTTPS (secure HyperText Transfer Protocol) everywhere can have their emails intercepted via SMTP downgrade attacks — attackers can strip STARTTLS (STARTTLS) from the initial negotiation. MTA-STS is the email equivalent of HSTS (HTTP Strict Transport Security) and is complementary to DANE (RFC 7672, which requires DNSSEC (Domain Name System Security Extensions)). Combined with TLS-RPT (TLS Reporting), it provides visibility into delivery failures. Adopted by Google (exclusively uses MTA-STS) and Microsoft (supports both DANE and MTA-STS). Required for SOC 2 (Service Organization Control 2), HIPAA, and GDPR (General Data Protection Regulation) compliance for encrypted email transmission.

What is actually happening when you call it

Shares the canonical policy and DNS (Domain Name System) parsers with Email Score. Requires an HTTP200, nonredirected, bounded policy with required version/mode/max_age and MX patterns except mode:none. Policy field ordering is unrestricted and first singleton values win; DNS records require exact first version and usable id. TLS-RPT (TLS (Transport Layer Security) Reporting) requires one candidate record and supported usable destinations. Reports unavailable dependencies separately and bounds caches by source/policy/native evidence.

Why this specific tool matters

Choose a task: Email Encryption Enforcement. Verify MTA-STS (Mail Transfer Agent Strict Transport Security) is properly configured to enforce encrypted email delivery to your domain. Check that the policy mode is "enforce" and max_age is sufficient.

Run the MTA-STS Check 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 MTA-STS Check reference to check the field definitions and supported options.

Info:

Available on the free plan. The technical details: `GET /v1/security/mta-sts`.

When would I actually use this?

Email Encryption Enforcement

Verify MTA-STS (Mail Transfer Agent Strict Transport Security) is properly configured to enforce encrypted email delivery to your domain. Check that the policy mode is "enforce" and max_age is sufficient.

Use the finding: Protect sensitive email communications from man-in-the-middle and downgrade attacks.

Compliance Documentation

Document MTA-STS (Mail Transfer Agent Strict Transport Security) configuration as evidence of email encryption controls for SOC 2 (Service Organization Control 2), HIPAA, or GDPR (General Data Protection Regulation) audits.

Use the finding: Meet compliance requirements for encrypted email transmission.

Partner Email Security Assessment

Evaluate partner or vendor email security by checking their MTA-STS (Mail Transfer Agent Strict Transport Security) enforcement level before sharing sensitive information via email.

Use the finding: Ensure sensitive communications with partners are encrypted in transit.

The easiest way: just ask your AI assistant

Connect the MCP server. Just ask in plain English:

Use security_mta_sts with domain=google.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 MTA-STS Check, 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 MTA-STS Check 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/security/mta-sts?domain=google.com' \
  --header "Authorization: Bearer YOUR_API_KEY"

Prepare inputs for MTA-STS Check

Start with the inputs below. Keep the same hostname, path, and options when comparing MTA-STS Check 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 MTA-STS (Mail Transfer Agent Strict Transport Security) configuration for

google.com

Interpret MTA-STS Check findings

Read these fields alongside the full response from your MTA-STS Check 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

mta_sts_valid

boolean

Valid DNS (Domain Name System) discovery plus a valid retrieved policy; separate from live relay compliance.

policy_valid

boolean

Strict shared RFC8461 policy parser result, including mode:none without MX patterns.

policy_mx_coverage

boolean

Whether every discovered explicit MX is covered; null when the relevant scope is unresolved.

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.

HTTPS (secure HyperText Transfer Protocol) — HTTP with encryption — the little padlock in your browser. It means nobody between you and the website can read what you're sending.

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-RPT (TLS Reporting) — A way for your mail server to receive reports when other servers fail to deliver email to you over a secure connection — pairs with MTA-STS.

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.

DNSSEC (Domain Name System Security Extensions) — A way to digitally sign DNS records so attackers can't trick your computer into looking up the wrong server.

GDPR (General Data Protection Regulation) — Europe's privacy law. Requires websites to be transparent about what personal data they collect and how they use it.

HSTS (HTTP Strict Transport Security) — A header that tells browsers "always use HTTPS for this site, never plain HTTP, even if the user types it." Prevents downgrade attacks.

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.

SOC 2 (Service Organization Control 2) — A widely used security audit. Proves to customers that you handle their data responsibly.

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.

MTA-STS Check: Results Guide | EdgeDNS