← All controls

30 MTA-STS + TLS reporting

MTA-STS tells sending servers that mail for your domain must be delivered over authenticated, validated TLS to the MX hosts you name, so an attacker on the network path cannot strip the encryption or redirect delivery. Unlike SPF, DKIM and DMARC (4 Email authentication (SPF/DKIM/DMARC)), it is not a DNS record you set once: the policy is a document served over HTTPS from an mta-sts subdomain, pointed at by a TXT record whose id must change whenever the policy does. TLS-RPT is the paired reporting record that turns a failed TLS delivery into a report rather than mail that silently never comes.

Caveats

Setup steps

  1. https://mta-sts.<domain>/.well-known/mta-sts.txt — version: STSv1; mode: testing; mx: <each MX host>; max_age: 604800
  2. TXT _smtp._tls.<domain> = v=TLSRPTv1; rua=mailto:tlsrpt@<domain>
  3. TXT _mta-sts.<domain> = v=STSv1; id=<1–32 alphanumeric id, e.g. a timestamp>
  4. Policy file mode: testing → enforce; TXT id bumped

  5. open ↗

    Apps › Google Workspace › Gmail › Compliance

    Secure transport (TLS) compliance: Inbound + Outbound rule for the <partner domains> address list; Require CA-signed certificate = On; Validate certificate hostname = On (run Test TLS connection before saving)

Ongoing maintenance

How to verify

  1. Both halves are public — check them from anywhere, no tenant access needed. The policy file the curl returns must say mode: enforce and list exactly the Google MXs.

    dig +short TXT _mta-sts.<domain>; curl -s https://mta-sts.<domain>/.well-known/mta-sts.txt

  2. Confirm TLS reporting is wired: the record must exist and its rua= address must be a mailbox someone reads.

    dig +short TXT _smtp._tls.<domain>

v0.2.0 Prevent edition All (DNS + an HTTPS host) policy #6 · #27 ↗