How to set up MTA-STS
- Host a file at
https://mta-sts.example.com/.well-known/mta-sts.txtwith a valid certificate:version: STSv1mode: testingmx: *.example-mx.commax_age: 86400 - Add TXT
_mta-sts.example.comwithv=STSv1; id=20260101. Change the id every time the policy changes. - Add TXT
_smtp._tls.example.comwithv=TLSRPTv1; rua=mailto:tls@example.com. - When reports look clean, switch to
mode: enforceand raise max_age to 604800 or more.
Frequently asked questions
Does MTA-STS replace SPF, DKIM or DMARC?
No. Those prove who sent a mail. MTA-STS protects mail coming to you in transit, by requiring encryption with a valid certificate.