Free SPF generator
Tick everything that sends email as you. This SPF record generator writes the record and counts every DNS lookup before you publish, so nothing breaks on day one.
Just the domain, like yourcompany.com. No www or https:// needed.
Pick the services that send email for you. A record with nothing in it tells inboxes nobody may send as you.
DNS lookups
0 of 10
Each service costs at least one lookup, and some use more behind the scenes. Count them for real before you publish.
Sponsored
EasyDMARC
Over 10? EasyDMARC flattens SPF so it stays under the limit and keeps it up to date.
Your record
It updates as you change the options above.
@v=spf1 ~allIt works the same at every DNS provider, such as Cloudflare, GoDaddy, Namecheap, Squarespace or 123 Reg. Only the words change: Name may be called Host, Value may be called Content, Text or TXT value, and TTL may say Automatic or 1 hour.
v=spf1. If there is one, edit it instead: replace its value with yours, save, and you're done. Two SPF records break both, so never add a second.@ into Name. It stands for the domain itself. Some providers want this box left empty instead, or want yourcompany.com.Most providers show the change within an hour, though it can take up to a day. Then run the SPF checker on yourcompany.com to check it's live.
An SPF record is one line of text. It starts with v=spf1, lists who may send for you, and ends with a rule for everyone else.
| Part | Needed? | What it does |
|---|---|---|
v=spf1 | Required | Marks the record as SPF. Always first. |
include: | Usually | Adds a service that sends for you, such as Google Workspace or Mailchimp. Costs at least one lookup. |
a, mx | Sometimes | Allows your website’s server or your inbox servers. Only add them if those servers really send email. |
ip4:, ip6: | Sometimes | Allows a fixed address or range. Costs no lookups. |
~all, -all | Required | Tells inboxes what to do with everyone else. Always last. |
01
Think beyond your inbox: newsletters, your helpdesk, CRM, invoicing and booking tools often send as you too.
02
Add it at the root of your domain (Name: @). If an SPF record already exists, replace it rather than adding a second.
03
Run the SPF checker after a few minutes, then set up DKIM and DMARC.
Wherever your domain’s DNS is managed, usually your domain registrar or Cloudflare. Add a TXT record with the name @ (or leave the name blank) and paste the record.
Edit the existing one or replace it with the new record. A domain can only have one SPF record; two break SPF for all your mail.
Some services hide extra includes inside their own record. Mailgun, for example, uses five. Count all lookups shows the real total before you publish.
Yes. Every domain you send from needs its own SPF, DKIM and DMARC, or Gmail and Outlook treat its mail as suspect from the first email.
Step-by-step fix guides: SPF record syntax, with examples · SPF record for Google Workspace · How to add a TXT record in GoDaddy · Multiple SPF records