opendkim-genkey -D \/etc\/opendkim\/keys\/your-domain.com -d your-domain.com -s mail<\/pre>\nThe above command will create two files under the newly created directory – mail.private and mail.txt<\/p>\n
Change the ownership to opendkim<\/p>\n
chown -R opendkim:opendkim \/etc\/opendkim\/keys\/your-domain.com<\/pre>\nOpen the openDKIM configuration file \/etc\/opendkim.conf , delete everything and add the following<\/p>\n
PidFile \/var\/run\/opendkim\/opendkim.pid\nMode sv\nSyslog yes\nSyslogSuccess yes\nLogWhy yes\nUserID opendkim:opendkim\nSocket inet:8891@localhost\nUmask 002\nCanonicalization relaxed\/simple\nSelector mail\nKeyFile \/etc\/opendkim\/keys\/your-domain.com\/mail.private\nKeyTable \/etc\/opendkim\/KeyTable\nSigningTable \/etc\/opendkim\/SigningTable<\/pre>\nOpen \/etc\/opendkim\/KeyTable (list of keys available for signing) and add the following line<\/p>\n
mail._domainkey.your-domain.com your-domain.com:mail:\/etc\/opendkim\/keys\/your-domain.com\/mail.private<\/pre>\nOpen \/etc\/opendkim\/SigningTable and add the following line<\/p>\n
your-domain.com mail._domainkey.your-domain.com<\/pre>\nOpen \/etc\/opendkim\/TrustedHosts and add the following lines<\/p>\n
127.0.0.1\nlocalhost\nyour-domain.com<\/pre>\nAdd the content of the \/etc\/opendkim\/keys\/your-domain.com\/mail.txt file to your DNS zone file<\/p>\n
mail._domainkey IN TXT \"v=DKIM1; g=*; k=rsa; p=MIG.......B58FQIDAQAB\" ; ----- DKIM mail for your-domain.com<\/pre>\nOpen the postfix configuration file (\/etc\/postfix\/main.cf) and add the following lines<\/p>\n
smtpd_milters = inet:127.0.0.1:8891\nnon_smtpd_milters = $smtpd_milters\nmilter_default_action = accept\nmilter_protocol = 2<\/pre>\nRestart both openDKIM and postfix<\/p>\n
\/etc\/init.d\/opendkim restart\n\/etc\/init.d\/postfix restart<\/pre>\nTo check if everything works as expected send an email to check-auth@verifier.port25.com. In a few seconds you will get an email as follows<\/p>\n
====================================\nSummary of Results\n====================================\nSPF check: pass\nDomainKeys check: pass\nDKIM check: pass\nSender-ID check: pass\nSpamAssassin check: ham<\/pre>\nThe line “DKIM check: pass” means that you have successfully installed openDKIM on your sever.<\/p>\n
PS.<\/strong><\/span> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"Installing and Configuring openDKIM on Debian This guide will show you how to install and configure openDKIM on a Debian … <\/p>\n
Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,1706,1703,13],"tags":[48,126,127,125,1152],"yoast_head":"\nInstall and Configure openDKIM on Debian Squeeze - RoseHosting<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n