Skip to content
deliverly.ai

Mail transport security

MTA-STS Checker

Validate the MTA-STS record, the policy file and TLS-RPT, then cross-check them against your live MX hosts.

Pass· google.com

MTA-STS is published in enforce mode with max_age 86400.

1 infoChecked 20:14 UTC

Record

TXT at _mta-sts.google.com

v=STSv1; id=20210803T010101;

Issues (1)

  • Info

    Wildcard mx pattern

    MTASTS013

    The policy uses the wildcard "*.aspmx.l.google.com". That is valid, and it is what Google, Microsoft and Yahoo publish. A wildcard matches any single label under that name.

    Fix: Nothing to change if your mail provider gave you this pattern. If you run your own MX hosts, listing each hostname in full is tighter.

The three parts

1

TXT record

Found

_mta-sts.google.com

v=STSv1; id=20210803T010101;
2

Policy file

Found

https://mta-sts.google.com/.well-known/mta-sts.txt

version: STSv1
mode: enforce
mx: smtp.google.com
mx: aspmx.l.google.com
mx: *.aspmx.l.google.com
max_age: 86400

mode: enforcemax_age: 86,400 s (1 days)

3

TLS-RPT record

Found

_smtp._tls.google.com

v=TLSRPTv1;rua=mailto:sts-reports@google.com

MX hosts against the policy

Every live MX host must match an mx: line and present a valid certificate on port 25.

PriorityMX hostIn policySTARTTLS certificate
10smtp.google.comCoveredTLSv1.3, certificate valid
DNS trace · 7 queries
NameTypeServerResultTimeAnswer
_mta-sts.google.comTXT1.1.1.1NOERRORcacheTXT "v=STSv1; id=20210803T010101;"
_smtp._tls.google.comTXT1.1.1.1NOERRORcacheTXT "v=TLSRPTv1;rua=mailto:sts-reports@google.com"
mta-sts.google.comA1.1.1.1NOERRORcacheCNAME www3.l.google.com · A 142.251.13.100 · A 142.251.13.113 · +4
mta-sts.google.comAAAA1.1.1.1NOERRORcacheCNAME www3.l.google.com · AAAA 2a00:1450:4001:c15::71 · AAAA 2a00:1450:4001:c15::64 · +2
google.comMX1.1.1.1NOERROR12 msMX 10 smtp.google.com
smtp.google.comA1.1.1.1NOERRORcacheA 142.251.127.27 · A 142.251.127.26
smtp.google.comAAAA1.1.1.1NOERRORcacheAAAA 2a00:1450:4001:c21::1b · AAAA 2a00:1450:4001:c21::1a

Next check

Run these for google.com with one click.

Want everything at once? Run the full report for google.com

What MTA-STS protects against

Mail servers encrypt delivery with STARTTLS, but an attacker in the network path can strip that offer and force plain text, or redirect mail with a forged MX answer. MTA-STS (RFC 8461) lets a domain publish a policy saying: deliver only over TLS, only to these MX hosts, and only if the certificate is valid.

Three parts that must agree

A TXT record at _mta-sts.example.com signals that a policy exists and carries an id that changes with each edit. The policy itself is a text file served over HTTPS at https://mta-sts.example.com/.well-known/mta-sts.txt. And TLS-RPT (RFC 8460), a TXT record at _smtp._tls.example.com, tells senders where to report delivery failures.

The useful checks are the cross-checks: every live MX host must match an mx: line in the policy, and each must offer STARTTLS with a trusted, unexpired certificate that names the MX host. In enforce mode a mismatch means mail bounces.

Questions

Why did my policy change not take effect?

Senders cache the policy for max_age seconds and only refetch when the id in the TXT record changes. Change the id every time you edit the policy file.

Should I start in enforce mode?

No. Start in testing with TLS-RPT enabled, read the reports for a week or two, then switch to enforce.

Can the policy URL redirect?

No. Senders must not follow redirects when fetching the policy. Serve the file directly with a 200 response and a valid certificate for mta-sts.yourdomain.