Re: [Exim] System/Virtual Aliases - Suffix-based Alias?

Pàgina inicial
Delete this message
Reply to this message
Autor: Andreas Metzler
Data:  
A: exim-users
Assumpte: Re: [Exim] System/Virtual Aliases - Suffix-based Alias?
On 2004-05-31 J Yunke <yunke@???> 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@???, bob-123@???,
> bob-help@???, bob-questions@??? would get forwarded to
> bob@???.


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"