That`s correct, but Exim has to find the maildirs first, to deliver the mails. I tried Dovecot Imapd and found that it can handle variables like "%1u" which returns the first letter of the username. In the Exim config I can use the function "substr" to get the same results. Now I can combine these to take the first and the second letter from the username (or even more) to get a better balance.

With this I can build a directory structure like this (for the user totty): "/var/spool/mail/t/o/totty".

Is there a possibility to use this within Courier (like the variables from Dovecot or the "substr" from Exim?
I haven`t found any hints in the documentation on the website.
Is there any other documentation?

Thanks
Torsten



Brian Candler schrieb:
On Sat, Mar 10, 2007 at 07:47:36PM +0100, Totty wrote:
(1) Because it balances very poorly
Thats true, but I give it a try.

Well do by all means, but it's very easy to do it properly.

    echo -n "foobar" | md5sum | head -1c

gives you 16 subdirectories (0-9, a-f) with very good balancing. As long as
this has been stuck into a database then you can use a DB search whenever
you want to find which subdirectory a particular account is in.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to