Skip to main content

maildirsize not updated after administrator delete

Comments

5 comments

  • cPWilliamL
    Hi @wizardgmb, [QUOTE]I go into the account and do mass deletions of out of date messages
    Could you share the exact method and steps you are using to remove the mail? Running either of the following commands should ensure mail quotas are properly updated: # /scripts/generate_maildirsize --help or # doveadm quota recalc -u $username
    Thanks,
    0
  • wizardgmb
    Hi @wizardgmb, Could you share the exact method and steps you are using to remove the mail? Running either of the following commands should ensure mail quotas are properly updated: # /scripts/generate_maildirsize --help or # doveadm quota recalc -u $username
    Thanks,

    Thank you for the response. I'll do my best to explain how I read email on my hosted web server. I read mail using the Roundcube program, logging in as the web site administrator. Using the "folder actions" icon in the lower left corner of the Roundcube folder display, I have added the folders of the email accounts I use most often along with the pre-existing administrator/default, inbox, drafts, sent, junk and trash folders. I routinely read and delete mail from the added folders for a dozen accounts. When the problem folder gets close to full, I will sort it to find messages of importance and move them to a different folder. Once I'm sure I have any important messages, I use the "select all" option and delete remaining messages to the trash folder. Then I go into the trash folder, do another "select all" and permanently delete the messages. At this point, the maildirsize should be updated to reflect drastically lower disk usage. I have learned that the same situation occurs if the messages are left in the trash folder without being permanently deleted. I understand that since the messages still occupy disk space. My other accounts never come close to their disk limit so I assume the 3x a year deletion of maildirsize keeps them from ever reaching the limit even though I use basically the same method of reading their messages. With the other accounts, I delete 1-5 messages at a time and occasionally all 50 of the displayed messages. Once a week or so, I permanently delete all the messages that accumulate in the trash folder. I hope this helps. I believe the first commands you provided requires server root access that I don't have. Will my limited hosting access allow me to use the second command? If not, I'll have to stick to deleting the maildirsize file.
    0
  • cPWilliamL
    Thanks for the details @wizardgmb. It's not uncommon that disk usage takes a bit longer to update; however, an alert days after cleaning mail is strange. There is the tweak setting WHM > Tweak Setting: "Cache disk quota information", that may be worth trying. The 'doveadm quota recalc -u $username' should work from the cPanel user's shell. The method you are using shouldn't prevent dovecot from updating its quota. I'd consider opening a ticket or raising the issue with your host. Having some hands-on access may shed more light on the issue.
    0
  • wizardgmb
    Thanks for the details @wizardgmb. It's not uncommon that disk usage takes a bit longer to update; however, an alert days after cleaning mail is strange. There is the tweak setting WHM > Tweak Setting: "Cache disk quota information", that may be worth trying. The 'doveadm quota recalc -u $username' should work from the cPanel user's shell. The method you are using shouldn't prevent dovecot from updating its quota. I'd consider opening a ticket or raising the issue with your host. Having some hands-on access may shed more light on the issue.

    I have opened tickets with five different hosting providers and every time the resolution has been deleting the file or some other operation that wasn't shared with me. I tried to get the providers to report the problem to you but nobody seemed interested in elevating a problem that was found by one quirky user. Earlier this week when I opened a ticket, I spent over a half-hour explaining the problem to support and stopping the person from deleting the mail account instead of dealing with the usage values. My knowledge of Linux & hosting is minimal so trying explain and get interest in pursuing the proper course of action is difficult at best. Perhaps your software test staff can recreate the problem, observe the results and find a remedy.
    0
  • cPWilliamL
    @wizardgmb, please feel free to open a ticket with us directly and we will check the issue for you(see my signature).
    0

Please sign in to leave a comment.