RE: [Exim] Default values in single-key lookups

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Christian Mol
Dátum:  
Címzett: exim-users
Tárgy: RE: [Exim] Default values in single-key lookups
Thanks, I've lost the error message.

It still doesn't work however. I'm a complete newbie on this so maybe
it's nothing.

Router:

system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part@$domain}lsearch*@{/etc/aliases}}
file_transport = address_file
pipe_transport = address_pipe

----

/etc/aliases:

postmaster: chris
nobody: /dev/null

user1@??? : chris
user2@??? : chris
*@domain.com : postmaster


Is anything wrong here, that stop exim from sending all undeliverable
mail to postmaster?

Regards,
Chris

-----Original Message-----
From: exim-users-admin@??? [mailto:exim-users-admin@exim.org] On
Behalf Of Wakko Warner
Sent: zaterdag 23 augustus 2003 1:45
To: exim-users@???
Subject: Re: [Exim] Default values in single-key lookups


> > In chapter "9.5 Default values in single-key lookups" I find the
> > next line
> >
> > data = ${lsearch*@{$local_part@$domain}{/etc/mixed-aliases}}
> >
> > As I read the text this is exactly what I need, however if it test
> > the router with exim -bt, I get the following errormessage
> >
> You added an extra '{' by the looks of it:
> > failed to expand
> > "${lsearch{*@{$local_part@$domain}}{/etc/aliases}}":


Actually, the syntax looks completely wrong. Should be:
${lookup{$local_part@$domain}lsearch*@{/etc/mixed-aliases}}

--
Lab tests show that use of micro$oft causes cancer in lab animals

--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##