Re: [exim] Wildcards in aliases

2018-02-16 Thread Hartmut Steffin via Exim-users
On 13.02.2018 13:14, Andrew C Aitchison via Exim-users wrote: > On Tue, 13 Feb 2018, Hardy via Exim-users wrote: >> my aim is to have something in the way of >> >> myname.*: myname >> > > I wonder whether you are trying to implement a feature > already explicitly supported in exim ? This may

Re: [exim] Wildcards in aliases

2018-02-14 Thread Hardy via Exim-users
In fact I have an approach not too different from yours. I call it the "volatile" addresses you use for suspicious cases where you need to give your email. It is nameYYMM, it exists for the current and last month, but disappears after that automatically. (By that time you need to decide,

Re: [exim] Wildcards in aliases

2018-02-14 Thread Merlin Hartley via Exim-users
We use the local_part_suffix for all users, then they can choose to give out different addresses to different websites and use filters on any incoming mail based on addressee - for example I use merlin-slurm@… for the slurm mailing list. This way they can automatically file/trash mail from a

Re: [exim] Wildcards in aliases

2018-02-13 Thread Hardy via Exim-users
On 13.02.2018 13:14, Andrew C Aitchison via Exim-users wrote: > On Tue, 13 Feb 2018, Hardy via Exim-users wrote: >> my aim is to have something in the way of >> >> myname.*: myname >> > > I wonder whether you are trying to implement a feature > already explicitly supported in exim ? > > If you

Re: [exim] Wildcards in aliases

2018-02-13 Thread Andrew C Aitchison via Exim-users
On Tue, 13 Feb 2018, Hardy via Exim-users wrote: 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? I wonder whether you are

Re: [exim] Wildcards in aliases

2018-02-13 Thread Heiko Schlittermann via Exim-users
Mike Brudenell via Exim-users (Di 13 Feb 2018 12:07:56 CET): > Please forgive me veering off topic a little for a moment, but in case it > helps you Hardy I find these two web sites really useful for testing > various flavours of regular expressions. (I think Exim uses PCRE

Re: [exim] Wildcards in aliases

2018-02-13 Thread Jeremy Harris via Exim-users
On 13/02/18 11:07, Mike Brudenell via Exim-users wrote: > (I think Exim uses PCRE if memory > serves?) Yes. -- ## 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/

Re: [exim] Wildcards in aliases

2018-02-13 Thread Heiko Schlittermann via Exim-users
Hardy via Exim-users (Di 13 Feb 2018 11:40:11 CET): … > 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 As far as I know, DBM

Re: [exim] Wildcards in aliases

2018-02-13 Thread Mike Brudenell via Exim-users
Please forgive me veering off topic a little for a moment, but in case it helps you Hardy I find these two web sites really useful for testing various flavours of regular expressions. (I think Exim uses PCRE if memory serves?) - https://www.debuggex.com/?flavor=pcre -

Re: [exim] Wildcards in aliases

2018-02-13 Thread Hardy via Exim-users
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

Re: [exim] Wildcards in aliases

2018-02-13 Thread Merlin Hartley via Exim-users
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 >

Re: [exim] Wildcards in aliases

2018-02-13 Thread Heiko Schlittermann via Exim-users
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.

[exim] Wildcards in aliases

2018-02-13 Thread Hardy via Exim-users
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? Hardy -- ## List details at