Re: [Exim] rewritting rules

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Edouard Ouin
CC: exim-users
Subject: Re: [Exim] rewritting rules
On 3 Apr 2000, Edouard Ouin wrote:

> When Exim send an email, the From: and Reply to: has to be rewritten
> with an existing email address but this email address is not known by
> the local Exim mail server, because this email account is managed by
> another mail server on another platform.
>
> Is it possible to do that ?


Obviously not! The thing that is doing the rewriting has to know what it
is rewriting as!

Sounds like you need to export a file to the rewriting server containing
a table of rewriting addresses, e.g. if you want to rewrite "this@here" to
"that@there" you'd have

this@here that@there

Then use a rewriting rule containing a lookup:

*@* ${lookup{$1@$2}lsearch{/that/file}{$value}fail} fr

Alternatively, if the data is in an LDAP or MySQL database, Exim can
read it directly.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.