Re: [exim] Rewrite FROM address

Etusivu
Poista viesti
Vastaa
Lähettäjä: Chris Edwards
Päiväys:  
Vastaanottaja: exim-users@exim.org
Aihe: 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!