Setup DKIM with Kloxo and qmail

This is a guide to install DKIM on CentOS 5 mail servers using qmailtoaster and Kloxo panel:


wget http://software.atnerds.com/linux/dkim/dkim.tgz

tar –zxf dkim.tgz

cd dkim

yum install perl-XML-Simple perl-Mail-DKIM perl-XML-Parser rpm-build openssl-devel

wget http://software.atnerds.com/linux/dkim/libdomainkeys-toaster-0.68-1.3.6.src.rpm

rpmbuild --rebuild libdomainkeys-toaster-0.68-1.3.6.src.rpm

rpm -ivh /usr/src/redhat/RPMS/i386/libdomainkeys-toaster-0.68-1.3.6.i386.rpm

mkdir /var/qmail/control/dkim

cp signconf.xml /var/qmail/control/dkim/

chown -R qmailr:qmail /var/qmail/control/dkim/

dknewkey /var/qmail/control/dkim/global.key > /var/qmail/control/dkim/public.txt

perl -pi -e 's/global.key._domainkey/dkim1/' /var/qmail/control/dkim/public.txt

qmailctl stop

mv /var/qmail/bin/qmail-remote /var/qmail/bin/qmail-remote.orig

mv qmail-remote /var/qmail/bin

chmod 777 /var/qmail/bin/qmail-remote

chown root:qmail /var/qmail/bin/qmail-remote

qmailctl start

Create a TXT record dkim._domainkey.domain on DNS server for the domain you want to set DKIM as shown in the output of the following command

cat /var/qmail/control/dkim/public.txt

DKIM setup should be finished. Once the DNS updates, you should be able to send DKIM signed emails.

  • 24 Users Found This Useful
Was this answer helpful?

Related Articles

How to unzip .tar.bz2 file

To unzip bzip file use:tar -xvjf filename.tar.bz2 First make sure you have installed bzip...

Do I have full root access to my VPS

Yes you do. With virtual hosting (VPS) you get root password for access, trough which you have...

Parallels Plesk Panel System Requirements

Supported Operating Systems Linux CentOS 6.x CentOS 5.x...

How to stop SELinux in the CentOS

To temporary disable SELinux on your dedicated server use: echo 0 >/selinux/enforce To...

Install OpenVPN on CentoOS 5/ CentOS 6 VPS or dedicated server

First step is to check if tun/tap is active: cat /dev/net/tun If tun is active then you should...