Cluster 19 · RFC 7208 · SPF · 10-Lookup Budget Guard

SPF 10-Lookup Counter & PermError Flattener Planner (RFC 7208)

Count recursive RFC 7208 DNS lookups across nested email includes, prevent PermError delivery failures, and compare subdomain isolation vs static IP4 flattening.

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

1. SPF Lookups, DMARC Rollout & Subdomains

RFC 7208 + 7489
Active Senders on Root Domain
RFC 7208 Root SPF Lookup Guard
10 / 10 lookups
NEAR LIMIT (8-10)

Recommended: Offload ESPs (4 detected) to tx.acme.example.com and mkt.acme.example.com. Root lookups drop from 10/10 to <=3/10 with zero stale-IP drift.

Root SPF Record (TXT @)
v=spf1 include:_spf.google.com include:sendgrid.net include:spf.mtasv.net include:mailgun.org include:spf.hubspotemail.net include:mail.zendesk.com -all
DMARC Record (TXT @ _dmarc)
v=DMARC1; p=reject; pct=100; adkim=s; aspf=r; rua=mailto:[email protected]
Transactional vs Marketing Subdomain Isolation Plan
# 1. Corporate / Root Origin (@ acme.example.com) — Human Workspace Mail Only
TXT @ "acme.example.com" -> "v=spf1 include:_spf.google.com -all"
TXT @ "_dmarc.acme.example.com" -> "v=DMARC1; p=reject; pct=100; adkim=s; aspf=r; rua=mailto:[email protected]"

# 2. Transactional Mail Subdomain (tx.acme.example.com) — Password Resets, Receipts & Magic Links
TXT @ "tx.acme.example.com" -> "v=spf1 include:spf.mtasv.net include:amazonses.com -all"
TXT @ "_dmarc.tx.acme.example.com" -> "v=DMARC1; p=reject; pct=100; adkim=s; aspf=s; rua=mailto:[email protected]"

# 3. Marketing & Newsletter Subdomain (mkt.acme.example.com) — Protects Root Reputation
TXT @ "mkt.acme.example.com" -> "v=spf1 include:servers.mcsv.net include:spf.hubspotemail.net ~all"
TXT @ "_dmarc.mkt.acme.example.com" -> "v=DMARC1; p=quarantine; pct=100; adkim=r; aspf=r; rua=mailto:[email protected]"
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
RFC 7208 §4.6.4 Limit <= 10 DNS-Querying Mechanisms Counts nested include, a, mx, ptr, exists, and redirect lookups recursively; >10 triggers SPF PermError
Void Lookups Limit <= 2 NXDOMAIN / Empty Lookups RFC 7208 §4.6.4 also caps void DNS lookups at 2 to prevent broken include amplification
TXT String Chunking <= 255 Chars per String (<512B UDP) DNS providers split >255-char strings automatically, but bloated records risk UDP truncation
Preferred Strategy Subdomain Isolation (0 Root Lookups) Isolating ESPs on tx.<domain> and mkt.<domain> eliminates brittle manual IP4 flattening drift

Consolidated Root SPF Under 10 Lookups

root-spf-txt.txt
acme.example.com. 300 IN TXT "v=spf1 include:_spf.google.com include:spf.mtasv.net include:sendgrid.net -all"

Subdomain Isolation SPF (Zero Root Lookups for ESPs)

subdomain-spf-txt.txt
# Root domain (Human Workspace Mail: 3 lookups total)
acme.example.com. 300 IN TXT "v=spf1 include:_spf.google.com -all"
# Transactional Mail (Postmark / Amazon SES / Resend)
tx.acme.example.com. 300 IN TXT "v=spf1 include:spf.mtasv.net include:amazonses.com -all"
# Marketing Mail (Mailchimp / HubSpot)
mkt.acme.example.com. 300 IN TXT "v=spf1 include:servers.mcsv.net include:spf.hubspotemail.net ~all"

Implementation Steps & Key Insights

  1. Toggle all active email providers in Mode 1 above to calculate exact recursive RFC 7208 lookups (including nested includes like Google Workspace = 3, HubSpot = 2).
  2. Check whether custom mx, a, or legacy ESP includes push your root SPF above 8/10 (warning) or >10/10 (PermError).
  3. Offload bulk and transactional ESPs onto dedicated Return-Path subdomains (tx.<domain> and mkt.<domain>) instead of manually flattening volatile IPv4 ranges.
  4. Verify live DNS propagation and nested lookup expansion on MailAuth Pro (mail.runglab.dev) and ReadyCheck (audit.runglab.dev).
  • Many SaaS companies hit 11–14 recursive lookups unknowingly because single includes like _spf.google.com (3), spf.protection.outlook.com (2), and spf.hubspotemail.net (2) expand into multiple nested netblock TXT queries.
  • Publishing two separate v=spf1 TXT records on the same hostname triggers an immediate RFC 7208 PermError across Gmail, Microsoft 365, and Yahoo.

Common Deliverability & DNS Pitfalls

  • Using deprecated ptr mechanisms (expensive lookups and unreliable reverse DNS).
  • Static manual IP4 flattening without automated updates — when an ESP rotates outbound IPs, legitimate customer receipts suddenly fail SPF.
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 include:_spf.google.com count as 1 lookup or 3 lookups?

It counts as 3 recursive RFC 7208 DNS lookups: 1 for _spf.google.com plus 2–3 nested _netblocks.google.com TXT lookups inside it.

Why is subdomain isolation safer than static SPF IP flattening?

Static IP4 flattening turns dynamic ESP includes into hardcoded CIDRs that break silently whenever an ESP adds new relay IP blocks. Subdomains keep your root SPF minimal while letting ESPs manage their own IPs.

How can I verify live recursive SPF lookups on my production domain?

Run a live audit on https://mail.runglab.dev/?ref=tools-mailauth (MailAuth Pro $39) or https://audit.runglab.dev/?ref=tools-mailauth (ReadyCheck $49).