Skip to main content
KalkuNet

MTA-STS and TLS-RPT Generator — Require TLS for Incoming Mail

Generate /.well-known/mta-sts.txt and _mta-sts DNS TXT records together.

Runs in your browserWeb · Email, DNS & Web Media

Serve this file at https://mta-sts.example.com/.well-known/mta-sts.txt (HTTPS with a valid certificate, Content-Type text/plain). Change the DNS id whenever the file changes.

  • Testing mode: senders report TLS problems but still deliver. Switch to enforce once TLS-RPT reports are clean.
DNS records (_mta-sts and _smtp._tls)
Read a published MTA-STS policy

When to use the RFC 8461 MTA-STS & TLS-RPT Record Generator

  • All three parts at once

    The mta-sts.txt policy file, the _mta-sts DNS record with its id and the _smtp._tls TLS-RPT record for reports are produced together from one form.

  • Exactly the RFC 8461 format

    The file uses one key/value pair per line as the RFC 8461 grammar defines, a testing, enforce or none mode, an mx list that may use wildcards such as *.example.com, and max_age in seconds.

  • The id changes with the policy

    Sending servers only fetch the policy again when the DNS id changes. The new-id button makes a unique timestamp whenever you change the file.

  • Read a published policy

    Fetch mta-sts.txt from any domain, for example google.com, and check whether it is valid under the RFC 8461 grammar.

Frequently asked questions

Start with testing or enforce?

Start with testing and TLS-RPT switched on. Once reports show every sender connects over valid TLS, switch to enforce.

What is a sensible max_age?

One week (604800) while testing, then several weeks up to a year once stable. The maximum is 31,557,600 seconds.

Must every MX server be listed?

Yes. An MX server that matches no mx entry is treated as invalid in enforce mode, so mail to it is not delivered.

What do TLS-RPT reports contain?

A daily JSON summary of successful and failed TLS sessions from each sender, including failure reasons such as a certificate mismatch.

May the file use LF line endings?

Yes. The RFC 8461 grammar accepts LF or CRLF at the end of each line, and senders must accept both. What matters is that each mx pair sits on its own line.

Learn more