Here is a way to turn all domain keys on... it writes stuff and deletes stuff with -rf, use at your own risk:
Code:
#!/bin/sh
cd /root
rm -rf users
mkdir users
cd users
ls -A /var/cpanel/users/ > users
for account in `cat /root/users/users`
do
echo "$account creating domainkeys.."
/usr/local/cpanel/bin/domain_keys_installer $account
echo done
done
The directory /root/users should not exist. (or if it does, it's toast.)
The cpanel script seems to be smart enough to ignore domains with domain keys already on, at least that is my experience.
Let me know if anyone sees a problem.