mouss wrote:
to setup a Postfix listener for local SMTP connections, which will then
forward to a relayhost for spam processing (in this case, primarily
auto-whitelisting).  That relayhost will then send the message back to
Postfix on another connection, and THAT listener will not have a
relayhost defined so it should attempt direct delivery to the remote
host.  I know this is something relatively simple - I just seem to be
more obtuse than usual.
--
What I'm actually trying to do is configure a relayhost. What I want is


transports are global inside a postfix instance. so you can't have
context dependent routing rules.

you can however use content_filter in an smtpd or in pickup. but make
sure you don't create a loop.

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.
--
Daniel

Reply via email to