Merge pull request #623 from mkuron/rspamd-mailflow

rspamd: exclude Mail Flow monitoring from logs and stats
master
André Peters 2017-09-20 18:43:34 +02:00 committed by GitHub
commit 19767f31a1
1 changed files with 13 additions and 1 deletions

View File

@ -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
})