Victor Duchovni wrote:
On Fri, Dec 19, 2008 at 01:54:05PM -0500, Wietse Venema wrote:

Is there any way to have special routing for mail that's created on the postfix server(localhost), destined for mydomain?
As far as I recall, internally generated messages are not subject
to the content_filter setting. Thus, you can use the content_filter
parameter to send "regular" mail to the content filter, even when
the filter never sends it back to Postfix, and send other mail
directly to the exchange box.

The OP is not talking about mail generated internally inside Postfix
(bounces, postmaster notices, ...). Rather this is mail from $mynetworks,
and replacing "content_filter" with a "FILTER ..." action in a CIDR table
will work for that, and will automatically exempt pickup(8) once the
global setting is gone from main.cf
That's pretty much it.

So would it be correct to change:

content_filter=amavisfeed:[127.0.0.1]:10024
to
content_filter=cidr:/special_routing.cidr

then,

special_routing.cidr:
127.0.0.1/32 smtp:exchange server ip
0.0.0.0/0 amavisfeed:[127.0.0.1]:10024



Terry



Reply via email to