How to Rotate a Google Workspace DKIM Key Safely
Short answer
Plan a new DKIM selector for the Google Workspace domain, publish its public key and verify DNS before completing the switch in Google Admin. Keep the previous selector’s public record available while older messages can still be checked against it.
By Xpoudy ·
Record the current signing state
Send a controlled Google Workspace message and record its DKIM d= domain and s= selector from the received header. Save the current public TXT record and identify other legitimate systems using that hostname. Use a distinct new selector so the two records can coexist.
Publish and verify the replacement
Generate the new key in Google Admin’s Authenticate email workflow for the correct domain. Copy the providers’ complete public value to a new TXT record. Check it directly with Xpoudy’s DKIM Checker and coordinate the switch according to Google’s prompts. Watch for any gap in signing around activation.
Verify fresh messages and retire the old selector later
Send a new message and confirm that it uses the new selector and passes. Keep the old DNS entry while messages signed with it are still being processed. Only retire the old entry after a documented check that it no longer serves an active signing path or required verification period.