Re: [exim] regular expressions in aliases

Página Inicial
Delete this message
Reply to this message
Autor: Klaus Maria Pfeiffer
Data:  
Para: exim-users
Assunto: Re: [exim] regular expressions in aliases
Klaus Maria Pfeiffer wrote:
> I searched for regular expressions in the system aliases file

and now, I've found it.

what I've done is the following:
set up virtual domains as in http://koivi.com/exim4-config/ or
http://exim.org/exim-html-4.60/doc/html/spec.html/ch46.html#SECTvirtualdomains
used nwildlsearch as described in
http://exim.org/exim-html-4.60/doc/html/spec.html/ch09.html#SECTsinglekeylookups

this gives the following:
;===
virtual_domain_aliases:
driver = redirect
allow_defer
allow_fail
domains = dsearch;/etc/exim4/virtual-domains.d
data =
${lookup{$local_part}nwildlsearch{/etc/exim4/virtual-domains.d/$domain}}
retry_use_local_part
pipe_transport = address_pipe
file_transport = address_file
no_more
;===

one alias file for my personal domain looks like:
;===
^klaus[-.](m|maria)\.pfei[f]{1,2}er$    klaus@localhost
^(kmp|klaus)[+-.][a-zA-Z0-9+-.]*$       klaus@localhost
^(kmp|klaus)$                           klaus@localhost
;===


sorry for the noise and thanks for the help (I should better have a look
in the online doc as in my exim book ...).

greetings from Austria, Klaus