OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: question about nested headerchecks

From: Anne Ramey (annerblast.com)
Date: Tue Oct 18 2005 - 16:08:12 CDT


>
>
>>>Noel Jones wrote:
>>
>>>(bonus points for including postconf -n)
>>>Sorry, header_checks will only process one header at a time, so it
>>>is not possible to perform actions based on multiple headers.
>>>You could do this with a custom content_filter. Maybe one of the
>>>existing filters could be modified for your use.
>>>http://www.postfix.org/FILTER_README.html
>>>http://www.postfix.org/addon.html#content
>>
>> I wondered about that, but I figured, what good are nested
>>header_checks if it can't look at more than one?
>
>
> They're not terribly useful, but they can e.g. be used to improve
> performance if you have many similar expressions. The general idea
> is that
>
> /^Received: foo/ FOO
> /^Received: bar/ BAR
> /^Received: baz/ BAZ
> ...
>
> can be rewritten to something like
>
> if /^Received: /
> /foo/ FOO
> /bar/ BAR
> /baz/ BAZ
> ...
> endif
>
>
>>I've read and re-read the filter chapter of the book and the readme
>>and am having trouble figuring out how to add a disclaimer onto only
>>outgoing messages without ending up in a loop. Any help would be
>>appreciated.
>
>
> See Noel's suggestions, as well as "Filtering mail from outside users
> only" in FILTER_README.
>
unfortunately that section isn't applicable for me. I need to work off
the to and from, etc, because some users will be sending while traveling
or working off-site and some will be local. Thanks, though. I'm
working on one of Noel's suggestions.

Anne