aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_auth_results.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_auth_results.lua')
-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