Qmail with DKIM tutorial needed

Status
Not open for further replies.

ecstacy

Active Member
50
2011
3
0
Hi all,

anyone got a working tutorial or a link to patch Qmail with DKIM?

Os: CentOS 5.8
Control Panel: Kloxo 6.1.12

Thanks
 
1 comment
Try these :-

Here's what you need to do

1. Install Mail : DKIM perl module

Code:
yum install perl-Mail-DKIM
2. Install libdomainkeys
Code:
wget http://mirrors.qmailtoaster.net/libdomainkeys-toaster-0.68-1.3.6.src.rpm
Code:
rpmbuild --rebuild  libdomainkeys-toaster-0.68-1.3.6.src.rpm
Code:
rpm -ivh /usr/src/redhat/RPMS/i386/libdomainkeys-toaster-0.68-1.3.6.i386.rpm
3. Download http://www.memoryhole.net/qmail/dkimsign.pl and copy it to /usr/bin

4. Download http://www.memoryhole.net/qmail/qmail-remote.sh

5.
Code:
mv /var/qmail/bin/qmail-remote /var/qmail/bin/qmail-remote.orig
Code:
cp qmail-remote.sh /var/qmail/bin/qmail-remote
Code:
chmod 755 /var/qmail/bin/qmail-remote
Code:
rm /var/qmail/bin/qmail-queue
Code:
mv /var/qmail/bin/qmail-queue.orig /var/qmail/bin/qmail-queue
6. Edit /var/qmail/bin/qmail-remote. goto line 49 and replace


Code:
error=`(dkimsign.pl --type=dkim --selector=default \
with


Code:
error=`(dkimsign.pl --type=dkim --selector=dkim \
Then in line 18 this also must be replaced


Code:
[ "$DKSIGN" ]   || DKSIGN="/etc/domainkeys/%/default"
With

Code:
[ "$DKSIGN" ]   || DKSIGN="/var/qmail/control/domainkeys/%/private"
7. finally do not forget to add DKIM DNS TXT record.



Code:
dkim._domainkey.yourdomain.name.     IN  TXT  "v=DKIM1; g=*; k=rsa; p=MEwwDQYJKoZIhvcN.....AQAB"


the "p=MEwwDQYJKoZIhvcN.....AQAB" part is same as that for your domainkey created by kloxo


you can do a test by sending mail to yahoo or gmail

This basically works on most qmail toaster installation.
Courtesy http://www.memoryhole.net/qmail/

Hope this helps
 
Last edited:
Status
Not open for further replies.
Back
Top