Enable SPF + DKIM for all accounts

To enable SPF and DKIM for all user accounts on a cPanel Server, you can run the following command on your VPS or Dedicated Server via SSH:

for user in `ls -A /var/cpanel/users` ; do
/usr/local/cpanel/bin/dkim_keys_install $user &&
/usr/local/cpanel/bin/spf_installer $user ; done

Author: Christopher Smith

I managed websites.

Leave a Reply

Your email address will not be published. Required fields are marked *