spf on account creation help


Well-Known Member
Nov 18, 2014
cPanel Access Level
Root Administrator
i want change default spf record on account creation.
I do not have understand correctly the correct way , i need help , guide , tutorial and examples. someone can help me? thanks

Autodiscovery SPF include hosts from the smarthost route list [?]
The system will check each label in the smarthost route list for SPF entries and add an include entry to the SPF records. For example, if the smarthost routelist is set to "* outbound.example.tld" and an SPF record exists for "example.tld", the system adds an SPF include entry for all domains on the system with SPF enabled.

SPF include hosts for all domains on this system [?]
A comma-separated list of hosts that the system will add as SPF include entries for all domains on the system with SPF enabled.


Active Member
Jun 23, 2020
cPanel Access Level
Root Administrator

In order to change the default SPF record on account creation you need to edit the appropriate zone template.
From the WHM interface go to DNS Functions -> Edit Zone Templates
Next select which kind of acount you want the spf record changed for.
Either standard (Dedicated IP, Parked, Addon domains) or standardvirtualftp (Shared IP)

You will than get a editor field in which you can edit spf and other dns zone information.
Default value *before* editing should be %domain%. IN TXT "v=spf1 mx a -all"

If you require help with spf syntax I highly recommend a free service like SPF Wizard - SPF Generator DNS tool
  • Like
Reactions: cPRex