|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Darvin Denmian (darvin.denmian
gmail.com)
Date: Thu Oct 01 2009 - 16:58:25 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
mouss,
as you said , if I use content_filter=filter: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 <mouss
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.
>
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]