Parcourir la source

Merge branch 'dev' of https://github.com/mailcow/mailcow-dockerized into dev

andryyy il y a 8 ans
Parent
commit
288a55b1f3
1 fichiers modifiés avec 13 ajouts et 1 suppressions
  1. 13 1
      data/conf/rspamd/lua/rspamd.local.lua

+ 13 - 1
data/conf/rspamd/lua/rspamd.local.lua

@@ -107,4 +107,16 @@ rspamd_config:register_symbol({
     return true
   end,
   priority = 20
-})
+})
+
+rspamd_config:register_symbol({
+  name = 'NO_LOG_STAT_MAILFLOW',
+  type = 'postfilter',
+  callback = function(task)
+    local sender = task:get_header('From')
+    if sender == 'monitoring-system@everycloudtech.us' then
+      task:set_flag('no_log')
+      task:set_flag('no_stat')
+    end
+  end
+})