diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-17 14:40:20 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-17 14:40:20 +0100 |
commit | c5663c16fe578d09487c1402d2c2ccc5350d94e5 (patch) | |
tree | 48523e3de83b09a881773f41e1152d8d82f33c3b /lualib/lua_auth_results.lua | |
parent | 8621808de74f03e87c5c5ae747c7b948f1d06ca6 (diff) | |
download | rspamd-c5663c16fe578d09487c1402d2c2ccc5350d94e5.tar.gz rspamd-c5663c16fe578d09487c1402d2c2ccc5350d94e5.zip |
[Fix] Prefer 'MTA-Name' when producing authentication results
Diffstat (limited to 'lualib/lua_auth_results.lua')
-rw-r--r-- | lualib/lua_auth_results.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lualib/lua_auth_results.lua b/lualib/lua_auth_results.lua index 3f604d760..4f4736ff1 100644 --- a/lualib/lua_auth_results.lua +++ b/lualib/lua_auth_results.lua @@ -78,7 +78,8 @@ local function gen_auth_results(task, settings) symbols = {} } - local mta_hostname = task:get_request_header('MTA-Tag') + local mta_hostname = task:get_request_header('MTA-Name') or + task:get_request_header('MTA-Tag') if mta_hostname then table.insert(hdr_parts, tostring(mta_hostname)) else |