Introduction
When I log in to cPanel how can I change the SPF record that is listed for all of my users under Email Deliverability?
Procedure
Utilize the UAPI to update the record for each user. This can be scripted by pulling the user and domain from /etc/userdomains
.
Note: When configuring your string, the %2
corresponds to a +
:
uapi --user=$user EmailAuth install_spf_records domain=$domain.com record="v=spf1 ip4:12.13.14.15 ip4:21.22.23.24 %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.
Comments
0 comments
Article is closed for comments.