Free SPF generator
This SPF record generator writes your SPF record and counts every DNS lookup before you publish, so nothing breaks on day one. Tick everything that sends email as you.
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 you add makes inboxes look up its list of servers, and some services do several lookups behind the scenes. SPF allows 10 lookups in total. At 11, SPF fails for every email you send, not just one service's, and your email can land in spam. So keep the list short: only add services you send from today, and remove any you've stopped using.
Sponsored
EasyDMARC
Over 10? EasyDMARC flattens SPF so it stays under the limit and keeps it up to date.
Your record
v=spf1. If there is one, edit it instead: replace its value with the one below, 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.It 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.
Your record. It updates as you change the options above.
@v=spf1 ~allAdded it? Check it's in your DNS
Press Check now after you save the record. Most DNS providers publish it within minutes, sometimes up to an hour.
What's in your DNS now
Tools for this job
Sponsored
EasyDMARC
EasyDMARC watches your SPF, DKIM and DMARC for you and turns DMARC reports into plain English.
Sponsored
Premium Inboxes
Setting up new sending domains? Premium Inboxes adds SPF, DKIM and DMARC for you and loads the inboxes into your sending tool.
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