Login/Register

MTA-STS and TLS-RPT Checker

Enter the domain of your e-mail addresses and see whether sending servers are told to deliver over TLS only: the MTA-STS record, the policy file, your mail servers in it, and the TLS-RPT record for reports.

Why e-mail needs it

Mail servers encrypt between each other when both sides offer it, but they do not insist. An attacker in the path can remove the offer and the message is sent in plain text without anybody noticing. MTA-STS closes that gap: your domain publishes a policy that says "deliver to these servers, over TLS, with a valid certificate, or not at all".

What you need to set up

  1. A TXT record at _mta-sts.example.com: v=STSv1; id=20250101. Change the id every time the policy changes.
  2. A policy file at https://mta-sts.example.com/.well-known/mta-sts.txt with the lines version, mode, mx and max_age. The host needs a valid SSL certificate.
  3. A TXT record at _smtp._tls.example.com for TLS-RPT: v=TLSRPTv1; rua=mailto:[email protected].

Start in testing mode

With mode: testing senders report problems but still deliver. Read the TLS-RPT reports for a week or two. When they show no failures, change the mode to enforce and update the id in the DNS record.

Questions and answers

Which certificate does the mta-sts host need?
A normal SSL certificate for mta-sts.yourdomain.com, issued by a public certificate authority. A domain-validated certificate is enough; a wildcard certificate for the domain covers it too.
Do my mail servers need valid certificates as well?
Yes. In enforce mode senders deliver only when the certificate of the MX server is valid and matches its host name. Check that before you enforce.
Who uses MTA-STS?
Gmail, Microsoft 365 and other large providers honour it when they send to you, and publish it for their own domains.
Is MTA-STS the same as DANE?
They solve the same problem. DANE needs DNSSEC, MTA-STS needs a web server with a certificate. You can run both.