DKIM-Verify Build, Installation, & Configuration



Build

Provided that the above requirements are met, a "make" should be all that is needed. Please let me know if there are problems building on your system.

Installation

Installation should require only a "make install" as root. The default installation directory is "/usr/local" A default XML configuration file will be installed as well.

Post-Install Configuration & Setup

In the current version, the XML configuration file allows configuration of profiles. Each profile have a name and an associated specification of the path to the MDA application. Configurations for procmail and majordomo (as they exist in my environment) are given by default in the XML. If the paths to these applications are different in your environment, you will need to edit this file.

Configuration of applications to use dkim-verify may be significantly more difficult. Since I use sendmail and majordomo, I will give examples of configuring these two applications to use dkim-verify.

Sendmail

The best way to change sendmail configuration is by updating M4 files and regenerating the sendmail.cf file from that. The basic idea is to change the path/application name for procmail in the M4 files to "dkim-verify -P <profilename>" where "<profilename>" is the profile in the XML configuration file that you would like to use. I'll leave the task of locating and modifying the M4 files as an exercise to the reader.

The quick-and-dirty approach is to edit sendmail.cf. Here's what to do:

  1. Locate the Mlocal rule; set "P=/usr/bin/procmail" to "P=/usr/local/bin/dkim-verify"
  2. Locate the Mprog rule; set "A=procmail -Y -a $h -d $u" to "A=dkim-verify -P procmail -Y -a $h -d $u". Note that the parameters to "A=" might be different on your system.

Majordomo

In the alias for majordomo, change the path to the wrapper application (e.g. /usr/local/majordomo/wrapper) to "/usr/local/dkim-verify -P majordomo". For example:

test: "|/usr/local/bin/dkim-verify -P majordomo resend -p bulk -M 10000 -R -l test -f test-owner -h xxx.org test-outgoing"
test-outgoing: :include:/usr/local/majordomo/lists/test
test-request: "|/usr/local/bin/dkim-verify -P majordomo request-answer test"
owner-test: erik,
test-owner: erik,
test-approval: erik,

Valid XHTML 1.0!