From 936231df29e20e33193adffbddd5aa41f22f9f84 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 2 Jul 2021 12:28:39 +0100 Subject: [PATCH] [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 2c121dc650..f7a319f483 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'} -- 2.47.3