Skip to content

v3.3.1

Choose a tag to compare

@bbottema bbottema released this 17 Oct 11:15
· 2 commits to master since this release

This patch corrects DKIM signing and DNS key handling through the existing API. Applications do not need to change their code or configuration.

  • Hash the emitted MIME body octets and count l= in bytes, preserve original header whitespace under simple canonicalization, and sign only headers included in the output (#14, #15, #16). Transmitted body bytes are preserved.
  • Repair Ed25519 signing and standard raw DNS public-key decoding while retaining legacy X.509 keys. Malformed or incompatible Ed25519 encodings now fail consistently with DkimException (#17, #22, #27).
  • Isolate cryptographic state when multiple messages share a configured signer, and make DKIM protocol tokens independent of the JVM locale (#12, #13).
  • Close DNS lookup resources, allow independent lookups to progress, correct cache expiration and reconfiguration races, and accept valid tag whitespace, extension names, and folded keys (#18, #19, #20, #21).
  • Encode copied header fields (z=) with legal DKIM folding instead of MIME quoted-printable soft breaks (#23).

Public and protected APIs, Java 8 compatibility, dependency versions, signing defaults, and the automatic module name org.simplejavamail.utils.mail.dkim remain unchanged. Signatures intentionally change for inputs that previously produced incorrect results. Configure a signer before sharing it; concurrent reconfiguration and concurrent writes of the same message are not supported contracts.