Re: [exim] dnslists mysql lookup

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Wakko Warner
Ημερομηνία:  
Προς: Chris Knipe
Υ/ο: exim-users
Αντικείμενο: 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???