DomainKeys Install

Here is a little script that will add domainkeys to all cpanel user accounts.

for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/domain_keys_installer $i ;done
cd /var/named
localdomains=$(cat /etc/localdomains | grep '^[^.]*\.[^.]*$' | uniq -u)
for i in $localdomains
echo "_domainkey IN TXT "t=y; o=~; n=Interim Sending Domain Policy; r=root@$HOSTNAME"" >> $i.db
wget -O /var/named/
cd /var/named
perl /var/named/ .

chmod +x

Was this post helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.