How can I override previous FILTER action

2008-10-29 Thread Eddy Beliveau

Hi! Networkers,

I'm using postfix 2.5.4 and it works perfectly.  Thanks  ;-)
/
/25 - 10024 - 10025/

/I add FILTER action within my header_checks file and it works correctly.

My header_checks file contains:
/^some-special-header/ FILTER my-filter

25 - 10024 - 10025 - 10027 - 10025

During execution, my-filter append the header my-filter-been-there: Yes
so, I want to NOT execute my-filter if that header is present.
otherwise, I will get the infamous too many hops error message.

Documentation said:
/In the case that multiple *FILTER* actions fire, only the last one is 
executed. 


/I try without success to override previously defined FILTER
/^some-special-header/ FILTER my-filter
/^my-filter-been-there: Yes/   FILTER none

Can it be done ?
How can I remove the current FILTER action ?

Thanks in advance,
Eddy


Eddy Beliveau
HEC Montreal
Montreal (Quebec)
Canada



Re: How can I override previous FILTER action

2008-10-29 Thread Wietse Venema
Eddy Beliveau:
 Documentation said:
 /In the case that multiple *FILTER* actions fire, only the last one is 
 executed. 
 
 /I try without success to override previously defined FILTER
 /^some-special-header/ FILTER my-filter
 /^my-filter-been-there: Yes/   FILTER none

As documented, the syntax of a filter is transport:destination,
where an SMTP destination is typically of the form host:port.

To skip filters, specify the port that re-injects mail back into Postfix.

filter scan:127.0.0.1:the_postfix_inject_port

Wietse