Last reviewed 2026-12-05 · History
Summary
- DKIM signs email: a sending domain publishes a public key in a DNS TXT record and attaches a signature to each message. It has signatures only, no key agreement.
- Two signature algorithms are standardised, both classical:
rsa-sha256(RFC 6376) anded25519-sha256(RFC 8463).12 - Two Internet-Drafts propose ML-DSA: the DKIM2 specification, which defines an
mldsa44signing algorithm for the new DKIM2 format, and an informational individual draft on ML-DSA and FN-DSA for DKIM version 1.345 - Public key size is the constraint the documents discuss: an ML-DSA-44 public key is 1312 octets, and the DKIM2 DNS draft requires a key of exactly that length.45
No post-quantum DKIM signature algorithm is standardised (checked 2026-12-05).
Where public-key cryptography is used
A receiving server verifies a signature made by the sending domain’s key over selected headers and the body;1 the key is fetched from a DNS TXT record at a selector name under _domainkey.6 The signature is stored with the message and can be verified later; the individual draft gives this as why long-lived keys matter: “an attacker with a CRQC could derive a private signing key from a published public key and sign messages in the name of a domain”.5
Post-quantum options
Standardised
| Algorithm | Document | Kind |
|---|---|---|
rsa-sha256 |
RFC 6376 (September 2011) | classical signature |
ed25519-sha256 |
RFC 8463 (September 2018, Standards Track) | classical signature |
- RFC 6376 says signers “SHOULD sign using rsa-sha256”.1 RFC 8463 says verifiers “are required to implement this algorithm”.2
- RFC 8301 (January 2018) says
rsa-sha1“MUST NOT be used for signing or verifying”, and that signers “MUST use RSA keys of at least 1024 bits” and “SHOULD use RSA keys of at least 2048 bits”.7
Drafts
| Draft | Algorithms | Kind | Status |
|---|---|---|---|
| draft-ietf-dkim-dkim2-spec-09, 2026-11-01 | rsa-sha256, ed25519-sha256, mldsa44 (ML-DSA-44, pure) |
DKIM2 signing algorithms | Internet-Draft, intended Standards Track |
| draft-ietf-dkim-dkim2-dns-03, 2026-11-02 | key type mldsa44, key p= is the 1312-octet public key |
DKIM2 key record | Internet-Draft, intended Standards Track, updates RFC 6376 if approved |
| draft-buck-dkim-pq-dkim1-00, 2026-11-02 | mldsa44-sha256, mldsa65-sha256, fndsa512-sha256 as “working names only” |
DKIM1, added next to a classical signature | individual Internet-Draft, Informational |
- DKIM2 spec: three signing algorithms “are defined in this specification”, “Signers MAY implement either or both of the two hashing algorithms and any or all of the signing algorithms”, and “Verifiers MUST implement all five algorithms”. It uses pure ML-DSA, not HashML-DSA, with the context string
DKIM2.3 - The DNS draft’s key-type table lists
mldsa44as “not defined” for DKIM1.4 - The individual draft says “DKIM1 currently has no PQ signature algorithm” and “does not define new algorithm identifiers, tags, or registry entries”; it expects signers to add a post-quantum signature “in addition to a traditional signature, using separate DKIM-Signature header fields”, and says a composite signature “would break compatibility with the current DKIM system”.5
- No composite DKIM algorithm is defined in these drafts at the revisions above (checked 2026-12-05).345
DNS TXT record size
- RFC 6376 lists as a factor in choosing RSA key size “the practical constraint that large (e.g., 4096-bit) keys might not fit within a 512-byte DNS UDP response packet”.1
- RFC 8301 notes that widely used DNS software “only handles a single 256-octet string in a TXT record”, so RSA keys significantly longer than 1024 bits do not fit.7
- The individual draft gives public key sizes of 1312, 1952 and 2592 octets for ML-DSA-44, -65 and -87, says ML-DSA and FN-DSA keys “exceed this limit and would need a TCP fallback for the DNS response”, and gives signature sizes of 2420 octets for ML-DSA-44 and 3309 for ML-DSA-65.5
Downgrade and enforcement
- A message can carry several DKIM signatures; RFC 8463 shows one signed with both
ed25519-sha256andrsa-sha256.2 The individual draft proposes the same pattern: a traditional signature plus a separate post-quantum one.5 - DKIM1 has no way for a domain to tell verifiers that a post-quantum signature must be present; the documents read do not define one (checked 2026-12-05).
- The DKIM2 draft changes the format and says verifiers MUST implement
mldsa44; it is not deployed as a standard.3
Implementations
No implementation of an ML-DSA DKIM signature was checked, and no mail software release notes were read (checked 2026-12-05).
References
-
RFC 6376, DomainKeys Identified Mail (DKIM) Signatures, September 2011, sections 3.3 and 3.3.3. (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4
-
RFC 8463, A New Cryptographic Signature Method for DomainKeys Identified Mail (DKIM), September 2018. (accessed 2026-12-05) ↩ ↩2 ↩3
-
draft-ietf-dkim-dkim2-spec-09, DomainKeys Identified Mail Signatures v2 (DKIM2), 2026-11-01, section 3. (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5
-
draft-ietf-dkim-dkim2-dns-03, Domain Name Specification for DKIM1 and DKIM2, 2026-11-02, key types table and the
mldsa44key description. (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 -
draft-buck-dkim-pq-dkim1-00, Post-Quantum Cryptography in DKIM, 2026-11-02, sections 1 and 3. (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
-
RFC 6376, section 3.6.2 (DNS binding: the
_domainkeynamespace and TXT records), same document as 1. (accessed 2026-12-05) ↩ -
RFC 8301, Cryptographic Algorithm and Key Usage Update to DomainKeys Identified Mail (DKIM), January 2018. (accessed 2026-12-05) ↩ ↩2