mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-26 05:27:29 +02:00
rspamd: exclude Mail Flow monitoring from logs and stats
This commit is contained in:
parent
3ec18619ee
commit
a411a357b9
@ -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
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user