Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Install spf records for all accounts on cPanel server  (Read 2131 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
Install spf records for all accounts on cPanel server
« on: December 21, 2013, 01:31:27 pm »

Command to install spf record on single cPanel account.

/usr/local/cpanel/bin/spf_installer cPanel_username

Put actual username in place of cPanel_username

Instead of installing spf records on cPanel accounts one by one use the following script to install it in one step:

cd /var/cpanel/users

for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/spf_installer $i ;done