Re: [EXIM] Conditional header rewriting

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Torsten Curdt
CC: exim-users
Subject: Re: [EXIM] Conditional header rewriting
On Mon, 9 Feb 1998, Torsten Curdt wrote:

> I guess we have a similar problem! I have a local net temporary
> connected to
> the internet. I like all outgoing (and only outgoing!) messages to be
> rewritten
> with the original ISP's mail adresses! So a there's always a correct
> from-line!
> The delivery in the LAN is supposed be untouched!
>
> I've tried and read a lot ... But don't really have an idea how!
> Does anyone have ?


Maybe (this is just off the top of my head) you could play games in an
expansion string by making use of $sender_host_address. Something like

*@some.domain  ${if match{$sender_host_address}{^123\\.456} \
                { what you want to rewrite }fail} fF


Note that after the regex match, $1 etc will refer to what matched, but
you can use $local_part and $domain to refer to the original address.


-- 
Philip Hazel                   University Computing Service,
ph10@???             New Museums Site, Cambridge CB2 3QG,
P.Hazel@???          England.  Phone: +44 1223 334714



--
*** Exim information can be found at http://www.exim.org/ ***