[Dovecot] Quota monitoring

Vlamsdoem vlamsdoem at gmail.com
Fri Apr 23 09:03:04 EEST 2010


On 22/04/10 13:39, Hugo Monteiro wrote:
> On 04/22/2010 12:02 PM, Vlamsdoem wrote:
>> On 22/04/10 10:57, Steffen Kaiser wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> On Wed, 21 Apr 2010, Vlamsdoem wrote:
>>>
>>>> No only the maximum quota for each user.
>>>
>>> So, where are your current quota values located?
>>>
>>> There had been mentioned to use SQL, where you can easily get your 
>>> quota via SQL.
>>>
>>> Regards,
>>>
>>> - -- Steffen Kaiser
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1.4.6 (GNU/Linux)
>>>
>>> iQEVAwUBS9APgb+Vh58GPL/cAQLsMwf8DxGNpPf5/tup6S+QQsVAOBOtgveKGXno
>>> 19MYefBMK1OJVzurf6DpFXDW8KkpXTkcX5nGVhpFKexytMyNF4qnRWM6JtIld+8F
>>> hJaIcdeH/TL6l1pS3veydF8J8C67RbudcgY441bn4dv6TuIl/pcoJadij7mwiVSP
>>> oHKPgXJP5nqkgqmW7tFogeSNpCuOlK/7YX2N/PDArIZgw08V/TsnZjTVOzNkp6u8
>>> p1iLvI0MplJUXD9iThDhe4qwERfydgUslfEDpO1lOIYqVHKPqv9Q4HQx+Q0ZpEwD
>>> ooqyJUPpk7TTIdzbCQ65kqAnYAE9SrALsOz6uXzsrKKaRqghBrlcow==
>>> =Owfw
>>> -----END PGP SIGNATURE-----
>>>
>> The current values of the quota is located in the maildirsize file in 
>> each user mailbox directory.
>> I can do a script to parse every maildirsize file but I don't 
>> understand the format of this file.
>> I read in the documentation that the first line is the maximum 
>> storage limit in bytes, but I don't know what the other lines means.
>> Here is an example of a maildirsize file:
>>
>> 1024000000S
>> 24140481 824
>> 2580 1
>> 655 1
>> 975 1
>> 975 1
>> 975 1
>> 975 1
>> 1434 1
>> 610 1
>> 3577 1
>>
>>
>> Regards,
>>
>
> http://www.courier-mta.org/imap/README.maildirquota.html
>
> Regards,
>
> Hugo Monteiro.
>
Finally I found a script here 
http://www.timj.co.uk/linux/maildir-check-quotas to monitoring the quota 
of each mailbox.
I think it's the best solution for me.

Thanks for your help.




More information about the dovecot mailing list