瀏覽代碼

Merge pull request #3387 from dasJ/dmarc-improvements

[Minor] Fix some DMARC issues
tags/2.6
Vsevolod Stakhov 4 年之前
父節點
當前提交
7fb816b035
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      src/plugins/lua/dmarc.lua

+ 3
- 2
src/plugins/lua/dmarc.lua 查看文件

@@ -218,9 +218,10 @@ local function dmarc_report(task, spf_ok, dkim_ok, disposition,
local dkim_fail = table.concat(dres.fail or E, '|')
local dkim_temperror = table.concat(dres.temperror or E, '|')
local dkim_permerror = table.concat(dres.permerror or E, '|')
local disposition_to_return = if disposition == "softfail" then "none" else disposition
local res = table.concat({
ip:to_string(), spf_ok, dkim_ok,
disposition, (sampled_out and 'sampled_out' or ''), hfromdom,
disposition_to_return, (sampled_out and 'sampled_out' or ''), hfromdom,
dkim_pass, dkim_fail, dkim_temperror, dkim_permerror, spfdom, spf_result}, ',')

return res
@@ -817,7 +818,7 @@ if opts['reporting'] == true then
}),
}
if data.override ~= '' then
table.insert(buf, string.format('<reason>%s</reason>', data.override))
table.insert(buf, string.format('<reason><type>%s</type></reason>', data.override))
end
table.insert(buf, table.concat({
'</policy_evaluated></row><identifiers><header_from>', data.header_from,

Loading…
取消
儲存