Re: [exim] Catch-all alias not working!

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Marc Sherman
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] Catch-all alias not working!
Gareth Hastings wrote:
> Hi,
>
> Is there any reason why an aliases file that had
>
> gaz:    gareth.hastings@???
> *:      gareth.hastings@???

>
>
> fails to match on the wildcard section?
>
> The router I'm using is simply
>
>  aliases:
>    driver                = redirect
>    allow_fail
>    domains               = daisy.localtest.co.uk
>    data                  =
> ${lookup{$local_part}lsearch{/etc/mail/aliases}}
>    file_transport        = address_file
>    pipe_transport        = address_pipe


A quick check of the manual would inform you that:
>
> Note that the keys in an lsearch file are literal strings. There is
> no wildcarding of any kind.


You need wildlsearch (or nwildlsearch):
http://exim.org/exim-html-4.60/doc/html/spec.html/ch09.html#SECTsinglekeylookups

- Marc