Bluehost.com Web Hosting $6.95

Postfix + LDAP + Transport Maps

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 ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-27-2004
James Wilson
 
Posts: n/a
Default Postfix + LDAP + Transport Maps

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:44 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0