[ Start here ]

MTA-STS troubleshooting: follow DNS, HTTPS, MX and certificate evidence

Trace MTA-STS failures across discovery, policy hosting, advertised MX names and SMTP certificates.

By the EmailAuth research team · 3 min read

[ Key points ]

  • Trace MTA-STS failures across discovery, policy hosting, advertised MX names and SMTP certificates.
  • Check HTTPS and SMTP certificates separately, and preserve all still-valid policy cache exposure.
On this page

MTA-STS failures concern transport security for inbound mail. They are not repaired by changing SPF or DKIM. Diagnose the chain in order: policy discovery in DNS, policy retrieval over HTTPS, the permitted MX names, and the TLS behaviour of the receiving servers.

Identify the affected sending observation

Collect the sender's delivery error, time, destination domain and available TLS report. Separate a single sender's result from a universal outage. Senders may have cached different policy versions, and implementations differ in their support. Record the current policy identifier, body, mode and max_age alongside any previously active policy you can recover.

RFC 8461 defines discovery at _mta-sts for the receiving domain and HTTPS retrieval at https://mta-sts.<domain>/.well-known/mta-sts.txt. Check the published TXT record and the exact URL for the real domain. Ensure the HTTPS endpoint presents a trusted certificate for its hostname and serves a valid policy. RFC 8461 Section 3.3 requires HTTP 200 and forbids following HTTP 3xx redirects when fetching the policy. A successful browser visit to the home page does not establish that endpoint behavior.

Compare policy with actual MX routing

Inspect the destination domain's public MX records and compare their hostnames with the policy's mx patterns. Test every active receiving host, including a backup that normally gets little traffic. A newly added backup outside the permitted pattern can create intermittent failures rather than a clean total outage.

For each MX host, verify SMTP STARTTLS, certificate validity, trust chain and identity matching for the MX hostname. Keep the web policy certificate and the SMTP server certificates separate in the investigation: repairing one does not repair the other. Use a suitable TLS diagnostic tool from an authorised testing location and retain the connection details without transmitting real messages or credentials unnecessarily.

Interpret mode and caching correctly

Testing mode does not require rejection for an MTA-STS validation failure; other delivery controls may still refuse the message. Enforce mode applies its validation requirement when the sender has an applicable policy. An enforcing sender with an applicable cached policy can continue to require that policy even if the DNS discovery record is later removed. Removing a broken website is therefore not a reliable instant rollback.

When a policy changes, update the discovery identifier so supporting senders can detect the change. Plan changes around the published cache lifetime. For a planned withdrawal, use the RFC's mode none procedure and allow for cached policies rather than treating DNS deletion as immediate cancellation. Keep the policy endpoint available during transitions where senders still need it.

Work a failure through the chain

Illustrative case: example.org advertises primary.example.org and backup.example.net as MX hosts, but the MTA-STS policy permits only primary.example.org. Mail normally succeeds until the backup is selected. The first correction to investigate is the mismatch between the intended receiving route and the policy, not a sender SPF record. Verify that the backup is authorised and TLS-capable before adding it. This is a synthetic scenario, not a live domain test.

Build a diagnosis row containing observation time, sending source, policy version if known, selected MX, TLS error, intended change and verification result. TLS reports can reveal categories and patterns, but their coverage is not complete and absence of reports is not proof that every sender succeeds.

Restore service without hiding the cause

Prefer repairing the actual certificate, endpoint or routing mismatch. If a policy relaxation is necessary, obtain the relevant change approval, document the temporary exposure and account for caches. After repair, verify each MX path and examine subsequent sender observations and TLS reports. Keep expiry monitoring for both HTTPS and SMTP certificates and include the MTA-STS policy in every mail-provider migration checklist.

Keep cache history in the withdrawal decision

RFC 8461 Section 8.3 describes publishing mode none with a short lifetime and a changed discovery record, then retaining the endpoints until all previously served policies expire. Include older policies whose longer max_age can outlive the immediately preceding version. Deleting DNS does not erase those caches. Section 3.3 distinguishes a failed fresh fetch with no usable cache from a failed fetch with a valid cached policy. RFC 8460 Sections 4.2 and 4.3 describe reported sessions and failure types, not a complete per-message delivery ledger. No TLS connection, lookup or migration was executed for this teaching scenario.

[ Takeaway ]

Check HTTPS and SMTP certificates separately, and preserve all still-valid policy cache exposure.

[ By role ]

What this means for you

Choose your role for practical next steps.

IT / Mail Admin

Keep operational evidence

Record discovery, endpoint, MX and TLS evidence separately. Test every receiving host and preserve prior policy versions for cache-related incidents.

Next steps

  1. Record discovery, endpoint, MX and TLS evidence separately.
  2. Test every receiving host and preserve prior policy versions for cache-related incidents.
  3. Compare old and current cached-policy exposure.

CISO / SecOps

Review the trust boundary

Review temporary policy relaxation as a security change. Maintain certificate expiry monitoring and a documented restoration target.

Next steps

  1. Review temporary policy relaxation as a security change.
  2. Maintain certificate expiry monitoring and a documented restoration target.
  3. Approve and time-limit any policy relaxation.

Founder / Non-technical

Own the business decision

Give transport changes a coordinated owner across DNS, web hosting and email. A backup path that was never tested can become a business outage.

Next steps

  1. Give transport changes a coordinated owner across DNS, web hosting and email.
  2. A backup path that was never tested can become a business outage.
  3. Assign ownership of the backup MX.

[ FAQs ]

Frequently asked questions

Will SPF changes fix an MTA-STS certificate error?

No. SPF authenticates sending sources; MTA-STS concerns the receiving transport route and TLS policy.

Which HTTPS address must work?

The policy endpoint at the receiving domain’s mta-sts host and /.well-known/mta-sts.txt path, with a valid certificate and policy content.

Why does mail fail only occasionally?

A backup MX or one server may have a mismatched hostname or certificate. Test all advertised receiving paths.

Does removing the TXT record disable enforcement instantly?

No. Senders can retain an unexpired cached policy. Plan changes around caching and the documented withdrawal procedure.

Are the web and SMTP certificates the same check?

No. The policy-host HTTPS identity and each receiving MX TLS identity require separate verification.

When should the policy identifier change?

When publishing an updated policy so supporting senders can detect the revision. Preserve the previous version for diagnosis.

Does no TLS report mean no failure?

No. Reporting coverage is incomplete and depends on participating senders and reporting configuration.

What belongs in a migration test?

The new MX names, their TLS certificates, the policy body and identifier, HTTPS retrieval and the effects of existing cached policies.

[ Sources ]

Sources

  1. RFC 8461: MTA-STS

    Sections §3.1 · §3.2 · §3.3 · §4.1 · §4.2 · §5 · §8.1 · §8.3 · §8.4

  2. RFC 8460: SMTP TLS Reporting

    Sections §3 · §4.2 · §4.3 · §4.4 · §5

[ Glossary ]

Glossary

Policy Host
The mta-sts hostname used to retrieve a Policy Domain’s HTTPS policy.
Cached policy
A previously validated MTA-STS policy retained by a sender for its applicable lifetime.
MX pattern
A permitted receiving-host name or constrained wildcard pattern in the MTA-STS policy.

Enterprise provenance

Why top financial institutions and governments retired their email security dashboards.

Traditional email authentication platforms sell you a dashboard and ask your engineers to do the labour. In high-stakes environments, manual oversight means delayed enforcement, configuration drift and unmonitored shadow domains.

EmailAuth is the agentic email provenance platform. Our agents enforce p=reject, keep third-party senders aligned and move your domains to full RFC 9989 compliance, the new DMARC standard,, with human-in-the-loop auditability.

Governments Large enterprises Tier-1 financial institutions

SaaS · Dedicated tenancy · Air-gapped on-prem · BYOK encryption

Knowledge Base