]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Fix phishing tests
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Feb 2021 19:37:50 +0000 (19:37 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Feb 2021 19:37:50 +0000 (19:37 +0000)
conf/modules.d/phishing.conf
test/functional/configs/phishing.conf

index b82854297537d76d74bc914b04121b76547ece4d..bd2e0bd8616599810ebe849e6700b5e7ab8ffa6a 100644 (file)
@@ -21,7 +21,7 @@ phishing {
   # Phishtank is disabled by default in the module, so let's enable it here explicitly
   phishtank_enabled = true;
 
-  # Make exclusions for known redirectors
+  # Make exclusions for known redirectors and domains
   exceptions = {
     REDIRECTOR_FALSE = [
       "https://maps.rspamd.com/rspamd/redirectors.inc.zst",
index 3ea53a0d143378e9fc681aee82ada97f1f398245..2b029f687469adb525fce8269a838624c58a8f78 100644 (file)
@@ -1,7 +1,11 @@
 phishing {
   symbol = "PHISHING";
-  strict_domains = [
-    "${TESTDIR}/configs/maps/strict.phishing:STRICT_PHISHING",
-    "${TESTDIR}/configs/maps/stricter.phishing:STRICTER_PHISHING"
-  ];
+  strict_domains = {
+    STRICT_PHISHING = [
+      "${TESTDIR}/configs/maps/strict.phishing",
+    ];
+    STRICTER_PHISHING = [
+      "${TESTDIR}/configs/maps/stricter.phishing"
+    ]
+  }
 }