MTA-STS: Enforced TLS for Inbound Mail
STARTTLS upgrades an SMTP connection to TLS if both sides agree, which invites downgrade attacks: strip the handshake and mail flows in plaintext. MTA-STS closes that by publishing a DNS policy that says: my mail servers demand valid TLS, always.
MTA-STS policy modes
| Mode | Effect |
|---|---|
| none | No policy published |
| testing | Reports failures, no enforcement |
| enforce | Bounces non-TLS delivery |
How it works
Two pieces. First, a TXT record at _mta-sts.yourdomain.com announcing that a
policy exists and its version. Second, the policy itself served over HTTPS at
https://mta-sts.yourdomain.com/.well-known/mta-sts.txt, listing your MX hosts
and the mode: testing (report only) or enforce (refuse
non-TLS delivery). Sending servers fetch the policy, verify the certificate, and only
deliver over trustworthy TLS.
The record
_mta-sts.example.com. IN TXT "v=STSv1; id=2026082201"
The id changes to push policy updates. Keep a valid HTTPS cert on the policy
host; an unreachable policy host weakens the whole mechanism.
TLS-RPT: the reports that make it manageable
Its companion record (_smtp._tls) tells providers where to email delivery
failures: which senders could not do TLS, which certificates failed. Roll out in testing
mode with reports for a few weeks, then enforce. Our homepage scanner checks both records.
Who needs it
- Anyone receiving sensitive mail: finance, healthcare, legal.
- Compliance frameworks that name transport encryption.
- Organizations completing the full authentication stack: SPF, DKIM, DMARC, MTA-STS.
Related
Build the policy with the MTA-STS generator, which auto-detects your MX hosts and produces all three artifacts.
Frequently asked questions
Does MTA-STS require DNSSEC?+
No. MTA-STS is enforced through a DNS TXT record plus an HTTPS-hosted policy file with a valid certificate. DNSSEC is unrelated.
What is the difference between testing and enforce mode?+
Testing reports TLS failures without affecting delivery; enforce requires valid TLS and bouncing non-compliant senders. Start in testing, watch reports, then enforce.
How long is the policy max_age?+
You set it in seconds; 86400 (one day) suits testing, and 604800 (a week) is common for stable enforce-mode policies.
Last verified: 2026-11-11