The following scripts are used to enable DKIM and SPF records:
Enable DKIM
/usr/local/cpanel/bin/dkim_keys_install <username>
Enable SPF
/usr/local/cpanel/bin/spf_installer <username>
If you wish to add DomainKeys and SPF for all Cpanel users on your server, execute following command.
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