Changes for version 0.36 - 2026-11-28

  • dkim2-milter, from an originating host's report (thanks, Al Iverson):
  • Outbound mode stamps m=1 from the message itself when there is no snapshot store. 0.35 computed a Message-Instance only with --snapshot-dir, so a host that just sends its own mail never signed ("no Message-Instance field to sign over").
  • --mode both now decides each transaction by where the message comes from, as OpenDKIM does: outbound (signed) for a client on loopback or a unix socket (Postfix gives non_smtpd_milters 127.0.0.1), one that authenticated ({auth_authen}), or one in the new --internal-hosts; inbound (verified, stamped, never signed) for anything else. 0.35 verified and signed in the same transaction: with --snapshot-dir (the shipped dkim2-milter.service) a locally sent message was signed over a second m=1 with an A-R inserted after signing, permerror at every receiver; and mail from outside with a From in one of our domains would have been signed. One both socket now also serves a list host: the post is snapshotted on arrival and the list's re-injected copy diffed against it.
  • New --authserv-id for the Authentication-Results it adds (default still "localhost").
  • --help documents --mode and --authserv-id, and no longer lists --verify/--no-verify and --sign/--no-sign, which never existed. The "verify only" SYNOPSIS example now passes --mode inbound (without it the milter refused to start with no key).
  • POD: an originating-host Postfix setup; deploy/examples/ has dkim2-milter-originating.service.

Documentation

Standalone DKIM2 milter for Postfix

Modules

DKIM2 signing and verification for email
Envelope paths, domains and the From header field for DKIM2
the body hash of a message, streamed
every Message-Instance's body hash in one pass
Header canonicalization and the signing input for DKIM2
The Message-Instance and DKIM2-Signature fields of a message, numbered
Constants, chain numbering and the any/all groups shared by the DKIM2 modules
DKIM2-signed Delivery Status Notifications
SHA-2 over message content, by OpenSSL where it can
Fold a DKIM2 header field where its grammar allows
decide whether a front end may sign a message
Streaming message parser base for Signer and Verifier
every Message-Instance's header hash without undo
What a hop adds to a message's Message-Instance fields before it signs
Keys, key records, Domain Policy Records and signing algorithms for DKIM2
Compute, verify and undo Message-Instance headers
Keep message snapshots keyed by Message-Instance
The base64 JSON of a Message-Instance r= tag
verify-and-reflect DKIM2 demonstration logic for dkim2.com
One DKIM2-Signature header, parsed or under construction
Sign a message with a DKIM2-Signature header
Bcc-safe recipient grouping before DKIM2 signing
The tag=value list a DKIM2 header is made of
Small helpers shared by the Mail::DKIM2 modules
structured per-level DKIM2 and Message-Instance report
Verify the DKIM2-Signature chain on a message
wrap a single-part message in a one-part multipart/mixed
Handler class for DKIM2 signing
Handler class for DKIM2 signature verification

Provides

in lib/Mail/DKIM2/Chain.pm