Postfix and Virtual Maildirs

Gabriel Gunderson gabe at gundy.org
Thu Aug 25 15:09:39 MDT 2005


I've not been able to get Postfix to deliver mail to virtual users in
the Maildir format.  It delivers to *local* users properly but when
pulling the users from LDAP it always mailbox format.

>From the man page:
MAILDIR FORMAT
       When the mailbox location ends in /, the message is deliv-
       ered  in qmail maildir format. This format stores one mes-
       sage per file.

It's obvious how to set that for local users but I haven't been able to
figure it out for virtual users.  Any help spotting the obvious mistakes
would be appreciated.

Thanks,
Gabe

P.S.  I've tried too many configurations to post them all.  What I
*will* post are the relevant parts of what I currently have (and know to
be broken) as a starting point.

########################################
home_mailbox = Maildir/
...
accounts_server_host = ldap.domain.tld
accounts_search_base = ou=People,dc=domain,dc=tld
accounts_query_filter = (mail=%s)
accounts_result_attribute = uid
accounts_scope = one
accounts_bind = no
...
virtual_transport = virtual
virtual_mailbox_base = /var/vmail/
virtual_mailbox_domains = domain.tld
virtual_mailbox_maps = ldap:accounts
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
########################################




More information about the PLUG mailing list