aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-02 16:49:59 +0100
committerGitHub <noreply@github.com>2018-05-02 16:49:59 +0100
commit13692229b29f856001700a5fbfe48112ed72e1fe (patch)
tree0a09038c7436a1bde4a57290f6c5a3722d8d4e78
parent72b3e2943232914444888a6a024e9a66641ff15a (diff)
parent9b6f22973406b80df6fa464db99cb473bd0f9b96 (diff)
downloadrspamd-13692229b29f856001700a5fbfe48112ed72e1fe.tar.gz
rspamd-13692229b29f856001700a5fbfe48112ed72e1fe.zip
Merge pull request #2212 from andy-igoshin/master
[Fix] Fix AuthservId
-rw-r--r--lualib/lua_auth_results.lua6
1 files changed, 4 insertions, 2 deletions
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