From ea3502f2a15b7e31086d9d7a5707a08800585e1c Mon Sep 17 00:00:00 2001 From: Michael Kuron Date: Mon, 2 Apr 2018 19:26:15 +0200 Subject: [PATCH] rspamd: Fix NO_LOG_STAT for everycloud monitoring --- 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 11617853..5417c3a7 100644 --- a/data/conf/rspamd/lua/rspamd.local.lua +++ b/data/conf/rspamd/lua/rspamd.local.lua @@ -118,7 +118,7 @@ rspamd_config:register_symbol({ type = 'postfilter', callback = function(task) local from = task:get_header('From') - if from and (from == 'monitoring-system@everycloudtech.us' or from == 'watchdog@localhost') then + if from and (string.find(from, 'monitoring-system@everycloudtech.us', 1, true) or from == 'watchdog@localhost') then task:set_flag('no_log') task:set_flag('no_stat') end