MTA-STS & TLS-RPT Explained: Hardening Inbound Email Transport Encryption
Prevent SMTP downgrade attacks and receive daily TLS failure diagnostics by publishing _mta-sts, a hosted policy file, and _smtp._tls DNS records.
Why STARTTLS alone is vulnerable to downgrade attacks
Standard SMTP STARTTLS is opportunistic: an active network attacker can strip the STARTTLS command and force mail delivery in plaintext without the sender noticing.
MTA-STS (RFC 8461) solves this by advertising via DNS + HTTPS that your MX hosts support valid TLS certificates—and instructing sending servers to refuse unencrypted fallback once in enforce mode.
Step 1: Host /.well-known/mta-sts.txt on mta-sts.yourdomain.com
Serve a plain-text policy over valid HTTPS at https://mta-sts.example.com/.well-known/mta-sts.txt listing every MX host returned by your apex MX records. Start with mode: testing for 1–2 weeks before switching to mode: enforce.
version: STSv1
mode: enforce
mx: aspmx.l.google.com
mx: *.aspmx.l.google.com
max_age: 604800Step 2: Publish _mta-sts and _smtp._tls (TLS-RPT) TXT records
Add both TXT records to your DNS zone. Update the id= timestamp whenever you edit the mta-sts.txt policy so sending MTAs refresh their cached policy immediately.
_mta-sts.example.com. IN TXT "v=STSv1; id=2026111501"
_smtp._tls.example.com. IN TXT "v=TLSRPTv1; rua=mailto:tls-reports@example.com"Check if your domain already passes these requirements
Run a 15-second live compliance scan across Privacy, EAA 2025, Email Auth, and Security Headers—or generate exact configs using our 6 free tools.