Thank you Heiko and Merlin,

lookups are my really weak point ;-) and my lack on a grasp on regex hampers me even more. I know I should change this on the long run, but for now your short term help is very much appreciated...

A one-time change to the conf is acceptable, of course.

I had hope for a solution to keep my alias file the single point of maintenance AND keep it compilable by exim_dbmbuild. I would like to stick with the simple

        require verify = recipient

for validation. My lookup now is

        data = ${lookup{$local_part}dbm{/etc/exim/$domain.aliases.db}}

Can I still do what I want with dbm, and how would I write the alias file for entries meaning

myname[digits]: myname


On 13.02.2018 11:12, Merlin Hartley via Exim-users wrote:
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 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 
<> wrote:

Hardy via 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
-- ---------------------------- 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
## Exim details at
## Please use the Wiki with this list -

## List details at
## Exim details at
## Please use the Wiki with this list -

Reply via email to