Home / Learn / Fix‑it guides
Fix‑it guide
Set up MTA-STS and TLS reporting for email
Updated December 4, 2026 · QDay Index team
Without MTA‑STS, an attacker can strip encryption from email sent to your domain. It takes two DNS records and one small text file.
1. List your mail servers
dig +short MX example.com
2. Publish the policy file
Serve this at https://mta-sts.example.com/.well-known/mta-sts.txt over a valid HTTPS certificate:
version: STSv1
mode: testing
mx: example-com.mail.protection.outlook.com
max_age: 604800
List every MX host (wildcards like *.mail.protection.outlook.com are allowed). Any static host works: a CDN, a cloud storage bucket with HTTPS, or a tiny serverless function.
3. Add the DNS records
_mta-sts.example.com. TXT "v=STSv1; id=20261204"
_smtp._tls.example.com. TXT "v=TLSRPTv1; rua=mailto:tls-reports@example.com"
Change the id whenever you change the policy file.
4. Watch reports, then enforce
After a week or two of clean TLS reports, change mode: testing to mode: enforce, raise max_age (for example 1209600), and bump the id.
If your domain sends no email at all, publish a null MX record instead so mail is refused outright.
Run a readiness scan to confirm the email check reads "MTA‑STS enforced".
Other fix‑it guides
Vendor features change quickly; check your provider's current documentation before changing production systems.