浏览代码

[Rspamd] Increase spam scores for SPF failures

andre.peters 7 年之前
父节点
当前提交
0019502069
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 4 0
      data/conf/rspamd/local.d/composites.conf
  2. 3 0
      data/conf/rspamd/local.d/metrics.conf

+ 4 - 0
data/conf/rspamd/local.d/composites.conf

@@ -6,3 +6,7 @@ VIRUS_FOUND {
   expression = "CLAM_VIRUS & !MAILCOW_WHITE";
   score = 2000;
 }
+SPF_FAIL_NO_DKIM {
+  expression = "R_SPF_FAIL & R_DKIM_NA & !MAILCOW_WHITE";
+  score = 10;
+}

+ 3 - 0
data/conf/rspamd/local.d/metrics.conf

@@ -38,3 +38,6 @@ symbol "SPOOFED_SENDER" {
 	description = "Sender is not authenticated but part of mailcow managed domains";
 	score = 1.0;
 }
+symbol "R_SPF_FAIL" {
+  score = 4.0;
+}