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.
Giuliano
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/