Quantcast
Channel: Linux Server | cPanel | WebHosting
Viewing all articles
Browse latest Browse all 16

Add SPF and DKIM Email Authentication Through the Command Line on cPanel Server

$
0
0

To add an SPF record for a single user, use the following command:

# /usr/local/cpanel/bin/spf_installer  CPANEL_USER

To add SPF records for all the users on a cPanel server, use the following commands:

# cd /var/cpanel/users

# for u in *;do echo “Installing SPF for user $u”; /usr/local/cpanel/bin/spf_installer $u; done

To add DKIM record for a single user, use the following command:

#  /usr/local/cpanel/bin/dkim_keys_install CPANEL_USER

To add DKIM records for all the account on a cPanel server, use the following commands:

# cd /var/cpanel/users

# for u in *;do echo “Installing DKIM for user $u”; /usr/local/cpanel/bin/dkim_keys_install $u; done


Viewing all articles
Browse latest Browse all 16

Trending Articles