Black Friday: 50% off for your first 6 months on monthly plans, until 5 December. Claim 50% offWarm up now. Book January. New year head start: 30 days free on any paid plan. Claim 30 days freeConnect your own mailbox and we add a free one on our domain, for warmup and replies. See how it works

Skip to content
DNS

How to Upgrade a DKIM Key From 1024 to 2048 Bit Without Breaking Mail

A 1024-bit DKIM key still works, but the major providers recommend 2048. Rotate by adding a second selector, switching signing to it, and only then removing the old one.

Kristiyan Tsvetanov5 min read

To move from a 1024-bit to a 2048-bit DKIM key, publish the new key under a new selector, switch your mail provider to sign with it, wait, and only then delete the old record. Never overwrite the old key in place: mail signed with the old key and still in transit would fail verification.

How this was checkedRFC 8301 sets 1024 bits as the minimum for signers. Warmerly's DKIM checker reads the key size from the p= value and reports 1024 as an advisory, not a failure, because a working 1024-bit key still signs correctly. We make that checker.

Do you need to?

A 1024-bit key is valid and still accepted. It is shorter than what Google and Microsoft recommend, and longer keys are harder to attack. If your provider already generates 2048-bit keys by default, there is nothing to do. If a check shows 1024, treat it as tidy-up work, not an emergency, and do not rotate in the middle of a launch.

Rotation, step by step

  1. Generate a new 2048-bit key in your mail provider's admin screen under a new selector name, for example a dated one. Keep the old selector live.
  2. Publish the new record at newselector._domainkey.yourdomain and check it with a DKIM checker, entering the new selector.
  3. Switch signing to the new selector in the provider, if it does not switch automatically.
  4. Send a test message and confirm the header shows s= with the new selector and dkim=pass.
  5. Leave the old record in place for about a week so delayed or queued mail still verifies, then delete it.

The DNS pitfall with long keys

A 2048-bit key is too long for a single 255-character DNS string. Good DNS hosts split it into several quoted strings automatically, and receivers join them. If your host rejects it, enter the value as two or more quoted strings in one TXT record. Do not break it with line breaks or spaces inside the key.

Providers that publish CNAME records for you, such as Microsoft 365, rotate on their side between two selectors. For those, follow the provider's own rotation option instead of this manual route.

Questions

Is a 1024-bit DKIM key still safe to use?

It still verifies and is accepted, and RFC 8301 sets 1024 as the minimum. Google and Microsoft recommend 2048, so move when convenient.

Can I replace my DKIM record in place?

It is risky. Mail already signed with the old key can fail once the record changes. Publish a new selector, switch signing, wait, then remove the old one.

How long should I keep the old DKIM record?

About a week is a sensible margin for delayed mail. Nothing in the standard fixes a number, so use your own judgement.

Warm your mailboxes, then send cold email that lands.

Connect a mailbox to Warmerly. Free plan, no card required. Paid plans start with a 7-day trial, first charge on day 8, cancel any time before then.

Start freeCheck your deliverability free
  • Free plan, no time limit
  • 7-day trial on paid plans
  • 30-day warmup guarantee, with conditions
  • Customer data is hosted in the EU