From 80fc18c5b4db45c32fa7a47a02d174aef3853f5c Mon Sep 17 00:00:00 2001 From: andryyy Date: Tue, 7 Sep 2021 17:56:20 +0200 Subject: [PATCH] [Rspamd] Always include watchdog in no_stat and no_log flag symbol --- data/conf/rspamd/lua/rspamd.local.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/conf/rspamd/lua/rspamd.local.lua b/data/conf/rspamd/lua/rspamd.local.lua index 65ccb4279..6318bd23a 100644 --- a/data/conf/rspamd/lua/rspamd.local.lua +++ b/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