[prev in list] [next in list] [prev in thread] [next in thread] 

List:       exim-users
Subject:    Re: [Exim] System/Virtual Aliases - Suffix-based Alias?
From:       Andreas Metzler <eximusers () downhill ! at ! eu ! org>
Date:       2004-05-31 11:58:02
Message-ID: 20040531115802.GA2363 () downhill ! at ! eu ! org
[Download RAW message or body]

On 2004-05-31 J Yunke <yunke@productivity.org> wrote:
> In Exim 3.x, I was able to have an alias entry like this:

> 	bob-*: bob

> ...and then all mail addressed to bob-abc@domain.com, bob-123@domain.com,
> bob-help@domain.com, bob-questions@domain.com would get forwarded to
> bob@domain.com.

Humpf. This shouldn't have worked, afaict from the documentation. At
least not without some fancy suffix setting on the director.

> It broke in Exim 4.x, and I have been unable to get the functionality
> back
[...]
> system_aliases:
> driver = redirect
> allow_fail
> allow_defer
> data = ${lookup{$local_part}lsearch*{/etc/exim/aliases}}
[...]

data = ${lookup{$local_part}nwildlsearch{/etc/exim/aliases}}
combined with this

^bob-: bob

in /etc/exim/aliases.

Of course you could also simply use a a nested lookup like

data = ${lookup{$local_part}lsearch{/etc/exim/aliases}{$value}\
   {${lookup{$local_part-*}lsearch{/etc/exim/aliases}}}}

               cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"

--

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic