Alex Chekholko skrev, on 06-08-2007 06:34:
Don't! Don't configure virtual maidirs in Postfix. Have Postfix hand off
to maildrop in master.cf:
maildrop unix - n n - - pipe
flags=DRhu user=vmail
argv=/usr/bin/maildrop -w 80 -d ${user} ${sender} ${recipient}
${extension} ${user}
Keep
maildrop_destination_recipient_limit = 1
maildrop_destination_concurrency_limit = 1
in main.cf
Instead of vmail use your own global, virtual user.
Configure Courier authlib to support virtual maildirs and a virtual,
global user. Here's an example for ldap; if you're using pam, SQL or
userdb your configuration will be different:
LDAP_URI ldapi://%2fvar%2frun%2fslapd%2fldapi/,
ldap://oikos.leerlingen/
LDAP_PROTOCOL_VERSION 3
LDAP_BASEDN dc=school,dc=nl
LDAP_BINDDN cn=proxy,dc=barlaeus,dc=nl
LDAP_BINDPW password
LDAP_TIMEOUT 5
LDAP_MAIL uid
LDAP_FILTER (accountStatus=active)
LDAP_GLOB_UID vmail
LDAP_GLOB_GID vmail
LDAP_HOMEDIR mailMessageStore
LDAP_MAILDIR mailMessageStore
LDAP_DEFAULTDELIVERY defaultDelivery
LDAP_MAILDIRQUOTA quota
LDAP_FULLNAME gecos
LDAP_CLEARPW userPassword
LDAP_CRYPTPW userPassword
LDAP_DEREF never
LDAP_TLS 0
Check with 'authtest name password' when you've configured this and
restarted courier-authlib ('man authtest').
Best,
--Tonni