virtual_alias_maps = proxy:ldap:/etc/postfix/ldap-alias.cf
virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap-domain.cf
virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap-mailbox1.cf



where


/etc/postfix/ldap-alias.cf:
server_host = ldaphost.mydomain.com
server_port = 389
search_base = ou=postfix,dc=mydomain,dc=com
query_filter = (&(mail=%s)(objectclass=qmailuser))
result_attribute = mailAlternateAddress
bind = yes
bind_dn = cn=postfix,ou=postfix,dc=mydomain,dc=com
bind_pw = *****
scope = one
version = 3


/etc/postfix/ldap-domain.cf
server_host = ldaphost.mydomain.com
server_port = 389
search_base = cn=mail.mydomain.com,ou=postfix,dc=mydomain,dc=com
query_filter = (virtualDomains=%s)
result_attribute = virtualDomains
bind = yes
bind_dn = cn=postfix,ou=postfix,dc=mydomain,dc=com
bind_pw = *****
scope = base
version = 3

/etc/postfix/ldap-mailbox1.cf
server_host = ldaphost.mydomain.com
server_port = 389
search_base = ou=postfix,dc=mydomain,dc=com
query_filter = (&(mail=%s)(objectclass=qmailuser))
result_attribute = mailMessageStore
bind = yes
bind_dn = cn=postfix,ou=postfix,dc=mydomain,dc=com
bind_pw = *****
scope = one
version = 3

For the ldap entries we use a somwhat extended
qmail (for mail addresses)
qmailControl (for domains)
schema

suomi






On 2010-10-08 14:11, Frank Bonnet wrote:
Hello

I would like to use LDAP ( OpenLDAP ) aliases from our MX server
in order to forward emails to the internal mailhub.

The MX use the transport utility to forward emails to the mailhub
and does not perform local deliveries.

Thanks for any infos



Reply via email to