[Dovecot] Problem with quota in maildir++

Timo Sirainen tss at iki.fi
Mon Sep 21 09:28:40 EEST 2009


On Sep 18, 2009, at 12:07 PM, Antonio Casado Rodríguez wrote:

> Hi all. I have a problem with one user. His quota is upper of real  
> quota.
>
> # cd /var/mail/problemuser/
> # find . -name 'dovecot*' -exec rm -f {} \;
> # find . -name 'maildir*' -exec rm -f {} \;
> # echo test | mail problemuser -s test
>
> # more maildirsize
> 104857600S
> 104215602 1439
> 647 1
>
> # du -h

Well, du -h doesn't necessarily match the quota. For example if the  
user has copied the same message multiple times, du counts its disk  
space only once. I'd guess that's the problem. Perhaps there's a 1 MB  
mail that's been copied 80 times or something?

Maybe use something like "ls -l" for each cur/ directory and count the  
"total" numbers together. That should give something closer to the  
Maildir++ quota.



More information about the dovecot mailing list