From: Jason Baker (no email)
Date: Mon Oct 15 2001 - 18:34:12 EDT
I'm working on getting virtual users under LDAP working with postfix, and I'm
wondering if anyone has tackled getting directories to autocreate when needed
in the mailbox path.
My setup:
- domains and accounts are listed in the LDAP tree
- referenced from postfix as ldap maps for
- virt_mailbox_map
- virt_uid_map
- virt_gid_map
- transports and mydestination are presently hash and plaintext, I plan
to move them into LDAP next
- mailboxes are under /var/mail/vhosts/tld/company/usermbox
- virtual_mailbox_base is /var/mail/vhosts
Ideally, what I want is to be able to create a pair of new nodes for the
company and the user account, then have postfix create subdirectories as
needed until the mbox is done, IE:
add "":
- create LDAP entry (cn=tom, ou=example, o=com, c=ca)
- mailMessageStore: com/example/tom
- qmailUID: 1000
- qmailGID: 1000
delivery of first email:
/var/mail/vhosts/com exists, nothing done
/var/mail/vhosts/com/example does not exist, create directory
/var/mail/vhosts/com/example/tom is created and the message written
Has anyone tried anything like this? I can create some scripts that will
autoquery the LDAP directory from time to time, creating missing hosts, but
I'd really rather not.
-
To unsubscribe, send mail to with content
(not subject): unsubscribe postfix-users
|
|
|