MTA-STS
Also called Mail Transfer Agent Strict Transport Security
A policy that asks other mail servers to deliver to a domain only over encrypted connections with valid certificates.
Mail servers usually encrypt connections between each other, but by default they fall back to plain text if encryption fails. An attacker in the middle can exploit that by blocking encryption.
MTA-STS closes the gap. A domain publishes a TXT record at _mta-sts.example.com and a policy file at https://mta-sts.example.com/.well-known/mta-sts.txt. The policy lists the domain’s MX hosts and a mode:
testing: report problems but deliver anyway.enforce: refuse to deliver unless the connection is encrypted and the certificate is valid for a listed host.none: the policy is withdrawn.
A companion standard, TLS reporting (TLS-RPT), lets sending servers report failed connections so a domain owner can check everything works before switching to enforce.