Enabling DomainKeys and SPF record in cPanel server

On CPanel servers most of the work is done using cpanel username which then reflect setting on particular domains.

To enable DomainKey/SPF You can use the following steps:

Login to Cpanel >>Select Email Authentication, from mail session
Enable Domain Keys and Enable SPF

Or you can do these things from the back-end, as follows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1)To Add Domainkeys for a single user use the command:

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

2)To Add DomainKey for all Cpanel users you can use:

ls /var/cpanel/users | while read a; \
do \
/usr/local/cpanel/bin/domain_keys_installer $a \
done

or simply use the step 1 for all users.

3) To add SPF for a single account

# /usr/local/cpanel/bin/spf_installer account-name

4) To add SPF for all cpanel users

ls /var/cpanel/users | while read a;
do
/usr/local/cpanel/bin/spf_installer $a
done

Enjoy :)

Comments

Popular posts from this blog

SVN: File remains in conflict

HowTo: Enable extended logging for exim

Error: could not open mime types config file