[Dovecot] recalculation of maildir Quota
Hello,
I intend to use maildir Quota for measurement only, not for applying restrictions. Therefore I defined rather high values. That's working as expected. Nevertheless it's not useful, because the recalculation time is to high. This takes some minutes for my own mailaccount with 250.000 mails on a NFS storage. This would be to bad, but whilst this time, the Mailclient hangs. Probably our users woulnd't accept this. Can this be done in the background?
Furthermore I noticed that recalculation occurs after the file maildirsize gets longer than 30 lines (around 250-300 bytes) and not after 5120 bytes as the wiki states. Do I do/understand something wrong or is this a bug?
Probably a nightly cronjob, which does calculation of Maildir-size would be a more useful alternative.
Regards,
Ingo Rogalsky
I think you have answered your own question at the bottom!
Mark.
On 23 Nov 2007, at 10:12, Ingo Rogalsky rog7993@web.de wrote:
Hello,
I intend to use maildir Quota for measurement only, not for applying restrictions. Therefore I defined rather high values. That's working
as expected. Nevertheless it's not useful, because the recalculation time is to high. This takes some minutes for my own mailaccount with
250.000 mails on a NFS storage. This would be to bad, but whilst this time,
the Mailclient hangs. Probably our users woulnd't accept this. Can this be done in the background?Furthermore I noticed that recalculation occurs after the file maildirsize gets longer than 30 lines (around 250-300 bytes) and not after 5120 bytes as the wiki states. Do I do/understand something
wrong or is this a bug?Probably a nightly cronjob, which does calculation of Maildir-size
would be a more useful alternative.Regards,
Ingo Rogalsky
On Fri, 2007-11-23 at 11:12 +0100, Ingo Rogalsky wrote:
I intend to use maildir Quota for measurement only, not for applying restrictions. Therefore I defined rather high values.
"0" values would have worked as well (I think, at least works in v1.1).
That's working as expected. Nevertheless it's not useful, because the recalculation time is to high. This takes some minutes for my own mailaccount with 250.000 mails on a NFS storage. This would be to bad, but whilst this time, the Mailclient hangs. Probably our users woulnd't accept this. Can this be done in the background?
Not really. Dict quota would be better for you I think, although it doesn't work very well in v1.0 either :)
Furthermore I noticed that recalculation occurs after the file maildirsize gets longer than 30 lines (around 250-300 bytes) and not after 5120 bytes as the wiki states. Do I do/understand something wrong or is this a bug?
Actually I did find a bug from there which could have caused this. Fixed: http://hg.dovecot.org/dovecot-1.0/rev/288fd70ac258
Hello,
On Fri, Nov 23, 2007 at 12:36:54PM +0200, Timo Sirainen wrote:
On Fri, 2007-11-23 at 11:12 +0100, Ingo Rogalsky wrote:
Furthermore I noticed that recalculation occurs after the file maildirsize gets longer than 30 lines (around 250-300 bytes) and not after 5120 bytes as the wiki states. Do I do/understand something wrong or is this a bug?
Actually I did find a bug from there which could have caused this. Fixed: http://hg.dovecot.org/dovecot-1.0/rev/288fd70ac258
This solves the issue. Thanks. Nevertheless I'm going to disable the quota plugin because of the long recalculation time and imap clients not usable during this.
But one more question: Would it be possible to disable the recalculation and do this with a nightly cronjob, which scans all mail accounts?
Ingo
On Fri, Nov 23, 2007 at 06:47:41PM +0100, Ingo Rogalsky wrote:
But one more question: Would it be possible to disable the recalculation and do this with a nightly cronjob, which scans all mail accounts?
Depending on your needs you could always use your (Linux?) OS tools and do a du -s * or if supported du -sm * to get the size im MB. Adding a | sort -nr gives a nice list with top users of disk space first. Doing it on the machine that serves the NFS should speed it up significantly.
\Maex
On Fri, 2007-11-23 at 18:47 +0100, Ingo Rogalsky wrote:
This solves the issue. Thanks. Nevertheless I'm going to disable the quota plugin because of the long recalculation time and imap clients not usable during this.
But one more question: Would it be possible to disable the recalculation
This would be easy by modifying the quota plugin.
and do this with a nightly cronjob, which scans all mail accounts?
This would be specific to your installation, but I guess it wouldn't be too difficult to write such a script.. Anyway I won't try it. :)
participants (5)
-
Ingo Rogalsky
-
Johannes Berg
-
Mark Adams
-
Markus Stumpf
-
Timo Sirainen