To Add DKIM for single user use below command

# /usr/local/cpanel/bin/dkim_keys_install

Using below command it will help to Add DKIM record to all local accounts

# cd /var/cpanel/users
# for u in *;do echo “Installing DKIM for user $u”; /usr/local/cpanel/bin/dkim_keys_install $u; done

Add SPF record for a single account below command will add such record
# /usr/local/cpanel/bin/spf_installer

Add SPF record to all local accounts at once
1. Go to the # cd /var/cpanel/users

2. Then use below command
for u in *;do echo “Installing SPF for user $u”; /usr/local/cpanel/bin/spf_installer $u; done

Advertisements