On Wed, 15 Aug 2001, Graham Leggett wrote:
> I need to keep my user's email in a separate filesystem to their home
> directories - how would this be achieved using the above patch?
You can set the name of the attribute type for the homedirectory to
something else that won't conflict in qmail-ldap.h.
Alternatively, you could set ldapmailroot to a path into your mail
filesystem, then have the homedirectory structure replicated there.
> I think that mailmessagestore should be considered a subdirectory off of
> homedirectory (as you have made it) but where mailmessagestore has an
> absolute directory path (starts with a /) it should be considered as a
> path to the mail on it's own.
>
The way qmail-local and courier-imap handle it is
this: qmail-lspawn/auth_* switch to the home directory. Then there is a
parameter passed (for qmail-local it's called aliasempty on the command
line, for courier-imap it's the MAILDIR environment variable. Then
qmail-local/courier-imap switch to the directory it's passed, from
whatever the current working directory is (i.e. the home directory). It
doesn't matter whether the maildir has a leading slash or leading ..'s.
I do have an ifdef to ignore leading slashes in mailmessagestores -
which doesn't prevent ..'s, of course. Just undef it in qmail-ldap.h
Lynn