Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Notifications disabled but still sent

Discussion in 'General Discussion' started by swbrains, May 16, 2018.

  1. swbrains

    swbrains Well-Known Member

    Joined:
    Sep 13, 2006
    Messages:
    93
    Likes Received:
    7
    Trophy Points:
    158
    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!
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    967
    Likes Received:
    67
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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!
     
  3. swbrains

    swbrains Well-Known Member

    Joined:
    Sep 13, 2006
    Messages:
    93
    Likes Received:
    7
    Trophy Points:
    158
    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: support@xxxxxxx.com
    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.
     
  4. swbrains

    swbrains Well-Known Member

    Joined:
    Sep 13, 2006
    Messages:
    93
    Likes Received:
    7
    Trophy Points:
    158
    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*. :)
     
  5. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    967
    Likes Received:
    67
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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?
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,134
    Likes Received:
    365
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm seeing the same thing here and getting the email as well.
     

    Attached Files:

  7. swbrains

    swbrains Well-Known Member

    Joined:
    Sep 13, 2006
    Messages:
    93
    Likes Received:
    7
    Trophy Points:
    158
    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!
     
  8. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    967
    Likes Received:
    67
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    @Infopro

    At WHM>>Server Contacts>>Contact manager -> Communication Type what priority do you have email notifications set to. The default is low.
     
  9. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    967
    Likes Received:
    67
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    @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!
     
  10. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,134
    Likes Received:
    365
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    It's on Low as stated in the image I posted, not disabled as the OP. :rolleyes:
     
    cPanelLauren likes this.
  11. swbrains

    swbrains Well-Known Member

    Joined:
    Sep 13, 2006
    Messages:
    93
    Likes Received:
    7
    Trophy Points:
    158
    Email is set to "All" in Contact Manager. Does that override the "Disabled" setting for those two email types?
     
  12. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    967
    Likes Received:
    67
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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!
     
Loading...

Share This Page