Server Monkey is looking for tutorial writers to join our staff. Interested applicants can send a quick introduction of themselves to apply@server-monkey.com

cPanel and DomainKeys

posted by Mark Muyskens

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/

Categories: cPanel ,Linux ,Shell


Leave a Reply

You must be logged in to post a comment.