OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Unable to remove some headers using header_checks ?

From: mouss (moussnetoyen.net)
Date: Sat Apr 19 2008 - 15:47:46 CDT


Test wrote:
> On Sat, 19 Apr 2008 22:34:02 +0200
> mouss <moussnetoyen.net> wrote:
>
>
>> Test wrote:
>>
>>> Hi Wietse,
>>>
>>> Hope this is ok ?
>>>
>>> [rootpolco postfix]# postconf header_checks
>>> header_checks = regexp:/etc/postfix/header_checks
>>> [rootpolco postfix]# postmap regexp:header_checks < sample_header.txt
>>> postmap: fatal: unsupported map type: regexp
>>>
>>>
>> if it's unsupported, how do you want postfix to implement it?
>> use 'postconf -m' to see what map types are supported in your postfix.
>> if regexp is not supported, don't use it. you can try pcre. if you are
>> on a system with dynamic map types, ask the packager how you can enable
>> regexp.
>>
>
> postconf -m i already tried, and regexp should be supported.
>
>>> [rootpolco postfix]# postmap hash:header_checks < sample_header.txt
>>>
>>>
>> if these are regular expressions, a hash won't match.
>>
>>
>>> [rootpolco postfix]# tail -5 header_checks
>>>
>>> /^Received:/ HOLD
>>>
>>>
>> so you want to hold all mail?
>>
>
> That is used for MailScanner (hold-que method.)
>
>
>
>>> /^X-Mailer:/ IGNORE
>>> /^User-Agent:/ IGNORE
>>> /^X-Originating-IP:/ IGNORE
>>>
>>>
>>> gr.
>>>
>>>
>>>
>
>

so what is your problem? the rules you show have nothing to do with the
problem you submitted in your original post.