postfix-users April 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Routing messages according IPs

Re: Routing messages according IPs

From: Wietse Venema <wietse_at_nospam>
Date: Wed Apr 14 2010 - 20:51:33 GMT
To: Postfix users <postfix-users@postfix.org>

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