* Chris Visser <chris.vis...@rtt.co.za>:
> Hi,
> 
> I'm looking for pointers on how to do conditional routing on non-domain 
> related information in Postfix.
> 
> For example:
> I currently have an Exim MTA configured to query a LDAP server for the 
> physicalDeliveryOfficeName field.
> It returns a value for the branch to route the message to e.g. "Cape Town" 
> and then routes the message to the correct server.
> 
> I'm comfortable with getting the LDAP connection to work under Postfix and I 
> can find numerous examples to route by domain name, but none for routing by 
> arbitrary values e.g. "Cape Town" or "Durban".
> Is it possible to do routing by such values or do you have to use domain 
> names?
> 
> If so could you please point me in the direction of documentation or a HowTo 
> explaining it ?

Create a tranport table that queries LDAP by recipient. Return the server the
mail should go to as result_attribute. Use result_format to add e.g. the
transport server and/or port you need, e.g. result_format = durban:%s:25
(durban would be a dedicated smtp transport defined in master.cf).

p@rick

-- 
[*] sys4 AG
 
http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München
 
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein
 

Reply via email to