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:22.214.171.124 ip4:126.96.36.199 %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.