Re: [Exim] replacing text in the message body

Pàgina inicial
Delete this message
Reply to this message
Autor: Dave C.
Data:  
A: Florian Friesdorf
CC: exim-users
Assumpte: Re: [Exim] replacing text in the message body

Upon reading his message a big closer, I think he wants to change
addresses in the BODY of the message, which rewriting can't do. My
advice to always use globally valid addresses everywhere stands.

On Tue, 27 Nov 2001, 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

>
> 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.
>
>


--