How to add SPF records for all accounts on cPanel server

Posted: 5p in cPanel

How to add SPF records for all accounts on cPanel server

cPanel has provided with script with which we can add spf records on cPanel account.

Being root user, run following script on server.

/usr/local/cpanel/bin/spf_installer cPanelusername

Replace cPanelusername with actual username for which you want to enable spf records.

But if you want to enable spf records for multiple accounts or all accounts on cPanel server then it is much time consuming process while you add spf records one by one on each account.

Here is simple script with which you can add spf records:

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

===================================================>

Advertisements

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