Xpoudy

How to Set Up Google Workspace DKIM in Cloudflare

Short answer

Generate a DKIM key for the sending domain in Google Admin. Publish the supplied TXT value in Cloudflare at google._domainkey or the custom selector you chose. After the record resolves publicly, return to Google Admin and click Start authentication.

By Xpoudy ·

Get the selector and public key from Google

In Google Admin, go to Apps → Google Workspace → Gmail → Authenticate email and select the domain that sends the mail. Generate the record if the domain needs a new key. Google recommends 2048 bits where supported. Save the selector and complete TXT value from Google’s screen. If the domain already signs with another selector, plan the change around the existing key and keep that record available during transition.

Add the record in Cloudflare

In DNS → Records, create a TXT record at Google’s generated hostname. The example below shows the field mapping. The actual value comes from Google Admin.

FieldExample or entry
TypeTXT
Namegoogle._domainkey
ContentPaste the complete value from Google Admin
TTLAuto

Check for accidental duplication of the zone name when entering the hostname. If the key appears as several quoted strings in a DNS lookup, the strings may be parts of one TXT record. Check that the reconstructed value matches the public key Google gave you.

Turn signing on and prove it works

Use the Xpoudy DKIM Checker with the sending domain and exact selector. Once public DNS returns the intended key, click Start authentication in Google Admin. Send a new message to a test inbox you control. In the headers, confirm DKIM passes and the signing domain aligns with the visible From domain. A DNS lookup shows key publication. The received message shows that Google is using it.