Răsfoiți Sursa

[Rspamd] Always include watchdog in no_stat and no_log flag symbol

andryyy 4 ani în urmă
părinte
comite
80fc18c5b4
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      data/conf/rspamd/lua/rspamd.local.lua

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

@@ -493,7 +493,7 @@ rspamd_config:register_symbol({
   type = 'postfilter',
   callback = function(task)
     local from = task:get_header('From')
-    if from and monitoring_hosts:get_key(from) then
+    if from and (monitoring_hosts:get_key(from) or from == "watchdog@localhost") then
       task:set_flag('no_log')
       task:set_flag('no_stat')
     end