Free SPF record generator

Pick the services that send email for your domain and copy the TXT record. The generator counts DNS lookups as you go, including the ones inside each provider's include, so you see the 10-lookup limit before you hit it.

Who sends email for this domain?

Tick every service that sends from your address: your mailbox provider, plus any newsletter tool, CRM or app.

Your own servers (optional)

IPv4 or IPv6 addresses or ranges, separated by commas or new lines. They cost no lookups.

Copy these from the service's DNS setup page, without the include: prefix. We cannot see inside them, so each counts as at least 1 lookup.

What should happen to mail from other servers?

Your SPF record

Tick at least one sender above to build your record.

How to add it

  1. Sign in where your domain's DNS is managed. That is often the registrar, such as GoDaddy or Namecheap, or Cloudflare.
  2. Look for a TXT record that starts with v=spf1. If there is one, edit it. If there is none, add a new TXT record.
  3. Paste the value, set the host to @ and save.
  4. Wait for DNS to update, usually a few minutes and sometimes a few hours, then run our checker on your domain.

Questions about SPF

What is an SPF record?

A TXT record in your domain's DNS that lists the servers allowed to send email for the domain. Receivers such as Gmail and Outlook compare the sending server with that list and treat mail from anywhere else with suspicion.

Why is there a limit of 10 lookups?

The SPF standard caps each check at 10 DNS lookups so a record cannot overload receivers. Every include, a, mx, ptr, exists and redirect costs one, and so does everything inside each include. Past 10, the whole record fails.

Should the record end with ~all or -all?

Start with ~all while you confirm that every service sending for you passes, then move to -all. Once you have DMARC, the difference matters less, because DMARC decides what happens to mail that fails.

Does SPF alone keep my mail out of spam?

No. Receivers check SPF together with DKIM and DMARC, and a new mailbox still needs a sending history. Warm-up builds that history.

My service is not in the list. What do I enter?

Its DNS or domain-authentication page gives an include value such as include:spf.example.com. Paste the part after include: into Other includes.

My domain sends no email at all. What should it have?

The record v=spf1 -all. It tells receivers that no server may send for the domain, which makes it harder to use in forged mail.

The record follows RFC 7208, the SPF standard.

Records done? Now build your sender reputation.

SPF and DMARC prove the mail is yours. Warm-up gives a new mailbox the sending history that inboxes look for.

Get started