Skip to content
Black FridayHalf price on the DMARC fixRegular price $199, Black Friday price $99, Cyber Monday price $129Ends Sunday, Nov 29Claim it
Cyber Monday35% off the DMARC fixRegular price $199, Black Friday price $99, Cyber Monday price $129Ends Monday, Dec 7Claim it
DMARC Done

Free SPF record generator

Build one SPF record for every service that sends as you

Tick your mailbox provider and every service that sends email as you. You get one SPF record to paste, with its DNS lookups counted against the limit of 10.

1. Your mailbox provider
2. Services that send email as you
3. Ending
Type TXTHost / Name @
v=spf1 ~all

Pick your mailbox provider and services to count the DNS lookups.

How to build your SPF record

  1. Start with your mailbox provider: the service that hosts your email, such as Microsoft 365 or Google Workspace.
  2. Add every other service that sends email from your domain: newsletters, your helpdesk, your CRM, invoicing, website forms.
  3. Choose the ending. ~all asks receivers to treat email from unlisted servers as suspicious; -all states that those servers are not allowed to send as you, and each receiver decides what happens to that email.
  4. Publish one TXT record at your domain (host @). If you already have a v=spf1 record, replace it: a domain may have only one.

Some services need no include at all, because they send from their own domain and sign with DKIM for yours; their setup pages say so. Services whose include is specific to your account, such as HubSpot, are not in the list: copy the include from your account. If your provider's help page gives a regional include, use that one. SendGrid (with manual setup) and Mailgun put their SPF record on the domain or subdomain you set up in their dashboard, which may not be your main domain, so check their setup page before you add them here.

Our setup guides show the exact steps for Microsoft 365, Google Workspace, GoDaddy, Cloudflare and others.

SPF record examples

Google Workspace

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

Microsoft 365

v=spf1 include:spf.protection.outlook.com -all

Zoho Mail

v=spf1 include:zohomail.com ~all

Google Workspace and Salesforce

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

Google Workspace and Zendesk

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

Google Workspace and Mailjet

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

Why the lookup count matters

Every include costs at least one DNS lookup, and includes inside includes count too. RFC 7208 caps an SPF check at 10 DNS lookups. Above that, receivers stop and return a permanent error, and SPF does not pass. The generator counts the lookups by resolving each include live, the same way our SPF checker does. Over the limit already? Read SPF too many DNS lookups.

Questions about SPF records

Can I have two SPF records?

No. A domain may publish only one v=spf1 record. With two, receivers return a permanent error and neither counts. Put every service in one record.

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

Its setup pages list the include, usually under domain authentication or SPF. Add it as include: followed by that name, before the ending.

Should my record end in ~all or -all?

~all (softfail) asks receivers to treat email from servers you have not listed as suspicious. -all (fail) states that those servers are not allowed to send as you, and what happens to that email is up to the policy of each receiver. Start with ~all, and move to -all once every service that sends as you is listed.

Do I need SPF if I have DKIM?

SPF is your second way to pass DMARC: DMARC passes when SPF or DKIM passes for your domain, so SPF covers mail from any service that does not sign with DKIM for you. Google's sender guidelines ask every sender for SPF or DKIM, and bulk senders for both.

Does the generator save anything?

No. The record builds in your browser. Counting the lookups sends the record, not your domain, to our server, which resolves the includes and does not store the record.

More free tools

  • SPF checker

    Counts the DNS lookups your SPF record needs against the limit of 10, and flags the errors that make SPF fail.

  • DKIM checker

    Looks up DKIM keys on the selector names popular email services use, plus one you enter, and grades each key.

  • DMARC record generator

    Builds a DMARC record from your policy and report addresses, in your browser.

Black Friday

Half price on the DMARC fix

Regular price $199, Black Friday price $99, Cyber Monday price $129Black FridayCyber Mondayper domain, one-time

We take your domain safely to p=reject, so nobody can send email pretending to be you. The Black Friday price is applied at checkout, no code needed.

Full refund if we do not reach p=reject in 60 days, under our refund conditions.

--days--hrs--min--sec

Ends Sunday, Nov 29, 11:59 PM Pacific. Skip the check and buy

Cyber Monday

35% off the DMARC fix

Regular price $199, Black Friday price $99, Cyber Monday price $129Black FridayCyber Mondayper domain, one-time

We take your domain safely to p=reject, so nobody can send email pretending to be you. The Cyber Monday price is applied at checkout, no code needed.

Full refund if we do not reach p=reject in 60 days, under our refund conditions.

--days--hrs--min--sec

Ends Monday, Dec 7, 11:59 PM Pacific. Skip the check and buy