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
===

Advertisements
  1. Leave a comment

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: