On 12/14/2011 7:15 AM, Matus UHLAR - fantomas wrote:
> On 14.12.11 02:57, Christopher Howard wrote:
>> My "virtual" mail directories are stored at
>> /var/mail/vhosts/<domainname>/<users>, but they are /all/ using the
>> MAILDIR format.
> so a user's maildir is in /var/mail/vhosts/<domain>/<user>/Maildir/ ?
> then simply define home=/var/mail/vhosts/<domain>/<user> and 
> mail=/var/mail/vhosts/<domain>/<user>/Maildir

That's exactly how I'm doing it.  All of the mail accounts have the same
uid/gid and the home directories are in a <domain>/<user> setup with the
mail going into a Maildir subdirectory.  It may be possible to set it up
without the "Maildir" directory, but it would be complicated.

>> But perhaps this is a more expedient question: For each user, the userdb
>> database stores two properties: a "home" property (path to the HOME
>> directory) and a "mail" property (the path to the mail). Does
>> Courier-IMAP even use the "mail" path provided here? Or does it just
>> take the "home" directory path and attach "Maildir" to it?
> I guess that for imap, only mail= is used. I guess the home= is not
> used in such case. But I advise you not to change this schema.

As I understand it, "home" is used for the location of various per-user
informational and config files.

If the "mail" property is defined, then all mail for this user is
delivered there.  Otherwise, Courier will look for delivery instructions
(.courier files, maildrop, etc).

Basically, if you use the "mail" property to directly specify the
location of the maildir, you lose some functionality and Courier will
still look for the home directory for other reasons.

-- 
Bowie


------------------------------------------------------------------------------
Cloud Computing - Latest Buzzword or a Glimpse of the Future?
This paper surveys cloud computing today: What are the benefits? 
Why are businesses embracing it? What are its payoffs and pitfalls?
http://www.accelacomm.com/jaw/sdnl/114/51425149/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to