What MTA-STS and TLS-RPT are
MTA-STS (RFC 8461) has two parts. A TXT record says a policy exists and gives it a version id:
_mta-sts.example.com. TXT "v=STSv1; id=20261118T1200"
The policy itself is a text file served over HTTPS from a fixed URL, https://mta-sts.example.com/.well-known/mta-sts.txt:
version: STSv1
mode: enforce
mx: mx1.example.net
mx: *.mail.example.net
max_age: 604800
TLS-RPT (RFC 8460) is a separate TXT record that asks senders to send daily reports of TLS problems:
_smtp._tls.example.com. TXT "v=TLSRPTv1; rua=mailto:tls-reports@example.com"
How to read the result
- TXT record: present, one record only,
id=of 1 to 32 letters and digits. - Policy file: fetched without following redirects,
text/plain, withversion,mode, at least onemxand amax_age. - MX coverage: each real MX host must match an
mx:line.*.mail.example.netmatchesa.mail.example.netbut nota.b.mail.example.net. - TLS-RPT: present and pointing at a
mailto:orhttps:address.
Common failures and how to fix them
Policy URL unreachable. No mta-sts host, a certificate that does not cover mta-sts.example.com, or a 404. Any of these means senders treat the domain as having no policy. A static host or a small worker works fine for serving one text file.
Redirects. Hosting platforms often redirect to add a trailing slash or www. Serve the file with a direct 200.
MX not in the policy. After a mail provider migration the policy still lists the old MX names. In enforce mode, senders refuse to deliver to unlisted hosts, so mail queues and eventually bounces. Update the mx: lines first, then change the id=.
id= with punctuation. id=2026-11-18 is invalid; use id=20261118.
Very short max_age. Senders cache the policy for max_age seconds. A few minutes offers little protection against an attacker who blocks the first fetch. One to several weeks is common in enforce mode, and the limit is one year (31557600).
No TLS-RPT. Without reports you will not know when a sender cannot establish TLS to your MX, which is exactly what you need to see before moving to enforce.