From: Raven [mailto:[EMAIL PROTECTED]
> 
> On Wed, 2004-08-18 at 08:30, Bowie Bailey wrote:
> > From your description, it sounds like you may be setting the "Mail"
> > variable wrong.
> > 
> > It should look like this:
> > 
> >     Home=/home/maildirs/localdomain.org/user
> >     Mail=/home/maildirs/localdomain.org/user/Maildir
> > 
> > Or you can just leave off the "Mail" specification as this is the
> > default configuration.
> 
> I was basing my setting of the "mail" field on the virtual domain
> documentation in the courier FAQ:
> 
> [When a virtual account does not really have a home directory, just
> the system mailbox, set both the home and mail fields to the same
> pathname:
> 
> userdb [EMAIL PROTECTED] set home=/home/virtual/example.com/john \
>              mail=/home/virtual/example.com/john \
>              uid=999 gid=999
>           
> In this case /home/virtual/example.com/john is the system mailbox.]
> 
> ...and the following passage in makeuserdb.html:
> 
> [mail - value specifies the location of the account's Maildir
> mailbox.  This is an optional field that is normally used when
> userdb is used to provide aliases for other mail accounts. For
> example, one particular multi-domain E-mail service configuration
> that's used by both Qmail and Courier servers is to deliver mail for
> a mailbox in a virtual domain, such as "[EMAIL PROTECTED]", to a
> local mailbox called "example-user".  Instead of requiring the
> E-mail account holder to log in as "example-user" to download mail
> from this account, a userdb entry for "[EMAIL PROTECTED]" is set up
> with mail set to the location of example-user's Maildir mailbox,
> thus hiding the internal mail configuration from the E-mail account
> holder's view.]

It all depends on your configuration.  The directory referenced by
"Mail" is the users maildir.  It defaults to "$HOME/Maildir".

If you created the directories like this:

    cd /home/maildirs/localdomain.org
    maildirmake user

then "user" is your maildir and both "Home" and "Mail" should point to
it.

If, on the other hand, "user" is a standard directory and you created
the maildir like this:

    cd /home/maildirs/localdomain.org/user
    maildirmake Maildir

then "Home" is the user directory and "Mail" is the Maildir directory.

In either case, you must make the maildir with the "maildirmake"
command.  And you must be logged in as the owner of the maildir when
you do it.

I find that the second setup is the simplest since it conforms to
Courier's expected directory setup and you don't have to worry about
setting "Mail" explicitly for each user.

Bowie


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to