Skip to content

MTA-STS checker

Check that a domain publishes a valid MTA-STS record, the DNS half of a policy that makes senders deliver its mail over TLS.

Sample result for example.com

MTA STS

Optional

MTA Strict Transport Security. Requires encryption (TLS) for mail delivered to this domain.

Pass
Raw record
v=STSv1; id=20261024120000
Parsed
vSTSv1
id20261024120000
Findings
  • Policy file at https://mta-sts.<domain>/.well-known/mta-sts.txt is not fetched in v1MTASTS_POLICY_NOT_FETCHED

    Policy file at https://mta-sts.<domain>/.well-known/mta-sts.txt is not fetched in v1

  • MTA-STS is validMTASTS_OK

    The MTA-STS DNS record is well formed. Receivers can discover your policy for enforced TLS.

What MTA-STS is and how it works

Mail servers encrypt SMTP with STARTTLS only when both sides offer it, and nothing stops an attacker on the network path from removing that offer. The mail then travels in plain text. MTA-STS (RFC 8461) lets a domain declare that its inbound servers support TLS, so senders refuse to deliver when they cannot set up a valid encrypted connection.

It has two parts. A TXT record at _mta-sts.<domain> such as v=STSv1; id=20261024120000 announces the policy. The policy file itself is served at https://mta-sts.<domain>/.well-known/mta-sts.txt and contains lines such as version: STSv1, mode: enforce, mx: mx1.example.com and max_age: 604800.

Senders that support MTA-STS fetch the policy over HTTPS, cache it for max_age seconds and check the id in DNS to learn when it changes.

How to read your MTA-STS check results

This checker reads the TXT record at _mta-sts.<domain> and checks that v is exactly STSv1 and that id is present and 1 to 32 letters or digits. It also lists any other tags in the record.

It does not fetch the policy file. Open https://mta-sts.yourdomain.com/.well-known/mta-sts.txt in a browser to confirm it loads over HTTPS with a valid certificate and lists every mail server. Compare those mx lines against the MX lookup.

A missing record is not an error, because MTA-STS is optional. Without it, senders still use TLS when your servers offer it, but they fall back to plain text if the offer is stripped.

MTA-STS policy modes and fields

mode has three values. testing asks senders to report TLS problems through TLS-RPT but still deliver. enforce asks them to refuse delivery to servers that do not match the policy or lack valid TLS. none withdraws a previous policy.

mx lines list the allowed mail servers, one per line. A wildcard such as *.example.net matches one label. max_age is how long senders cache the policy, in seconds, up to 31557600 (about a year).

A safe rollout: publish the policy in testing mode with TLS-RPT, read the reports for a couple of weeks, then switch to enforce and change the id.

Common MTA-STS errors and how to fix them

Missing or invalid id. The id is required and may contain only letters and digits, up to 32 characters. Dashes, colons and dots make it invalid. A timestamp such as 20261024120000 works well.

Policy file unreachable. The host mta-sts.<domain> must serve the file over HTTPS with a certificate valid for that name. Senders do not follow redirects, so serve the file directly as text/plain.

Mail server missing from the policy. After changing providers, update the mx lines before the new MX records go live. In enforce mode, senders refuse to deliver to servers the policy does not list.

id not changed after an edit. Senders keep their cached copy until max_age runs out. Changing the id tells them to fetch the new policy.

MTA-STS, TLS-RPT and DMARC

MTA-STS protects mail you receive. DMARC, SPF and DKIM protect your domain from being spoofed in mail other people receive. They are independent, and Google and Yahoo’s sender requirements do not include MTA-STS. Check the sending side with the DMARC checker.

TLS-RPT (RFC 8460) is the reporting companion. A TXT record at _smtp._tls.<domain> such as v=TLSRPTv1; rua=mailto:tls-reports@example.com asks senders for daily reports on TLS successes and failures. The full email security report checks it next to MTA-STS, and MTA-STS and TLS-RPT walks through setup.

MTA-STS trusts the first policy a sender fetches. DANE, which pins certificates in DNS, does not have that gap but requires DNSSEC.

Frequently asked questions

What is MTA-STS?

MTA-STS (RFC 8461) is a standard that tells sending mail servers your domain requires TLS for inbound mail. It uses a TXT record at _mta-sts.yourdomain.com and a policy file on https://mta-sts.yourdomain.com. Senders that support it refuse to deliver over an unencrypted or unverified connection.

Is MTA-STS required?

No. MTA-STS is optional, and Google and Yahoo’s sender requirements do not include it. It is still recommended for any domain that receives sensitive mail, because without it an attacker can force mail to travel unencrypted.

How do I check my MTA-STS policy?

Enter your domain in this MTA-STS checker to validate the TXT record at _mta-sts.yourdomain.com. Then open https://mta-sts.yourdomain.com/.well-known/mta-sts.txt in a browser to confirm the policy file loads over HTTPS and lists all of your MX hosts.

What should the MTA-STS id be?

Any string of 1 to 32 letters and digits. A timestamp such as 20261024120000 is a common choice. Change it every time you edit the policy file so senders fetch the new version.

What is the difference between MTA-STS testing and enforce mode?

In testing mode, senders report TLS failures through TLS-RPT but still deliver the mail. In enforce mode, they refuse delivery when TLS fails or the server is not listed in the policy. Start with testing and switch once the reports are clean.

Do I need TLS-RPT with MTA-STS?

It is not required, but without TLS-RPT you cannot see when senders fail to connect securely. Publish a TXT record at _smtp._tls.yourdomain.com such as v=TLSRPTv1; rua=mailto:tls-reports@yourdomain.com to receive daily reports.

Guides

More free tools

DMARC

Essential

Domain-based Message Authentication. Tells receivers how to handle mail that fails checks, and where to send reports.

Warning
Raw record
v=DMARC1; p=reject; rua=mailto:dmarc@example.com
Parsed
preject
pct100
adkimr
aspfr
rua
  • mailto:dmarc@example.com
Findings
  • DMARC rejects failing mailDMARC_POLICY_REJECT

    Strongest enforcement. Spoofed mail is rejected at SMTP time.

  • No subdomain policyDMARC_SP_MISSING

    Subdomains inherit p, but an explicit sp=reject prevents shadow IT from sending unauthenticated mail from random subdomains.

    Tighten policy
  • DKIM alignment defaults to relaxed (adkim=r)DMARC_ADKIM_RELAXED

    DKIM alignment defaults to relaxed (adkim=r)

  • SPF alignment defaults to relaxed (aspf=r)DMARC_ASPF_RELAXED

    SPF alignment defaults to relaxed (aspf=r)

  • Aggregate reporting is set upDMARC_RUA_PRESENT

    A rua address is published, so receivers send DMARC aggregate reports for this domain.

DMARC Checker on the example record for example.com

Know when something breaks, not just today

Monitor DMARC aggregate reports, get alerts for spoofing and policy changes, and move to p=reject with confidence.

Start monitoring free