๐Ÿ“ง SPF ยท record inspector & builder

Check Sender Policy Framework records โ€” prevent email spoofing
๐Ÿ“ง
Enter a domain, then click "Check SPF"
SPF records define which mail servers are authorized to send email for your domain.
๐Ÿ” SPF = Sender Policy Framework ๐Ÿ“ Format: v=spf1 ip4:192.0.2.0/24 include:_spf.example.com -all โšก Using Google DNS over HTTPS

๐Ÿ”ง SPF Record Generator

Build your SPF record step by step:

v=spf1 ip4:192.0.2.1 include:spf.protection.outlook.com -all

๐Ÿ“Š DNS Lookup Limits

โš ๏ธ Important: SPF records are limited to a maximum of 10 DNS lookups. Each include:, a:, mx:, and redirect= counts as one lookup.
MechanismLookups
ip4/ip60 (direct IP)
include:1 + lookups in included record
a:1-2 (A + AAAA)
mx:1-2 + MX lookups

๐Ÿ“‹ SPF Mechanism Reference

MechanismDescriptionExample
ip4:Matches specific IPv4 address or rangeip4:192.0.2.0/24
ip6:Matches IPv6 address or rangeip6:2001:db8::/32
a:Matches domain's A/AAAA recordsa:mail.example.com
mx:Matches domain's MX serversmx or mx:example.com
include:Includes another domain's SPFinclude:spf.protection.outlook.com
exists:Tests if domain existsexists:%{i}.spf.example.com
redirect=Redirects to another SPFredirect=_spf.example.com
exp=Explanation for failuresexp=explain._spf.example.com

โšก Qualifiers

QualifierMeaningResult
+Pass (default)โœ…
-Fail (hard fail)โŒ
~SoftFailโš ๏ธ
?Neutralโ“

โœ… SPF Best Practices (2026)

  • ๐Ÿ”‘ Use -all (hard fail) - Soft fails (~all) can be ignored by some receivers
  • ๐Ÿ“Š Stay under 10 DNS lookups - Each include: counts against this limit
  • ๐Ÿ”„ Avoid PTR mechanism - Deprecated and unreliable
  • ๐Ÿ“ Only one SPF record per domain - Multiple records cause "permerror"
  • โšก Use ip4/ip6 instead of a/mx when possible - Saves DNS lookups
  • ๐Ÿ“‹ Keep record under 512 bytes - Avoid UDP packet fragmentation

๐Ÿ”ง Common Issues

๐Ÿšซ Too many DNS lookups: If your SPF has more than 10 lookups, receivers will reject it with "permerror"
๐Ÿ”„ Recursive includes: An include loop (e.g., A includes B, B includes A) will hit the 10-lookup limit
๐Ÿ“ Void lookups: More than 2 void lookups (domains that don't exist) cause permerror
๐Ÿ”
EasyDMARC SPF Tools

Check, generate & validate SPF

๐Ÿ“Š
DMARCIAN SPF Survey

Detailed SPF analysis

โšก
Kitterman SPF Validator

Classic SPF testing tool

๐Ÿ“จ
Mail Tester

Full email authentication check