[Rspamd-Users] asn filter does not work for country

rspamd at vlh.dk rspamd at vlh.dk
Fri May 3 15:15:50 UTC 2024


Hi,

Type is supposed to be "country" afaik.

https://rspamd.com/doc/modules/multimap.html#map-types

I use it like this:

local_bl_country {
  type = "country";
  map = "$CONFDIR/maps.d/local_bl_country.inc";
  symbol = "LOCAL_BL_COUNTRY";
  description = "Blacklisted country";
}

Regards
Kim Sindalsen

> -----Original Message-----
> From: Users <users-bounces at lists.rspamd.com> On Behalf Of Albrecht
> Backhaus
> Sent: 2. maj 2024 16:17
> To: users at lists.rspamd.com
> Subject: [Rspamd-Users] asn filter does not work for country
> 
> Hello together
> 
> I do have defined the following symbols in
> /etc/rspamd/local.d/multimap.conf
> 
> > asn_country_blacklist {
> >             type = "asn";
> >             filter = "country";
> >             map =
> > "file:///etc/rspamd/local.d/maps.d/asn_country_blacklist.map";
> >             symbol = "ASN_COUNTRY_BLACKLIST";
> >             score = 10.0;
> >             description = "is on ASN country blacklist";
> >             regexp = true;
> > }
> > asn_blacklist {
> >             type = "asn";
> >             filter = "asn";
> >             map =
> > "file:///etc/rspamd/local.d/maps.d/asnblacklist.map";
> >             symbol = "ASN_BLACKLIST";
> >             score = 10;
> >             description = "is on ASN blacklist";
> >             regexp = true;
> > }
> 
> I can see that the ASN_BLACKLIST symbol is set in the applicable emails
> whereas the symbol ASN_COUNTRY_BLACKLIST is never used, even if there
> are entries in the map that would apply.
> 
> Does anyone have any idea what I am doing wrong?
> 
> --
> Users mailing list
> Users at lists.rspamd.com
> https://lists.rspamd.com/mailman/listinfo/users



More information about the Users mailing list