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.
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:
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/spf_installer $i ;done