Mail-DKIM and DKIMproxy


Mail::DKIM requires the following Perl modules:

DKIMproxy is written in Perl. It requires the Mail::DKIM module, found on this page, as well as the following Perl modules:


Download the Mail-DKIM Perl module: Version 0.39 [CPAN].

See what's new in this release.

DKIMproxy is distributed in the hope that it will be useful, but (like any software) without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.

Be careful when installing and using DKIMproxy! Because of how email delivery works, improper configuration or undiscovered bugs in DKIMproxy may result in it mangling, discarding, bouncing, or duplicating your email. You are advised to do some testing of DKIMproxy before using it on your production systems.

Download the current version of DKIMproxy: Version 1.4.1 [SourceForge].

See what's new in this release.

See also: the DKIMproxy Project Page, on SourceForge.

DKIMproxy has evolved from my earlier project, Dkfilter, which was based on smtpprox and Mail::DomainKeys. My thanks go out to Bennett Todd for providing smtpprox and Anthony D. Urso for providing Mail::DomainKeys.

Installing DKIMproxy

The following steps are recommended for installing dkimproxy:

  1. Determine where you want to install dkimproxy's program files, e.g. /usr/local/dkimproxy.
  2. "cd" to the directory containing dkimproxy's source code and type ./configure --prefix= followed by the location in which you want to install the filter. E.g.
    ./configure --prefix=/usr/local/dkimproxy
  3. Run make install to install the program files to the desired directory. If you used /usr/local/dkimproxy as the prefix, the filter scripts will be installed in /usr/local/dkimproxy/bin and the Perl module files will be in /usr/local/dkimproxy/lib.
  4. Create a Unix user/group dedicated to running dkimproxy. E.g. dkim.
  5. Create a startup/shutdown script for the filter. A sample script ( is provided... make sure to check, and modify if necessary, the user, group, and directory found in the script. Also, you may need to adjust command-line arguments for starting the filter(s). Then you can copy it to /etc/init.d/dkimproxy and use it like any other init script.

Get DKIMproxy at