webzod
account

Make the MTA-STS policy file reachable on Cloudflare

email.mta_sts.policy_unreachable · effort: about an hour

Why it matters

The MTA-STS TXT record exists but the policy file cannot be fetched, so senders that do not already have it cached deliver mail without MTA-STS protection. The policy must be served over HTTPS on the mta-sts subdomain.

The fix

  1. Read the reason in the finding. In the Cloudflare dashboard open DNS > Records and check there is an A, AAAA or CNAME record named mta-sts pointing at your policy host; for this web record the proxy (orange cloud) is allowed.
  2. If you serve it from a Worker, check the Worker has mta-sts.yourdomain as a Custom Domain (Settings > Domains & Routes) and returns the policy text for /.well-known/mta-sts.txt with content-type text/plain.
  3. A 404 usually means the path is wrong; a redirect (for example from a Redirect Rule or Page Rule) must not apply to this hostname.
text
Type:     CNAME
Name:     mta-sts.example.com
Target:   your-web-host.example
Proxy:    Proxied or DNS only (both work for the policy host)

The examples use example.com. Replace it with your own domain.

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.