SPF record generator

Create your SPF record. Tick who sends, copy the record.

Type in your domain and press Start. We read the SPF record it has now and list the services that send email, with the ones it already names ticked. Tick any others, and copy the one record we write into your DNS, with its DNS lookups counted against the limit of ten.

Source: RFC Editor, RFC 7208.

  • Starts from your current record
  • No account, nothing to install
  • Counts the lookups

What the generator asks, and why

Who sends as you

Tick each service that sends email from your domain. Each service's include was checked against public DNS on 12 November 2026.

Your own servers

Any server of yours that sends email itself, by its address or range. An address costs no DNS lookups.

The ten-lookup limit

Each service costs DNS lookups, and SPF allows ten. The page counts them as you tick, and warns from 8.

How it ends

~all marks everyone else as suspicious while you find every sender. -all asks inboxes to refuse them once you have.

Reading the record

DNS · TXT · yourcompany.co.ukExample
v=spf1 ip4:203.0.113.10 include:spf.protection.outlook.com ~all

v=spf1 says this TXT record is an SPF record.

ip4:203.0.113.10 lets one of your own servers send, at no DNS lookup.

include:spf.protection.outlook.com lets Microsoft 365 send for you. An include costs at least one lookup, and more for each include inside it.

~all marks everyone not listed as suspicious. -all asks inboxes to refuse them.

Why a record breaks without anyone noticing, and the limit of ten in depth: SPF, explained.

Questions

How do I create an SPF record?

Type your domain into the box at the top of this page and press Start. The list of services appears, with the ones your current record names already ticked. Tick any others, then copy the record it writes and publish it at your DNS host as a TXT record on the domain itself.

Can I have two SPF records?

No. A domain may publish one, and with two, inboxes read both as an error. The record this page writes replaces the one you have.

What is the ten lookup limit?

Checking an SPF record may cost at most ten DNS lookups. Past ten the result is an error, and the record protects nothing. Each service you add spends some of them.

Should it end in -all or ~all?

In ~all while you are still finding every service that sends as you, and in -all once you have. ~all marks other senders as suspicious, and -all asks inboxes to refuse them.

A service I use is not in the list.

Its own set-up page gives the line to add, starting include:. Paste the part after the colon into Another service, one a line.

What should a domain that sends no email publish?

An SPF record of v=spf1 -all, which says no server may send as it. Pair it with a DMARC record of v=DMARC1; p=reject.

Start with the free check.

It reads your SPF, DKIM and DMARC records in about 30 seconds, and tells you where you stand today.