MTA-STS Policy Generator

Build a valid MTA-STS policy.txt and the matching _mta-sts TXT record. Pick mode (testing or enforce), MX hosts and max_age — free, client-side only.

How to use it

  1. Start in testing so mail still flows if something is wrong; move to enforce only after reports look clean.
  2. List every MX that should receive mail for the domain. Wildcards such as *.mail.protection.outlook.com are allowed and cover Microsoft 365.
  3. Host the policy file at https://mta-sts.<domain>/.well-known/mta-sts.txt over HTTPS with a valid certificate for that host.
  4. Publish a TXT record on _mta-sts.<domain> with v=STSv1; id=<version>. Change id whenever you update the policy so receivers refetch it.
  5. Add a TLS-RPT record so you get reports while you test. The full walkthrough, including the Microsoft 365 and Google Workspace mx values and the switch to enforce, is in the MTA-STS and TLS-RPT setup guide.
  6. Once the file and records are live, check them with the MTA-STS & TLS-RPT Checker: it validates both TXT records, the policy file and whether every MX matches an mx line.

Audit hundreds of domains at once

Need SPF, DMARC and MX checks across a whole client list? Run the Bulk SPF / DMARC / MX Auditor on Apify ($2 per 1,000 domains).

Related guides

Checking many domains?

The Bulk MTA-STS, TLS-RPT & BIMI Checker on Apify downloads each domain's mta-sts.txt policy and validates it like a sending server would (no redirects, valid certificate, text/plain), matches every live MX against the policy's mx patterns, checks the TLS-RPT record, and verifies the BIMI logo, VMC/CMC certificate and DMARC enforcement. One row and an A–F grade per domain ($2 per 1,000 domains).

Want the full kit?

Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.