How to add/enable SPF record for an account – cPanel server command line option

The SPF stands for – Sender Policy Framework. This’s a commonly using email validation method by verifying the sender IP address. By verifying sender IP address, we can identify the origin of emails. Enabling SPF for your domain means validating your account with the IP address.

We can enable the SPF simply from the control panel. Here, I am discussing the command line option to enable SPF record for a user under the cPanel server.
In cPanel, there is script to enable the SPF record for a particular user, see the script loacation details pasted below:

/usr/local/cpanel/bin/spf_installer

Steps to enable SPF

Step I : SSH to your server as root.
Step II : Execute the following script;

/usr/local/cpanel/bin/spf_installer $username

Replace username with the cPanel account name.

Click here, to enable SPF for all accounts, How to install/enable SPF records for all accounts on cPanel server – command line option

That’s it!!

See also the steps to enable SPF and DKIM for all accounts.

Post navigation

Arunlal Ashok

Cloud Infrastructure / DevOps Engineer. I'm dealing Linux servers since 2012. I started this blog to share and discuss my ideas.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com

Leave a Reply

Your email address will not be published. Required fields are marked *