Email DNS SPF, DKIM & DMARC Policy Parser
Validate raw TXT records for SPF lookup limits (RFC 7208 max 10 DNS lookups), DKIM key flags, and DMARC enforcement posture (`p=none` vs `quarantine`/`reject`).
Input & Options
Local JS Execution
Parsed Output & Diagnostics
Ready
Status
...
Generated Output
SPF DNS Lookup Cost Reference
| SPF Mechanism | Counts Toward 10-Lookup Cap? | Best Practice |
|---|---|---|
| ip4: / ip6: | No (0 lookups) | Prefer explicit CIDRs whenever static IPs exist |
| include: / a / mx / exists / redirect= | Yes (1+ each, recursive) | Keep total <= 7 to leave safety margin for nested includes |
| ptr | Yes + Deprecated in RFC 7208 | Remove ptr; unreliable reverse DNS slows verification |
| ~all vs -all vs ?all/+all | No | Use -all or ~all paired with DMARC p=quarantine/reject |
Parser Methodology & Privacy Guarantees
Parses SPF qualifiers and mechanisms against RFC 7208 lookup rules, inspects DMARC tags (`p`, `sp`, `pct`, `adkim`, `aspf`, `rua`, `ruf`) per RFC 7489, and validates DKIM version/key length.
- Counts top-level DNS-querying SPF mechanisms (`include`, `a`, `mx`, `ptr`, `exists`, `redirect`) toward the strict 10-lookup RFC ceiling.
- Audits `+all` (open relay spoof risk), `?all` (neutral), and deprecated `ptr` directives.
- Evaluates DMARC alignment strictness (`adkim`/`aspf`), rollout percentage (`pct`), and reporting URIs (`rua`).
Scope & limitations: Top-level lookup count does not run live recursive DNS queries for nested `include:` chains inside third-party ESP records.
Frequently Asked Questions
Why does exceeding 10 SPF DNS lookups break email delivery?
RFC 7208 limits SPF evaluation to 10 DNS-querying mechanisms to prevent amplification DoS attacks. Exceeding 10 causes receivers to return PermError, failing SPF checks.
Does Google/Yahoo bulk sender compliance allow p=none?
Monitoring starts with p=none + rua= reporting, but true spoofing protection requires moving to p=quarantine or p=reject once legitimate senders pass DKIM/SPF.
What does adkim=s vs adkim=r mean?
Relaxed (r) allows subdomains to align with the organizational domain; strict (s) demands exact domain match between Header From and DKIM d= tag.