- The Gap SPF, DKIM and DMARC Leave Open
- How a Downgrade Attack Works
- Deploy in This Order
- TLS-RPT: See Before You Enforce
- MTA-STS: Require Encrypted Delivery
- Moving From Testing to Enforce
- BIMI: Your Verified Logo in the Inbox
- Verifying Everything Works
- Pitfalls Worth Knowing in Advance
- Frequently Asked Questions
If our scanner reported a missing MTA-STS policy, TLS-RPT record or BIMI record, these are the newer email checks in our engine — and they cover a gap that the well-known trio of SPF, DKIM and DMARC does not address at all.
The Gap SPF, DKIM and DMARC Leave Open
The classic three solve authentication. They answer: did this message really come from that domain, and was it altered? That is what stops spoofing and phishing in your name, and it remains the essential foundation.
What they conspicuously do not address is confidentiality in transit. None of them require the message to be encrypted while travelling between mail servers.
DMARC proves the letter is genuinely from you. It says nothing about whether the envelope was open while it crossed the internet.
Mail transport encryption is opportunistic by design. When one server delivers to another, it asks whether TLS is available, and uses it if so. This was a pragmatic choice made when much of the internet had no certificates, and it has a serious weakness: if encryption fails or appears unavailable, mail is delivered in plain text anyway, because delivering the message matters more to the sender than protecting it. There is no failure and no warning.
How a Downgrade Attack Works
An attacker positioned between two mail servers — at a compromised network device, a hostile ISP, or through DNS manipulation — does not need to break encryption. They only need to prevent it being negotiated:
- The sending server connects and asks: do you support STARTTLS?
- The attacker strips or corrupts that capability from the response.
- The sending server concludes encryption is unavailable and, wanting to deliver, sends the message in plain text.
- The attacker reads and optionally modifies it, then forwards it onward.
Nobody notices. The message arrives normally, DKIM may still validate the body, and no log records a downgrade. This is STARTTLS stripping, and it has been observed at scale in the wild against entire networks.
MTA-STS closes it by publishing a durable policy: my domain requires TLS with a valid certificate; if you cannot get that, do not deliver at all. The sending server now refuses rather than downgrades, and a delivery failure — visible and investigable — replaces a silent interception.
Deploy in This Order
Order matters, because one of these carries deliverability risk and two carry none:
- SPF, DKIM, DMARC — the prerequisite. If these are not correct, fix them first; our setup guide covers them.
- TLS-RPT — zero risk, pure visibility. Always first of the three.
- MTA-STS in testing mode — zero risk, generates evidence.
- MTA-STS in enforce mode — real protection, real risk if misconfigured. Only after testing is clean.
- BIMI — a branding and trust layer, and only possible once DMARC is at enforcement.
TLS-RPT: See Before You Enforce
TLS Reporting asks providers to send you a daily summary of encrypted delivery sessions with your domain — how many succeeded, how many failed, and why. It is one DNS record, it cannot break anything, and it gives you the data to enforce confidently.
# DNS TXT record
Name: _smtp._tls.yourdomain.com
Type: TXT
Value: v=TLSRPTv1; rua=mailto:tls-reports@yourdomain.com
You can direct reports to a dedicated mailbox or to a reporting service that parses them into a dashboard. The reports are JSON and arrive daily from providers who support them, including Google and Microsoft.
What to look for in the first weeks:
certificate-not-trustedorcertificate-host-mismatch— your mail server's certificate does not match its hostname, or is not from a trusted authority. This must be fixed before enforcing, or you will block legitimate mail.starttls-not-supported— a sending party attempted encryption and did not get it. Investigate whether the fault is yours.validation-failure— policy or DNS problems, often transient, but a persistent pattern indicates a real misconfiguration.
Unlike DMARC aggregate reports, TLS reports are few and small — a handful per day even for large senders. A dedicated mailbox is entirely workable, and you do not need tooling to start.
MTA-STS: Require Encrypted Delivery
MTA-STS has two parts that must agree: a DNS record announcing that a policy exists, and a policy file served over HTTPS that contains the actual rules. The HTTPS requirement is deliberate — it means the policy cannot be tampered with by the same attacker who can manipulate plain DNS.
Part 1 — the DNS record:
Name: _mta-sts.yourdomain.com
Type: TXT
Value: v=STSv1; id=20260727120000Z
The id is a version stamp. You must change it every time you edit the policy file, otherwise senders continue using their cached copy — a timestamp is the conventional choice.
Part 2 — the policy file, served at exactly this URL, over valid HTTPS:
https://mta-sts.yourdomain.com/.well-known/mta-sts.txt
version: STSv1
mode: testing
mx: mail.yourdomain.com
mx: *.yourmailprovider.com
max_age: 604800
Field by field:
mode—testingreports problems without blocking;enforceblocks non-compliant delivery;nonewithdraws the policy.mx— one line per mail exchanger, and this list must match your MX records exactly. A wildcard covers a provider's pool. This is the field that causes outages when it drifts out of sync with DNS.max_age— cache lifetime in seconds. Start at 604800 (one week); mature deployments use up to 31557600 (one year). Longer is more secure — a cached policy resists DNS attacks — but slower to change.
Provider-specific mx values — copy these rather than guessing:
# Google Workspace
mx: aspmx.l.google.com
mx: *.aspmx.l.google.com
# Microsoft 365
mx: *.mail.protection.outlook.com
Serving the file: the mta-sts subdomain needs its own valid TLS certificate. Any static host works — a subdirectory on your web server, an S3 bucket behind a CDN, or a static hosting provider. Two requirements: it must respond over HTTPS with a trusted certificate, and it must be served as text/plain.
# Nginx — serve the policy correctly
server {
listen 443 ssl;
server_name mta-sts.yourdomain.com;
# ssl_certificate ... ;
location = /.well-known/mta-sts.txt {
default_type text/plain;
alias /var/www/mta-sts/mta-sts.txt;
}
}
Moving From Testing to Enforce
Stay in testing for at least two weeks. Before switching, confirm all four:
- TLS-RPT reports show no certificate errors for your mail exchangers.
- Your
mxlist exactly matches your MX records — compare them directly, do not rely on memory. - Every mail exchanger presents a valid, trusted certificate matching its hostname.
- The policy file is reachable over HTTPS with no redirect and no certificate warning.
Then change mode: testing to mode: enforce and update the id in DNS — the second step is the one people forget, and without it senders keep enforcing nothing.
Certificate expiry on a mail server now blocks inbound mail rather than merely degrading it — so monitor those certificates as carefully as your website's. Adding a mail exchanger without adding it to the policy file makes the new server unable to receive from MTA-STS-aware senders. Add the policy file to your change checklist for any MX change; that single habit prevents both incidents.
BIMI: Your Verified Logo in the Inbox
BIMI displays your organization's logo beside your messages in supporting mailbox providers. It is genuinely a security feature as well as a branding one: a recognizable, verified mark is a signal recipients can use, and it is one a spoofer cannot reproduce.
The prerequisites are strict, and non-negotiable:
- DMARC at enforcement —
p=quarantineorp=reject.p=nonedisqualifies you outright. This is why BIMI sits last in the deployment order. - An SVG Tiny PS logo — a specific, restricted SVG profile: square aspect ratio, no scripts, no external references, with a title element.
- A Verified Mark Certificate (VMC) for Gmail and Apple Mail — attesting that you own the trademark. It requires a registered trademark and carries an annual fee from one of a small number of authorities.
Name: default._bimi.yourdomain.com
Type: TXT
Value: v=BIMI1; l=https://yourdomain.com/bimi/logo.svg; a=https://yourdomain.com/bimi/vmc.pem
The l parameter points to the logo; a points to the VMC and may be omitted where a certificate is not required. Both must be served over HTTPS.
An honest assessment: BIMI without a VMC is inexpensive and displays in some providers, so it is worth publishing. BIMI with a VMC is a marketing decision with a real annual cost and a trademark prerequisite — worthwhile for consumer brands whose recipients benefit from visual verification, harder to justify for a small business sending mostly transactional mail. Unlike the other two records here, skipping it carries no security consequence.
Verifying Everything Works
# Confirm all three records resolve
dig +short TXT _smtp._tls.yourdomain.com
dig +short TXT _mta-sts.yourdomain.com
dig +short TXT default._bimi.yourdomain.com
# Confirm the policy file is served correctly over HTTPS
curl -sI https://mta-sts.yourdomain.com/.well-known/mta-sts.txt
# expect: 200, and Content-Type: text/plain
curl -s https://mta-sts.yourdomain.com/.well-known/mta-sts.txt
# Confirm the mx list matches reality
dig +short MX yourdomain.com
# Confirm your mail server actually offers STARTTLS with a valid certificate
openssl s_client -starttls smtp -connect mail.yourdomain.com:25 -servername mail.yourdomain.com </dev/null 2>/dev/null | openssl x509 -noout -subject -dates
Then send a message to a mailbox you control and inspect the headers for dkim=pass, spf=pass and dmarc=pass. A re-scan will confirm the three findings are resolved.
Pitfalls Worth Knowing in Advance
- Forgetting to bump the
id. Editing the policy without changing the DNSidmeans senders keep the cached version — your change silently does nothing, sometimes for a week. - The
mxlist drifting from your MX records. The single most common cause of MTA-STS-related delivery failure. Any MX change requires a policy change. - A certificate on the
mta-stssubdomain expiring. If the policy becomes unreachable, senders fall back to their cached copy untilmax_agelapses — which buys time, but only until it does not. - Serving the policy with a redirect. The specification requires the file at that exact URL. An HTTP-to-HTTPS redirect is acceptable; a redirect to a different path or host is not.
- Publishing BIMI while DMARC is
p=none. The record is simply ignored, and time is spent wondering why no logo appears. - Treating these as a replacement for the basics. They sit on top of SPF, DKIM and DMARC. If the foundation is wrong, fix it first — and if you are already blacklisted, our reputation recovery guide is the more urgent read.
Check Your Full Email Trust Stack
Free scan — validates SPF, DKIM, DMARC, MTA-STS, TLS-RPT and BIMI in a single pass, alongside domain reputation and 100+ other checks, in about 60 seconds.
Scan Your Site NowAlso see: SPF, DKIM & DMARC Setup Guide, What Is DMARC?, Email Spoofing Prevention, and Blacklist Removal & Domain Reputation.
Frequently Asked Questions
What does MTA-STS protect against that DMARC does not?
They solve different problems. SPF, DKIM and DMARC authenticate the sender — proving the message came from your domain unaltered. None require the message to be encrypted in transit. Mail encryption is opportunistic, so an attacker between servers can strip the STARTTLS negotiation and force plaintext delivery. MTA-STS declares that your domain requires TLS, so a downgraded connection is refused rather than silently accepted.
Is MTA-STS risky to enable?
Not if deployed in order. Testing mode reports problems without blocking mail, letting you validate certificates and MX names before enforcing. The real risks appear only after switching to enforce, and they are exactly what testing surfaces: an expired certificate, or a mail exchanger in DNS but missing from the policy file.
Do I need a paid certificate for BIMI?
Only for some providers. A BIMI record with DMARC at enforcement suffices for certain mailbox providers, but Gmail and Apple Mail additionally require a Verified Mark Certificate attesting trademark ownership — which needs a registered trademark and an annual fee. That makes full BIMI a branding investment rather than a quick config change.
What is TLS-RPT actually useful for?
Visibility into failures you would otherwise never see. Encryption-related delivery problems are silent — the sender simply cannot deliver and you get no signal. TLS-RPT asks providers for a daily summary of successful and failed sessions with reasons. One DNS record, zero delivery risk, and the right first step before enforcing anything.
Will these improve my deliverability?
Indirectly. They are not ranking signals in the way DMARC enforcement is, but they demonstrate a well-maintained domain, and MTA-STS prevents interception that could otherwise damage your reputation. The larger deliverability gains come from DMARC enforcement, consistent sending practice and low complaint rates.