[ DKIM ]

DKIM key length and algorithms: check current receiver support

Separate mandatory cryptographic limits, stronger recommended choices and the evidence required for your actual sending service.

By the EmailAuth research team

[ Key points ]

  • Prefer supported strong cryptography and verify the exact sending route.
On this page

Choose a DKIM key configuration that satisfies the protocol and works across the systems that send and receive your mail. A larger number in a control panel is not a complete security decision. Record the algorithm, key type and receiver evidence, and keep cryptographic strength separate from delivery and alignment.

Use the updated RSA requirements

RFC 8301 updates the older DKIM specification. For RSA, signing keys must be at least 1024 bits, and signers should use at least 2048 bits. Verifiers must support validation with RSA keys from 1024 through 4096 bits, may support larger keys, and must not accept RSA keys below 1024 bits as valid. A verifier can still apply a local policy based on key length.

The same RFC prohibits rsa-sha1 for signing and verification. Do not use an obsolete tutorial's SHA-1 example as a current deployment recommendation. Check the actual a= value in a received DKIM-Signature and the key type reached through its selector, rather than trusting an administrator's recollection of the original setup.

The minimum and recommendation answer different questions. A 1024-bit RSA key can meet the specified floor without meeting the stronger recommended choice. If the organisation retains it because of a documented system limitation, record the exception, owner and removal condition. Do not describe that exception as the universal best configuration.

Check the service before generating keys

Determine whether the provider manages keys or accepts customer-supplied material. Amazon SES Easy DKIM documents a 2048-bit default; that product behaviour should not be generalised to all mail platforms. Some services expose only a supported set of options. A generated 4096-bit key is useless if the intended signer cannot load it or the DNS provisioning path corrupts its public record.

RFC 8463 adds Ed25519-SHA256: signers should implement it and verifiers must implement it under that specification. Its key sizes are not numerically comparable with RSA sizes as equivalent security measures. Support in the standard does not demonstrate support in every deployed signer, receiver or administration interface. Treat an algorithm migration as a compatibility change with explicit evidence, not as a cosmetic setting. RFC 8463 section 6 permits parallel RSA and Ed25519 signatures during transition; they must use separate selectors because each selector identifies a single key record. Verify that the actual signing service supports this approach before planning it.

Build a useful validation matrix

For each sending route, record the software or provider, algorithm, key size where relevant, selector, publication method and a representative receiving system. Separate three tests: the signer accepts the configuration, the public key resolves intact, and a recipient verifies a message produced by that signer.

An illustrative migration starts with a legacy 1024-bit RSA billing signer. The proposed target is 2048-bit RSA with SHA-256. Publish a new selector using the platform's supported process, verify the key, send through the billing application and inspect the receiving result. A test from an employee mailbox does not prove the billing application switched. Keep the old dependency only for the planned transition and legitimate delayed mail, unless incident response dictates otherwise.

Interpret failures precisely

If a larger record fails to publish, investigate the DNS interface and TXT representation before weakening the cryptography. If verification reports an unsupported algorithm, retain that finding against the actual receiver and software version. If DKIM passes but DMARC fails, inspect identity alignment instead of changing key size again.

Document what was tested and what remains unknown. A sample of successful receivers is useful operational evidence, not a guarantee covering the entire internet. Schedule review when the provider, cryptographic guidance or important recipient population changes. The decision is defensible when its requirements, implementation limits and observed results are all visible.

RSA and Ed25519 DKIM signatures: deployment questions and interoperability · DKIM public-key syntax: identify truncated or malformed DNS values.

Record the decision before rollout

  • Current route: application, owner, signing domain, selector and emitted algorithm.
  • Proposed choice: supported RSA-SHA256 at 2048 bits or stronger where justified, or a supported Ed25519 transition.
  • Acceptance evidence: signer loads the key; DNS serves it intact; a trusted receiving system verifies a message from this application.
  • Stop condition: unsupported algorithm, malformed key or missing signature. Resolve that defect before retiring the working selector.
  • Exception: if retaining 1024-bit RSA, name the limitation, risk owner and date for reassessment.

[ By role ]

What this means for you

Choose your role for practical next steps.

IT / Mail Admin

Capture the emitted algorithm.

A saved control-panel option is not evidence of the signature on the wire.

Next steps

  1. Inspect a and s values.
  2. Test each application route.
  3. Preserve the old-selector retirement rationale.

CISO / SecOps

Distinguish floor from recommendation.

A permitted minimum is not a permanent risk acceptance.

Next steps

  1. Review obsolete SHA-1 use.
  2. Track weaker-key exceptions.
  3. Review exceptions when guidance changes.

Founder / Non-technical

Fund the compatibility work.

Changing a cryptographic setting is cheap only when all dependent systems already support it.

Next steps

  1. Identify legacy senders.
  2. Set an exception owner.
  3. Budget for the remaining compatibility tests.

[ FAQs ]

Frequently asked questions

Is 1024-bit RSA forbidden by RFC 8301?

No. It is the minimum permitted RSA signing size there. At least 2048 bits is the recommendation.

Are RSA keys below 1024 bits acceptable DKIM keys?

RFC 8301 says verifiers must not consider those signatures valid.

Can I keep rsa-sha1 for older receivers?

RFC 8301 prohibits rsa-sha1 signing and verification. Use a supported current configuration.

Must a receiver accept every signature with a 2048-bit key?

No. Verification has other requirements, and receivers can apply local acceptance policy.

Does 4096-bit RSA guarantee better delivery?

No. Delivery depends on other authentication, policy and filtering signals. Validate the actual service and route.

Is an Ed25519 key weaker because its bit count is smaller?

Do not compare RSA and Ed25519 bit counts as equivalent strength measures. They are different algorithms.

What if the DNS interface rejects a longer key?

Check supported TXT string handling and provider documentation before selecting a weaker configuration.

What should a key-size exception contain?

Name the limitation, responsible owner, tested configuration, risk decision and condition for removing the exception.

[ Sources ]

Sources

  1. RFC 8301

    Sections §3.1 · §3.2

  2. RFC 8463

    Sections §3 · §5 · §6

  3. Amazon SES: Easy DKIM

    Sections DKIM signing key length

  4. RFC 6376: DKIM signature and key fields

[ Glossary ]

Glossary

dkim
A domain-associated signature over selected message headers and body content that a receiver verifies with public-key data.
selector
The s value used with the signing domain to locate DKIM verification data.
rsa
The public-key algorithm used by the rsa-sha256 DKIM signature method.
ed25519
The public-key signature algorithm added to DKIM by RFC 8463.

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