This is a discussion on Postfix + LDAP + Transport Maps within the mailing.postfix.users forums, part of the Mail Servers and Related category; Hi Guys, I have Postfix and LDAP working like a charm. However we have a customer requirement to route messages ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi Guys,
I have Postfix and LDAP working like a charm. However we have a customer requirement to route messages based on the mailHost attribute in each user. This works. However when sending mail out of the environment, destined to an external address. Mail loops... I've tried using relayhost, static transport has files as well as the LDAP entry. Can someone point out what I'm sure is a blatent mistake :) transport_maps = ldap:ldaprelayhost, hash:/etc/postfix/transport ldaprelayhost_server_host = ldap.xxx.xxx.edu.au ldaprelayhost_server_port = 389 ldaprelayhost_bind_dn = cn=root, dc=xxxx, dc=edu, dc=au ldaprelayhost_bind_pw = xxxxxxx ldaprelayhost_bind = yes ldaprelayhost_timeout = 5 ldaprelayhost_search_base = dc=xxxx,dc=edu,dc=au ldaprelayhost_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s)(mailLifeLon gAddress=%s)(mailDefaultAddress=%s))(|(AccountStat us=active)(|(objectclass=posixAccount)))) ldaprelayhost_result_attribute = mailHost ldaprelayhost_lookup_wildcards = no Relay host is empty as this stange, and /etc/postfix/transport contains: * smtp:xxx.xxx.xxx.xxx <--- where xxx is a valid IP :) I can post more contents of my contents if that would help.. Each LDAP user has an attribute such as: mailHost smtp:10.10.10.10 Cheers, James |