]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Use the original address in authentication results
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 Jul 2021 11:28:39 +0000 (12:28 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 Jul 2021 11:28:39 +0000 (12:28 +0100)
lualib/lua_auth_results.lua

index 2c121dc6506d5af0ec85ea1a4aad910642d16b49..f7a319f483ab0cef2f2c071359e57f408c3dc7cd 100644 (file)
@@ -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'}