[exim] Catch-all alias not working!

Pàgina inicial
Delete this message
Reply to this message
Autor: Gareth Hastings
Data:  
A: exim-users
Assumpte: [exim] Catch-all alias not working!
Hi,

Is there any reason why an aliases file that had

gaz:    gareth.hastings@???
*:      gareth.hastings@???



fails to match on the wildcard section?

Eg:

-------------------------------------------------------
exim -d -bt gareth@???

sender address = root@???
Address testing: uid=0 gid=12 euid=0 egid=12
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Testing gareth@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Considering gareth@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

routing gareth@???
--------> aliases router <--------
local_part=gareth domain=daisy.localtest.co.uk
checking domains
daisy.localtest.co.uk in "daisy.localtest.co.uk"? yes (matched
"daisy.localtest.co.uk")
calling aliases router
rda_interpret (string): ${lookup{$local_part}lsearch{/etc/mail/aliases}}
search_open: lsearch "/etc/mail/aliases"
search_find: file="/etc/mail/aliases"
key="gareth" partial=-1 affix=NULL starflags=0
LRU list:
:/etc/mail/aliases
End
internal_search_find: file="/etc/mail/aliases"
type=lsearch key="gareth"
file lookup required for gareth
in /etc/mail/aliases
lookup failed
expanded:
file is not a filter file
parse_forward_list:
aliases router declined for gareth@???
-------------------------------------------------------

Yet if I do the same for gaz I get this


exim -d -bt gaz@???

sender address = root@???
Address testing: uid=0 gid=12 euid=0 egid=12
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Testing gaz@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Considering gaz@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

routing gaz@???
--------> aliases router <--------
local_part=gaz domain=daisy.localtest.co.uk
checking domains
daisy.localtest.co.uk in "daisy.localtest.co.uk"? yes (matched
"daisy.localtest.co.uk")
calling aliases router
rda_interpret (string): ${lookup{$local_part}lsearch{/etc/mail/aliases}}
search_open: lsearch "/etc/mail/aliases"
search_find: file="/etc/mail/aliases"
key="gaz" partial=-1 affix=NULL starflags=0
LRU list:
:/etc/mail/aliases
End
internal_search_find: file="/etc/mail/aliases"
type=lsearch key="gaz"
file lookup required for gaz
in /etc/mail/aliases
lookup yielded: gareth.hastings@???
expanded: gareth.hastings@???
file is not a filter file
parse_forward_list: gareth.hastings@???
extract item: gareth.hastings@???
aliases router generated gareth.hastings@???
errors_to=NULL transport=NULL
uid=unset gid=unset home=NULL
routed by aliases router
envelope to: gaz@???
transport: <none>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Considering gareth.hastings@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

routing gareth.hastings@???
--------> aliases router <--------
local_part=gareth.hastings domain=localtest.co.uk
checking domains
localtest.co.uk in "daisy.localtest.co.uk"? no (end of list)
aliases router skipped: domains mismatch


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



Any ideas?

Thanks

Gareth