The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can i enable spf & dkim this way?

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

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    624
    Likes Received:
    6
    Trophy Points:
    18
    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
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Yes, This command will enable SPF and DKMI for your all domains.
     
  3. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    624
    Likes Received:
    6
    Trophy Points:
    18
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    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.
     
Loading...

Share This Page