Re: [exim] Type of lookup

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Lena
Data:  
Para: exim-users
Asunto: Re: [exim] Type of lookup
> From: Proskurin Kirill

> We have a files "local_domains" with records like:
> example.com
> exmaple.net
> foobar.su
>
> Im need to make lookup of a $domain in this file and if it is found a
> assign it to a variable.
>
> Here is a example:
>
> acl_check_rcpt:
>
> set acl_m3 = ${lookup{$domain}nwildlsearch{/usr/local/etc/exim/lists/local_domains}}


You need one change:

${lookup{$domain}nwildlsearch{/usr/local/etc/exim/lists/local_domains}{$domain}}

If no records contain an expression then lsearch also is suitable.