SPF Record Setup & 10-Lookup Limit Guide
Sender Policy Framework (SPF) tells receiving mail servers which IP addresses and third-party providers are authorized to send email on behalf of your domain.
Recommended SPF Record Format
Host: @ Type: TXT Value: v=spf1 include:_spf.google.com ~all
Hardfail (-all) vs. Softfail (~all)
Use ~all while onboarding new email tools so legitimate misconfigured mail is flagged rather than dropped. Once all senders are verified in DMARC reports, switch to -all for strict enforcement.
Common SPF Mistakes
- Multiple v=spf1 records: Publishing two SPF TXT records triggers an immediate PermError. Always merge them into one record.
- Exceeding 10 DNS lookups: Each
include:,a,mx, andredirect=counts toward the RFC 7208 limit of 10 lookups. - Using +all: Allows anyone on the internet to spoof your domain.