How to enable SPF on accounts on CentOS Linux server ?

How to enable SPF on accounts on CentOS Linux server ?

In this article we will learn to enable SPF records on CentOS Linux server. But, before we proceed we should discuss about SPF records. Every we struggle to fight against SPAM at web hosting servers. Sender Policy Framework (SPF) is the tool through which users get helped to get their mail authorized and able to send over different networks.

You can enable SPF records through WHM or command line.

1). Enable SPF through WHM : To enable SPF records on server you must have root login. Now, follow the given steps :
  • Login to WHM as root.
  • Now, click on category "Server Configuration"
  • Click on "Tweak Settings"
  • Look for Domain tab : here you can change SPF records
Enable DKIM on domains for newly created accounts (on by default)
Enable SPF on domains for newly created accounts (off by default)
2). Enable SPF records through command line : To enable SPF records through command line follow the given steps :

Login to SSH as root

Change the directory to "/var/cpanel/users"
----
#cd /var/cpanel/users
----

Now, execute this command :
----
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/spf_installer $i ;done
----

Now, all done.
Author
bhawanisingh
Views
1,901
First release
Last update
Rating
0.00 star(s) 0 ratings
Top