Reset SPF for most accounts excluding gsuite?

kinggekko

Registered
Jun 4, 2019
2
0
1
Malaysia
cPanel Access Level
Root Administrator
hi there
we are updating IP address for the hosting and we are doing the following for resetting SPF
however there are gsuite/zoho users within our dns and we like to do spf_installer for all users excluding gsuite/zoho

can someone guide ?

for u in `ls /var/cpanel/users` ;do echo "Installing SPF for user $u"; /usr/local/cpanel/bin/spf_installer $u "+ip4:xxx.xxx.xxx.xxx -all" 0 1 0; done
 

kinggekko

Registered
Jun 4, 2019
2
0
1
Malaysia
cPanel Access Level
Root Administrator
thanks for the notes, the reason we are manually doing this is because we like to add additional host ip , an additional backup exim on a 2nd cpanel to router the email as stand by. the 2nd IP is on a second Cpanel instead of the IP in the same server

however , adding a new IP in the SPF using the installer reset those who MX pointed to external servers such as gsuite/zoho

so we are wondering any helps possible