Re: [Exim] Want to use catchall in virtual domain aliasfile,…

Pàgina inicial
Delete this message
Reply to this message
Autor: Nico Erfurth
Data:  
A: Mike Smith, Exim-Users (E-mail)
Assumpte: Re: [Exim] Want to use catchall in virtual domain aliasfile, how do I do it?
Mike Smith schrieb:

> I am using virtual domains by method of:
>
> virtual:
> driver = redirect
> allow_fail
> allow_defer
> data = ${lookup{$local_part@$domain}lsearch{/etc/virtuals}}
> file_transport = address_file
> pipe_transport = address_pipe
>
> so my /etc/virtuals file would look like


....

> I want to be able to add a catchall at the end of a domain like:
>
> 1@???: account1
> 2@???: account2
> *@domain.com: account1
>
> So all unmatching emails to that domain would go to one of the domain's
> accounts.


change the data-option to

data = ${lookup{$local_part@$domain}lsearch*@{/etc/virtuals}}

Nico