commit 69bfba7: [Conf] Preliminary try to add SURBL hashbl support (WIP)
Vsevolod Stakhov
vsevolod at rspamd.com
Sat Dec 17 20:42:06 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-12-17 20:38:55 +0000
URL: https://github.com/rspamd/rspamd/commit/69bfba73da4790bf01cd40bbec5796e8bca331ea (HEAD -> master)
[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";
More information about the Commits
mailing list