We can use DKIMProxy to achieve this. DKIMproxy is written in Perl. Some of the perl modules needed for proper working of DKIM. We can use “Cpan” to install the necessary modules.

————
cpan install Crypt::OpenSSL::RSA
cpan install Digest::SHA
cpan install Mail::Address
cpan install MIME::Base64
cpan install Net::DNS
cpan install Net::Server
cpan install Error

————

Download and install the Mail::DKIM module:

=============
wget http://search.cpan.org/CPAN/authors/id/J/JA/JASLONG/Mail-DKIM-0.39.tar.gz
tar -zxvf Mail-DKIM-0.39.tar.gz
cd Mail-DKIM-0.39
perl Makefile.PL
make
make test
make install

=============

Download and install DKIMProxy:

=============
wget http://downloads.sourceforge.net/project/dkimproxy/dkimproxy/1.4.1/dkimproxy-1.4.1.tar.gz
tar -zxvf dkimproxy-1.4.1.tar.gz
cd dkimproxy-1.4.1
./configure --prefix=/usr/local/dkimproxy
make install

=============

Then we will need to add the following dkim user to the server.

——
useradd -M dkim
——

Create a startup/shutdown script for the filter. A sample script (sample-dkim-init-script.sh) 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.

cp sample-dkim-init-script.sh /etc/init.d/dkimproxy

Leave a Reply

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny