Guide / MTA-STS and TLS-RPT

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.

  1. 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"
  2. 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

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

  1. Check that your mail servers' certificates are valid and match their host names.
  2. Set up TLS-RPT first and watch whether any failures happen today.
  3. Set up MTA-STS with mode: testing.
  4. Confirm for two to four weeks that the reports show no problems.
  5. Switch to mode: enforce. Each time you update the policy, change the id in the TXT record to a new value (it signals the change to senders).

Things to watch in operation

MTA-STS is not required for every domain. For organizations whose mail is sensitive, though, it is a useful extra that guarantees encryption in transit. Get SPF, DKIM and DMARC in order first.

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