commit 936231d: [Minor] Use the original address in authentication results

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Jul 2 11:35:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-07-02 12:28:39 +0100
URL: https://github.com/rspamd/rspamd/commit/936231df29e20e33193adffbddd5aa41f22f9f84 (HEAD -> master)

[Minor] Use the original address in authentication results

---
 lualib/lua_auth_results.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lualib/lua_auth_results.lua b/lualib/lua_auth_results.lua
index 2c121dc65..f7a319f48 100644
--- a/lualib/lua_auth_results.lua
+++ b/lualib/lua_auth_results.lua
@@ -197,7 +197,7 @@ local function gen_auth_results(task, settings)
         -- Main type
         local sender
         local sender_type
-        local smtp_from = task:get_from('smtp')
+        local smtp_from = task:get_from({'smtp','orig'})
 
         if smtp_from and
             smtp_from[1] and
@@ -248,7 +248,7 @@ local function gen_auth_results(task, settings)
   end
 
   local u = task:get_user()
-  local smtp_from = task:get_from('smtp')
+  local smtp_from = task:get_from({'smtp','orig'})
 
   if u and smtp_from then
     local hdr = {[1] = 'auth=pass'}


More information about the Commits mailing list