This article explains how to enable or disable the DKIM record for a specific domain on a cPanel/WHM server using WHM API commands.
Note: WHM provides only a global option to enable DKIM for all domains. There is no direct option in the WHM interface to manage DKIM for individual domains.
Enable or Disable DKIM for a Specific Domain
You can manage DKIM per domain using WHM API (whmapi1) commands.
- Log in to WHM.
- Navigate to Home > Server Configuration > Terminal. (Or connect to the server via SSH.)

- To enable DKIM for a Domain, run the following command:
whmapi1 enable_dkim domain=example.com
Replace example.com with the actual domain name.
- To disable DKIM for a Domain, run the following command:
whmapi1 disable_dkim domain=example.com
Note: These commands apply only to the specified domain; DNS changes may take time to propagate, and the domain must be hosted on the same server.
Global DKIM (For Reference Only)
If you want to enable DKIM for all domains, you can use:
WHM > DNS Functions > Enable DKIM/SPF Globally

This option affects every domain on the server and is not domain-specific.
Hope you enjoyed reading our KB. If you are looking forward to such informative KBs, do visit our KB section regularly.