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

Attachment: signature.asc
Description: Digital signature

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to