This is a simple cut and paste guide for Debian, Ubuntu users to easy install Yahoo domain keys, working for pop and HTML emails with Sendmail installation. Just copy and paste the commands after #
Install DK Milter:
# wget http://switch.dl.sourceforge.net/sourceforge/dk-milter/dk-milter-1.0.1.tar.gz
decompress:
# tar xvzf dk-milter-1.0.1.tar.gz
install libraries:
# apt-get install openldap-utils
Compiling:
# cd dk-milter-1.0.1
# cp site.config.m4.dist devtools/Site/site.config.m4
# sh Build
# sh Build install
Generate public key:
# openssl genrsa -out rsa.private 768
# openssl rsa -in rsa.private -out rsa.public -pubout -outform PEM
Move your private key to the domainkeys directory:
# mv rsa.private /var/db/domainkeys/mail.key.pem
YOUR RSA PUBLIC KEY VALUE:
You can find your public RSA key value in /var/db/domainkeys/mail.key.pem between:
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
without break lines and spaces.
configure sendmail:
copy the line below under LOCAL_DOMAIN on /etc/mail/sendmail.mc:
INPUT_MAIL_FILTER(`dk-filter', `S=inet:8891@localhost')
rebuild sendmail:
# sendmailconfig
start domain key-milter:
#/usr/bin/dk-filter -l -p inet:8891@localhost -d domain1.com, domain2.com -s /var/db dkim/default.key.pem -S default
Note: To add a new domain you must kill the dk-filter process and run the above comand again:
Example:
ps aux | grep dk-filter
Kill pid_number
restart sendmail:
# /etc/init.d/sendmail restart
In your domain provider control panel create the 3 following TXT records:
SPF record for Gmail:
@ v=spf1 ip4:YOUR_SERVER_IP/24 include:blackberry.com ptr:blackberry.com ~all
DOMAIN KEYS:
mail._domainkey k=rsa; t=y; p=YOUR_RSA_PUBLIC_KEY_VALUE
_domainkey o=~; r=your_email
THAT'S ALL!!!
If you find any problem is because you don't know how to cut and paste...