Mailbox Quota full - but no mails in directorys

Discussion in 'ISPConfig 3 Priority Support' started by muelli75, Sep 26, 2023.

  1. muelli75

    muelli75 Member

    Hi!

    Using here ispconfig 3.2.11, debian 11, with some domains for webhost and mailhost.

    Two mailboxes on different domains having some problems, all the others have no issues.
    The mailbox-quota is full or nearly full, but there are only a few mails in the directorys.
    See attached screenshots of ispconfigs overview.

    There are a few mails in the mailboxes, at least not enough to occupy 5 GB or more of space.

    In /var/vmail/domain1 are 138 MB, but according to ispconfig 5204 MB are used:
    Code:
    du -sh mail
    138M    mail
    
    In /var/vmail/domain2 are 925 MB, but according to ispconfig 3779.9 MB are used:
    Code:
    du -sh d.directory/
    925M   d.directory/
    
    Any idea how to recalculate the mailbox-quotas?

    Thank you in advance!

    Martin
     

    Attached Files:

  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You may be looking at wrong directories or omitting to include hidden files.
    See what this shows, and compare to ISPConfig info:
    Code:
    du -shc /var/vmail/*
     
  3. muelli75

    muelli75 Member

    Thanks for this, but it still says
    Code:
    du -shc /var/vmail/*
    139M    /var/vmail/domain1
    3.3G    /var/vmail/domain2
    
    for the whole domain1 (only one mailbox) is only 139MB in the directory, but ispconfig shows 5.2GB.
    for the whole domain2 (there are 8 mailboxes) is only 3.3GB in the directory, but ispconfig shows 3.7GB.

    This not only a cosmetical issue, if the miscalculated quota is reached -> incoming mails are rejected.

    If I go to webmail (roundcube) / settings / folder / selecting one folder and click on "show folder size" (Ordnergröße anzeigen), the correct size is shown. Have a look at the attached screenshots.
     

    Attached Files:

  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Are there links in /var/vmail tree, or mount points? Any other modifications that might affect disk space calculations?
    I think ISPConfig shows mailbox quota from what dovecot calculates. This has info on how to force recalculate: https://docs.iredmail.org/recalculate.mailbox.quota.html
    Try if that changes anything. If not, problem is complicated, may need ISPConfig developer to know how ISPConfig gets the mailbox usage stats.
     
  5. muelli75

    muelli75 Member

    There are no links to anywhere, no mountpoints. No modifications - just "debian 11 + ispconfig out of the box".
    The solution behind the link to recalculate for dovecot did not worked, the same false quota is present.

    Whats the best way to contact the devlopers? File a bug on github?
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Did it show the calculated quota, was it correct or false?
    If you look at ISPConfig Home page and the Mailbox Quota statistics there, I believe the display is updated once daily, so try waiting 24 hours.
    There is no indication this is a bug so far. The developers read this forum, so wait, they answer sooner or later.
    Meanwhile, try searching this forum for old discussions about mailbox quota.
     
  7. muelli75

    muelli75 Member

    It shows nothing, no result is given. no matter if I address the individual mailboxes or if i use -A to address all of them.
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    That is from man doveadm-quota. So try
    Code:
    doveadm quota get -u someuser
    to see what doveadm thinks is the disk usage.
     
  9. muelli75

    muelli75 Member

    Code:
    #doveadm quota get -u user@domain1
    
    Quota name Type     Value   Limit                                                         %
    user       STORAGE 150870 8396800                                                         1
    user       MESSAGE    131       -                                                         0
    
    #doveadm quota get -u user@domain2
    Quota name Type     Value   Limit                                                                      %
    user       STORAGE 944183 4608000                                                                     20
    user       MESSAGE    679       -        
    
    So dovecot apperently did a new calculation, tomorrow lets have a look on ispconfigs meaning.
    Thanks for now!
     
  10. muelli75

    muelli75 Member

    after this night, the quota is recognized by ispconfig. the correct values are displayed. thanks for helping!
     
    Taleman likes this.

Share This Page