SPF is not enabled for newly created cPanels

postcd

Well-Known Member
Oct 22, 2010
721
21
68
Hello,

my newly created cPanels have option "Enable SPF on this account" not ticked (disabled)
even i have in WHM/Server Configuration/Tweak Settings option "Enable SPF on domains for newly created accounts" set to "On". I already tried tos et it Off and then On, but still newly created cpanels has SPF disabled (When i go to list accounts, Modiffy button for that newly created cpanel)

enabling SPF for accounts work, that is not issue, but i want it enable for new cpanels automatically

i dont wish to submit ticket, please let me know what i need to check

thx
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

The option you referenced is designed for use with:

"WHM Home » Account Functions » Create a New Account"

It does not apply to:

"WHM Home » Account Functions » Modify an Account"

To clarify, is the option not automatically checked under "WHM Home » Account Functions » Create a New Account"?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
To help determine if this is a bug with WHMCS, could you review "WHM Home » Account Functions » Create a New Account" and let us know if the SPF option is ticked? If so, the issue is isolated to WHMCS. You can reach their forums at:

WHMCS Forums

Thank you.
 

postcd

Well-Known Member
Oct 22, 2010
721
21
68
Hello, here is reaction from WHMCS point of view. They tells it is an WHM issue maybe?

The Cpanel module in WHMCS does not tell cPanel & WHM whether or not it should create an SPF record or not; it relies on the cPanel & WHM server to honor the default settings that are defined at Tweak Settings > Domains.

The fact that cPanel doesn't honor the default settings when the createacct API function is run is an issue on their side in their API call. Here's an except from their documentation site at http://documentation.cpanel.net/display/SDK/WHM+API+1+Functions+-+createacct stating that they don't honor the default settings:

spf (optional) boolean
Whether SPF is enabled for the account.
This parameter ignores the Enable SPF on domains for newly created accounts setting in WHM's Tweak Settings interface (Home >> System Configuration >> Tweak Settings).

This is stating that they are specifically ignoring this option in the create account function of their API when you have it setup in the Tweak Settings.

I would contact cPanel to enquire about this as I do know they have a Case opened over this functionality.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

Yes, it's true that account creation with our API does not respect the "Enable SPF on domains for newly created accounts" value configured in "WHM >> Tweak Settings". Thus, developers must utilize "spf=1" when using the createacct module to ensure a SPF record is created. The best way to see a change in this behavior is submit a feature request for it via:

Submit A Feature Request

Thank you.
 

dazeck

Well-Known Member
Jul 19, 2014
58
11
58
England
cPanel Access Level
Root Administrator
Just found out I have the same problem and found this thread, so please answer why we need to submit a feature request to fix a bug. Why should WHMCS developers add spf=1 as I may have auto spf switched off in tweak settings, how are they to know. The API should directly reflect what the system does. Please fix this bug.
 

dazeck

Well-Known Member
Jul 19, 2014
58
11
58
England
cPanel Access Level
Root Administrator
It shouldn't be a feature request, it's clearly a bug. How does WHMCS or any other 3rd party application know if I have auto spf set in tweak settings - Answer, they don't they call the API and expect it to read and adhere to the settings.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
It shouldn't be a feature request, it's clearly a bug. How does WHMCS or any other 3rd party application know if I have auto spf set in tweak settings - Answer, they don't they call the API and expect it to read and adhere to the settings.
Hello :)

Thank you for your feedback. We've now addressed this issue with internal case number 192877 so the setting will apply to accounts created with our API. The change is scheduled for inclusion with cPanel version 11.50.1, and you can monitor our change log for the case number to see when it's released:

11.50 Change Log

Thank you.