[Rspamd-Users] Selectors on RBLs

Jesse Norell jesse at kci.net
Wed Feb 17 17:05:46 UTC 2021


This is 100% a guess, but try changing the semi-colon to lua's string
concatenation operator (which a quick search says is '..'):

selector = 'header("Feedback-ID") .. urls.get_tld.take_n(20)';



On Wed, 2021-02-17 at 17:27 +0100, Bressier Simon wrote:
> Hello folks,
> 
> just bumping my question here in case someone is already using
> successfully
> selectors on RBLs to build custom DNSBL requests using header pieces
> +
> domains from the urls ?
> 
> Thank you very much in advance!
> 
> Best,
> 
> Simon
> 
> 
> 
> On Sun, Feb 14, 2021 at 10:55 PM Bressier Simon <bressier.s at gmail.com
> >
> wrote:
> 
> > Hi folks,
> > 
> > Discovering selectors currently, and trying to implement the logic
> > on a
> > specific RBL, as described on both pages:
> > https://rspamd.com/doc/modules/rbl.html
> > https://rspamd.com/doc/configuration/selectors.html
> > 
> > I've tried the following:
> > 
> > customrbl_domains {
> > >             ignore_defaults = true;
> > >             no_ip = true;
> > >             dkim = true;
> > >             selector = 'header("Feedback-
> > > ID");urls.get_tld.take_n(20)';
> > >             disable_monitoring = true;
> > >             rbl = "sub.myrbl.com";
> > >             returncodes = {
> > >             RETURNEDCODE = "127.0.0.1";
> > >             }
> > >         }
> > > 
> > 
> > And it does not follow the way I would imagine. What I've
> > understood from
> > the doc, is it should concat the feedback-id header value with the
> > domains
> > of the urls, to create a list of feedback-id:domain.com to request
> > via
> > the rbl.
> > 
> > The behavior I'm currently getting is actually different, it makes
> > two
> > requests to the rbl, one with the feedback-id, and one with the
> > domains,
> > making the whole thing not helpful to me :(
> > 
> > Could you please tell me if I'm doing the right thing and if I've
> > understood properly the purpose of the selectors for rbls ?
> > 
> > Thank you very much in advance,
> > 
> > Best,
> > 
> > Simon
> > 
-- 
Jesse Norell
Kentec Communications, Inc.
970-522-8107  -  www.kci.net



More information about the Users mailing list