Why isn't standard STARTTLS enough for email security?
Opportunistic STARTTLS can be silently stripped by an active network attacker (downgrade attack) and does not verify the MX server's certificate against your domain. MTA-STS enforces valid TLS.
Interactive MTA-STS policy generator and DNS cheatsheet to enforce TLS 1.2+/1.3 encryption on inbound email delivery.
| Host / Name | Type | Value | TTL | Purpose |
|---|---|---|---|---|
_mta-sts |
TXT | v=STSv1; id=2026112901 |
3600 | Signals MTA-STS support; bump id= whenever policy file changes |
_smtp._tls |
TXT | v=TLSRPTv1; rua=mailto:tls-reports@yourdomain.com |
3600 | Daily JSON reports of SMTP TLS failures |
mta-sts |
CNAME/A | Cloudflare Pages / Workers / Nginx HTTPS endpoint |
3600 | Serves /.well-known/mta-sts.txt over valid HTTPS |
EnvGuard for JetBrains IDEs scans .env, YAML, and DNS config files locally before commit — paired with our DevOps & AI Automation Kits on Gumroad.
Opportunistic STARTTLS can be silently stripped by an active network attacker (downgrade attack) and does not verify the MX server's certificate against your domain. MTA-STS enforces valid TLS.
Yes! Cloudflare Workers or Cloudflare Pages can serve `/.well-known/mta-sts.txt` on `mta-sts.yourdomain.com` with automatic SSL at $0/month.
DANE relies on DNSSEC TLSA records (great for self-hosted Postfix), while MTA-STS uses standard HTTPS + TXT records and is widely supported by Gmail, Google Workspace, and Microsoft 365.