Why does Sendgrid require two domain keys?
Summary
What email marketers say6Marketer opinions
Email marketer from Reddit user, u/SomeTechDude, responds that Sendgrid uses two keys to allow for rolling updates of their DKIM records. This ensures mail continues to pass authentication while changes are propagated.
Email marketer from StackOverflow User, TechGuru123, explains that Sendgrid utilizes 2 DKIM keys so that they can rotate them seamlessly and prevent an outage or any interruptions to your mail flow, they rotate the DKIM keys regularly.
Email marketer from MXToolbox shares that you can use MXToolbox to test and confirm your DKIM records are setup correctly, this allows for seamless rotation without interruptions.
Email marketer from EmailProviderReviews states that, Sendgrid's use of two DKIM keys are part of their wider security measures to ensure their reliability, the extra DKIM helps them maintain their uptime while rotating DKIM keys.
Email marketer from EmailSecurityFAQ shares that, the additional DKIM key that Sendgrid ask you to create allows for smoother 'key rollover', this is an important part of keeping your email secure and prevents any interruptions.
Email marketer from Mailhardener shares that using longer DKIM key lengths (e.g., 2048 bits) and rotating keys regularly significantly reduces the likelihood of successful key cracking attempts.
What the experts say5Expert opinions
Expert from Email Geeks explains that Sendgrid asks for two domain keys for key rotation. If they didn't, it would mean they don't understand the security implications.
Expert from Email Geeks shares that if he were engineering an ESP, he'd do it roughly like SendGrid does. However, the engineering complexity to do it that way is significantly higher, especially to retrofit into an existing system, and complexity leads to security holes.
Expert from Email Geeks explains that without key rotation, a breach of private keys could allow someone to forge DKIM signatures. Regular key rotation reduces this risk to a short window of time.
Expert from Email Geeks shares an example of key rotation schedule (signing with S1 in January, S2 in February, replacing S1 halfway through, and so on).
Expert from Spamresource.com explains that, the two DKIM keys are for key rotation, where new keys can be provisioned and the DNS entries updated while the old key is still active. After the DNS changes have propagated, the system can switch over to using the new key and then eventually retire the old key.
What the documentation says4Technical articles
Documentation from Sendgrid explains that they recommend rotating DKIM keys periodically for enhanced security. Using two keys allows for seamless rotation without interrupting email flow. One key remains active while the other is being rotated.
Documentation from RFC Editor (RFC 6376, defining DKIM) explains that key management, including rotation, is crucial for maintaining the long-term security of DKIM signatures. While the RFC doesn't mandate two keys, it implies that having a mechanism for key rollover is a best practice.
Documentation from Google Workspace Admin explains that DKIM signing helps prevent spoofing and ensures that your messages are not modified during transit. Rotating keys protects against potential compromises.
Documentation from SparkPost explains that rotating DKIM keys minimizes the risk associated with key compromise. If a key is compromised, the window of opportunity for attackers to forge emails is limited to the rotation period.