Chris Knipe wrote:
> I'm having a bit of a thing... Should be relatively simple I think...
> 
> deny dnslists = ${lookup mysql{SELECT RBLList FROM RBLTable WHERE Domain = 
> '$domain'}}
> 
> The above, a extensively simplified query.
> 
> Now, the query returns a list of RBL Hosts that I want exim to check 
> against.  However, running via a debug, exim only checks the first record 
> returned by MySQL, and not against all the records....
> 
> How can I get exim to run through all the RBL hosts returned by the SQL?

This is what I've done:
                dnslists = ${lookup \
                                mysql{select rbl \
                                        from eximconf.rbl_list \
                                        where enabled='yes' \
                                        order by priority,rbl\
                                } \
                                {${sg{$value}{ *\\n}{ : }}}\
                            }

-- 
 Lab tests show that use of micro$oft causes cancer in lab animals
 Got Gas???

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

Reply via email to