Vendor Audit

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

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.

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.

Related

TLS-RPT · STARTTLS and DANE · MX records