On Mon, 28 Dec 1998, Britton wrote:
> In both cases, /etc/email-addresses looks like this
>
> gandalf:fsblk@???
>
> This /etc/exim.conf causes my emails to have from fields rewritten as
> From: fsblk@??? as desired:
>
> *@* ${lookup{$1}lsearch{/etc/email-addresses}\
> {$value}fail} bcfrF
>
> This method causes From: addresses to be gandalf@???
> (gandalf is my usrname on my home machine, 'cause I wish I was a wizard):
>
> *@aurora.alaska.edu ${lookup{$1}lsearch{/etc/email-addresses}\
> {$value}fail} bcfrF
Did you try the third possibility, namely
*@aurora.alaska.edu ${lookup{$local_part}lsearch{/etc/email-addresses}\
{$value}fail} bcfrF
? Which version of Exim was this? I have just checked that $1 is set in
this case in the 2.10 release, and it seems OK. One way of testing would
be to use the -brw testing option with the -d9 debugging option. That
will tell you (in the middle of the mass of output) exactly what it is
looking up.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.
--
*** Exim information can be found at
http://www.exim.org/ ***