Yessure <[EMAIL PROTECTED]> wrote:
>
> I am writing a web mail system based on qmail. For the security
> reason,i am using users/assign(and hash table users/cdb) instead of
> system /etc/passwd and /etc/shadow. It works fine. But the problem
> is, if there is 100000 or more users can it works fine still? I know
> users/cdb is an hashed table,so qmail can access fast enough, but
> once an user added, system had to do a '/var/qmail/bin/qmail-newu'
> to re-hash it. I donnt't know,if it can still be fast enough? And if
> not, how can I do?
Well, you could always test it. :-)
An indication of the performance of cdb is given by DJB in
ftp://koobera.math.uic.edu/www/fastforward.html:
]I put together an /etc/aliases file with 50000 aliases of the form
]31415:[EMAIL PROTECTED] sendmail's newaliases took 356 seconds of CPU time
](spread over more than ten minutes of real time) to create
]/etc/aliases.db. fastforward's newaliases created /etc/aliases.cdb in
]under 6 seconds.
This is a fastforward database, but qmail-users should be comparable.
-Dave