exim.ro

Generator · RFC 8461 · RFC 8460

MTA-STS generator

MTA-STS asks the servers that send you mail to deliver only over TLS with a valid certificate, and only to the MX hosts you list. Pick the mode and the hosts: you get the policy file, the two DNS records and a check against the real domain.

01The domain
02Mode
03MX hosts

The exact names of the MX hosts, or *.example.com, which covers one level only: mail.example.com, but not example.com nor a.b.example.com (RFC 8461 section 4.1).

RFC 8461 expects weeks or more: a policy cached for long cannot easily be bypassed. In testing mode, one day lets you correct quickly.

04TLS reports

E-mail addresses or an https:// URL, one per line. Senders report daily which TLS deliveries failed. Read them with the TLS report analyzer.

The full check, with DNS, runs when you generate.

Moving to MTA-STS without losing mail

  1. Publish the policy in testing mode, together with TLS-RPT: nothing is blocked, but senders report what would have failed.

  2. Read the daily TLS reports with the TLS report analyzer and fix what shows up: expired certificates, wrong names, unlisted MX hosts.

  3. When the reports show zero failures, move to enforce and raise max_age to a few weeks.

MTA-STS in brief

Sources: RFC 8461 · RFC 8460