MTA-STS
/.well-known/mta-sts.txt
Standard: RFC 8461
SMTP Strict Transport Security — stops downgrade attacks on email-in-transit encryption.
What it is
SMTP has used STARTTLS for decades, but STARTTLS is optional: an attacker on the network can strip it and read mail in plaintext (a classic downgrade attack). MTA-STS lets a mail domain publish a policy that says 'connections to my mail server MUST be encrypted and verified'.
The threat it addresses
Without MTA-STS, a network attacker can silently downgrade email transport to plaintext. With it, receiving mail servers validate the policy over HTTPS, cache it, and refuse unencrypted or mismatched-certificate connections to the MX.
How it works
- The policy lives at /.well-known/mta-sts.txt on the mail domain, published over HTTPS (which is itself authenticated).
- A matching TXT record _mta-sts.<domain> advertises its existence so senders know to fetch it.
- Policies declare version, mode (enforce / testing / none), the allowed MX hosts, and max_age for caching.
- This demo serves a policy in testing mode — the honest setting for a host with no real mail.
Honesty notes
- Demo: this host has no MX records, so the policy is illustrative. Real deployments publish on the actual mail domain and keep the MX list accurate — mismatches break mail delivery in enforce mode.
In the wild
- Spec (RFC 8461)
datatracker.ietf.org/doc/html/rfc8461
Links verified to serve this URI on 2026-08-05; some point at the governing spec where no live deployment could be verified.
Try it
Live demo
Format-valid demo policy (mode: testing) — this host has no real mail
version: STSv1
mode: testing
mx: well-known.page.
max_age: 86400