UnixServerAdmin

Server Administration & Management

How to install DomainKeys on a cPanel Server

Delivering mail to yahoo and google is so hard those days. Almost every server has had this problem even if it is not used to relay spam. Installing DomainKeys can help your server deliver “clean” emails directly to your user’s inbox.

Installation is simple and it’s done on a domain basis. Here is following steps to install DomainKeys on a specific domain.

First check that you are running the latest version on RELEASE or CURRENT of cPanel 11. Run the script

# /usr/local/cpanel/bin/domain_keys_installer username

Where username is the cPanel user.

If you get an error similar to “Domain keys are not installed on this machine.” you either are not running the latest release or current version of cPanel or you have not converted yet to maildir. Maildir conversion is required before you install DomainKeys.

Ok, we just installed DomainKeys for a domain, but how about if we want to install it for all the domains (users)?
Well, here is bash script that will parse all the cpanel users and then run the installation for each of them.

——————————————————————————–
for i in `ls /var/cpanel/users` ;
do /usr/local/cpanel/bin/domain_keys_installer $i ;
done
——————————————————————————–

Ok, but what about if we want that every new created account to have DomainKeys installed. Well this is a bit harder to do. But we recommend editing /scripts/postwwwacct and adding:

# vi /scripts/postwwwacct

——————————————-
my %OPTS = @ARGV;
my $user = $OPTS{’user’};
/usr/local/cpanel/bin/domain_keys_installer $user
——————————————-

Now test this by creating a new account.

April 23, 2011 - Posted by | cPanel, Mail | , , ,

10 Comments »

  1. Nice topic – respect !

    Comment by auto ru | May 8, 2011 | Reply

  2. I love unixserveradmin.com , bookmarked for future reference

    Comment by Parabal | May 17, 2011 | Reply

  3. unixserveradmin.com is awsome, bookmarked!

    Comment by samsungunlock | May 21, 2011 | Reply

  4. I like unixserveradmin.com , bookmarked for future reference

    legal steroids

    Comment by Winstroll | June 4, 2011 | Reply

  5. unixserveradmin.com is amazing, bookmarked!

    Comment by mmabet | June 11, 2011 | Reply

  6. unixserveradmin.com is super, bookmarked!
    buy electronic cigarette

    Comment by njoyecigarette | June 12, 2011 | Reply

  7. This really is a fantastic write-up. Thank you for taking a few minutes to detail all of this out for us. It’s a great help!

    Comment by Lashaunda Petigny | June 15, 2011 | Reply

  8. Whenever I study a topic I’ve no clue what i may find. I’m so thrilled to have discovered this detailed writing because it completely addresses the issues I have under consideration as well as the unspoken issues that i would’ve looked for later on.

    Comment by filtered water | June 15, 2011 | Reply

  9. Please continue to write regarding this subject. Presently there is often a increased need than you may expect for this form of info and guidance. Everything you share is valuable to the person that wants the ideas that you have put together.

    Comment by filtered water | June 16, 2011 | Reply

  10. unixserveradmin.com is my top 1 site now!

    Comment by topbettingsites | June 26, 2011 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: