From: Andrey Igoshin Date: Wed, 2 May 2018 10:41:02 +0000 (+0300) Subject: [Fix] Fix AuthservId X-Git-Tag: 1.7.5~84^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9b6f22973406b80df6fa464db99cb473bd0f9b96;p=rspamd.git [Fix] Fix AuthservId --- diff --git a/lualib/lua_auth_results.lua b/lualib/lua_auth_results.lua index 7c7d3505d..3f604d760 100644 --- a/lualib/lua_auth_results.lua +++ b/lualib/lua_auth_results.lua @@ -78,8 +78,10 @@ local function gen_auth_results(task, settings) symbols = {} } - - if local_hostname then + local mta_hostname = task:get_request_header('MTA-Tag') + if mta_hostname then + table.insert(hdr_parts, tostring(mta_hostname)) + else table.insert(hdr_parts, local_hostname) end