SPF record generator

Pick your mail provider and the services that send mail for you. You get one SPF record, and we count how many DNS lookups it takes (at most 10).

Services that send mail for you
What do receivers do with mail from other servers?

Your SPF record

Naam
@
Type
TXT
Waarde

"@" stands for the domain itself. Some providers want the name left empty.

How it works

  1. Pick your mail provider and tick the services that send mail for you.
  2. Choose how strict the record is: "~all" (recommended to start with) or "-all".
  3. Count the lookups. Above 10, remove a service or ask it for a subdomain of its own.
  4. Replace your existing SPF record with this one. Never add a second one next to it.

One SPF record, not two

The most common mistake: adding a second SPF record for a new service. With two records, SPF is invalid. So add the new service to your existing record.

The limit of 10 lookups

Every "include", "a" and "mx" costs a DNS lookup, and an include can contain includes of its own. Above 10, your SPF is invalid. How much a service costs differs per service and can change when that service updates its record. That is why we really count them here, through DNS.

Don't forget a service

Does your invoicing software send invoices, your web shop order confirmations or your CRM quotes from your address? Then that service must be in your SPF, or sign with DKIM for your domain itself. If it is not, that mail will be rejected as soon as DMARC gets stricter.

Frequently asked questions

Should I use "~all" or "-all"?

Both are fine if you have DMARC. Start with "~all": mail from a forgotten service is then treated as suspicious, not rejected straight away. Once you are sure every service is in it, you can use "-all".

Where do I put the SPF record?

In the DNS settings of your domain, as a TXT record on the domain itself (name "@" or empty). That is wherever your name servers are, for example your registrar, Cloudflare or GoDaddy.

My service is not in the list. What now?

Enter that service's include under "Other include". You can find it in the service's documentation, usually under "verify domain" or "SPF".

Related tools

Also from rabbitDev

More free tools from the same maker. No account needed.