How to mass disable SPF for old users
Hi,
in WHM modify account, there is a checkbox "Enable SPF on this account."
I want to disable this function, as i'm using custom spf management and dont want cpanel to modify my txt records.
I've disabled in tweak settings the "Enable SPF on domains for newly created accounts" and i would like to disable it for all the old accounts.
How can i mass change this setting for all accounts?
I see that there is a "HASSPF=1" in /var/cpanel/users/XXX
Will it work if i do something like :
for i in `ls /var/cpanel/users/`
do
sed -i 's/HASSPF=1/HASSPF=0/g' $i
done
or is there any other files that i have to change?
best
-
If you don't tick that when you create a new account it won't be added then. For the old accounts do they also use incorrect SPF settings? 0 -
As @andrew.n said, if you uncheck the box in WHM that will make sure that new accounts do not get that DNS record added automatically. It won't remove the existing records, so you'd need to update the DNS manually for domains you wanted to remove that from. 0
Please sign in to leave a comment.
Comments
2 comments