[ DKIM ]

Rotate DKIM keys without losing verification for mail in transit

Separate new-key publication, signing cutover, overlap and retirement, and verify what real received messages use.

By the EmailAuth research team · 5 min read

[ Key points ]

  • Publish new verification material before switching the signer.
  • Keep old and new selectors available for a justified transition period.
  • Treat compromise response separately from routine rotation.
On this page

A planned DKIM rotation changes which private key signs new mail while preserving the verification material needed for messages already in transit. Publishing a new public key, switching the signer and retiring the old selector are separate stages.

Start with the signing service and its supported rotation procedure. A provider-managed selector delegation has a different operating model from a key pair controlled directly by your organisation.

Establish the current signing state

Use original received messages to identify the actual d= signing domains and s= selectors. Correlate them with the signing service, key-management model and business owner.

A DNS record can exist without being used by current messages. Conversely, an old message can refer to a selector that is no longer the active choice for new mail.

Save the relevant public answers and configuration state. Keep private signing keys in the authorised signing system, not in a ticket, inventory spreadsheet or public DNS record.

Confirm the algorithm and provider requirements

Review current cryptographic guidance and supported verification behaviour. RFC 8301 §3 rules out rsa-sha1 and sets RSA key-size requirements; it recommends RSA keys of at least 2048 bits. RFC 8463 §5 defines Ed25519-SHA256 as an additional method.

An algorithm's specification and the actual support of the senders, providers and receivers involved are different evidence. Do not change a production service to a method its supported configuration cannot use.

For provider-managed signing, follow its generated values and rotation process. A DNS alias can delegate key management without giving your team the private key or a manual cutover control.

Publish new verification material before cutover

Where the supported design uses a new selector, publish its correct public verification material first. Confirm the final owner name, answer and any delegation chain.

Use a different selector for a new key where the supported procedure allows it. Replacing the key under one selector can leave messages signed with the old key unable to verify against the replacement.

Do not remove the old key merely because the new DNS answer looks correct. At this stage you have established publication, not that the signer has switched or every receiver can retrieve the intended material.

Switch signing and verify new messages

Use the authorised signing procedure to begin signing with the new key. Send representative messages through important routes and inspect the original received signatures and trusted results.

In a synthetic rotation, earlier mail uses s=old2026 and new mail uses s=new2026. Both public verification names remain available during the planned overlap, while new received messages demonstrate the intended selector and a passing signature.

If a gateway modifies the message after signing, a direct test before that gateway is incomplete. Check the complete business route and DMARC alignment as well as the raw signature result.

Choose retirement from the delivery conditions

RFC 6376 §3.1 describes concurrent publication during the transition in which mail may still be in transit. It does not supply one universal overlap duration for every organisation.

Assess queues, retry behaviour, expected delivery delays, DNS cache behaviour, relevant signature expiry and verification needs. Record the reason for the chosen overlap and any provider constraints.

Retire the old verification material under the supported process only when that assessment justifies it. A later check of a saved message can differ from its original delivery-time result after key retirement.

Treat suspected compromise as a different decision

Routine rotation aims for continuity. A suspected private-key compromise can require urgent restriction or retirement despite potential verification impact on older mail.

Follow the organisation's incident process and the signing provider's supported response. Preserve the evidence and explain the trade-off. Do not promise that an overlap suitable for routine maintenance is suitable during an active compromise.

Close with a verifiable signing record

Retain the service, owner, old and new selectors, publication evidence, cutover observation, overlap rationale, retirement decision and representative received results.

The selector guide explains the identity lookup. For Microsoft 365 or Workspace, use their tenant-specific or selected-domain configuration guidance. A rotation is complete when the new signing route is verified and the old dependency has been retired for a documented reason.

Use three separate acceptance checks

This proposed checklist is not a record of completed rotation. Before cutover, confirm the new selector resolves to the generated public value while the old selector remains available. After cutover, a newly received application message should show s=new2026 and the intended d domain with a trusted pass. Before retirement, confirm the agreed queue/retry and verification conditions are met and record the decision. A pass from an unrelated application does not close the affected route. Do not turn an example interval into a universal wait time.

[ Takeaway ]

Publish new verification material before switching the signer. Keep old and new selectors available for a justified transition period. Treat compromise response separately from routine rotation.

[ By role ]

What this means for you

Choose your role for practical next steps.

IT / Mail Admin

Track publication, signing and retirement separately.

Use actual signature identities and the supported key-management model rather than assuming available DNS records indicate current use.

Next steps

  1. Verify the new selector before cutover.
  2. Test after the final gateway.
  3. Document overlap and retirement conditions.

CISO / SecOps

Review key custody and the trade-off.

Planned continuity and compromise response can require different decisions. Require ownership, access controls and evidence of each stage.

Next steps

  1. Review private-key management responsibility.
  2. Assess retention of verification evidence.
  3. Confirm the compromise escalation route.

Founder / Non-technical

Require continuity for important mail.

Rotation should have an owner and a test plan for the messages the business needs, with a distinct response if compromise is suspected.

Next steps

  1. Identify critical workflows.
  2. Agree change and escalation ownership.
  3. Ask for a received-message result after cutover.

[ FAQs ]

Frequently asked questions

Should I delete the old selector as soon as the new key is published?

Not for a routine rotation without assessing mail still in transit and other verification dependencies. Publication, signing cutover and retirement are separate stages.

RFC 6376 §3.1

Why use a new selector for a new key?

It keeps old and new verification material distinguishable during transition. Replacing a key under the same selector can complicate later interpretation of older messages.

RFC 6376 §3.1

Is there a universal DKIM overlap period?

No universal duration is prescribed here. Consider delivery queues, retries, DNS caching, signature conditions, provider controls and the organisation's verification needs.

Does a new DNS key prove signing has switched?

No. Inspect new received messages from the actual service and confirm their selector, signing domain and trusted verification result.

What should a provider-managed rotation follow?

Use the provider's current generated values and supported process. Delegated key management can have controls and restrictions different from directly operated signing.

Can a retired key affect verification of saved messages?

Yes. A later verification attempt can depend on DNS material that was available at delivery but has since changed or been removed. Preserve delivery-time evidence.

RFC 6376 §3.1 RFC 6376 §6.1.2

Should a suspected compromise use the normal maintenance overlap?

Do not assume so. Incident response can require urgent action with a different continuity trade-off. Follow the authorised process and preserve evidence.

What proves the planned rotation is complete?

Keep publication and cutover evidence, real-route passing signatures and alignment, the overlap rationale, retirement decision and accountable service ownership.

[ Sources ]

Sources

  1. RFC 6376

    Sections §1 · §2.1 · §3.1 · §3.5 · §6.1.2 · §8.3

  2. RFC 8301

    Sections §3

  3. RFC 8463

    Sections §5 · §6

  4. RFC 9989

    Sections §4.1 · §4.4

  5. RFC 1034

    Sections §3.6 · §4.2

[ Glossary ]

Glossary

DMARC
A mechanism relating authenticated email identities to the Author Domain and its policy.

RFC 9989 §4.1

Alignment
The required relationship between an authenticated identifier and the Author Domain under DMARC.

RFC 9989 §4.4

Authoritative DNS
DNS servers responsible for serving the data of a zone, as distinct from cached resolver answers.

RFC 1034 §4.2

DKIM
A domain-associated signature over selected message headers and body content that a receiver verifies with public-key data.

RFC 6376 §1

Selector
The s value used with the signing domain to locate DKIM public verification data.

RFC 6376 §3.1

Enterprise provenance

Why top financial institutions and governments retired their email security dashboards.

Traditional email authentication platforms sell you a dashboard and ask your engineers to do the labour. In high-stakes environments, manual oversight means delayed enforcement, configuration drift and unmonitored shadow domains.

EmailAuth is the agentic email provenance platform. Our agents enforce p=reject, keep third-party senders aligned and move your domains to full RFC 9989 compliance, the new DMARC standard,, with human-in-the-loop auditability.

Governments Large enterprises Tier-1 financial institutions

SaaS · Dedicated tenancy · Air-gapped on-prem · BYOK encryption

Knowledge Base