Eduardo Júnior a écrit :
> On Thu, Aug 13, 2009 at 5:43 PM, Magnus Bäck<mag...@dsek.lth.se> wrote:
>> No, so you need to craft a more precise expression. The look of the
>> Received: header you want to remove is very well-known, so it should
>> be quite easy to craft a suitable expression.
>
>
> ok, but there is another way to do what I want.
> The example above was a test.
> Accepting some headers and denying the rest is an alternative:
>
> /^((Resent-)?From|To|Cc|Date|Reply-to|Reply-TO|Return-Path|Message-ID):/
> OK
> /./ IGNORE
>
No. Only remove the headers you want to remove. As Magnus said, use a
precise expression. something like
/^Received: from \S+ \(\S+ \[192\.168\.1\.\d+\]\)\s+by
yourserver\.example\.com \(Postfix\) with ESMTP id /
IGNORE
(this is pcre). adjust for your setup.
>
> But I don't know if these headers are essencial.
Obviously, headers are rarely added for fun.
> Some reference about this?
http://tools.ietf.org/html/rfc5321
http://tools.ietf.org/html/rfc5322