How To Add SPF And DomainKeys on cPanel Servers

This code snippet is the simplest way to add SPF and DomainKeys on a cPanel server for all the accounts

for i in $(ls /var/cpanel/users)
echo Installing Domain Keys on $i
/usr/local/cpanel/bin/domain_keys_installer $i;
echo Installing SPF Records on $i
/usr/local/cpanel/bin/spf_installer $i;

Leave a Reply

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