What SPF record generator produces
An SPF record is a single TXT record listing every source allowed to send mail with your domain in the envelope sender. This free SPF record generator turns that list into the exact syntax receivers expect, so you are not hand-writing a grammar you use twice a year.
Receiving servers read the SPF record at delivery time, compare the connecting IP against it, and apply the qualifier you chose. The SPF record generator emits the mechanisms in conventional order and keeps the record inside the ten DNS lookup limit.
SPF record syntax the generator emits
Every SPF mechanism the generator can emit, and what each one authorises inside your SPF record.
- ip4:x.x.x.x β authorizes a single IPv4 address
- ip4:x.x.x.x/24 β authorizes an IPv4 CIDR range
- ip6:::1 β authorizes an IPv6 address
- include:domain.com β imports the SPF record of another domain (used for third-party senders)
- a β authorizes the domain's A record IP
- mx β authorizes the domain's MX record IPs
Choosing the all qualifier
The final SPF mechanism decides what happens to everything the SPF record does not list. SPF record generator no signup means you can rebuild the SPF record as often as you like while you tune it.
| Qualifier | Behavior |
|---|
| +all | All senders pass. Never use this β it defeats SPF entirely. |
| ~all | Softfail β unauthorized mail is accepted but flagged. Use while testing. |
| -all | Hard fail β unauthorized mail is rejected. Use in production. |
| ?all | Neutral β no policy stated. Rarely useful. |
Common provider includes
Paste these SPF includes into the generator if you send through any of them; each one adds its own SPF lookups.
- Google Workspace: include:_spf.google.com
- Microsoft 365: include:spf.protection.outlook.com
- Mailchimp: include:servers.mcsv.net
- SendGrid: include:sendgrid.net
- Mailgun: include:mailgun.org
The ten-lookup limit
Every include:, a, mx, ptr, and exists: mechanism costs one DNS lookup while SPF is evaluated, and RFC 7208 caps the total at ten. Exceed it and receivers return a permerror, which many treat as having no SPF at all. Our SPF record generator keeps the SPF output flat and warns you before the SPF record grows past that ceiling.
SPF Works Best With DKIM and DMARC
SPF alone protects the envelope sender (Return-Path), not the visible From address. For complete spoofing protection, you also need DKIM to sign your messages and DMARC to align authentication results with the From header. Together, these three standards form the email authentication baseline expected by Gmail, Outlook, and Yahoo Mail.
After setting up SPF, make sure your lists are clean too. Email verification removes invalid and risky addresses before you send, which keeps bounce rates low and protects the sender reputation you build with proper authentication. You can also verify addresses in bulk via bulk email verification or integrate verification directly into your stack via the email validation API.