Enable DKIM and SPF on existing cPanel Accounts

To add domainkeys and SPF records, you can do the following. Please note that on CPanel servers most of the work is done using cpanel during account creation. However, there are times that this was overlooked and/or not properly configured. 

There are scripts in /usr/local/cpanel/bin that can install these on a per-user basis:

/usr/local/cpanel/bin/dkim_keys_install

/usr/local/cpanel/bin/spf_installer


If you wish to add DomainKeys and SPF for all Cpanel users on your server, execute the following command.

for user in `ls -A /var/cpanel/users` ; do

/usr/local/cpanel/bin/dkim_keys_install $user &&

/usr/local/cpanel/bin/spf_installer $user ; done

This may take a while to run and will bring your server load up depending on the amount of accounts you have on your server. This is normal. Once this is done, you should have DKIM and SPF enabled on all of your existing cPanel account
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

How to change default SSH port for a VPS or Dedicated server.

Changing the default SSH port to your VPS or server is recommended for security reasons,...

How to install CHKRootkit

Install CHKROOTKIT Product Name: CHKROOTKIT Product Version: 0.49 Homepage:...

How to Install CSF Firewall

Installing a firewall on your VPS is of vital importance. One of the most respected, and widely...

How to install Malware Detect (Maldet) for CentOS 6 / Linux

Malware Detect is very easy to install on CentOS, regardless of the control panel you utilize...

How to secure /tmp

his will cover securing /tmp /var/tmp and /dev/shm Secure /tmp: Step 1: Backup your /etc/fstab...

Powered by WHMCompleteSolution