How to enable domain keys and SPF records in cPanel server?

Domain keys:

DomainKeys is an e-mail authentication system designed to verify the DNS domain of an e-mail sender and the message integrity. Using the following command we can enable domain keys for domains in cPanel server.

===
/usr/local/cpanel/bin/domain_keys_installer username

where, username is the username of the domain.
===

Command to install Domain keys for all cPanel users in a server:

===
for user in `ls /var/cpanel/users`; do /usr/local/cpanel/bin/domain_keys_installer $user; done
===

SPF:

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.

====
/usr/local/cpanel/bin/spf_installer username

where, username is the username of the domain.
====

Command to install SPF for all cPanel users in a server:

===
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/spf_installer $i ;done
===
  • 6 Users Found This Useful
Was this answer helpful?

Related Articles

Adding secondary IPs to Cpanel

  To access the IP Functions Menu, click on IP Functions, on the main screen...

Suspended page / Internal Server Error

If domain is showing "Internal Server Error" except suspention page after suspending the domain...

CPanel Log file locations

CPanel stores it’s log files in the /usr/local/cpanel/logs directory. Below is a list of the...

How do convert a dedicated ip to a shared ip on cPanel/WHM

In root SSH, copy the /etc/domainips file and then remove the IP from it: Code: cp...

Install RKHunter

You can install RKHunter on Linux Server by using following steps.1 Login to your server as...