Free SPF generator

SPF record 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.

1Where your mailboxes are

The company that runs your email inbox. Most domains have just one.

2Anything else that sends email as you

Newsletters, your website or app, your helpdesk or CRM. Only tick what you use today. Skip this step if you only send from your inbox.

Newsletters and marketing

Email from your website or app

Helpdesk and CRM

3A service we don't list

Its setup guide tells you what to add to SPF. It usually starts with include:. Paste it here. Add several with spaces between them.

4Your own servers

Most people skip this. Only tick these if a server you run sends email itself.

5Everyone else

What inboxes should do with email from a server that isn't on your list.

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.

Your record

Add this record to your DNS

  1. Sign in where your domain's DNS is managed. That's usually the company you bought the domain from, such as GoDaddy or Namecheap, or Cloudflare if you've moved your DNS there.
  2. Open the DNS settings for yourcompany.com. The page may be called DNS, DNS records, Manage DNS or Advanced DNS. Look for a TXT record whose value starts with 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.
  3. No SPF record yet? Choose Add record, and set Type to TXT.
  4. Type @ into Name. It stands for the domain itself. Some providers want this box left empty instead, or want yourcompany.com.
  5. Copy the Value below into Value, leave TTL as it is, and save.

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.

TypeNameValueTTL
TypeTXT
Name@
Valuev=spf1 ~all
TTLAuto

Added 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.

See the full SPF check

Tools for this job

Sponsored

EasyDMARC

EasyDMARC watches your SPF, DKIM and DMARC for you and turns DMARC reports into plain English.

Visit EasyDMARC

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.

Visit Premium Inboxes

What goes in an SPF record

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.

PartNeeded?What it does
v=spf1RequiredMarks the record as SPF. Always first.
include:UsuallyAdds a service that sends for you, such as Google Workspace or Mailchimp. Costs at least one lookup.
a, mxSometimesAllows your website’s server or your inbox servers. Only add them if those servers really send email.
ip4:, ip6:SometimesAllows a fixed address or range. Costs no lookups.
~all, -allRequiredTells inboxes what to do with everyone else. Always last.

Add it in three steps

01

List every sender

Think beyond your inbox: newsletters, your helpdesk, CRM, invoicing and booking tools often send as you too.

02

Publish one TXT record

Add it at the root of your domain (Name: @). If an SPF record already exists, replace it rather than adding a second.

03

Check it worked

Run the SPF checker after a few minutes, then set up DKIM and DMARC.

SPF record generator questions

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