aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-07 09:50:14 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-07 09:50:14 +0100
commitb8c0ebc33440fe15216a4369c73faa1951e6b244 (patch)
treebdb967cc152e82a7a0a48db08cf4402aafdf6001 /src
parent0dc617cb0eab563e9b248b3b7d029b56dbf517d6 (diff)
downloadrspamd-b8c0ebc33440fe15216a4369c73faa1951e6b244.tar.gz
rspamd-b8c0ebc33440fe15216a4369c73faa1951e6b244.zip
[Minor] Arc: Specify explicit order for the headers added
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/arc.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua
index 0e575c5fd..eeff889f4 100644
--- a/src/plugins/lua/arc.lua
+++ b/src/plugins/lua/arc.lua
@@ -541,7 +541,9 @@ local function arc_sign_seal(task, params, header)
['ARC-Message-Signature'] = {order = 1, value = header},
['ARC-Seal'] = {order = 1, value = lua_util.fold_header(task,
'ARC-Seal', cur_arc_seal) }
- }
+ },
+ -- RFC requires a strict order for these headers to be inserted
+ order = {'ARC-Authentication-Results', 'ARC-Message-Signature', 'ARC-Seal'},
})
task:insert_result(settings.sign_symbol, 1.0,
string.format('%s:s=%s:i=%d', params.domain, params.selector, cur_idx))