mouss, as you said , if I use content_filter=3Dfilter:localhost:<port> and my filter is able to reinject the message in postfix queue, Postfix will check inbound and outbound messages, right?
Thanks!!! On Thu, Oct 1, 2009 at 6:46 PM, mouss <mo...@ml.netoyen.net> wrote: > Darvin Denmian wrote: >> Ralf, >> >> I'm testing this using: >> >> master.cf : >> >> # Inbound >> >> smtp inet n - - - - smtpd -v >> -o content_filter=filter:dummy >> >> filter unix - n n - 10 pipe >> flags=Rq user=filter null_sender= >> argv=/usr/bin/filter.sh -f ${sender} -- ${recipient} >> >> >> How can I apply something like this for outbound? >> > > unless you use a specific smtpd for outbound, the above applies to all > mail submitted via smtp. if you want this to apply to all mail, > including mail submitted via the sendmail command, just put the > content_filter= statement in main.cf. however, you can't do this if your > filter.sh resubmits mail via sendmail because you'd get an infinite loop. >