View Single Post
Old 13th June 2010, 19:41
Sinchan Sinchan is offline
Join Date: Nov 2006
Posts: 48
Thanks: 14
Thanked 2 Times in 2 Posts
Question DKIM with amavisd-new installation problem

Hi all,
I have ISPConfig on my debian lenny and now i want to implement domainkeys since all my email marked as ***SPAM*** when received from yahoo email.
I follow perfect debian guide. And in that guide say to install amavisd-new.
Then, now i'll try to follow DKIM FaqForge and IJS's DKIM, but in this DKIM guide thats say amavisd (not amavisd-new).

Since iam never found amavisd command and amavisd.conf, then i'll try like this :
1. Create keys :
# updatedb
# locate amavisd.conf
# which amavisd
# which amavisd-new

# mkdir /etc/amavis/dkim
# amavisd-new genrsa /etc/amavis/dkim/hidden-mydomain-com.key.pem
Private RSA key successfully written to file "/etc/amavis/dkim/hidden-mydomain-com.key.pem" (1024 bits, PEM format)
2. Insert domain keys and enable dkim in /etc/amavis/conf.d/50-user :
# vi /etc/amavis/conf.d/50-user 
$inet_socket_port = [10024,10026,9998];
$enable_dkim_signing = 1;
dkim_key('', 'mail', '/etc/amavis/dkim/hidden-mydomain-com.key.pem');
$interface_policy{'10026'} = 'ORIGINATING';
$policy_bank{'ORIGINATING'} = { 
  originating => 1, 
  smtpd_discard_ehlo_keywords => ['8BITMIME'],
3. Restart amavis and postfix service
# /etc/init.d/amavis restart
Stopping amavisd: amavisd-new.
Starting amavisd: amavisd-new.
unicorn:~# /etc/init.d/postfix reload
Reloading Postfix configuration...done.
4. Show keys and add to TXT DNS Records :
# amavisd-new showkeys	3600 TXT (
  "v=DKIM1; p="
In ISPConfig dns, iam insert txt record :
Hostname :
Text : v=DKIM1; p=abcdefghijklmnopqrstuvwxyz
5. Test keys :
# amavisd-new testkeys
TESTING: => invalid (public key: not available)
Any suggestions about this problem please ?
notes : i already have PTR and SPF record before
Reply With Quote
Sponsored Links