Build a syntax-verified v=spf1 DNS TXT record for Google Workspace, Microsoft 365, Amazon SES, SendGrid, Mailgun and custom IPs while tracking your RFC 7208 10-DNS-lookup budget in real time.
@)v=spf1 mx include:_spf.google.com ~all
SPF alone does not prevent Display-Name spoofing or satisfy Gmail/Yahoo 2026 bulk sender rules. Pair your SPF record with DMARC and verify your email list before sending:
Sender Policy Framework (RFC 7208) publishes an authoritative list of IPv4/IPv6 addresses and cloud mail providers authorized to send email on behalf of your domain in the Return-Path (Envelope From) address. However, two fatal mistakes break SPF across nearly 30% of B2B domains: publishing multiple v=spf1 TXT records on the same host (which triggers an immediate SPF PermError), or stacking too many include: mechanisms and exceeding the RFC 7208 hard ceiling of 10 recursive DNS lookups.
Our interactive SPF Generator automatically merges your providers into a single compliant v=spf1 string and calculates the exact recursive DNS lookup cost before you publish to DNS. For example, adding the official Google Workspace SPF record (include:_spf.google.com) consumes 4 nested DNS lookups (_netblocks.google.com, _netblocks2.google.com, _netblocks3.google.com), Microsoft 365 (include:spf.protection.outlook.com) consumes 2 lookups, and SendGrid (include:sendgrid.net) consumes 1 lookup. Always use ip4: and ip6: mechanisms (which cost 0 DNS lookups) for your dedicated servers and end with ~all (SoftFail) or -all (HardFail).
| Cloud Email Provider | Official SPF Include Mechanism | Recursive DNS Lookup Cost (Max 10 Total) |
|---|---|---|
| Google Workspace SPF Record (Gmail) | include:_spf.google.com | 4 DNS Lookups (includes _netblocks1–3.google.com) |
| Microsoft 365 / Exchange Online | include:spf.protection.outlook.com | 2 DNS Lookups |
| Amazon SES / SendGrid / Postmark | include:amazonses.com / include:sendgrid.net / include:spf.mtasv.net | 1 DNS Lookup each |
| Dedicated IPv4 / IPv6 Mail Servers | ip4:198.51.100.0/24 ip6:2001:db8::/32 | 0 DNS Lookups (Best practice to stay under the 10-lookup ceiling) |