Hi Cyborg

> If "inlist" isn't a new feature for 4.80.x , i did not find that in the exim 
> specs .

I have exim 4.80.1 installed and a pdf copy of "Specification of the Exim Mail 
Transfer Agent " version 4.80.1

inlist{}{} is on page 116 (Section 11.7) Expansion conditions

We installed exim as part of a Baruwa install. Baruwa  configured exim 
(exim.conf) and split all the SQL statements out into the macros.conf file.
> It should be like this:
> 
> domainlist local_domains = @ : localhost : localhost.localdomain : 
> ${lookup pgsql { SELECT name  FROM .....

I tried as you suggested, having
domainlist our_domain_list = ${lookup pgsql(....

but still could not get the +our_domain_list bit to expand properly in the 
accept
        condition = ${if inlist($search_for_thing}{+our_domain_list} ....

In the end ended up doing this in the acl condition

accept
        condition = ${lookup pgsql{ SELECT thing FROM tbl WHERE 
thing2='$sender_domain';}{yes}{no}}

Thanks for your help. It pushed my in the direction that finally gave me a 
working condifiotn.

Ritchie

--
This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.

-- 
## List details at https://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