mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-12 06:57:12 +00:00
[Rspamd] Changes to ignore watchdog checks
This commit is contained in:
1 parent
9a58bb1620
commit
fd3b2e5f16
2 files changed
+15
-3
No files matched your search
@@ -110,11 +110,11 @@ rspamd_config:register_symbol({
|
||||
})
|
||||
|
||||
rspamd_config:register_symbol({
|
||||
name = 'NO_LOG_STAT_MAILFLOW',
|
||||
name = 'NO_LOG_STAT',
|
||||
type = 'postfilter',
|
||||
callback = function(task)
|
||||
local sender = task:get_header('From')
|
||||
if sender == 'monitoring-system@everycloudtech.us' then
|
||||
local from = task:get_header('From')
|
||||
if from and (from == 'monitoring-system@everycloudtech.us' or from == 'watchdog@localhost') then
|
||||
task:set_flag('no_log')
|
||||
task:set_flag('no_stat')
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user