Free tool · No sign-up

SPF record generator

Pick the services that send email as your domain and get one SPF record to paste into your DNS, with a lookup count so it doesn't silently break.

Services that send email as your domain
Policy for everything else

Your SPF record

TXT record on your domain (host: @)

v=spf1 include:_spf.google.com ~all

1 DNS lookup in the record itself, of the 10 allowed. Includes usually contain more.

How it works

Each service's include comes from that provider's own setup documentation. Where a provider says you don't need an include, or gives every account its own, we say so instead of adding a generic one.

A domain may have only one SPF record, so list every service in it. The generator counts the lookups the record makes and, if you like, counts the nested lookups inside each include live.

Start with ~all (soft fail). Move to -all once DMARC reports show all your own mail passing.

Questions

  • Where do I add the record?

    As a TXT record on the domain itself (the host is usually written @) at whoever hosts the domain's DNS. The nameserver lookup tells you who that is. If there's already a v=spf1 record, replace it rather than adding a second.

  • ~all or -all?

    ~all marks mail from unlisted servers as suspicious; -all says to reject it. With DMARC in place either works; ~all is safer while you're still finding every service that sends for you.

  • I'm over 10 lookups. What can I do?

    Drop services you no longer use, move bulk or marketing email to a subdomain with its own SPF record, or replace a provider's include with the ip4 ranges it publishes, if it publishes stable ones.

Read more

More free tools

Now open

Create your account in a couple of minutes and try Dialvo free for 7 days.

Starter is $99 a month after the free trial. Compare plans