To add an SPF record for a single user, use the following command:
# /usr/local/cpanel/bin/spf_installer CPANEL_USER
To add SPF records for all the users on a cPanel server, use the following commands:
# cd /var/cpanel/users
# for u in *;do echo “Installing SPF for user $u”; /usr/local/cpanel/bin/spf_installer $u; done
To add DKIM record for a single user, use the following command:
# /usr/local/cpanel/bin/dkim_keys_install CPANEL_USER
To add DKIM records for all the account on a cPanel server, use the following commands:
# cd /var/cpanel/users
# for u in *;do echo “Installing DKIM for user $u”; /usr/local/cpanel/bin/dkim_keys_install $u; done