Re: [exim] Is there any way to get exim to display the exapn…

Top Page
Delete this message
Reply to this message
Author: Ritchie P. Fraser
Date:  
To: exim-users@exim.org
Subject: Re: [exim] Is there any way to get exim to display the exapnded list returned from a pgsql lookup? {Scanned}
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.