|
List Info
Thread: Re: Hashed or Calculated Maildirs
|
|
| Re: Hashed or Calculated Maildirs |
  Germany |
2007-03-10 12:47:36 |
Thanks guys for your time.
> I have a simpy idea. Why not split into 26 subfolders
(where you will write
> the maildirs), and the name of subfolder are the 1
letter of account?
> (1) Because it balances very poorly
Thats true, but I give it a try.
I think that is the easiest way to do this.
Thanks
Torsten
------------------------------------------------------------
-------------
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
Courier-imap lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-im
ap
|
|
| Re: Hashed or Calculated Maildirs |
  United Kingdom |
2007-03-10 14:21:05 |
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
Courier-imap lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-im
ap
|
|
| Re: Hashed or Calculated Maildirs |
  Germany |
2007-03-11 10:42:15 |
|
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:
uk.tiscali.com" type="cite">
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.
|
| Re: Hashed or Calculated Maildirs |
  United States |
2007-03-11 10:47:33 |
Totty writes:
> 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?
You will need to write your own authpipe module.
------------------------------------------------------------
-------------
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
Courier-imap lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-im
ap
|
|
| Re: Hashed or Calculated Maildirs |
  United Kingdom |
2007-03-11 15:30:49 |
On Sun, Mar 11, 2007 at 04:42:15PM +0100, Totty wrote:
>
> That`s correct, but Exim has to find the maildirs
first, to deliver
> the mails.
Yes, so you have two simple options:
(1) Make Exim perform the same database lookup as you've
configured
courier-authlib to do;
or
(2) Make Exim send a query directly to courier-authlib's
authdaemond to map
a username to a home directory.
See for example
http://ws.edu.isoc.org/workshops/2005/
pre-SANOG-VI/bc/mail/configure.authd
and search down until you reach the
"authdaemon_lookup" router.
B.
------------------------------------------------------------
-------------
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
Courier-imap lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-im
ap
|
|
| Re: Hashed or Calculated Maildirs |
  Germany |
2007-03-12 08:41:04 |
That are really good ideas, thanks.
So many roads lead to Rome.
Thanks to all for your time.
----- Original Message -----
From: "Brian Candler" <B.Candler pobox.com>
To: "Totty" <totty dokom.net>
Cc: <courier-imap lists.sourceforge.net>
Sent: Sunday, March 11, 2007 9:30 PM
Subject: Re: [Courier-imap] Hashed or Calculated Maildirs
> On Sun, Mar 11, 2007 at 04:42:15PM +0100, Totty wrote:
>>
>> That`s correct, but Exim has to find the
maildirs first, to deliver
>> the mails.
>
> Yes, so you have two simple options:
>
> (1) Make Exim perform the same database lookup as
you've configured
> courier-authlib to do;
>
> or
>
> (2) Make Exim send a query directly to
courier-authlib's authdaemond to
> map
> a username to a home directory.
>
> See for example
> http://ws.edu.isoc.org/workshops/2005/
pre-SANOG-VI/bc/mail/configure.authd
> and search down until you reach the
"authdaemon_lookup" router.
>
> B.
>
------------------------------------------------------------
-------------
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
Courier-imap lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-im
ap
|
|
[1-6]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|