Lähettäjä: Giuliano Gavazzi Päiväys: Vastaanottaja: Post Exim Aihe: Re: [exim] replace Received: from
On 31 Dec 2006, at 18:54, Victor Gras wrote:
> Now I'm trying to add a condition, so when $sender_helo_name =
> "USER223" then headers will be removed and adding an special header.
> On the contrary, all headers will be added.
>
> remote_smtp:
> driver = smtp
> headers_remove = Received
> headers_add = ${if match{$sender_helo_name}{Received: /USER223/}
> {X-special_header: 345gfd456hiouSDA}}
> headers_add = ${if !~ {$sender_helo_name}{Received: /USER223/}
> {Received: $headers_received}}
1) what is the Received doing in the HELO string you are trying to
match?
2) what is the /.../ doing? I might be wrong, but I think this is
just the a RE delimiter as used by pcretest and in the pcre
documentation and should not be used in this case.