Re: [exim] dnslists mysql lookup

Pàgina inicial
Delete this message
Reply to this message
Autor: Wakko Warner
Data:  
A: Chris Knipe
CC: exim-users
Assumpte: Re: [exim] dnslists mysql lookup
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???