Tony Earnshaw wrote:
Daniel L. Miller wrote, on 29. mar 2007 07:30:
[...]
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?
See maildropfilter (man 7 maildropfilter/maildropfilter.html) for
environment variables.
/etc/maildroprc
$HOME="/var/mail/$2/$1"
$DEFAULT="$HOME"
$MAILDIR="$HOME"
Doesn't appear to make a difference when running maildrop via
authlib-ldap - it still sets "home" to whatever ldap field is defined in
authldaprc. IS it possible to override?
FWIW the (Open)Ldap setup for Barlaeus Academy in Amsterdam adds new
virtual users where all their LDAP attributes are derived from ASCII
first-name middle name(s) last-name using a script, the first year or so
combined shell and awk, latterly Perl. Amongst these are their $HOME and
Maildir, used i.a. by authlib/maildrop. The whole process is 100%
automated and all I needed from the administration was a file with a
list of users, hundreds can be added at the same time. Same for removing
users who have left.
I may have to go there to accomplish what I want - just frustrating.
Postfix and Dovecot handle it so elegantly with a minimum of
configuration and data - I'd really like to have Maildrop do the same.