Bulk add remote SPF record to accounts
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?
-
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. 0 -
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... 0 -
Hello, The following document explains how to use the spf_installer script to replace all existing SPF records: The spf_installer Script - Documentation - cPanel Documentation You may also want to vote and add feedback to the following feature request: Configurable SPF default template + automatically include assigned IP to SPF (not just main shared IP) Some of the comments on this request offer advice on workarounds. Thank you. 0
Please sign in to leave a comment.
Comments
3 comments