Re: [exim] Searching through a domain list in a condition (s…

Top Pagina
Delete this message
Reply to this message
Auteur: Dave Evans
Datum:  
Aan: exim-users
Onderwerp: Re: [exim] Searching through a domain list in a condition (stringexpansion)
On Tue, Jun 08, 2010 at 12:30:34PM +0200, Marcin Krol wrote:
> Hello everyone,
>
> Is it possible to do some lookup a la lsearch on an Exim list?
>
> Specifically:
>
> domainlist some_domains = domain1 : domain2
>
> I have a condition in ACL like this:
>
> condition = ${if eq{${lookup{$sender_address_local_part}
> lsearch{/etc/passwd} {true}{false} }} {true} }
>
> Now I need to do a condition for a domain list, but haven't found in
> documentation anything that would allow me to do a similar lookup in a
> domainlist.


Depends on what you mean by "a similar lookup". Domain lists can include
lookups but not arbitrary string expansions and conditions; for example I use

domainlist our_domains = dsearch;/etc/exim/domains

See
http://exim.org/exim-html-current/doc/html/spec_html/ch10.html#SECTdomainlist
for more.

--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey