Re: [Exim] partial wildcard aliases

Top Page
Delete this message
Reply to this message
Author: Peter Bowyer
Date:  
To: exim-users
Subject: Re: [Exim] partial wildcard aliases
Ben Giddings <bg-exim@???> wrote:
> Hi there,
>
> I'm trying to move from the qmail MTA to exim 4. The one feature I
> haven't been able to figure out is one I really need: the ability for
> wildcard aliases.
>
> What I want is for all addresses of the form 'bg-*' to be sent to a
> certain local user, and for 'tg-*' to be sent to another one.


You don't need to do this with aliases at all (unless you want to).
Something like this

local_part_suffix = -*
local_part_suffix_optional

in a router will cause Exim to disregard the -anything suffix when routing
the message (but it will still be there for processing in a filter file
etc). There's a complete example at
http://www.exim.org/exim-html-4.30/doc/html/spec_42.html#SECT42.7 which does
some very qmail-like things.

Peter