Cluster 10 · RFC 8461 · Google Workspace · Gmail Inbound TLS

MTA-STS Setup Guide for Google Workspace (MX Patterns & Enforce Rollout)

Exact RFC 8461 mta-sts.txt MX patterns for Google Workspace (both modern smtp.google.com and legacy 5-record aspmx.l.google.com setups), plus TLS-RPT validation and enforce rollout.

Zero Telemetry · Strict CSP (connect-src 'none')

Domain Trust & Email-TLS Configuration

RFC 8461 · 8460 · 8659 · 9116
Domain Trust Readiness Score
100 / 100 (A)
HARDENED — TRUST & TLS READY
MTA-STS & TLS-RPT 30/30
BIMI & DMARC Gate 25/25
DNS CAA (RFC 8659) 20/20
RFC 9116 security.txt 25/25

MTA-STS & TLS-RPT Artifacts

RFC 8461 + 8460
https://mta-sts.example.com/.well-known/mta-sts.txt
version: STSv1
mode: enforce
mx: aspmx.l.google.com
mx: *.aspmx.l.google.com
mx: smtp.google.com
mx: *.googlemail.com
max_age: 604800
TXT @ _mta-sts.example.com
v=STSv1; id=20261127000000Z
TXT @ _smtp._tls.example.com
v=TLSRPTv1; rua=mailto:[email protected]
STS-MX-OK: 4 valid MX pattern(s) encoded PASS
Policy binds TLS validation to aspmx.l.google.com, *.aspmx.l.google.com, smtp.google.com, *.googlemail.com.
STS-ID-OK: Valid _mta-sts policy id=20261127000000Z PASS
Update id= whenever you edit /.well-known/mta-sts.txt so senders re-fetch the policy.
STS-MODE-OK: mode: enforce active (downgrade protection enabled) PASS
Sending MTAs will refuse plaintext fallback or mismatched MX certificates.
STS-AGE-OK: max_age: 604800s (7 days) PASS
Within RFC 8461 bounds (<= 31557600 seconds).
TLSRPT-OK: Valid _smtp._tls TLS-RPT record (RFC 8460) PASS
Daily JSON TLS reports route to mailto:[email protected].

Complete 4-in-1 Domain Trust Bundle

Markdown / TXT
domain-trust-bundle.md
# Domain Trust Sidecar & Email-TLS Bundle — example.com

- **Domain Trust Readiness Score:** 100 / 100 (Grade A — HARDENED — TRUST & TLS READY)
- **MTA-STS & TLS-RPT:** 30/30 · **BIMI:** 25/25 · **DNS CAA:** 20/20 · **security.txt:** 25/25

## 1. MTA-STS Policy File (`https://mta-sts.example.com/.well-known/mta-sts.txt`)
Serve over HTTPS (`200 OK`, `Content-Type: text/plain; charset=utf-8`, no redirects):
```text
version: STSv1
mode: enforce
mx: aspmx.l.google.com
mx: *.aspmx.l.google.com
mx: smtp.google.com
mx: *.googlemail.com
max_age: 604800
```

### MTA-STS & TLS-RPT DNS TXT Records
- `_mta-sts.example.com` TXT: `v=STSv1; id=20261127000000Z`
- `_smtp._tls.example.com` TXT: `v=TLSRPTv1; rua=mailto:[email protected]`

## 2. BIMI DNS TXT Record
- `default._bimi.example.com` TXT: `v=BIMI1; l=https://example.com/.well-known/bimi-logo.svg; a=https://example.com/.well-known/bimi-vmc.pem`
- DMARC Prerequisite: `p=reject; pct=100` (READY)

## 3. DNS CAA Records (RFC 8659 BIND Zone)
```bind
example.com. 3600 IN CAA 0 issue "letsencrypt.org"
example.com. 3600 IN CAA 0 issue "pki.goog"
example.com. 3600 IN CAA 0 issuewild "letsencrypt.org"
example.com. 3600 IN CAA 0 issuewild "pki.goog"
example.com. 3600 IN CAA 0 iodef "mailto:[email protected]"
```

## 4. RFC 9116 `https://example.com/.well-known/security.txt`
```text
Contact: mailto:[email protected]
Expires: 2027-11-26T00:00:00.000Z
Canonical: https://example.com/.well-known/security.txt
Policy: https://example.com/security-policy
Preferred-Languages: en
```

## Live Verification & Automated Remediation
- Live DoH + Security Scan: https://audit.runglab.dev/?domain=example.com
- Tailored 9-File ReadyCheck Fix Pack ($49): https://www.creem.io/product/prod_6rX3ZZhMCJ5MGugvk75Ogo
- Remote MCP Server (dev.runglab/devtools): https://mcp-server.runglab.dev/
Live DoH + TLS Verification $49 9-File Fix Pack

Verify Live DNS Records or Deploy All 9 ReadyCheck Fixes Together

In our N=140 B2B SaaS Readiness Benchmark, 95.2% (60/63) missed _mta-sts and 79.4% lacked valid RFC 9116 security.txt. Scan your live domain on ReadyCheck (https://audit.runglab.dev), order the tailored $49 9-File Domain Fix Pack, or automate via remote MCP Server dev.runglab/devtools.

RFC Specifications & Provider Requirements

Field / Record Compliant Value Engineering & Rollout Rationale
Modern Google Workspace MX mx: smtp.google.com Required for Google Workspace accounts created after April 2023 using single MX
Legacy Google Workspace MX mx: aspmx.l.google.com + *.aspmx.l.google.com Covers ALT1–ALT4 fallback relays via RFC 8461 single leftmost label wildcard
Legacy googlemail.com MX mx: *.googlemail.com Covers aspmx2.googlemail.com and aspmx3.googlemail.com if present in DNS MX
Recommended Enforce max_age 604800 (7d) to 2419200 (28d) Google Admin Postmaster Tools tracks inbound/outbound MTA-STS encryption compliance

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

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

Verify Google Workspace MX Coverage Before Enforcing

check-google-mx.sh
# Verify every MX record returned for your domain matches at least one mx: line above:
dig +short MX example.com
# Expected modern: 1 smtp.google.com.
# Expected legacy: 1 aspmx.l.google.com., 5 alt1.aspmx.l.google.com., 10 alt3.aspmx.l.google.com.
# Also verify Google's TLS certificate SAN on port 25:
openssl s_client -starttls smtp -connect smtp.google.com:25 -verify_hostname smtp.google.com </dev/null

Step-by-Step Deployment & Key Insights

  1. Run dig +short MX <your-domain> to confirm whether your Google Workspace tenant uses smtp.google.com or legacy aspmx.l.google.com hosts.
  2. Generate mta-sts.txt in testing mode listing all active Google MX hostnames and *.aspmx.l.google.com.
  3. Host the policy file at https://mta-sts.<your-domain>/.well-known/mta-sts.txt and publish _mta-sts + _smtp._tls DNS TXT records.
  4. Review TLS-RPT reports for 7 days to confirm 0 certificate or MX mismatch errors, then switch mode: enforce.
  • Many Google Workspace domains break MTA-STS when upgrading from legacy 5-MX records to smtp.google.com (or vice-versa) if mta-sts.txt omits one set.
  • RFC 8461 wildcards match only ONE leftmost DNS label: *.aspmx.l.google.com matches alt1.aspmx.l.google.com, whereas *.google.com would NOT match alt1.aspmx.l.google.com.
  • Google's inbound mail servers present valid TLS 1.2/1.3 certificates matching each MX hostname, making enforce mode safe once MX patterns match.

Common Configuration Pitfalls to Avoid

  • Writing mx: *.google.com thinking it covers alt1.aspmx.l.google.com — RFC 8461 §4.1 forbids multi-label wildcards.
  • Omitting *.googlemail.com while legacy aspmx2.googlemail.com / aspmx3.googlemail.com MX records remain in DNS.
  • Setting max_age: 31536000 during initial testing — if a typo exists in testing or enforce, remote MTAs cache it for up to a year unless id= is rotated.

More Domain Trust & Email-TLS Guides

RFC 8461 · Cloudflare Workers + Pages

MTA-STS Setup on Cloudflare: Workers, Pages & DNS TXT Guide

Deploy RFC 8461 MTA-STS on Cloudflare in under 5 minutes without a separate origin server: host https://mta-sts.<domain>/.well-known/mta-sts.txt via Cloudflare Pages or a 12-line Worker plus _mta-sts TXT.

← Back to Domain Trust Sidecar Hub · Cluster 1A: SPF & DMARC Builder → · Cluster 4: Security Headers & CSP → · 2026 N=140 B2B Benchmark → · ReadyCheck Live Audit → · $49 9-File Fix Pack →

Frequently Asked Questions

Should I include both smtp.google.com and aspmx.l.google.com in mta-sts.txt?

Yes — unless you are certain your DNS MX only uses one set, including both legacy and modern Google MX patterns prevents outages during Workspace MX migrations.

Does Google Workspace require MTA-STS for Gmail delivery?

MTA-STS protects INBOUND email sent to your Google Workspace domain from STARTTLS downgrade attacks, and signals enterprise security maturity on ReadyCheck and vendor audits.

How do I validate Google Workspace SPF lookups alongside MTA-STS?

Use Cluster 1A (/spf-dmarc/) to keep include:_spf.google.com (3 lookups) safely under the 10-DNS-lookup limit.