From: Vsevolod Stakhov Date: Fri, 2 Jul 2021 11:28:39 +0000 (+0100) Subject: [Minor] Use the original address in authentication results X-Git-Tag: 3.0~219 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=936231df29e20e33193adffbddd5aa41f22f9f84;p=thirdparty%2Frspamd.git [Minor] Use the original address in authentication results --- 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'}