diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-02 12:28:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-02 12:28:39 +0100 |
commit | 936231df29e20e33193adffbddd5aa41f22f9f84 (patch) | |
tree | 9f3cd9deb8b25cb342ce586f770cdc8ee22a67db /lualib | |
parent | a69bb975bab282437df559fd0efb25db3c174dba (diff) | |
download | rspamd-936231df29e20e33193adffbddd5aa41f22f9f84.tar.gz rspamd-936231df29e20e33193adffbddd5aa41f22f9f84.zip |
[Minor] Use the original address in authentication results
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_auth_results.lua | 4 |
1 files 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'} |