Georg Lutz writes:

Hi Sam,

after the change in authlib/authldaplib.c which reflects the new
variable LDAP_DEFAULTDELIVERY in /etc/courier/authldaprc
(in courier-0.42.1) my mixed system/virtual user setup is not longer
working.

All users are stored in ldap with their own uid (objectClass:
posixAccount). Additionally each user entry has the objectClass
"CourierMailAccount". The attribute "homeDirectory" is set to
"/home/user". Because all mail-users are virtual, the attribute "mailbox"
is set to "/daten/courier-imap/user/Maildir" .

The relevant lines in /etc/courier/authldarc are:

---
LDAP_GLOB_UID           courier
LDAP_GLOB_GID           courier
LDAP_HOMEDIR            mailbox
LDAP_MAILDIR            mailbox
---


Because of the virtual mail-user setup I cannot set LDAP_HOMEDIR to "homeDirectory"!

Imap-access is ok, but mail-delivery is not longer working: all mails
go into the mbox-file /daten/courier-imap/user/Maildir/Maildir instead
of the Maildir /daten/courier-imap/user/Maildir/ .

For service courier, the attribute LDAP_MAILDIR is not longer consulted
(authldaplib.c):

---
read_env(service && strcmp(service, "courier") == 0
                 ? "LDAP_DEFAULTDELIVERY":"LDAP_MAILDIR",
                &attributes[1], "", 0, 0);
---


So what do you think is the best solution for this problem?

LDAP_DEFAULTDELIVERY mailbox



Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to