Skip to content

Email to your domain isn’t protected in transit

When other servers deliver email to you, they encrypt it if they can, but an attacker on the network can quietly turn that off. A few DNS records make encryption required, tell you when delivery isn’t secure, and protect the DNS records everything else depends on.

Why it matters

Without MTA-STS (or DANE), servers sending to you fall back to unencrypted delivery when told to, so email to you can be read on the way.

TLS reports tell you when other servers couldn’t deliver to you securely, so you can fix problems before turning enforcement on.

DNSSEC stops attackers forging your DNS answers, including every record on this page. CAA limits which certificate authorities can issue certificates for your domain, including the one MTA-STS relies on.

Mail server (MX) records must point to server names with their own addresses. A broken one delays or bounces email to you.

How to fix it

  1. MTA-STS: publish a policy file at https://mta-sts.yourdomain.com/.well-known/mta-sts.txt listing your mail servers, starting in testing mode. That address needs to be a real HTTPS site with a valid certificate: your web host or a service such as Cloudflare can serve it.
    version: STSv1
    mode: testing
    mx: mail.yourdomain.com
    max_age: 604800
  2. Then publish a TXT record at _mta-sts.yourdomain.com. Change the id whenever you change the policy file:
    v=STSv1; id=20261201
  3. TLS reports: publish a TXT record at _smtp._tls.yourdomain.com:
    v=TLSRPTv1; rua=mailto:tls-reports@yourdomain.com
  4. Once the TLS reports are clean for a few weeks, change mode: testing to mode: enforce and update the id.
  5. DNSSEC: turn it on with your DNS provider. If your registrar is a different company, add the DS record your DNS provider gives you at the registrar.
  6. CAA: publish a record for each certificate authority you use, for example:
    yourdomain.com.  CAA  0 issue "letsencrypt.org"
  7. Mail servers: point each MX record at a server name that has its own A or AAAA records (not a CNAME, not an IP address), and remove any for servers you no longer use.
  8. DANE: if a provider runs your mail servers, it’s up to them. If you run your own, it needs DNSSEC first, then a TLSA record per mail server.

Common mistakes

  • Switching MTA-STS to enforce with a mail server missing from the policy file, so email to you bounces.
  • Changing the policy file but not the id in the TXT record, so other servers keep the old policy.
  • Turning on DNSSEC with the DNS provider but not adding the DS record at the registrar, so DNSSEC stays off.
  • Moving DNS to a new provider and leaving the old DS record at the registrar, which breaks the whole domain for many visitors.
  • A CAA record that leaves out the authority your web host uses, so its certificates stop renewing.

Check your fix

Once the change is live, check again. DNS changes can take up to a few hours to show everywhere.