Monday, April 11, 2011

install domainkey on cpanel

http://karthickv.wordpress.com/2008/06/28/how-to-install-domain-keys-on-a-cpanel-server/

/usr/local/cpanel/bin/domain_keys_installer username  It will install for the domain (test.com) successfully. Now you can verify it from the db record of the domain. The following new entry will be added in the db record.
vi /var/named/test.com.db  default._domainkey.username IN TXT "k=rsa; p=MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAOmrn9fVOia0KET1UwIDAQAB;"  rndc reload test.com Restart exim service.

Now you can verify it by creating a new mail account test123@test.com and send an email to yahoo account, then verify the headers.

Return-Path:        Authentication-Results:  mta398.mail.re4.yahoo.com from=test.com; domainkeys=pass (ok) Received:    from mta398.mail.re4.yahoo.com with SMTP; Sun, 27 Apr 2008 03:49:29 -0700 DomainKey-Signature:     a=rsa-sha1; q=dns; c=nofws; s=default; d=test.com; 9BZnoI9FAPMSTPY;  From the above headers you can confirm that domain key is working fine for
another reference
http://www.sohailriaz.com/how-to-add-domainkeys-and-spf-records-on-cpanel-servers/
this is my script
#!/usr/bin/perl print “\nStarting install of Domainkeys\n”; my %OPTS = @ARGV; my $user = $OPTS{‘user’}; system(“/usr/local/cpanel/bin/domain_keys_installer”,$user); system(“/usr/local/cpanel/bin/spf_installer”,$user); print “\nDone with install of Domainkeys\n”;exit;

No comments:

Related Posts Plugin for WordPress, Blogger...