Sam Varshavchik wrote:
Daniel L. Miller writes:
Sam Varshavchik wrote:
Daniel L. Miller writes:
Sam Varshavchik wrote:
Daniel L. Miller writes:
In Postfix, I can define the mail root as /var/mail, and I can
use the LDAP filter to return a result of "/<domain>/<user>/" by
just processing the mail field of "user@domain". So, at least
for Postfix, I don't have to actually store each user's mail
folder in the LDAP database - it gets generated from the mail
address and the defined root folder.
Can I do this using Maildrop? If it makes any difference, I am
running on an Ubuntu/Debian server.
In authldaprc, LDAP_MAILROOT can be set to a fixed prefix that
gets prepended to LDAP_HOMEDIR, however this defines the account's
home directory, not maildir. maildrop expects to deliver to
$HOME/Maildir by default, but you should be able to manually
override it by following the instructions in maildrop's INSTALL.
I don't see any way to perform string manipulations or specify
constant
values in authldaprc - it looks like everything is just LDAP=Authlib
LDAP_MAILROOT is a fixed string that gets prepended to the
LDAP_HOMEDIR LDAP attribute's value.
Yes - I've already set that to /var/mail. The problem is, given a
value of "us...@domain.com" in a LDAP mail field - how to convert that
to "/domain.com/user" for the LDAP_HOMEDIR.
Put domain.com/user in another LDAP attribute.
That's exactly what I DON'T want to do! Otherwise I'd have to define
that mail directory for every virtual user - I want the system to do it
automatically.
Is it possible for the global /etc/maildroprc to override the value of
$HOME (prior to the initial chdir)? Or some other way of have the home
directory specified via the command-line?