Set Up DKIM On Postfix With dkim-milter (CentOS 5.2)
Set Up DKIM On Postfix With dkim-milter (CentOS 5.2)
Version 1.2 This howto has been superseded by http://www.topdog.za.net/postfix_dkim_milterIntroductionDKIM is an authentication framework which stores public-keys in DNS and digitally signs emails on a domain basis. It was created as a result of merging Yahoo's domainkeys and Cisco's Identified Internet mail specification. It is defined in RFC 4871. We will be using the milter implementation of dkim http://dkim-milter.sf.net on CentOS 5.2.
InstallationI provide Centos rpms for Dkim-milter at http://www.topdog-software.com/oss/ so we will install the latest version.
# wget http://www.topdog-software.com/oss/roundcube/andrew_topdog-software.com_key.txt
Generate the Keys# sh /usr/share/doc/dkim-milter-2.8.2/dkim-genkey.sh -r -d <domain_name> Replace <domain_name> with the domain name you will be signing the mail for. The command will create two files.
Move the private key to the dkim-milter directory and secure it.
# mv default.private /etc/mail/dkim/default.key.pem
DNS SetupYou need to publish your public key via DNS, client servers use this key to verify your signed email. The contents of default.txt is the line you need to add to your zone file a sample, is below default._domainkey IN TXT "v=DKIM1; g=*; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDG81CNNVOlWwfhENOZEnJKNlikTB3Dnb5kUC8/zvht/S8SQnx+YgZ/KG7KOus0By8cIDDvwn3ElVRVQ6Jhz/HcvPU5DXCAC5owLBf/gX5tvAnjF1vSL8ZBetxquVHyJQpMFH3VW37m/mxPTGmDL+zJVW+CKpUcI8BJD03iW2l1CwIDAQAB" ; ----- DKIM default for topdog-software.com Also add this to your zone file. _ssp._domainkey IN TXT "t=y; dkim=unknown"
Configuration
USER="dkim-milt" PORT="inet:20209@localhost" SIGNING_DOMAIN="<domain_name>" SELECTOR_NAME="default" KEYFILE="/etc/mail/dkim/default.key.pem" SIGNER=yes VERIFIER=yes CANON=simple SIGALG=rsa-sha1 REJECTION="bad=r,dns=t,int=t,no=a" EXTRA_ARGS="-h -l -D"
Configure PostfixYou need to add the following options to the postfix main.cf file to enable it to use the milter. smtpd_milters = inet:localhost:20209 non_smtpd_milters = inet:localhost:20209 Append the dkim-milter options to the existing milters if you have other milters already configured. Start dkim-milter and restart postfix
# service dkim-milter start
TestingSend an email to sa-test@sendmail.net or autorespond+dkim@dk.elandsys.com, you will receive a response stating if your setup is working correctly. If you have a Gmail account you can send an email to that account and look at the message details similar to the picture below, you should see signed-by "your domain" if your setup was done correctly. ![]()
Previous versions
UpdatesUpdated rpms are always provided at http://www.topdog-software.com/oss/dkim-milter/
|
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
11 hours 6 min ago
13 hours 7 min ago
16 hours 19 min ago
18 hours 38 min ago
19 hours 48 min ago
21 hours 6 min ago
1 day 1 hour ago
1 day 4 hours ago
1 day 4 hours ago
1 day 19 hours ago