Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: To enable SPF and DKIM for already created cPanel accounts  (Read 3346 times)

0 Members and 1 Guest are viewing this topic.

rinop

  • Guest
To enable SPF and DKIM for already created cPanel accounts
« on: July 25, 2017, 05:36:51 am »
To enable SPF and DKIM for already created cPanel accounts :

Enabling this features in the DNS will increase the reputation of all emails sent out from that account (domain).

Please execute the following script to enable SPF and DKIM for all cPanel users from back end :

root@testing [~]#vi spfdkim.sh

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

root@testing [~]chmod 744 spfdkim.sh

root@testing [~] ./spfdkim.sh

Thats all.