To setup SPF, execute the below command,
=-=-=-=-=-
/usr/local/cpanel/bin/spf_installer username/usr/local/cpanel/bin/domain_keys_installer username
=-=-=-=-=-=-=-
Where username is the cPanel user.
If you get an error similar to “Domain keys are not installed on this machine.” you either are not running the latest release or current version of cPanel or you have not converted yet to maildir. Maildir conversion is required before you install DomainKeys.
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/domain_keys_installer $i ;done
How to do it from cPanel
To create SPF for all the users, follow the below steps.
---------------------------
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/spf_installer $i ;done
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/domain_keys_installer $i ;done
-----------------------------
Done
=-=-=-=-=-
/usr/local/cpanel/bin/spf_installer username/usr/local/cpanel/bin/domain_keys_installer username
=-=-=-=-=-=-=-
Where username is the cPanel user.
If you get an error similar to “Domain keys are not installed on this machine.” you either are not running the latest release or current version of cPanel or you have not converted yet to maildir. Maildir conversion is required before you install DomainKeys.
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/domain_keys_installer $i ;done
How to do it from cPanel
- Login to the cPanel Account.
- Click the “Email Authentication” button.
- Click the “Enable” button found under the SPF heading
- You now have a basic SPF record setup for the domain name. Advanced users may wish to tweak it by modifying the settings below the “Enable” button.
- Similar way, you can enable DKIM also.
To create SPF for all the users, follow the below steps.
---------------------------
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/spf_installer $i ;done
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/domain_keys_installer $i ;done
-----------------------------
Done