When I log in to cPanel how can I change the SPF record that is listed for all of my users under Email Deliverability?
Utilize the UAPI to update the record for each user. This can be scripted by pulling the user and domain from
Note: When configuring your string, the
%2 corresponds to a
uapi --user=$user EmailAuth install_spf_records domain=$domain.com record="v=spf1 ip4:220.127.116.11 ip4:18.104.22.168 %2Ba %2Bmx -all"
For additional information on the UAPI command, review the UAPI documentation here: Install SPF record.
To update the SPF record from the user interface, review this article: How to customize the SPF record in the cPanel interface.