From 69bfba73da4790bf01cd40bbec5796e8bca331ea Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 17 Dec 2022 20:38:55 +0000 Subject: [PATCH] [Conf] Preliminary try to add SURBL hashbl support (WIP) --- conf/modules.d/rbl.conf | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/conf/modules.d/rbl.conf b/conf/modules.d/rbl.conf index 94b3ee7c6..a27f60c4a 100644 --- a/conf/modules.d/rbl.conf +++ b/conf/modules.d/rbl.conf @@ -23,6 +23,14 @@ rbl { "fallback+file://${CONFDIR}/maps.d/surbl-whitelist.inc" ]; + attached_maps = [ + { + selector_alias = "surbl_hashbl_map", + description = "SURBL hashbl map", + url = "regexp;http://sa-update.surbl.org/rspamd/surbl-hashbl-map.inc", + } + ] + rbls { spamhaus { @@ -206,6 +214,22 @@ rbl { } } + SURBL_HASHBL { + rbl = "hashbl.surbl.org"; + ignore_defaults = true; + random_monitored = true, + selector = "specific_urls_filter_map('surbl_hashbl_map'):apply_methods('get_host', 'get_path').join_tables('/')", + hash = 'md5'; + hash_len = 32; + returncodes = { + SURBL_HASHBL_PHISH = "127.0.0.8"; + SURBL_HASHBL_MALWARE = "127.0.0.16"; + SURBL_HASHBL_ABUSE = "127.0.0.64"; + SURBL_HASHBL_CRACKED = "127.0.0.128"; + SURBL_HASHBL_EMAIL = "127.0.1.%d+"; + } + } + "URIBL_MULTI" { ignore_defaults = true; rbl = "multi.uribl.com"; -- 2.39.5