To set SPF records and domain keys in cpanel server login to cpanel >> Email Authentication >> and there you can enable the SPF record and the Domain keys.
Or
/usr/local/cpanel/bin/spf_installer UN
/usr/local/cpanel/bin/domain_keys_installer UN
Or you can use the script
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/domain_keys_installer $i ;done
Or
To enable Domain keys by default for all the accounts created.
Edit /scripts/postwwwacct and adding:
================
my %OPTS = @ARGV;
my $user = $OPTS{’user’};
/usr/local/cpanel/bin/domain_keys_installer $user
================
To install SPF record for all the domains use :
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/spf_installer $i ;done