SPF and DKIM for Google Workspace

Google Workspace needs include:_spf.google.com in your SPF record. Add it to the TXT record on your domain's root. Check your domain below once the records are in.

  • Free
  • No Sign-Up
  • Live Lookup

Examples:

SPF Checker

Google Workspace records

SPF Includeinclude:_spf.google.com
SPF Record (on Its Own)v=spf1 include:_spf.google.com ~all
With Another Providerv=spf1 include:_spf.google.com include:other.example ~all
DKIM Selectorsgoogle._domainkey (TXT)
Starter DMARC (_dmarc)v=DMARC1; p=none; rua=mailto:[email protected]

Add it to the TXT record on your domain's root.

DKIM: Generate the key in the Admin console (Apps › Google Workspace › Gmail › Authenticate email). The default selector is google, published as a TXT record at google._domainkey.

A domain can have only one SPF record. If you already send through another service, add the include to your existing record rather than creating a second one, and keep the total under 10 DNS lookups.

Once SPF and DKIM pass, add a DMARC record at _dmarc with p=none and a reporting address, read the reports for a couple of weeks, then move to quarantine and reject.

Questions

What is the SPF record for Google Workspace?
v=spf1 include:_spf.google.com ~all. If you also send through other services, add their includes to the same record.
Where do I find the DKIM record for Google Workspace?
Generate the key in the Admin console (Apps › Google Workspace › Gmail › Authenticate email). The default selector is google, published as a TXT record at google._domainkey.
Do I need DMARC with Google Workspace?
Yes. Gmail and Yahoo require DMARC for bulk senders, and it is what stops others sending as your domain. Start with p=none and move to reject.
How long do new SPF and DKIM records take to work?
As soon as resolvers see them, usually within minutes; at most the old record's TTL. Use the checker above to confirm.

Your customers' VMs sending spam?

Frabs spots outbound spam from any VM within seconds and stops it, before your IPs end up on a blocklist.