Jeffrey,

Thanks for the prompt response.
We are heavily invested in ldap (used centrally throughout network) and would 
hate to replicate, and maintain two instances of the db.

Any other thoughts?

Thanks,
Jim
From: jeffrey j donovan [mailto:[email protected]]
Sent: Tuesday, November 27, 2012 10:29 AM
To: Jim Nalepa - US
Cc: [email protected]
Subject: Re: Forwarding to internal servers


On Nov 27, 2012, at 10:13 AM, Jim Nalepa - US 
<[email protected]<mailto:[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]<mailto:[email protected]>
  [email protected]<mailto:[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]<mailto:[email protected]> -> 
mx.example.com<http://mx.example.com> --Forwarded--> 
mail.server1.example.com<http://mail.server1.example.com>
[email protected]<mailto:[email protected]> -> 
mx.example.com<http://mx.example.com> --Forwarded--> 
mail.server2.example.com<http://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

Reply via email to