SOLVED Customizing the suggested SPF record in Email Deliverability

dolphyn

Well-Known Member
Nov 27, 2001
71
0
306
cPanel Access Level
Root Administrator
In WHM, I can see a feature to customize the suggested SPF record, but as far as I can tell it only modifies the SPF for one domain at a time.

How can I customize what the system will suggest to all users? (I want it to show our IP range, xx.xx.xx.0/26, instead of just a single IP.) Thanks!
 

techAMIGO

Active Member
Nov 6, 2019
43
38
18
Kerala, india
cPanel Access Level
Root Administrator
Hi @dolphyn

For add a specific SPF record for all domains using your nameservers, there is an easier method

Step 1, Add a SPF txt record like
Code:
v=spf1 ip4:xx.xx.xx.0/26 ~all
for a subdomain
Code:
spf.yourdomain.tld
or any chosen name you would like to give


Step 2. Login to whm and go to
Code:
Home /
Service Configuration /
Exim Configuration Manager
and add the subdomain name (spf.yourdomain.tld ) under SPF include hosts for all domains on this system as in the following screenshot

1685177418219.png
Save and restart exim, it will auto-add the SPF include to all domains, if it didn't add then re-run the "Enable DKIM/SPF Globally" from WHM from

Code:
Home /
DNS Functions /
Enable DKIM/SPF Globally
1685177606137.png
It will add the SPF include for all DNS zones automatically.
 
  • Like
Reactions: cPRex