cPanel script to add SPF and DKIM

Last modified: February 21, 2020
You are here:
Estimated reading time: < 1 min

There is a script available on every cPanel servers by default to enable the SPF and DKIM records via command line.  This will surely help when there is a need of adding the records for many accounts at the same time.

If the SPF is only for a single account, do it like the following:

# /usr/local/cpanel/bin/spf_installer $username

Replace $username with the actual cPanel username.

If the DKIM is only for a single account, do it like the following:

# /usr/local/cpanel/bin/dkim_keys_install $username

Replace $username with the actual cPanel username.

These commands will help you to enable email authentications for single cPanel users. If you have many accounts and you want to enable SPF and DKIM for all accounts, please follow the simple for loop.

Was this article helpful?
Dislike 0
Views: 13
Customer Services Contact

Need Help? Send a Ticket to our 24X7 Technical Support Team

Subtitle
Subscribe Newsletter

Subscribe to Casbay Newsletter for online tips, events and latest promotion !

Copyright © 2010 – 2020 Casbay Sdn. Bhd. (1042688-D). All Rights Reserved.

All Trademarks Are The Property of Their Respective Owner.