SPF Record Generator: Build a Valid v=spf1 Record

Free SPF record generator: build correct v=spf1 records with include, ip4, ip6, mx and all mechanisms.

100% Free · No Sign Up ⚡ Instant Builder 🛡️ Runs in Your Browser · No Uploads
RFC 7208 Builder
Try instantly:

Sending services

Policy for everyone else

Your SPF record

 

Not sure which include: belongs to which provider? The ESP DNS Settings Matrix lists the exact SPF mechanism for all 44 platforms.

Syntax the SPF generator validates

CheckRuleSource
Single recordOne v=spf1 per nameRFC 7208
Mechanism syntaxValid include/a/mx/ip4/ip6/all usageRFC 7208
Lookup budgetWarning near the 10-lookup capRFC 7208 section 4.6.4

Frequently asked questions

What happens if I have two SPF records?+

RFC 7208 requires exactly one v=spf1 record per domain. Multiple records cause a permerror, which means receivers ignore your SPF entirely. Merge all senders into a single record.

What is the difference between ~all and -all?+

~all (softfail) marks unlisted senders as suspicious but delivers their mail. -all (hardfail) instructs receivers to reject unlisted senders. Use ~all until you are confident every legitimate sender is listed.

Do I need ip4: and ip6: mechanisms?+

Only if you send email from servers not covered by an include: mechanism. Most email services provide include: directives that already cover their sending IPs.

Related

Last verified: 2026-11-10