For : SPF Record (Sender Policy Framework)
Sender Policy Framework (SPF) is an email validation system designed to prevent email spam by detecting email spoofing by verifying sender IP addresses. SPF allows administrators to specify which hosts are allowed to send mail from a given domain by creating a specific SPF record (or TXT record) in the DNS zone files. Using the following command we can enable SPF for domains in cPanel.
For One Domain : run the following command in ssh.
/usr/local/cpanel/bin/spf_installer user (type username here) to enable it
To Disable For One Domain : run the following command in ssh.
Command to install SPF for all cPanel users in a server:
Just copy and paste between the full line below
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/spf_installer $i ;done
Your done with SPF.
/usr/local/cpanel/bin/dkim_keys_uninstall (username here) to disable it
This will uninstall DKIM (domain keys) from existing cPanel account (to disable it)
The command below will remove DKIM
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/dkim_keys_install $i ;done