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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bulk add remote SPF record to accounts

Discussion in 'E-mail Discussions' started by Mauritz, Feb 8, 2017.

Tags:
  1. Mauritz

    Mauritz Well-Known Member

    Joined:
    Apr 29, 2015
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Johannesburg
    cPanel Access Level:
    Root Administrator
    We need to append a remote SPF entry to all of the SPF records for our accounts in cPanel. Is there a way to bulk add an entry to the SPF records of all current customers and how would we deal with new accounts. Can we edit the template for SPF records to always include the entry we wish to append?
     
  2. pwhjenny

    pwhjenny Well-Known Member

    Joined:
    Aug 31, 2012
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    91
    cPanel Access Level:
    Root Administrator
    You can use command /usr/local/cpanel/bin/spf_installer with for loop. If you want to add custom values in spf record you can view different options you can use with this command.
     
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,488
    Likes Received:
    60
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    You can add the SPF record using the script mentioned above or you can directly append the SPF record into the DNS zones server wide using a bash script. However, you have to make sure you are doing it properly because it may mess up things on the DNS zone if you choose too. In both the cases, you will have to use a bash shell script to do it serverwide...
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page