Total Pageviews

Saturday, 31 December 2011

DomainKeys

Lets face it. Sending mail to some domains such as yahoo and hotmail can become a pain in the ass. Installing DomainKeys can help with the delivery of mail.
Installation on a single domain;
/usr/local/cpanel/bin/domain_keys_installer user
Where user is the user’s cPanel username
If running this command gives you an error, then your more then likely not running the latest version of cPanel or you have not converted to maildir.
Installing on all domains;
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/domain_keys_installer $i ;done
Bash script to parse all cPanel users and run the command.
Now, what about when you add new account;
Modify cPanel’s PostWWW script “/scripts/postwwwacct”
add;
my %OPTS = @ARGV;
my $user = $OPTS{’user’};
/usr/local/cpanel/bin/domain_keys_installer $user
Done.
More Info on DomainKeys; http://domainkeys.sourceforge.net/

No comments:

Post a Comment