From: Vsevolod Stakhov Date: Thu, 7 Oct 2021 08:50:14 +0000 (+0100) Subject: [Minor] Arc: Specify explicit order for the headers added X-Git-Tag: 3.1~75 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b8c0ebc33440fe15216a4369c73faa1951e6b244;p=rspamd.git [Minor] Arc: Specify explicit order for the headers added --- 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))