Cluster 19 · RFC 8461 · Inbound TLS · mta-sts.txt + _mta-sts

RFC 8461 MTA-STS Policy (mta-sts.txt) & _mta-sts DNS Builder

Build compliant RFC 8461 /.well-known/mta-sts.txt policy files and _mta-sts.<domain> DNS TXT records for Google Workspace, Microsoft 365, Fastmail, Proton Mail, and Cloudflare.

RFC 7208 · 7489 · 8461 · 8460 · 8058 · Zero Upload

2. MTA-STS, TLS-RPT & BIMI SVG Tiny P/S

RFC 8461 · 8460 · 9495

SVG Tiny P/S Pre-Flight Linter

PASS (100/100)
SVG-001: SVG 1.2 Tiny P/S profile declared PASS
Contains version="1.2" and baseProfile="tiny-ps".
SVG-002: <title> element present PASS
Brand title included inside SVG root.
SVG-003: Square viewBox aspect ratio PASS
viewBox="0 0 120 120" matches 1:1 BIMI badge requirement.
SVG-004: Zero scripts, raster images, or animations PASS
Pure vector shapes with zero active scripts or external references.
SVG-005: Under 32 KB BIMI file size limit PASS
252 bytes (limit 32,768 bytes).
https://mta-sts.acme.example.com/.well-known/mta-sts.txt
version: STSv1
mode: enforce
mx: smtp.google.com
mx: aspmx.l.google.com
mx: *.aspmx.l.google.com
mx: *.googlemail.com
max_age: 604800
TXT @ _mta-sts.acme.example.com
v=STSv1; id=20261202010000Z
TXT @ _smtp._tls.acme.example.com (RFC 8460 TLS-RPT)
v=TLSRPTv1; rua=mailto:[email protected]
TXT @ default._bimi.acme.example.com (BIMI)
v=BIMI1; l=https://acme.example.com/.well-known/bimi-logo.svg; a=https://acme.example.com/.well-known/bimi-vmc.pem
MailAuth Pro $39 · ReadyCheck $49 Live DoH + SMTP TLS

Verify Live SPF, DMARC, DKIM, MTA-STS & BIMI Deliverability

Run an automated live email deliverability audit on MailAuth Pro ($39) (mail.runglab.dev) or inspect full 100-point DNS, Email-TLS, Security Headers & AEO on ReadyCheck ($49) (audit.runglab.dev) — or ship the $49 ReadyCheck Domain Fix Pack. Prefer PayPal invoicing? Email [email protected].

Email Deliverability Specification & Baseline

Control / Standard Hardened Baseline Deliverability & Security Rationale
HTTPS Policy URL https://mta-sts.<domain>/.well-known/mta-sts.txt Must respond HTTP 200 text/plain; charset=utf-8 with ZERO 301/302 redirects (RFC 8461 §3.3)
DNS TXT Trigger _mta-sts.<domain> -> v=STSv1; id=<alnum> id= must change on every policy update (1–32 ASCII alphanumeric chars)
Rollout Modes testing (monitor) -> enforce (strict TLS) Start in testing for 7 days with TLS-RPT before enforcing strict MX certificate validation
Wildcard Rules Single Leftmost Label Only (*.aspmx.l.google.com) RFC 8461 forbids multi-level wildcards such as *.google.com

RFC 8461 Policy File (/.well-known/mta-sts.txt)

mta-sts.txt
version: STSv1
mode: enforce
mx: smtp.google.com
mx: aspmx.l.google.com
mx: *.aspmx.l.google.com
mx: *.googlemail.com
max_age: 604800

DNS Record & Zero-Redirect Edge Verification

verify-mta-sts.sh
# Publish TXT @ _mta-sts.acme.example.com:
# "v=STSv1; id=20261202010000Z"

curl -fsSi --max-redirs 0 https://mta-sts.acme.example.com/.well-known/mta-sts.txt
dig +short TXT _mta-sts.acme.example.com

Implementation Steps & Key Insights

  1. Switch to Mode 2 ('MTA-STS, TLS-RPT & BIMI') above and choose your inbound mail provider preset or enter custom MX patterns.
  2. Publish https://mta-sts.<domain>/.well-known/mta-sts.txt with mode: testing and max_age: 86400 (HTTP 200, no redirects).
  3. Publish _mta-sts.<domain> TXT (v=STSv1; id=...) alongside _smtp._tls.<domain> TLS-RPT.
  4. Confirm 0 TLS errors for 7 days, switch mode: enforce, bump id=, and verify live on MailAuth Pro and ReadyCheck.
  • MTA-STS prevents active network attackers from performing SMTP STARTTLS downgrade attacks against inbound mail routed to your organization.
  • Over 95% of B2B SaaS domains omit MTA-STS even when DMARC and HSTS are configured.

Common Deliverability & DNS Pitfalls

  • Enabling HTTPS redirects from mta-sts.<domain> to www or apex — RFC 8461 clients strictly abort on HTTP 3xx responses.
  • Editing mta-sts.txt without updating id= in _mta-sts.<domain> TXT, leaving remote MTAs stuck on stale cached policies.
Verify Live: Audit your live DNS, MTA-STS & BIMI records at MailAuth Pro ($39) or run a full 100-point scan on ReadyCheck ($49).

More Email Deliverability, MTA-STS & BIMI Tools

← Back to Email Deliverability Hub · MailAuth Pro ($39) → · ReadyCheck ($49) →

Frequently Asked Questions

Does MTA-STS protect outbound email I send or inbound email I receive?

Publishing mta-sts.<domain> protects INBOUND email sent to your domain by telling external sending MTAs to require valid TLS certificates matching your MX hosts.

Why does RFC 8461 forbid HTTP redirects on mta-sts.txt?

Following redirects during policy fetch opens a substitution attack vector; policy files must be served directly with HTTP 200 on https://mta-sts.<domain>/.well-known/mta-sts.txt.

How can I check my live mta-sts.txt and MX certificate alignment?

Run a live audit on https://mail.runglab.dev/?ref=tools-mailauth or https://audit.runglab.dev/?ref=tools-mailauth.