MTA-STS and TLS-RPT: Enforcing Encrypted Mail Delivery and Hearing About Failures
SPF, DKIM and DMARC protect who the sender is. MTA-STS protects the encryption of mail on its way to you.
Published: November 13, 2026 · 日本語
The weak spot in encrypted mail delivery
Email travels from the sending server to the receiving server over SMTP. STARTTLS is what encrypts that hop. But for backward compatibility, STARTTLS has a fallback: if encryption cannot be set up, the message is sent unencrypted.
An attacker on the network path can rewrite or block the STARTTLS offer, and the sender may give up on encryption and send in plain text (a downgrade attack). Many implementations also do not verify the receiving server's certificate, so delivery to a fake server can go unnoticed.
What MTA-STS is
With MTA-STS (SMTP MTA Strict Transport Security, RFC 8461), a receiving domain declares: "Deliver mail for my domain over TLS to these servers, which have valid certificates. If you cannot, do not deliver it." Sending servers fetch the declaration in advance and refuse any delivery that does not meet it.
The parts
An MTA-STS setup has two parts.
- A DNS TXT record that announces a policy exists and publishes an identifier (id) for its version.
_mta-sts.example.com. TXT "v=STSv1; id=20261113T000000" - A policy file served over HTTPS at
https://mta-sts.example.com/.well-known/mta-sts.txt.version: STSv1 mode: testing mx: mail.example.com max_age: 86400
mode:none(off),testing(deliver despite violations and only report them) orenforce(do not deliver on a violation).mx: the host names of mail servers allowed as destinations (you can list several).max_age: how many seconds senders cache the policy.
Because the policy file is served over HTTPS, its authenticity is confirmed by a web certificate even if DNS is tampered with. That is why you need a subdomain named mta-sts with a valid server certificate.
TLS-RPT: reports so you hear about failures
With TLS-RPT (SMTP TLS Reporting, RFC 8460), sending servers that fail to deliver mail to your domain over TLS send you summary reports of what went wrong. Think of it as the TLS version of DMARC aggregate reports.
_smtp._tls.example.com. TXT "v=TLSRPTv1; rua=mailto:tls-reports@example.com"
The reports list the kinds of failure (expired certificate, host name mismatch, no STARTTLS support, MTA-STS policy mismatch and so on) and how many there were. Reviewing them during a testing period before switching MTA-STS to enforce is essential.
How to roll it out
- Check that your mail servers' certificates are valid and match their host names.
- Set up TLS-RPT first and watch whether any failures happen today.
- Set up MTA-STS with
mode: testing. - Confirm for two to four weeks that the reports show no problems.
- Switch to
mode: enforce. Each time you update the policy, change theidin the TXT record to a new value (it signals the change to senders).
Things to watch in operation
- Certificate expiry: under
enforce, if your mail server's certificate expires, senders will refuse to deliver mail to your domain. Automated renewal and expiry monitoring are a must. - Update the policy before changing MX: when moving to a new mail service, add the new MX to the policy's
mxlines before you switch. - It depends on senders: MTA-STS only works when the sending side supports it. Some large mail providers do, but not all.
- DANE is another option: DANE publishes certificate information in DNS and relies on DNSSEC, so its prerequisites are different.
FAQ
Will mail stop arriving if I do not set up MTA-STS?
No. It is optional, and mail arrives as before without it. MTA-STS is an additional measure that makes encryption in transit more reliable.
How is MTA-STS different from DMARC?
DMARC stops spoofing of the sender. MTA-STS stops eavesdropping and downgrades while mail is carried between servers. They protect different things.
Is enforce safe?
Yes, as long as your mail server certificates are valid, match their host names and renew automatically. Start in testing, review the TLS-RPT reports, then switch.
Check your own domain
Enter your domain and the points in this article are checked for free. No sign-up.
Check your email authentication for free