Add SPF and DKIM records for all cPanel accounts

SPF and DKIM records are used to verify the authorised mail server allowed to send emails for that domain.
Enabling such records will help for better mail delivery and is recommended to be enabled on all accounts.

Adding Domain Keys for All Users
for user in `ls /var/cpanel/users`; do /usr/local/cpanel/bin/dkim_keys_install $user; done

Adding SPF Records for a All Users
for user in `ls /var/cpanel/users`; do /usr/local/cpanel/bin/spf_installer $user; done

  • 19 Users Found This Useful
Was this answer helpful?

Related Articles

Search for and find large files on your server

Syntax for RedHat / CentOS / Fedora Linux find {/path/to/directory/} -type f -size...

Retrieving directory listing issue with FTP over TLS cPanel WHM

This relates to cPanel servers running CSF. Since a recent update to the FTP software client...

Extend/increase a mounted volume

Warning :Under Linux, so that the title does not change during this operation (vdb > VDC for...

Create and configure an additional disk on an instance

List the disks admin@serveur-1:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE...

List Connections by IP Address (Centos)

Via SSH run the following commands:   View all port 80 (HTTP)connections by IP: netstat -anp |...