[Dovecot] Problem with quota in maildir++
Antonio Casado Rodríguez
acasado at ual.es
Tue Sep 22 11:25:11 EEST 2009
Timo Sirainen escribió:
> 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.
Ok. Hard links :-)
# du -hs problemuser
21M problemuser
# du -hls problemuser
105M problemuser
More information about the dovecot
mailing list