mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-09 08:50:05 +08:00
[Rspamd] Always include watchdog in no_stat and no_log flag symbol
This commit is contained in:
parent
7641dbf3a5
commit
80fc18c5b4
@ -493,7 +493,7 @@ rspamd_config:register_symbol({
|
|||||||
type = 'postfilter',
|
type = 'postfilter',
|
||||||
callback = function(task)
|
callback = function(task)
|
||||||
local from = task:get_header('From')
|
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_log')
|
||||||
task:set_flag('no_stat')
|
task:set_flag('no_stat')
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user