aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-12-17 20:38:55 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-12-17 20:38:55 +0000
commit69bfba73da4790bf01cd40bbec5796e8bca331ea (patch)
treefc2458997639e99667da19c7a2a43d41da518d39 /conf
parent2fed77b9c674610da6d498e40358a475c44c5415 (diff)
downloadrspamd-69bfba73da4790bf01cd40bbec5796e8bca331ea.tar.gz
rspamd-69bfba73da4790bf01cd40bbec5796e8bca331ea.zip
[Conf] Preliminary try to add SURBL hashbl support (WIP)
Diffstat (limited to 'conf')
-rw-r--r--conf/modules.d/rbl.conf24
1 files changed, 24 insertions, 0 deletions
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";