Free MTA-STS Record Generator
Generate a compliant MTA-STS policy file and DNS Record to secure your email transmission.
What You Need to Deploy MTA-STS
MTA-STS requires two components: a DNS TXT record at _mta-sts.yourdomain.com that advertises the policy and contains a unique 'id' value, and a policy text file hosted at https://mta-sts.yourdomain.com/.well-known/mta-sts.txt served over HTTPS with a valid TLS certificate. Our generator creates both outputs — the DNS record and the policy file content — ensuring they are syntactically correct and consistent with each other.
How to Use This Generator
Select your policy mode: 'testing' for initial deployment (senders report failures but still deliver email) or 'enforce' for production use (senders reject delivery if TLS negotiation fails). Enter the MX hostnames authorized to receive email for your domain — these must match your actual MX DNS records exactly. Set the max_age value (how long senders should cache the policy). The generator outputs the DNS TXT record value and the complete policy file content ready for hosting.
Deployment Workflow
Start in testing mode with TLS-RPT configured (use our TLS-RPT Generator) so you can monitor whether any legitimate sending servers fail TLS negotiation. Host the policy file at the required HTTPS endpoint, publish the DNS TXT record, and validate with our MTA-STS Checker. Monitor TLS-RPT reports for 1 to 2 weeks. If no legitimate delivery failures are reported, switch to enforce mode by updating the policy file and incrementing the DNS record's id value to trigger a policy refresh by sending servers.
