How to set it up
- Add the TXT record on _mta-sts in front of the domain.
- Put the policy file on https://mta-sts.domain/.well-known/mta-sts.txt with a valid certificate.
- Start with testing, and move to enforce when the TLS reports are clean.
Without your own web server
Micronet DMARC can host the policy file for you, so you only need two DNS records.
Example policy file
- version: STSv1
- mode: testing
- mx: company-com.mail.protection.outlook.com
- max_age: 604800
The file must be plain text (text/plain) and have one mx line per mail server. *.mail.protection.outlook.com is allowed and covers all servers under that name.
Common mistakes
- The certificate on mta-sts.domain is invalid or covers another name.
- The policy file is behind a redirect. RFC 8461 says senders must not follow it.
- An mx line does not match the MX records in DNS.
- id was not changed after the policy file was changed.