MTA-STS explained
MTA-STS tells other mail servers to only deliver to you over an encrypted, verified connection.
The problem it solves
Email between servers is usually encrypted with STARTTLS, but it's opportunistic: an attacker in the middle can strip the encryption and the sending server will happily fall back to plain text. MTA-STS lets you publish a policy saying "only deliver to these MX hosts, and only with valid TLS".
The three parts
- A TXT record at
_mta-sts.yourdomain.com:v=STSv1; id=20261204. Change the id whenever the policy changes. - A policy file served over HTTPS at
https://mta-sts.yourdomain.com/.well-known/mta-sts.txt:version: STSv1 mode: testing mx: *.mail.protection.outlook.com max_age: 604800 - TLS-RPT (optional but recommended): a TXT at
_smtp._tls.yourdomain.comsuch asv=TLSRPTv1; rua=mailto:tls@yourdomain.com, so you get reports on failures.
Hosting the policy file
The fiddly part is the HTTPS site on the mta-sts subdomain. Any static host with a valid certificate works: Cloudflare Pages, GitHub Pages, Azure Static Web Apps.
Rolling it out
Start with mode: testing, watch the TLS-RPT reports for a couple of weeks, then switch to mode: enforce and bump the id.
Would you rather someone just fixed it?
I'm an IT engineer in Sydney with 9 years of Microsoft 365 work. I'll set up SPF, DKIM and DMARC properly for your domain and send you a plain-English report.
See the fixed-price service on Fiverr.
Checking lots of domains? There's a bulk checker on Apify that grades hundreds at once.
Free checks
SPF record checkerCount DNS lookups and catch SPF mistakes.DMARC record checkerCheck your DMARC policy and reporting.DKIM record checkerFind DKIM keys, including Microsoft 365.MX record lookupSee who handles your incoming mail.SPF record generatorTick your services, get one SPF record.DMARC record generatorBuild a DMARC record step by step.