Announcement

Collapse
No announcement yet.

How to enable SPF and DKIM for cPanel

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to enable SPF and DKIM for cPanel

    Hello,
    How to create SPF and DKIM for existing cPanel Accounts?

  • #2
    Here is the script to enable SPF

    Note: $username is cPanel account name

    # /usr/local/cpanel/bin/spf_installer $username
    And here is the script to enable DKIM

    # /usr/local/cpanel/bin/dkim_keys_install $username
    If you want to do this in bulk you can use a simple for loop. Use the script mentioned below:

    for username in `ls -A /var/cpanel/users` ; do
    /usr/local/cpanel/bin/dkim_keys_install $username &&
    /usr/local/cpanel/bin/spf_installer $username ; done

    Comment


    • #3
      Our emails were being marked as spam and users were not getting them. Below, I give guidance from my own experience, how to modify the SPF record to avoid failing authentication and email perm errors. These techniques can be applied to all web hosting, however, the exact steps are for Nox Vidmate VLC Hostgator and cPanel.

      Comment

      Working...
      X