[Exim] using a hashed spool

Page principale
Supprimer ce message
Répondre à ce message
Auteur: mjm
Date:  
À: exim-users
Sujet: [Exim] using a hashed spool
Hi All,

I am trying to set up a hashed spool with the following structure:

/var/spool/mail/{1st_letter_in_username}/{2nd_letter_in_username}/{username}


I have set up local delivery as follows for initial testing:

local_delivery:
driver = appendfile
file = /var/spool/mail/${substr_0_1:$localpart}/${substr_1_1:$localpart}/${local_part}
group = mail
mode = 0660


Since this is my first attempt at implementing a hashed spool, I am
wondering if anyone knows if there might be a better way to do it.

It works fine this way (seems to anyway), but with the one exception of
the directory inital permissions.

For example, I send mail to a new account bob@localhost

So it creates:
/var/spool/mail/b/o/bob

But the subdirectory b, and o have ownership of bob

So if I was to send mail to bob2@localhost, bob2 would not be created
because bob owns '/var/spool/mail/b/' and '/var/spool/mail/b/o/'.


I am going to fight with some ownership/permission things, but thought I
would ask here just to get other ideas and thoughts.

Thanks in advanced,
Mike Massong




On Tue, 24 Aug 1999, Greg A. Woods wrote:

> [ On Saturday, August 21, 1999 at 21:38:20 (-0700), Richard G. Duvall wrote: ]
> > Subject: [Exim] hashed spool IMAPd
> >
> > Does anybody have a patch, or even some ideas about where to get an IMAPd
> > that will work with my hashed spool mail directory
> > (/var/mail/u/s/username)?
>
> I'd recommend using the Cyrus IMAP server. It doesn't use the kind of
> hash-bucket mechanism you now use, but it does allow multiple mailbox
> "partitions", which can easily be used to split up user mailboxes into
> reasonable sized groups.
>
> Cyrus IMAP is also far far more efficient if you users store any
> significant amount of e-mail on your server.
>
> The primary, but very minor, "drawback" of Cyrus IMAP is that the
> mailboxes are no longer readable by a normal Unix mailer. This can be
> easily overcome though by using a little wrapper script around each such
> mailer so that it uses a POP-capable "movemail" program to copy messages
> from the system spool to a user's own private "spool" file in their home
> directory.
>
> -- 
>                             Greg A. Woods

>
> +1 416 218-0098      VE3TCP      <gwoods@???>      <robohack!woods>
> Planix, Inc. <woods@???>; Secrets of the Weird <woods@???>

>
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>