What is a good DKIM key rotation strategy?

Still have a question, spotted an error, or have a better explanation or a source we should cite?

Rotating DKIM keys isn't as simple as swapping one key for another. If you pull the old key before all your sending systems are using the new one, messages in transit will fail validation. The safe approach takes a few days but it's not complicated once you know the sequence.

Step 1: Generate the new key pair and publish the new selector in DNS. Use a fresh selector name (like s2 if your current selector is s1, or 2024 if you use year-based naming). Your old selector stays live throughout this process.

Step 2: Update your sending systems to sign with the new key. That means every ESP, CRM, transactional mail service, and any other service sending from your domain. Don't retire the old key yet.

Step 3: Wait for DNS propagation and send some test messages. Check the Authentication-Results header in the received email to confirm the new DKIM signature is passing. Most DNS changes propagate within a few hours, but waiting 24-48 hours gives everything time to settle, especially for emails that were in transit during the change. Step 4: Remove the old selector from DNS. Only once you've confirmed the new key is signing successfully across all systems. If you're using 2048-bit keys (which you should be), the performance difference from the old key is negligible.

Most recommendations say to rotate annually, though some security-conscious senders do it quarterly. Our free DKIM record lookup can verify your current key is published and validate the record format before and after a rotation.

Contributors

Who worked on this answer

Every name links to their profile. Every company links to their site. Real people, real accountability.

Ask an AI · tailored to your setup

Get a step-by-step DKIM rotation plan tailored to your sending setup.

I read about DKIM key rotation strategy on the Email Almanac. I want help planning a rotation for my domain. My details: - My sending domain: your domain - My current DKIM selector (if you know it): e.g. s1, google, mail - My key length (if you know it): 1024-bit or 2048-bit - How many sending services use my domain? just my ESP / multiple services / not sure - My ESP or mail platform: e.g. Mailchimp, SendGrid, Postmark, Google Workspace - Have I ever rotated DKIM keys before? yes/no - When was my DKIM key last rotated? not sure / roughly YYYY Help me plan a safe DKIM rotation for my setup, step by step.

Edit the yellow boxes, then send to the AI of your choice.