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.

Failed· cloudflare.com

MTA-STS is published, but the parts don't agree.

1 errorChecked 20:08 UTC

Record

TXT at _mta-sts.cloudflare.com

v=STSv1;id=1769609691387;

Issues (1)

  • Error

    Policy file can't be fetched

    MTASTS004

    https://mta-sts.cloudflare.com/.well-known/mta-sts.txt could not be fetched: mta-sts.cloudflare.com has no A or AAAA record.

    Fix: Host the policy file at that exact URL over HTTPS.

The three parts

1

TXT record

Found

_mta-sts.cloudflare.com

v=STSv1;id=1769609691387;
2

Policy file

Missing

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

3

TLS-RPT record

Found

_smtp._tls.cloudflare.com

v=TLSRPTv1; rua=mailto:rua@cloudflare.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
5mxa-canary.global.inbound.cf-emailsecurity.netNo policyTLSv1.3, certificate valid
5mxb-canary.global.inbound.cf-emailsecurity.netNo policyTLSv1.3, certificate valid
10mxa.global.inbound.cf-emailsecurity.netNo policyTLSv1.3, certificate valid
10mxb.global.inbound.cf-emailsecurity.netNo policyNot tested
DNS trace · 11 queries
NameTypeServerResultTimeAnswer
cloudflare.comMX1.1.1.1NOERRORcacheMX 5 mxa-canary.global.inbound.cf-emailsecurity.net · MX 5 mxb-canary.global.inbound.cf-emailsecurity.net · MX 10 mxa.global.inbound.cf-emailsecurity.net · +1
_mta-sts.cloudflare.comTXT1.1.1.1NOERROR54 msTXT "v=STSv1;id=1769609691387;"
_smtp._tls.cloudflare.comTXT1.1.1.1NOERROR54 msTXT "v=TLSRPTv1; rua=mailto:rua@cloudflare.com;"
mta-sts.cloudflare.comA1.1.1.1NODATA54 ms
mta-sts.cloudflare.comAAAA1.1.1.1NODATA54 ms
mxa-canary.global.inbound.cf-emailsecurity.netA1.1.1.1NOERRORcacheA 172.65.169.99
mxa-canary.global.inbound.cf-emailsecurity.netAAAA1.1.1.1NODATAcache
mxb-canary.global.inbound.cf-emailsecurity.netA1.1.1.1NOERRORcacheA 172.65.65.66
mxb-canary.global.inbound.cf-emailsecurity.netAAAA1.1.1.1NODATAcache
mxa.global.inbound.cf-emailsecurity.netA1.1.1.1NOERRORcacheA 141.101.90.40
mxa.global.inbound.cf-emailsecurity.netAAAA1.1.1.1NODATAcache

Next check

Run these for cloudflare.com with one click.

Want everything at once? Run the full report for cloudflare.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.