]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Store replies for local networks as well
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 20 Nov 2016 15:28:03 +0000 (15:28 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 20 Nov 2016 15:28:03 +0000 (15:28 +0000)
src/plugins/lua/replies.lua

index cb34d4fa716dde2d414dbb9a33811b2893b861f7..b5c7c6ada1fcaeb24fad8713e958d94f022dc899 100644 (file)
@@ -86,7 +86,8 @@ local function replies_set(task)
     end
   end
   -- If sender is unauthenticated return
-  if task:get_user() == nil then
+  local ip = task:get_ip()
+  if task:get_user() == nil and not (ip and ip:is_local()) then
     return
   end
   -- If no message-id present return