On Thursday, March 05, 2009 at 00:25 CET,
"Daniel L. Miller" <[email protected]> wrote:
> What I have/had now was the following:
> master.cf:
> 192.168.0.11:smtp inet n - - - - smtpd
> -o relayhost=[192.168.0.10]:225
> 192.168.0.11:125 inet n - - - - smtpd
> -o relayhost=
>
> The intent was to have local clients connect to 192.168.0.11:25.
> Postfix should then relay it to 192.168.0.10:225. That relay will then
> process and return it to 192.168.0.11:125 - which would then send it to
> the destination.
>
> Right now, the above config "functions" in that it receives a message
> from a client and delivers it to the destination - but it never hits my
> filter.
No, because smtpd(8) doesn't pay attention to the relayhost parameter
and doesn't pass it on to the rest of Postfix. Postfix is modular, and
the relayhost is not a per-message property.
You're on the right track, just use content_filter instead. See
FILTER_README.
--
Magnus Bäck
[email protected]