Technical details
An MTA-STS (SMTP Mail Transfer Agent Strict Transport Security) record is a DNS TXT record published at _smtp._tls.domain.com that signals a domain's support for TLS-enforced email delivery, as defined in RFC 8460.
The MTA-STS policy file is hosted at https://mta-sts.domain.com/.well-known/mta-sts.txt and defines the enforcement mode (none, testing, or enforce), the maximum policy age, and the list of expected MX hosts.
MTA-STS prevents downgrade attacks where an attacker strips the STARTTLS encryption from SMTP connections, forcing email to be transmitted in plaintext.
Frequently asked questions
What is the difference between testing and enforce mode?+
Testing mode reports TLS failures without affecting delivery. Enforce mode requires valid TLS and bounces connections that do not support it.
Does Cloudflare Email Routing support MTA-STS?+
Yes, Cloudflare Email Routing supports STARTTLS. Publishing an MTA-STS policy in enforce mode requires that all MX hosts support TLS.
How often is the MTA-STS policy refreshed?+
Receivers cache the policy for its max_age, re-fetching at expiry. Changes therefore take up to one max_age cycle to reach every sender.
Check your domain with our free tools: SPF checker, DMARC checker, DKIM checker. Build the policy with the MTA-STS generator.