aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/lua/replies.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua
index 9916dc3cf..4a3c5646f 100644
--- a/src/plugins/lua/replies.lua
+++ b/src/plugins/lua/replies.lua
@@ -51,7 +51,11 @@ local function replies_check(task)
-- Hash was found
task:insert_result(settings['symbol'], 0.0)
if settings['action'] ~= nil then
- task:set_pre_result(settings['action'], settings['message'])
+ if task:get_user() or (ip_addr and ip_addr:is_local()) then
+ rspamd_logger.infox(task, "not forcing action for local network or authorized user");
+ else
+ task:set_pre_result(settings['action'], settings['message'])
+ end
end
end
end