Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Can i enable spf & dkim this way?

Discussion in 'E-mail Discussion' started by postcd, Nov 17, 2014.

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    689
    Likes Received:
    14
    Trophy Points:
    68
    Hello, for all already created cpanel accounts, can i safelly execute this command from command line of WHM server?

    Code:
    for user in `ls -A /var/cpanel/users` ; do
    /usr/local/cpanel/bin/dkim_keys_install $user &&
    /usr/local/cpanel/bin/spf_installer $user ; done
    thank you
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,815
    Likes Received:
    84
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Yes, This command will enable SPF and DKMI for your all domains.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    689
    Likes Received:
    14
    Trophy Points:
    68
    thx 24x7server, I run it and indeed i got spf and dkim TXT records generated in all my DNS Zone files correctly, i checked by SPF online testers.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, to confirm, that is a valid command. Note that it does enable SPF/DKIM for all accounts, and it may produce some harmless warnings for usernames that do not exist.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice