From: Eric Abreu on
Hello
I'm routing messages from my MDA to MTA-1, when the destination domain
name matches some criteria; and to MTA-2, when destination domain
matches another criteria. And everything works well.
I wonder if I can do this, routing messages based on destination IP
instead.

Thanks in advance
Erik the Red

From: Wietse Venema on
Eric Abreu:
> Hello
> I'm routing messages from my MDA to MTA-1, when the destination domain
> name matches some criteria; and to MTA-2, when destination domain
> matches another criteria. And everything works well.
> I wonder if I can do this, routing messages based on destination IP
> instead.

You could direct the Postfix transport_maps lookup to a program
that applies your criteria and that replies with a transport:nexthop.
The Postfix tcp_table describes a simple protocol.

Wietse