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!

Email Account Usage = Domain Account Usage

Discussion in 'E-mail Discussion' started by hwijaya, Mar 4, 2018.

  1. hwijaya

    hwijaya Member

    Joined:
    Apr 20, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    G'day CPanel Users,

    I have upgraded 3 of our CPanel servers to WHM 60 from 40 something.
    The servers have been plagued with Email Account Usage problem where they reflect the domain usage instead of personal usage (as attached).

    I have been trying many ways and google, but can't seem to pinpoint the problem.
    Had been deleting diskusage* files, email_accounts.cache, yaml, ducache, maildirsize
    and scheduling running of generate_maildirsize every 10 mins.

    But it will always come back to Domain Usage in seconds.

    Please help, I post help here because I am out of ideas for weeks.

    Thanks heaps.
     

    Attached Files:

  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,142
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hwijaya

    hwijaya Member

    Joined:
    Apr 20, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    Hi Michael,
    When I visited account.cpanel.net
    I get this

    error type: undef
    error info: Must be a positive integer (in $args->{"user_id"}) at (eval 484) line 182
    "PositiveInt" is a subtype of "Int"
    "Int" is a subtype of "Num"
    "Num" is a subtype of "LaxNum"
    "LaxNum" is a subtype of "Str"
    "Str" is a subtype of "Value"
    "Value" is a subtype of "Defined"
    Undef did not pass type constraint "Defined" (in $args->{"user_id"})
    "Defined" is defined as: (defined($_))

    undef error - Must be a positive integer (in $args->{"user_id"}) at (eval 484) line 182
    "PositiveInt" is a subtype of "Int"
    "Int" is a subtype of "Num"
    "Num" is a subtype of "LaxNum"
    "LaxNum" is a subtype of "Str"
    "Str" is a subtype of "Value"
    "Value" is a subtype of "Defined"
    Undef did not pass type constraint "Defined" (in $args->{"user_id"})
    "Defined" is defined as: (defined($_))

    The account creation and confirmation does not work.
     
  4. hwijaya

    hwijaya Member

    Joined:
    Apr 20, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    And everytime I create a new account.

    [removed due to use of real domain name]
     
  5. hwijaya

    hwijaya Member

    Joined:
    Apr 20, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    Because I am on very different time zone... 2.44am now... Can someone advise me / direct me where to fix it, I am a technical/developer, so I know my way around... just point me in the right direction.

    Thanks very much in advance.
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,142
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @hwijaya,

    I've been unable to reproduce the issue you have reported, but you can email cs@cpanel.net directly to report that error message and have them assist you with setting up a customer account.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. hwijaya

    hwijaya Member

    Joined:
    Apr 20, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    I know you won't be able to, because in the whole google, I can't find anyone having the same issue as mine, and I have 4 servers exactly same issue. I have to run generate_maildirs every few minutes, and the annoying part is not all accounts will recover, so have to run many times to make sure it does not take the Domain Size instead of account size.

    I have a feeling, it's dovecot/webmail that causes this, or everytime cpanel account is being logged in.
    As a programmer, I searched whole /var/cpanel for clues on where the values come from which variables.

    Fyi, everytime it's out of quota (although not right), exim will reject emails, that's how our clients raised complaints over size problem. So it's REAL size to the system.

    Domain Size: 4GB used
    Individuals < 200MB quota.... and a lot of the accounts will take 4GB as their used size, hence all out of quota, and all the warnings will appear and emails bouncing backs.

    Regarding incoming emails and outgoing emails, who is doing the quota checking? Because individual email accounts have the same username with the main domain account, hence exim and dovecot has to rely on a file or a number somewhere, rather than real quota. I need to seek where that number is, and the logic of generating the number.

    I regretted to this day (for many weeks) that I upgraded from 11.36 to 60, slowly, just to get the calendar and address book and autossl. It was the worst decision of my career, now every minute is a time bomb of email loss for 100s of domains of our clients.
     
  8. hwijaya

    hwijaya Member

    Joined:
    Apr 20, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    and one more clue.
    Even though maildirs is showing CORRECT size, cpanel might still take the 4GB instead of 20MB as written in maildirs files.
     
  9. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,142
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @hwijaya,

    Were you able to get in touch with our Customer Service Department for help setting up an account to open a support ticket? You can reach them via email at cs@cpanel.net if creating a new account continues to fail.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. hwijaya

    hwijaya Member

    Joined:
    Apr 20, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    Sigh. No reply yet. I have been self sufficient (until now) as I don't expect CPanel to be a fast customer-service company, especially for clients in the other side of the world. Our own antispam, our own compromised account monitoring, our own integration, without fiddling any of CPanel core.
     
    #10 hwijaya, Mar 6, 2018
    Last edited by a moderator: Mar 6, 2018
  11. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,142
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I see the support request is open as part of ticket number 9335907. You should receive a response shortly. I'll monitor this request and update this thread with the outcome.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,142
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, it appears in part that the issue with the email disk space calculation is no longer occurring after updating cPanel from version 60 to version 62.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice