“DomainKeys” is an anti-spam software application that uses a public key, cryptography to authenticate the sender’s domain. cPanel offers a installer script “domain_keys_installer” using which the DomainKeys can be created and added automatically for a domain.
By default the DomainKeys is not added when the account is created on the server, it has to be added manually. SSH to your server and execute:
/usr/local/cpanel/bin/domain_keys_installer <username>
where, <username> is the username of the domain.
The DomainKey is automatically added in the DNS zone file of the domain located at /var/named/domainname.db file. To add DomainKeys for the existing domains, use the following script
for i in `cat /etc/trueuserdomains | awk ‘{print $2}’`
do
/usr/local/cpanel/bin/domain_keys_installer $i;
done;
NOTE: If you are using a 3rd party name servers for your domain, you will have to add the DomainKeys in the DNS zone of your domain created on their servers.


![node[175421]: pthread_create: Resource temporarily unavailable 2023 08 28 12 15 - node[175421]: pthread_create: Resource temporarily unavailable](https://i0.wp.com/administrator.pejcic.rs/wp-content/uploads/2023/08/2023-08-28_12-15.png?resize=344%2C194&ssl=1)
