Matt Brookings ha scritto:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tonix (Antonio Nati) wrote:
Quota code would be great, but I feel it would be better to move index
of messages and quota on mysql (or other db) instead of continuing with
old methods. A new library could be used for all layers (qmail,
vpopmail, dovecot, etc.).

I can't imaging that indexing of every user's messages inside a networked
database could be very efficient.  Also, moving quota information to a
database would also be quite inefficient.
Actually IMAP o POP daemons which extract from, subject, date and size size must open every message to get those informations. Also, an update of a db record could be faster than opening, reading and rewriting a maildirsize file (and this cannot be done by two sessions simultaneosly). A centralized daemon working on quota updates also could give an anourmous advantage, keeping in cache most used domains and users and updating 'custom' mysql records (where domain quota could be used).

Tonino


The daemon's only purpose at
this time is to keep disk usage information up to date so that other processes
do not need to worry about updating it, or hitting a database for every
small query that might even be unrelated to delivery, an expensive
operation itself.

It solves several problems at once.  1) Provides fast, and accurate disk
usage 2) Removes hundreds of lines of broken code from vpopmail involved
in keeping disk usage estimates current

It also adds direction to the quota support development which was sorely
needed.

Such vusage daemon would be very good for chkuser also, and also for
other qmail added features (like auth and so on).
But library should be universal, and daemon should be high performaces
daemon (like courier auth daemon).

What do you think about?

The daemon could easily be reworked to cache authentication information,
but currently, that is not the purpose of the daemon.  Right now, having
working quota enforcement is a critical need.

At this time, what I'd most like to see, is support in chkuser for the
quota daemon.  You already include quota enforcement.  If you look at
the trunk revision of vpopmail, in maildirquota.c, you will see how
easy it is to add support for the usage daemon.
- --
/*
    Matt Brookings <m...@inter7.com>       GnuPG Key D9414F70
    Software developer                     Systems technician
    Inter7 Internet Technologies, Inc.     (815)776-9465
*/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkm2nFIACgkQ6QgvSNlBT3CLsACfcML9jiCYjFK6qVntp/VICan2
5boAnR2+5oXcku3sI/9XsIcY3mANs1Z7
=QVWx
-----END PGP SIGNATURE-----



--
------------------------------------------------------------
in...@zioni Interazioni di Antonio Nati http://www.interazioni.it to...@interazioni.it ------------------------------------------------------------



!DSPAM:49b6a21232687921351632!

Reply via email to