Re: [exim] Wildcards in aliases

Top Page
Delete this message
Reply to this message
Author: Merlin Hartley
Date:  
To: Heiko Schlittermann
CC: exim-users
Subject: Re: [exim] Wildcards in aliases
Or even full expansion options - which puts huge power into the aliases file:
data = ${expand:${lookup{$local_part}lsearch{/etc/aliases}}}

Hope this is useful!


Merlin
--
Merlin Hartley
Computer Officer
MRC Mitochondrial Biology Unit
University of Cambridge
Cambridge, CB2 0XY
United Kingdom

> On 13 Feb 2018, at 09:38, Heiko Schlittermann via Exim-users <exim-users@???> wrote:
>
> Hardy via Exim-users <exim-users@???> (Di 13 Feb 2018 09:44:38 CET):
>> Hi folks,
>>
>> my aim is to have something in the way of
>>
>> myname.*: myname
>>
>> for the local user myname, if this is possible to do in the alias file. I
>> would rather like to have it here than to change the conf. Possible?
>
> You need to modify the config anyway, to allow for patterns in your
> alias file.
>
>
>    data = ${lookup{$local_part}nwildlsearch{/etc/aliases}}

>
> With entries like:
>
>    hans:   literal
>    hans*:  literal
>    *hans:  pattern
>    ^hans:  regexp

>
>
>    Best regards from Dresden/Germany
>    Viele Grüße aus Dresden
>    Heiko Schlittermann
> -- 
> SCHLITTERMANN.de ---------------------------- internet & unix support -
> Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
> gnupg encrypted messages are welcome --------------- key ID: F69376CE -
> ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -
> -- 
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/