Adding SPF Records and Domainkeys in cPanel
Adding Domain Keys for a Single User/usr/local/cpanel/bin/dkim_keys_install username
Adding Domain Keys for All Usersfor user in `ls /var/cpanel/users`; do /usr/local/cpanel/bin/dkim_keys_install $user; done
Adding SPF Records for a Single User/usr/local/cpanel/bin/spf_installer username
Adding SPF Records for a All Usersfor user in `ls /var/cpanel/users`; do /usr/local/cpanel/bin/spf_installer $user; done
Setup Server to Create DKIM / SPF Records on New Account Creationvi /scripts/postwwwacct
Add the following at the bottom of the file:print "\nInstalling DKIM / SPF Records for $name ..."; system("/usr/local/cpanel/bin/dkim_keys_install $name"); system("/usr/local/cpanel/bin/spf_installer $name");
Shell Script for adding SKIM / SPF Records to All Users:#!/bin/bash for user in `ls /var/cpanel/users` do echo "Installing SPF Record for $user..."; /usr/local/cpanel/bin/spf_installer $user; echo "Installing DKIM Record for $user..."; /usr/local/cpanel/bin/dkim_keys_install $user; done
Was this answer helpful?
Flushing the DNS resolver cache can help resolve DNS related problems in Microsoft Windows 10....
View our Step-by-Step Tutorial Video for Setting up an Email Forwarder in cPanel Shared Hosting.
Redirect All Traffic to HTTPS To redirect ALL http requests to https, add the following lines to...
Mailing lists allow you to use a single address to send mail to multiple email addresses. Create...
This article demonstrates the method for using PHP and SMTP Authentication to send mail.Below...