Re: [Exim] alias files and exim 4.10

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Nico Erfurth
Data:  
Para: Jan Kriesten
CC: exim-users
Assunto: Re: [Exim] alias files and exim 4.10
Jan Kriesten wrote:
> hi,
>
> i have trouble migrating from exim 3 to exim 4 using alias file expansion.
>
> in v3 the following worked fine:
>
> --- exim.cfg ---
> virtual:
> driver = aliasfile
> file_transport = address_file
> pipe_transport = address_pipe
> file = /etc/exim/lib/$domain
> search_type = lsearch*
> expand = true
> qualify_preserve_domain = true
> ---
>
> with an alias file like
>
> --- testdomain.de ---
> info : ausername
> * : ${local_part}@???
> ---
>
> expanding ${local_part} doesn't seem to be possible any more in v4. any chance
> to apply something like this with v4?


Maybe this?

virtual:
   driver = redirect
   data = ${expand:${lookup {$local_part} lsearch \
        {/etc/exim/lib/$domain}}}
   qualify_preserve_domain
   file_transport = address_file
   pipe_transport = address_pipe