MTA-STS writer

Require other mail servers to use encrypted connections when sending to you. Hover or tap the? if you're unsure.

How it works

Email between servers is often not forced to be encrypted. MTA-STS lets you say "always use TLS when delivering to me".

There are three parts:

1. A TXT record in DNS that says a policy exists.

2. A small policy file served over HTTPS at mta-sts.yourdomain.

3. Optionally, TLS-RPT reports so you hear about problems.

This tool creates the first two. Start in testing mode.

Mode

testing - senders still deliver even if TLS fails, but can report the problem. Start here.

enforce - senders refuse to deliver unless TLS works and the server matches your list. Strongest.

none - switches the policy off, for retiring it cleanly.

Mail servers (mx)

The host names of the servers that receive your email. They must match your MX records, otherwise legitimate mail will be refused in enforce mode.

One per line. A wildcard like *.example.com matches any single-level subdomain. Press Fetch from DNS to fill these in from your current MX records (sends a DNS query to Cloudflare, only when pressed).

    Lifetime and version

    max_age is how long senders may remember your policy. Longer is safer against attackers but slower to undo. Use a day while testing, then a week or more.

    id is a version label in the DNS record. Change it every time you edit the policy file, or senders keep using the old one. A timestamp does the job; press New id after any change.