NewThe Clay GTM Engineer Cohort starts on 18th of January 2027.  20 seats, with Clay scholarships for selected students.
Home
/
Calculators
/
SPF record generator
Free SPF generator

SPF record generator

Build a valid SPF record in seconds. Tick the services that send email for your domain, add your own servers and copy the TXT record into your DNS.

1. Who sends email for your domain?

2. Your own servers (optional)

3. Policy for everyone else

Your SPF record

Type
TXT
Host / name
@ (your root domain)
DNS lookups
Length

Only publish one SPF record per domain. If you already have one, merge the includes into it instead of adding a second.

Setting up domains for cold email? We buy, authenticate and warm every sending domain for you, then run the campaigns.

Talk to our team →

How to create an SPF record

  1. List everyone who sends as your domain. Your inbox provider (Google Workspace or Microsoft 365), plus tools like your CRM, help desk or marketing platform.
  2. Tick them above and paste any other include domains your tools give you. Add IP addresses only if you run your own mail servers.
  3. Choose a policy. Use ~all while you set things up, then consider -all once you are sure every sender is listed.
  4. Publish it. Add a TXT record at @ (your root domain) with the generated value. Changes usually go live within an hour.

What SPF does

SPF (Sender Policy Framework) tells receiving mail servers which servers are allowed to send email for your domain. If a message comes from a server that is not listed, it fails SPF and is more likely to be rejected or sent to spam.

The 10 DNS lookup limit

SPF allows a maximum of 10 DNS lookups. Every include:, a and mx counts as one, and includes can contain more lookups of their own. Go over 10 and SPF fails for every email. Remove tools you no longer use, and check the finished record with an SPF checker.

SPF for cold email domains

Sending domains used only for cold email usually need just one include: _spf.google.com for Google Workspace or spf.protection.outlook.com for Microsoft 365. Keep them lean, and pair SPF with DKIM and DMARC.

Frequently asked questions

What SPF include do I use for Google Workspace?

Use include:_spf.google.com. A Google-only domain needs v=spf1 include:_spf.google.com ~all.

What SPF include do I use for Microsoft 365?

Use include:spf.protection.outlook.com. A Microsoft-only domain needs v=spf1 include:spf.protection.outlook.com ~all.

Should I use ~all or -all?

~all (soft fail) is the safe default and works well alongside DMARC. -all (hard fail) is stricter: only switch once you are certain every service that sends for you is listed.

Can I have more than one SPF record?

No. A domain must have exactly one SPF record. Two SPF records cause SPF to fail. Merge all your includes into a single record.

Where do I add my SPF record?

In your domain's DNS settings (for example Cloudflare, GoDaddy or Namecheap). Add a TXT record with host @ and paste the generated value.

Is SPF enough to stop my email going to spam?

No. SPF is one of three checks. You also need DKIM and a DMARC policy, plus a good sending reputation and relevant copy.

Related free tools

Done for you

Want your sending domains set up properly?

We buy, authenticate and warm every cold email domain, then run the campaigns that book meetings.