On Nov 27, 2012, at 10:13 AM, Jim Nalepa - US <[email protected]> wrote:
> Hello, > > I am looking for assistance with the following scenario. > > We have two mail locations that we would like to route mail based on an ldap > attribute. > > The LDAP attribute that is being queried is the internal email address of the > user: > [email protected] > [email protected] > > Is it possible to rewrite the users email address to the internal address and > use MX > of the rewritten address to direct the mail? If so what postfix function > should be used? > > Example: > [email protected] -> mx.example.com --Forwarded--> mail.server1.example.com > [email protected] -> mx.example.com --Forwarded--> mail.server2.example.com > > Thanks in advance, > Jim Hi jim, check out transport maps http://www.postfix.org/transport.5.html from my experience. I moved away from ldap(network lookups) for transport and switched to a db(local file), each relay has the same transport list. My system was quicker with delivery and lookups. http://www.postfix.org/DATABASE_README.html -j
