key size Email / SMTP Origin: Network OSI layer 7 · Application Last updated 18 Nov 2026

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.

Exact message you may see DKIM key too shortdkim=neutral (key too short)1024-bit DKIM key warningDKIM key length 512 bits rejecteddkim public key is too small
Seen on: DKIM Email

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

  1. Create a 2048-bit key with a new selector
  2. Publish and test, then switch signing
  3. Retire the old selector

Detailed fix by platform

Shell

  1. bash
    openssl genrsa -out dkim.private 2048
    openssl rsa -in dkim.private -pubout -outform der 2>/dev/null | openssl base64 -A

How to diagnose

  1. Key size — 2048?
  2. Selector — Rotated?
  3. 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:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

0x800704EC — 0x800704EC: This program is blocked by group policy (Windows Defender) (Windows)0x800704EC403 Forbidden wp-admin — WordPress: 403 Forbidden on wp-admin, wp-login.php or admin-ajax.php (WordPress)403 Forbidden wp-admin550 5.7.26 — 550 5.7.26 This mail has been blocked because the sender is unauthenticated (SPF/DKIM/DMARC) (Email / SMTP)550 5.7.26AADSTS50053 — AADSTS50053: Your account is locked (Smart Lockout) / sign-in blocked due to suspicious activity (Azure)AADSTS50053ActiveModel::ForbiddenAttributesError (strong parameters) — Rails: ActiveModel::ForbiddenAttributesError (Ruby / Rails)ActiveModel::Forbidde…antiforgery token could not be decrypted — ASP.NET Core: The antiforgery token could not be decrypted / The required antiforgery cookie is not present (400 Bad Request) (.NET)antiforgery token cou…Are you sure you want to do this? — WordPress: Are you sure you want to do this? Please try again. (nonce check failed) (WordPress)Are you sure you want…avc: denied — SELinux is preventing ... / avc: denied { read } for pid=... (permission denied despite correct permissions) (Linux)avc: deniedkey size

Explore the map of this error Full error map →

🧠 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.