Notifications disabled but still sent

swbrains

Well-Known Member
Sep 13, 2006
306
45
178
Hi,

  • CENTOS 7.5 standard
  • cPanel v70.0.42

    In WHM->Contact Manager->Notifications, I have Account Creation and Account Removal set to Importance = Disabled, and Alert List shows "None", but they are still being sent when I create a new account or terminate an existing one. If it matters, I'm creating and deleting my accounts via the cPanel API from a Perl script.

    How can I stop these notifications?

    Thanks!
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
HI @swbrains

Would it be possible to show me what the context of the email notification sent is? Also is the email being sent to the administrator, reseller or user?

Thanks!
 

swbrains

Well-Known Member
Sep 13, 2006
306
45
178
Hi,

The message context is below:

Code:
New Account created.
Domain: vinnie28.xxxxxxxxx.com
IP Address: xxx.xxx.xxx.xxx (Shared)
CGI Access: Enabled
Username: vinnie28
Password: ***HIDDEN***
cPanel Theme: paper_lantern
Home Directory Root: /home
Quota: 200 bytes
Contact Email: [email protected]
Package: xxxxxxx_Trial
Feature List: default
Locale: en
The account was set up by the reseller “xxxxxxxx” with the effective UID of “root”.
It looks like it was sent to the reseller email address, not the address in WHM contact information.
 

swbrains

Well-Known Member
Sep 13, 2006
306
45
178
Not related, but just noticed in the email it says the quote is set to "200 bytes" when in reality it's set to 200 *MB*. :)
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Hi @swbrains

I'm using the whmapi1 createacct function to create an account for a reseller in an attempt to replicate this. I have the notification for Account Creation set to Low Priority and email set to only go out on High Priority notifications. I am not able to replicate this behavior.

Can you tell me how you're creating the account specifically and any other software you might have on the server?
 

swbrains

Well-Known Member
Sep 13, 2006
306
45
178
Here is a sample of my API call from a Perl script:

Code:
$URI = "http://xxxxxxxxx.com:2086/json-api/createacct?username=$user&plan=$plan&password=$ACCOUNT_PASSWORD&domain=$domain&contactemail=$contactemail&useregns=0&reseller=0"
$request = HTTP::Request->new(GET => $URI);
Maybe one of the params I'm passing are triggering it?

Hope this helps!
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
@swbrains

It shouldn't be - can you post a picture of the email just like @Infopro did. There's a little section at the bottom that describes "Account Creation" notifications that I'd like to verify.


Thanks!
 

swbrains

Well-Known Member
Sep 13, 2006
306
45
178
Email is set to "All" in Contact Manager. Does that override the "Disabled" setting for those two email types?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Hi @swbrains

To clarify:

Email notification priority = All

Notification for Account Creation = Disabled

It shouldn't but I think I remember a case on this previously CPANEL-17553 but this only was relevant for resellers and was supposed to be fixed in v70.

If you create an account as root (not as the reseller or owned by the reseller) does the same behavior occur?

Thanks!