Re: [Exim] replacing text in the message body

Top Page
Delete this message
Reply to this message
Author: Florian Friesdorf
Date:  
To: exim-users
Subject: Re: [Exim] replacing text in the message body
On Tue, Nov 27, 2001 at 11:39:47PM +0100, Florian Friesdorf wrote:
> On Tue, Nov 27, 2001 at 07:10:50AM +0100, Hans Matzen wrote:
> > Hello,
> >
> > I have got the following problem.
> > When sending messages as replay there are somteimes
> > internal email adresses (local adresses) which can not be uses as a
> > replay adress. but my recipients use them for replies.
> > how can I replaxe those local adresses before sending a mail?
> > e.g. there is hans@localhost in the body of the mail and I want it to be
> > hans@??? before sending the email outside my local net.
> >
> > any ideas ?
>
> If I got you right, header rewriting is the solution for your problem.
>
> If you just want to replace the domain:
>
> root@localhost          *   # so messages concerning root won't be touched
> *@localhost             $1@???

>
> If you want to use completly different addresses for each user:
>
> *@localhost             ${lookup{$1}lsearch{/etc/email-addresses}\
>                          {$value}fail} frFs


I forgot to mention, that you need to setup /etc/email-addresses for the
second one to work.

/etc/email-addresses:

hans: hans@???
xyz: anyone@???

> At least this works for me.
> See the exim documentation
> http://www.exim.org/exim-html-3.30/doc/html/spec_34.html#SEC752
> for detailed information.
>
> -- 
>      Florian Friesdorf <42ff@???>
> OpenPGP key available on public key servers

>
> ------> Save the future of Open Source <------
> -> Online-Petition against Software Patents <-
> ------> http://petition.eurolinux.org <-------




-- 
     Florian Friesdorf <42ff@???>
OpenPGP key available on public key servers


------> Save the future of Open Source <------
-> Online-Petition against Software Patents <-
------> http://petition.eurolinux.org <-------