Choose a new selector name that encodes the rotation period (for example s2026q3) so logs and headers are self-documenting; the selector appears in the DKIM-Signature header as s= and in DNS as s2026q3._domainkey.yourdomain.com.
Generate a new 2048-bit RSA key pair (or Ed25519 if your signing software supports it); publish the new public key as a TXT record under the new selector before touching any signing configuration.
Lower the TTL on both old and new selector records to 300–900 seconds several days before the cutover so DNS changes propagate quickly during the rotation window.
Switch your MTA or ESP signing configuration to use the new selector; keep the old selector record in DNS and verify that receiving servers can still validate messages signed with either selector (dual-signing window of at least 72 hours).
After the dual-signing window, remove the old private key from your MTA and optionally revoke the old DNS record by replacing its value with p= (an empty p tag signals key revocation per RFC 6376).
Rotate at minimum every six months; M3AAWG recommends quarterly rotation for organisations at scale; coordinate with any third-party ESPs that sign on your behalf.
Known gotchas
Removing the old DNS selector record too early strands in-flight messages that were signed before the cutover; wait at least 72 hours or longer than the observed maximum cache TTL across your resolver population.
Some ESPs (SendGrid, Postmark, Amazon SES) manage DKIM signing on your behalf via CNAME delegation; rotation happens on their side automatically—check the vendor's documentation before attempting manual rotation.
Ed25519 DKIM signatures are shorter and faster to verify, but not all receiving MTAs support them yet (2026); publish a 2048-bit RSA selector alongside Ed25519 if compatibility with older receivers matters.
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp