MTA-STS checker

Short answer

What is MTA-STS?

MTA-STS is a standard (RFC 8461) that requires email to your domain to be delivered only encrypted with TLS and a valid certificate to the mail servers you have approved. It consists of the TXT record _mta-sts.company.com, for example v=STSv1; id=20261110, and the policy file at https://mta-sts.company.com/.well-known/mta-sts.txt with mode, mx and max_age.

Check whether the domain requires encrypted delivery of email, and whether the policy file responds as it should.

What MTA-STS does

Email between servers is often encrypted, but not always. Without MTA-STS an attacker can force delivery over an unencrypted connection. MTA-STS says that email to the domain must only be delivered encrypted to the right servers.

Two parts that must match

  • A TXT record on _mta-sts in front of the domain, with an id that changes every time the policy changes.
  • A policy file on mta-sts in front of the domain, under /.well-known/mta-sts.txt, with a valid certificate.

Testing or enforce

Start in testing. Failures are then reported, but email is delivered as before. When the TLS reports are clean, move to enforce.

Example policy file

  • version: STSv1
  • mode: testing
  • mx: company-com.mail.protection.outlook.com
  • max_age: 604800

Each mx line must cover one of the MX records of the domain. max_age is in seconds and says how long senders remember the policy. One week is common at the start.

Questions and answers

What happens if the policy file does not respond?

Senders then ignore MTA-STS, and email is delivered as before. Check that mta-sts in front of the domain has a valid certificate and responds over HTTPS.

Do I need TLS-RPT too?

It is recommended. TLS-RPT gives you reports about failed deliveries, so you can see if something is wrong before moving to enforce.

Can Micronet host the policy file?

Yes. With Micronet DMARC you point mta-sts to us once. We serve the file with a valid certificate, and you switch mode in the portal.