Re: [exim] Wildcards in aliases

Etusivu
Poista viesti
Vastaa
Lähettäjä: Heiko Schlittermann
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] Wildcards in aliases
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 ------------ -