SPF GENERATOR

Build an SPF record and stay under 10 lookups

List the services that send email as your company and copy one SPF record. The tool counts DNS lookups as you go, because the most common SPF failure is going over the limit of 10.

Build your record

Which services send email as your domain?

Separate with commas or spaces. Ranges like 203.0.113.0/24 work. These use no lookups.

Optional.

A domain from your provider’s setup page, like spf.example.com. Separate several with commas.

What about mail from anyone else?
0 of 10 DNS lookups used.
  • Note: No senders are listed yet, so this record would soon block or flag all your mail.

Add one TXT record on your root domain (the name is usually @) with this value.

TXT value
v=spf1 ~all

A domain can have only one SPF record. If you already have one, replace it instead of adding a second. Then run the domain check to confirm it is live.

Check a record you already have

The TXT value starting with v=spf1.

How it works

SPF is a list of who may send mail for your domain. Each service you use, like Google Workspace or SendGrid, publishes an include you add to your record.

Why the lookup count matters

Every include is a DNS question the receiver must ask, and includes can contain more includes. Google Workspace alone uses four. The tool counts the mechanisms in your record, and adds the nested ones where we know them. An include we do not know about can use more, so treat the total as a minimum.

If you run out

  • Remove services you no longer use.
  • Swap an a or mx term for the exact ip4 addresses. Those cost nothing.
  • Send marketing and support mail from a subdomain, which gets its own SPF record and its own 10 lookups.

Not every service is in the list. Your provider’s setup page gives the include to type under Other services.

Check your domain now

See how your SPF, DMARC, security headers and security.txt look from the outside, graded with a fix for each. Free, no account.

Check your domain

Coprsetr Pro watches up to 5 domains every week and emails you when something slips.

Questions

What is an SPF record?

It is a TXT record on your domain that lists the servers and services allowed to send email as you. Receivers compare the sending server with the list and mark or reject mail from anywhere else.

What is the limit of 10 DNS lookups?

RFC 7208 lets a receiver follow at most 10 include, a, mx, ptr, exists and redirect terms while checking one SPF record. Go over it and the check returns a permanent error, so SPF fails for all your mail. ip4 and ip6 terms cost nothing.

Should I end with ~all or -all?

Most companies use ~all. It marks unlisted senders as suspect and works well with DMARC, which does the blocking. Use -all once you are certain the list is complete.

Can I have more than one SPF record?

No. A domain must have exactly one record that starts with v=spf1. Two records make SPF fail. Merge them by combining the includes into one line.

Keyboard shortcuts

⌘K or /
Search everything
?
This list
g h
Home
g l
Guide library
g f
Find my path
g t
Templates
g p
Playbooks
g w
My workspace
g d
Deadline calendar
g c
Regulatory changes