What the standards say
| Key | Status | Source |
|---|---|---|
| RSA under 1024 bits | Must not be used; receivers may ignore the signature | RFC 8301 section 3.2 |
| RSA 1024 bits | Allowed, weak | RFC 8301 section 3.2 |
| RSA 2048 bits or more | Recommended | RFC 8301 section 3.2 |
| Ed25519 | Allowed, short and strong; not every receiver verifies it yet, so publish it beside an RSA key | RFC 8463 |
| rsa-sha1 signing | Must not be used | RFC 8301 section 3.1 |
Publishing a 2048-bit key
A 2048-bit public key is about 400 characters of base64, longer than the 255 characters one DNS text string can hold. The record is still one TXT record: it is split into several quoted strings that receivers join back together.
s2048._domainkey.example.com. TXT ( "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx" "...rest of the key...IDAQAB" )Many control panels split it for you. Check the published result with the DKIM checker: it reports the key length it actually reads.
Rotating safely
- Publish the new key under a new selector.
- Wait until DNS shows it everywhere (the old TTL has passed).
- Switch the mail service to sign with the new selector.
- Keep the old key published for a week so messages in transit still verify.
- Revoke the old key by publishing it with an empty
p=, or remove it.