Skip to main content

[CPANEL-26448] Default Email Account Showing Incorrect Usage

Comments

52 comments

  • rpvw
    You could try running # /scripts/generate_maildirsize --confirm --verbose $username
    or # doveadm quota recalc -u $username
    0
  • cPanelLauren
    0
  • DarkxPunk
    @cPanelLauren @rpvw First command reset the value for the default email account back to 0. However after viewing the disk usage the size repopulated. I ran the first command again it went back to 0, ran the second command and again the size repopulated. Something is clearly bugged.
    0
  • rpvw
    Have a look in Tweak Settings under System for: [quote] Cache disk quota information Setting this option to On causes WHM to cache disk usage information. This may result in disk usage information being up to 15 minutes out-of-date. Setting this option to Off will provide more up-to-date data, but may significantly slow your server"s performance.
    If this is switched ON (default), you may have to wait up to 15 mins before the disk usage size changes to reflect the correct value.
    0
  • DarkxPunk
    @rpvw Many hours later I checked and the issue remained. Ran command again and waited a bit over 30 minutes, again issue remained. For some reason the default account is bundling with it other accounts, I don"t think it"s miscalculating I think files are being associated with the wrong place.
    0
  • cPanelLauren
    Hi @DarkxPunk Do you have filesystem quotas enabled? If so try running the following: /scripts/fixquotas
    0
  • DarkxPunk
    @cPanelLauren Changed nothing. Any further ideas?
    0
  • cPanelLauren
    Hi @DarkxPunk What about the actual size of the default account? Can you get this from the CLI: cd /home/$user/mail/
    du -h --max-depth=1
    0
  • DarkxPunk
    @cPanelLauren I am not sure what number you are looking for because all the domains are in this folder, but: .spam - tmp - .Trash - .Sent - cur - new - .Archive - .Drafts - .Junk totals 176k So def not the number its finding. But again it's reading the content of a domain not just its own folders.
    0
  • cPanelLauren
    Hi @DarkxPunk I was actually wanting to compare the two (what's being seen in the UI as compared to what's actually there). Please feel free to open a ticket using the link in my signature. Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved. Thanks!
    0
  • DarkxPunk
    @cPanelLauren ID: 11700097
    0
  • cPanelLauren
    Thanks @DarkxPunk I'm following that ticket and I'll update here when it's been resolved.
    0
  • tonyotonio
    Hello, Experiencing the same thing here. Ran /scripts/generate_maildirsize --confirm --verbose $username Defaukt account shows correct size now, but re-opening the mailbox returns value to the erroneous one. Doing: du -shc mail/* du -h --max-depth=1 Shows actual sizes, which doesnt match what's being displayed. Seems like its its theme that's causing error? Quotas seems to be fine, WHM also seems to show correct size.
    0
  • cPanelLauren
    Hi @Anthony Chua What theme are you using?
    0
  • tonyotonio
    Hi @Anthony Chua What theme are you using?

    Just the default one. Named "paper_lantern"
    0
  • cPanelLauren
    Hi @Anthony Chua That shouldn't actually be causing the issue. In the case of the OP the issue seems to be related to the use of symlinks in mail dir per the ticket that was opened In order for the account to show 0, you would need to remove the symlinks. This will, however, prevent the default email account from accessing those email accounts. The disk usage shown in this interface is not actually impacting the cPanel account's disk usage. [COLOR=rgb(0, 0, 0)]
    0
  • Metro2
    Same exact issue here - almost every user account I check shows large figure for the "default" account which is not being used. Just for example: root@server [/home/example/mail]# du -h --max-depth=1 24K ./.spam 4.0K ./new 667M ./example.com 4.0K ./tmp 4.0K ./cur 24K ./.Junk 24K ./.Drafts 24K ./.Archive 24K ./.Sent 24K ./.Trash 667M . But despite their being no email in the "default" account, and it's absolutely empty, in cPanel > Email Accounts in this particular example it shows over 300mb being used in the Default email account. Deleting all of the maildirsize files in the user's account and letting them regenerate will make it show 0mb for a while, same as running /scripts/generate_maildirsize --confirm --verbose example But still eventually the large number comes back for the empty default account. @cPanelLauren - your last response was informative and educational for sure, thank you, but I'm still a bit mystified by this behavior. The whole reason I even came here and searched the forums today / discovered this thread, is because I got a ticket from a customer asking "why?" about this. I knew eventually a customer would not only notice but also contact me, and today "eventually" happened. It's nice that I can cite your "The disk usage shown in this interface is not actually impacting the cPanel account's disk usage" message to clients to give them some assurance, but it would be really nice to have a way to easily explain this phenomenon to users when in all honesty I'm a little confused by it myself. Is there a way to safely remove the symlinks that you mentioned across the board for all users? And an example of how to do it safely for one user account as well? Thanks for all the info everyone has shared so far.
    0
  • cPanelLauren
    As it turns out a case was opened for this behavior over the weekend. CPANEL-26448 - Accessing webmail for default cPanel account adds all email quota from all other email accounts to it. Right now the workaround should be to run the generate_maildirsize script but when you log in to the default account again it will revert changes. I'll keep you posted in this thread as to the status of the internal case and when it's resolved. Thanks!
    0
  • Metro2
    Thank you @cPanelLauren !
    0
  • tonyotonio
    Thanks for the update @cPanelLauren Please do keep us posted
    0
  • whipworks
    Following this. Waiting for updates. Thank you @cPanelLauren :)
    0
  • cPanelLauren
    Hi guys, This is not resolved yet but it is currently being worked on. I'll update here when it's complete!
    0
  • xuser
    I am subscribed to as I am facing same issue with one of the domain.
    0
  • sontruong82
    I also have the same problem, please fix it asap, thanks.
    0
  • cPanelLauren
    I just double checked this case and this issue is still unresolved at this time. I don't have an ETA for when it will be resolved but we will update this thread accordingly as soon as there is more information or any updates. Thanks!
    0
  • eciestylez
    Any feedback here?
    0
  • cPanelLauren
    This issue is not resolved as of yet, it does appear to be in progress (currently being worked). When the internal case is updated I will provide an update to this thread as well.
    0
  • Triggerbox
    It has been more than a year since @cPanelLauren's last response. I have a similar issue with one of my accounts. Any update on this?
    0
  • cPanelLauren
    @Triggerbox I believe you're mistaken, this thread has only been open for a few months and my last response was just a few days ago. This case is still in progress though it is being actively worked on. As I've noted previously when there are any updates to this issue I will update this thread. Thanks!
    0
  • Metro2
    Good to know this is still on the radar / in the works. I've got some accounts that don't even have local email anymore (switched to G Suite and deleted all local accounts / MX) and still the empty "default" account shows 400 Megabytes in it.
    0

Please sign in to leave a comment.