To enable Domain Keys automatically for every newly created account on cPanel servers.

Edit the file /scripts/postwwwacct and add:

my %OPTS = @ARGV;
my $user = $OPTS{’user’};
/usr/local/cpanel/bin/domain_keys_installer $user

Now test this by creating a new account.

Also if needed please change the file permission to 711.

then Restart exim service.

*****************
Installing for all the existing domains

for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/domain_keys_installer $i; done
*****************