VB:
> Hi All , Need some guidance on how we can configure transport rules which has
> to route email based on both Sender and recipient domains .
> 
> Our transport_maps ( in my org ) have been simple and configured in
> traditional fashion:
> 
> like receive email from
> 
> Domain1 >> smtp:Gateway1
> Domain2 >> smtp:Gateway2
> 
> however we have got a situation where we had to route email based on both
> Sender and recipient domain. Like if we receive 
> 
> email ' From ' Domain1 ' AND ' being sent 'To' DomainX route through
> GatewayL
> 
> email ' FROM ' Domain2 ' AND ' being sent 'To' DOmainY route through
> GatewayM
> 
> #Others routes to stay as usual .
> 
> Domain3 >> smtp:host1
> Domain4 >> smtp:host2 
> .
> 
> How can we fit this into transport maps.

The fundamental problem is that there is no 'AND' operator implemented
for any Postfix map feature.

It is possible to do this with an SMTPD check_policy lookup but
that means writing Perl or Python that responds with "FILTER
smtp:gatewayL" or "FILTER smtp:gatewayM" depending on the content
of the request. And it may complicate other content filters.

There currently is not a 'check_policy' like protocol for transport
lookups. It would not be terribly difficult to implement, given the
existing example provided with check_policy.

        Wietse

Reply via email to