SPF record for Google Workspace

If Google Workspace is the only thing that sends email for your domain, publish one TXT record on the domain itself (host @) with this value:

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

Adding it

  1. Open your DNS provider (where your domain's records live, not necessarily where you bought it).
  2. Look for an existing TXT record that starts with v=spf1. If there is one, edit it. Don't add a second one.
  3. Add a TXT record on @ (some providers want the bare domain, or leave the host empty) with the value above.
  4. Wait for it to show up. Most providers take minutes; some take a few hours. Then check it below.

Other tools send email too?

Most companies have more than one sender: a newsletter tool, a helpdesk, an invoicing app. Each one gets its own include: in the same record, before the ending. For example, with Mailgun as well:

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

Your sending tool's setup page names its include. Some tools (Mailchimp, for one) send from their own domain and don't need to be in your SPF at all; they rely on DKIM instead.

The mistakes I see most

~all or -all?

Google's own instructions use ~all (soft fail), and that's a safe start. Once DMARC is in place and its reports show nothing legitimate failing, -all is stricter, but in practice DMARC decides what happens to failing mail, not the SPF ending.

Check your SPF record

I'll follow every include, count the lookups, and tell you whether Google Workspace is covered.

Related