How To Implement Domainkeys In Postfix Using dk-milter
|
Submitted by topdog (Contact Author) (Forums) on Fri, 2008-02-01 16:53. :: Anti-Spam/Virus | CentOS | Postfix
How To Implement Domainkeys In Postfix Using dk-milterIntroductionDomainkeys is "DomainKeys is a method of e-mail authentication. Unlike some other methods, it offers almost end-to-end integrity from a signing to a verifying Mail Transfer Agent (MTA). In most cases the signing MTA acts on behalf of the sender, and the verifying MTA on behalf of the receiver. DomainKeys is specified in Historic RFC 4870, which is obsoleted by Standards Track RFC 4871, DomainKeys Identified Mail (DKIM) Signatures." according to the wikipedia. So why a how to on it when there is DKIM ? Well domainkeys is still actively being used and is more widely deployed than DKIM, the developer Yahoo still uses it to sign and verify mail although they are contributers to the DKIM standard. We will be using the milter implementation of domainkeys http://sourceforge.net/projects/dk-milter on CentOS 5.1.
InstallationInstall the rpm: rpm -Uvh http://www.topdog-software.com/oss/dk-milter/dk-milter-0.6.0-1.i386.rpm
Generate The KeysA script to do this is provided with the rpm: /usr/share/doc/dk-milter-0.6.0/gentxt.sh <selector> <domainname> Where <selector> is anything you want to call it - I use default and <domainname> is your domain name for which you will be signing mail. This script will produce 3 files:
Install the private key:
mv default.private /etc/mail/domainkeys/dk_<domainname>.pem
DNSAdd the contents of Add the following to your DNS zone file: _domainkey IN TXT "t=y; o=~" Verify your DNS configuration: http://domainkeys.sourceforge.net/policycheck.html
ConfigurationEdit the file /etc/sysconfig/dk-milter and set the following options: # Default values
#
USER="dk-milt"
PORT="local:/var/run/dk-milter/dk.sock"
SIGNING_DOMAIN="<domainname>"
SELECTOR_NAME="<selector>"
KEYFILE="/etc/mail/domainkeys/dk_${SIGNING_DOMAIN}.pem"
SIGNER=yes
VERIFIER=yes
CANON=simple
REJECTION="bad=r,dns=t,int=t,no=a,miss=r"
EXTRA_ARGS="-h -l -D"
MILTER_GROUP="mail"
Configure PostfixAdd this to the Postfix configuration file /etc/postfix/main.cf: smtpd_milters = unix:/var/run/dk-milter/dk.sock non_smtpd_milters = unix:/var/run/dk-milter/dk.sock Append to the existing milters if you have other milters already configured. Start dk-milter and Restart Postfix: service dk-milter start service postfix restart
TestingTo test send a mail to autorespond+dk@dk.elandsys.com you will recieve a response email with the test results. If you have a Yahoo account you can send a mail to that as well; a sample of a signed message in Yahoo is below: Links
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning








Recent comments
22 hours 39 min ago
22 hours 52 min ago
23 hours 59 min ago
1 day 4 hours ago
1 day 4 hours ago
1 day 18 hours ago
2 days 3 hours ago
2 days 10 hours ago
2 days 13 hours ago
2 days 14 hours ago