DKIM key too short: use 2048-bit RSA keys (1024-bit rejected or warned)
Some receivers and checkers flag or reject DKIM keys shorter than 2048 bits.
DKIM key too shortdkim=neutral (key too short)1024-bit DKIM key warningDKIM key length 512 bits rejecteddkim public key is too small Meaning
Generate a 2048-bit key, publish it (split across multiple strings if the DNS panel needs it), update the signer, and rotate the selector. Gmail recommends 2048 bits for bulk senders; 512-bit keys are rejected outright.
Common causes
- Old 1024-bit selector still in use
- Default key size of an old tool
- DNS panel can't hold 2048-bit key
- ESP signs with a weak key
- Key never rotated
⚡ Quick fix
- Create a 2048-bit key with a new selector
- Publish and test, then switch signing
- Retire the old selector
Detailed fix by platform
Shell
- bash
openssl genrsa -out dkim.private 2048 openssl rsa -in dkim.private -pubout -outform der 2>/dev/null | openssl base64 -A
How to diagnose
- Key size — 2048?
- Selector — Rotated?
- DNS — Published right?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Email / SMTP
- 550 5.7.1 550 5.7.1 Relaying denied / Message rejected as spam / Unauthenticated email not accepted
- Laravel: Connection could not be established with host Laravel: Symfony\Component\Mailer\Exception\TransportException: Connection could not be established with host "smtp.mailtrap.io:2525": stream_socket_client(): Unable to connect
- SES: Maximum sending rate exceeded Amazon SES: Throttling — Maximum sending rate exceeded (454 Throttling failure)
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 18 Nov 2026