[Dovecot] maildir quota divergence

Steffen skdovecot at smail.inf.fh-brs.de
Thu Feb 27 16:15:05 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Juan Carlos Sanchez wrote:
> Hello;
> 
> We are using maildir quotas and have found differences in many
> users in respect to what system command are showing and doveadm
> quotas.
> 
> For example, four user test, we have:
> 
> doveadm quota get -u test Quota name Type    Value Limit
> % STORAGE 98066 102400
> 95 MESSAGE   883 -
> 0
> 
> But if we check user mail_location with "du" system command we get
> he is using 70458 Kb.
> 
> We are running dovecot 2.1.17
> 
> ¿any clue?

Did you already tried: doveadm quota recalc -u user?

Did you started "du" right in Maildir? Use:

cd .../Maildir
du -cs cur new .*/{cur,new}

in order to count message files only.

You do not seem to have activated the hardlink feature. If you did,
you need to count each link, too.

untested size in KB:
find cur new .*/{cur,new} -type f -printf '%k\n' | \
 awk ' END { print n } { n=n+$1 } '

- -- 
Steffen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEVAwUBUw9kiHD1/YhP6VMHAQLh7Af/U4gqXDaE/9wJOdp/KvpIX9CvJIUPuX8L
Is/iAS2U/vLbZgh2o26NIsOfd+4cr+uR1OIrtPeUjDkvxFL17qo4SaZf0Sn8TTX5
BVX2b2OG1M6k+cxRmt+mV3UeRAzvzSoKUIhXTju7QbwcIG/SL1w8pCyLrBPIK0w1
O7sPl+eR2cF9cvY5M1pmfb+CBc/p1djn2bkeOT4lZf8BjRSqTxUbNP7HXIT9743A
vGBjCi7HsDSKHK4EaDlmtgsH3q9L5MtJQzL0ScDEcghzedhfsk4vf/96ipmhnfAQ
dXuBgWrztaNyNKxpg0IkHWlA7nUS9IWLEz6EjHG17yxuI/jRhHEnLQ==
=9aHd
-----END PGP SIGNATURE-----


More information about the dovecot mailing list