aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-25 19:17:47 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-25 19:17:47 +0000
commitce21f8fe16a45a5a409d3c9f8217eba2de1fbe14 (patch)
tree53170ec5f2be2d14b77ed781a5a46a2822dc3854 /conf
parenta7ab8856d42746aab0abc77eee1e5564513a4497 (diff)
downloadrspamd-ce21f8fe16a45a5a409d3c9f8217eba2de1fbe14.tar.gz
rspamd-ce21f8fe16a45a5a409d3c9f8217eba2de1fbe14.zip
[Rework] Phishing: Split from redirectors usage
Diffstat (limited to 'conf')
-rw-r--r--conf/modules.d/phishing.conf19
-rw-r--r--conf/scores.d/phishing_group.conf4
2 files changed, 17 insertions, 6 deletions
diff --git a/conf/modules.d/phishing.conf b/conf/modules.d/phishing.conf
index d828f9fa5..b82854297 100644
--- a/conf/modules.d/phishing.conf
+++ b/conf/modules.d/phishing.conf
@@ -22,12 +22,19 @@ phishing {
phishtank_enabled = true;
# Make exclusions for known redirectors
- redirector_domains = [
- "https://maps.rspamd.com/rspamd/redirectors.inc.zst:REDIRECTOR_FALSE",
- "$LOCAL_CONFDIR/local.d/maps.d/redirectors.inc:LOCAL_REDIRECTOR_FALSE",
- "$LOCAL_CONFDIR/local.d/redirectors.inc:LOCAL_REDIRECTOR_FALSE",
- "fallback+file://${CONFDIR}/maps.d/redirectors.inc:REDIRECTOR_FALSE"
- ];
+ exceptions = {
+ REDIRECTOR_FALSE = [
+ "https://maps.rspamd.com/rspamd/redirectors.inc.zst",
+ "$LOCAL_CONFDIR/local.d/maps.d/redirectors.inc",
+ "$LOCAL_CONFDIR/local.d/redirectors.inc",
+ "fallback+file://${CONFDIR}/maps.d/redirectors.inc"
+ ];
+ PHISHED_WHITELISTED = [
+ "glob;https://maps.rspamd.com/rspamd/phishing_whitelist.inc.zst",
+ "glob;$LOCAL_CONFDIR/local.d/maps.d/phishing_whitelist.inc",
+ "glob;$LOCAL_CONFDIR/local.d/phishing_whitelist.inc",
+ ];
+ };
.include(try=true,priority=5) "${DBDIR}/dynamic/phishing.conf"
.include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/phishing.conf"
diff --git a/conf/scores.d/phishing_group.conf b/conf/scores.d/phishing_group.conf
index c7368ef72..9e5c4a325 100644
--- a/conf/scores.d/phishing_group.conf
+++ b/conf/scores.d/phishing_group.conf
@@ -41,4 +41,8 @@ symbols = {
weight = 0.0;
description = "Phishing exclusion symbol for known redirectors";
}
+ PHISHED_WHITELISTED {
+ weight = 0.0;
+ description = "Phishing exclusion symbol for known exceptions";
+ }
} \ No newline at end of file