]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix AuthservId 2212/head
authorAndrey Igoshin <ai@vsu.ru>
Wed, 2 May 2018 10:41:02 +0000 (13:41 +0300)
committerAndrey Igoshin <ai@vsu.ru>
Wed, 2 May 2018 10:41:02 +0000 (13:41 +0300)
lualib/lua_auth_results.lua

index 7c7d3505dc68c77ec9998ca7dd35402fb9d77034..3f604d7600c4c53a066288e45c47f160df3c72fe 100644 (file)
@@ -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