DKIM key length
The size of the RSA key behind a DKIM signature; RFC 8301 requires at least 1024 bits and recommends at least 2048.
What it means
RFC 8301 (2018) set the floor: signers must use RSA keys of at least 1024 bits and should use at least 2048, and verifiers must accept keys from 1024 to 4096 bits and must reject anything shorter than 1024. The same update made rsa-sha256 mandatory and retired rsa-sha1, which must no longer be used for signing or verifying.
Gmail requires a key of 1024 bits or longer for mail to personal Gmail accounts and recommends 2048 bits where the DNS host supports it; its setup guide keeps 1024 as the option for hosts that cannot store longer keys.
Key length is visible to anyone: look up the selector's record and measure the p= value. A 2048-bit key needs splitting across TXT strings, which some DNS hosts do not handle. Ed25519 keys, at 256 bits, are far shorter and fit in one string.
Related terms
On this site
Sources
What this definition rests on. The wording is ours; the facts are theirs.
- RFC 8301: Cryptographic Algorithm and Key Usage Update to DKIM, section 3.2rfc-editor.org
- RFC 8301: Cryptographic Algorithm and Key Usage Update to DKIM, section 3.1rfc-editor.org
- Google: Email sender guidelinessupport.google.com
- Google Workspace Admin Help: Set up DKIMknowledge.workspace.google.com
All 432 terms in the glossaryThe wiki: blocklists and bounce codes