When I log in to cPanel, under Email deliverability, how can I change the SPF record that is listed for all of my users?
To do this, you need to utilize the UAPI to submit the change for each user. This can be scripted by pulling the user and domain from
When configuring your string, the
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, please review the UAPI documentation: Install SPF record
To do this from the user interface, please review How to customize the SPF record in the cPanel interface.