Powered by WHUK®

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

    Working...
    X