MTA-STS (SMTP MTA Strict Transport Security)
MTA-STS publishes a policy telling sending mail servers they must use TLS when delivering mail to your domain. Without it, an attacker between mail servers can downgrade the connection to plaintext (STARTTLS stripping) and read or alter messages.
How MTA-STS works
Mail Transfer Agent Strict Transport Security (MTA-STS, RFC 8461) is the SMTP equivalent of HSTS for the web. It tells sending mail servers that mail to your domain must be delivered over a TLS-encrypted connection to a host whose certificate matches one of your declared MX hostnames.
Deployment has two parts. First, a DNS TXT record at _mta-sts.<domain> with v=STSv1; id=<unique-id> tells senders a policy exists and gives an identifier they can cache against. Second, an HTTPS-served policy file at https://mta-sts.<domain>/.well-known/mta-sts.txt declares the actual MX hostnames and the mode (none / testing / enforce). The HTTPS host itself must be reachable and present a valid publicly-trusted certificate — that's how senders verify the policy is authentic.
The mode= directive controls behaviour. mode=none disables the policy temporarily. mode=testing means senders should report failures via TLS-RPT but still deliver. mode=enforce means senders should refuse to deliver if the TLS or hostname checks fail. Most operators start in testing for several weeks while observing reports, then promote to enforce.
MTA-STS is best paired with TLS-RPT (RFC 8460). MTA-STS without reporting means downgrade attacks happen silently — the policy fires, mail is rejected, and you learn about it from a customer ticket two days later. With TLS-RPT you get aggregate reports of every TLS failure, including which sender saw it and what error code came back.
How to fix it
Publish a TXT record at _mta-sts.<domain> and host an MTA-STS policy file at https://mta-sts.<domain>/.well-known/mta-sts.txt with mode=enforce.
The 3 MTA-STS checks Vendor Audit runs
Each check has a fixed set of results, and each result has one rating. These are the exact words the report uses.
MTA-STS
Standard: RFC 8461
- PASSMTA-STS policy published and enforcing
- PASSMTA-STS record published (the policy file could not be read from this audit)
- MediumMTA-STS policy mode is none — nothing is enforced
- MediumMTA-STS policy not published — sending servers have no policy preventing fallback to plaintext
- MediumMTA-STS record published but the policy file is missing or unusable — sending servers ignore it
- LowMTA-STS in testing mode (not enforced)
MTA-STS policy MX match
Standard: RFC 8461 §4.1
What it checks. Every MX host must match an mx: line in the MTA-STS policy.
Why it matters. In enforce mode, sending servers refuse to deliver to an MX host the policy does not name, so mail routed there fails.
How to fix it. Add an mx: line for each MX host (a *.example.com pattern covers one label), then change the policy id.
- PASSMTA-STS policy names every MX host
- HighMTA-STS policy does not name every MX host — senders refuse to deliver to them
- MediumMTA-STS policy does not name every MX host — mail to them fails once enforced
MTA-STS max_age
Standard: RFC 8461 §3.2
What it checks. max_age tells sending servers how long to keep the MTA-STS policy.
Why it matters. A short value means senders refetch it often, and an attacker who blocks the refetch can make them fall back to delivering without TLS. RFC 8461 suggests weeks or more.
How to fix it. Set max_age to at least 604800 (one week); 1209600 or more is common.
- PASSMTA-STS policy is cached for a week or longer
- LowMTA-STS policy max_age is under a week