Cluster 19 · RFC 6376 / 8301 · DKIM · 2048-Bit Dual Selectors

DKIM 2048-Bit Key Selector & Zero-Downtime Rotation Guide

Generate 2048-bit DKIM DNS key-rotation runbooks using dual selectors (s1/s2), avoid DNS 255-byte TXT syntax errors, and safely revoke retired selectors with empty p=.

RFC 7208 · 7489 · 8461 · 8460 · 8058 · Zero Upload

3. Google, Yahoo & Microsoft Matrix + DKIM & RFC 8058

2025–2026 Bulk Sender Rules
8 Bulk-Sender & Cryptographic Controls
2025–2026 Bulk-Sender Deliverability Score
100 / 100 (A+)
PASS
Google Gmail (2024–2026 Policy) (>=5,000 msgs/day) COMPLIANT
Requires SPF+DKIM alignment, DMARC record, <0.30% spam rate (<0.10% target), and RFC 8058 One-Click for >=5k/day bulk senders.
Yahoo Mail (2024–2026 Policy) (Bulk / Commercial Senders) COMPLIANT
Enforces SPF+DKIM alignment, DMARC, valid PTR/rDNS, <0.30% spam ceiling, and 48-hour RFC 8058 one-click opt-out.
Microsoft Outlook / Consumer (May 2025+ Mandate) (>=5,000 msgs/day to outlook/hotmail/live) COMPLIANT
Effective May 2025, Outlook consumer rejects non-compliant high-volume senders failing SPF+DKIM+DMARC alignment (550 5.7.515).
RFC 8058 One-Click Unsubscribe Headers
List-Unsubscribe: <mailto:[email protected]?subject=unsubscribe>, <https://acme.example.com/unsubscribe/one-click>
List-Unsubscribe-Post: List-Unsubscribe=One-Click
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acme.example.com; s=s1; ...
Zero-Downtime 2048-Bit DKIM Selector Rotation Runbook
# Zero-Downtime 2048-Bit DKIM Rotation (acme.example.com)
1. Publish BOTH selectors simultaneously in DNS:
   - Active Primary:   s1._domainkey.acme.example.com (TXT v=DKIM1; k=rsa; p=<2048_BIT_KEY_A>)
   - Standby Rotation: s2._domainkey.acme.example.com (TXT v=DKIM1; k=rsa; p=<2048_BIT_KEY_B>)
2. Flip MTA / ESP outbound signing from s=s1 -> s=s2 and monitor DMARC rua= alignment for 72h.
3. Once zero mail uses s=s1, revoke s1._domainkey.acme.example.com by publishing "v=DKIM1; p=" before deleting.
MailAuth Pro $39 · ReadyCheck $49 Live DoH + SMTP TLS

Verify Live SPF, DMARC, DKIM, MTA-STS & BIMI Deliverability

Run an automated live email deliverability audit on MailAuth Pro ($39) (mail.runglab.dev) or inspect full 100-point DNS, Email-TLS, Security Headers & AEO on ReadyCheck ($49) (audit.runglab.dev) — or ship the $49 ReadyCheck Domain Fix Pack. Prefer PayPal invoicing? Email [email protected].

Email Deliverability Specification & Baseline

Control / Standard Hardened Baseline Deliverability & Security Rationale
Minimum Key Strength 2048-bit RSA or Ed25519 (RFC 8301) 1024-bit RSA keys are deprecated and flagged by enterprise security & Google bulk-sender checks
Dual-Selector Window s1 + s2 Published Simultaneously Keep standby selector live in DNS before flipping signer, then keep old selector 72h for queued retries
DNS 255-Char TXT Splitting Split Quoted Strings on DNS Providers A 2048-bit Base64 key (~392 chars) must be split into two adjacent quoted strings in BIND/Cloudflare
Safe Key Revocation v=DKIM1; p= (Before Deleting Record) Publish empty p= briefly after cutover so any replay check fails explicitly (RFC 6376 §3.6.1)

Zero-Downtime 2048-Bit DKIM Dual-Selector DNS Records

dkim-dual-selectors.txt
# 1. Primary 2048-bit selector (split >255-char TXT string cleanly)
s1._domainkey.acme.example.com. 300 IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..." "...IDAQAB"

# 2. Standby 2048-bit selector for quarterly rotation
s2._domainkey.acme.example.com. 300 IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..." "...IDAQAB"

OpenSSL 2048-Bit Keypair & Selector Verification Script

rotate-dkim-2048.sh
# Generate 2048-bit RSA DKIM private + public keys locally
openssl genrsa -out dkim_s2_private.pem 2048
openssl rsa -in dkim_s2_private.pem -pubout -out dkim_s2_public.pem

# Verify live DNS selector returns >=300 Base64 chars in p=
dig +short TXT s1._domainkey.acme.example.com
dig +short TXT s2._domainkey.acme.example.com

Implementation Steps & Key Insights

  1. Configure your primary (s1) and standby (s2) selector names and 2048-bit key size in Mode 3 above.
  2. Publish both s1._domainkey and s2._domainkey TXT records in DNS (splitting >255-char Base64 strings across quoted segments).
  3. Switch outbound MTA/ESP signing from s1 to s2 and monitor DMARC rua= alignment for 72 hours while queued messages clear.
  4. Set s1._domainkey to 'v=DKIM1; p=' to revoke, then verify live selectors on MailAuth Pro and ReadyCheck.
  • Rotating DKIM selectors every 90–180 days limits the blast radius of leaked ESP API credentials and satisfies SOC 2 CC6 cryptographic key lifecycle controls.
  • Using CNAMEs for ESP-managed selectors (e.g., s1._domainkey -> s1.domainkey.u123.wl.sendgrid.net) delegates key rotation while preserving exact domain alignment.

Common Deliverability & DNS Pitfalls

  • Deleting the old s1._domainkey DNS record immediately upon switching to s2 — queued mail in retry loops will fail DKIM/DMARC.
  • Pasting a 392-character 2048-bit key as a single unsplit TXT string on legacy DNS panels that truncate at 255 bytes.
Verify Live: Audit your live DNS, MTA-STS & BIMI records at MailAuth Pro ($39) or run a full 100-point scan on ReadyCheck ($49).

More Email Deliverability, MTA-STS & BIMI Tools

← Back to Email Deliverability Hub · MailAuth Pro ($39) → · ReadyCheck ($49) →

Frequently Asked Questions

Are 1024-bit DKIM keys still accepted?

While some legacy systems still verify 1024-bit signatures, RFC 8301 recommends 2048-bit minimum, and Google requires 2048-bit for enterprise/bulk compliance unless DNS restricts length.

How long should I wait before revoking the old DKIM selector?

Wait at least 72 hours (48–72h covers standard SMTP retry windows plus DNS TTLs) before revoking the previous selector.

How do I check my live DKIM key length and selector health?

Scan live on https://mail.runglab.dev/?ref=tools-mailauth or https://audit.runglab.dev/?ref=tools-mailauth.