Configure SPF and DKIM for Google Workspace
Google Workspace (Gmail) sends from Google’s shared infrastructure, so SPF is a single include and DKIM is a key you generate in the Admin console. Here is how to authorise and sign Gmail correctly, then confirm alignment in ClearDMARC.
Step 1: Authorise with SPF
Publish an SPF TXT record at your root domain (or merge into your existing one) so Google’s servers are authorised:
Keep only one v=spf1 record per domain. If you already have one, add include:_spf.google.com to it rather than creating a second record.
Step 2: Sign with DKIM
Gmail DKIM is generated in the Admin console. Google does not pre-publish a key for you.
- 1In the Google Admin console, go to Apps → Google Workspace → Gmail → Authenticate email.
- 2Select your domain and click Generate new record. Choose a 2048-bit key and the default selector
google. - 3Copy the generated value and publish it as a TXT record, then return to the console and click Start authentication.
It can take up to 48 hours before Google lets you start authentication. Until you click Start authentication, Gmail signs with a default key that won’t align, so don’t skip the final step.
Step 3: Verify alignment in ClearDMARC
Once DNS has propagated, open the Sources view in ClearDMARC. Google Workspace should now show PASS · aligned for both SPF and DKIM. If it still shows a fail, the DKIM step usually needs more time or the provider’s wizard hasn’t been marked complete.
Running the full ClearAuth suite? ClearSPF and ClearDKIM host these records for you, so you add Google Workspace once in the console and never edit DNS by hand again.