Re: [exim] Rewrite FROM address

Top Page
Delete this message
Reply to this message
Author: Chris Edwards
Date:  
To: exim-users@exim.org
Subject: Re: [exim] Rewrite FROM address
On Tue, 24 Jun 2008, Phil Pennock wrote:

| > |   max_rcpt = 1
| > |   headers_rewrite = *@* 
| > |    ${lookup{$local_part@$domain}lsearch{/etc/mail/subaddress-maps/$1@$2}{$value}fail} f
| 
| Plus the line you quoted in the mail further down:
|   In the header rewrite, use $1 as originally stated.


But shurely $1 also is the local_part of the sender ?
(as we're rewriting a sender address)

So it would seem to not matter whether I use $1 or $local_part. Neither
correspond to the message recipient :-(

Sorry if I'm being thick!