Red hat linux Web Hosting

Installation of KLOXO Hosting Panel with DKIM and SPF

An easy to follow guide to install DKIM on CentOS 5.x Linux mail servers using qmailtoaster and kloxo/lxadmin. help prevent outgoing emails from your email servers winding up in someone’s spam box.

KLOXO instalation guide

su - root
setenforce 0
su - root
yum install -y wget

#To install as Master (Default Single Server):
sh ./ --type=master

Setup EPEL repo on server

rpm -ivh epel-release-5-4.noarch.rpm
yum update

Setup DKIM

cd /tmp
tar -zxvf dkim.tgz
cd dkim

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

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 1024 > /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 dkim1._domainkey.mail[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

Leave a Reply

Your email address will not be published. Required fields are marked *