fix: opendkim/final.lua: Delete up to 10 Authentication-Results headers

There can be more than one header
This commit is contained in:
j4n
2026-01-06 11:08:24 +01:00
parent 4d0a7001aa
commit 9ebcd498db

View File

@@ -35,8 +35,10 @@ if valid then
odkim.del_header(ctx, "DKIM-Signature", i) odkim.del_header(ctx, "DKIM-Signature", i)
end end
-- Delete first and presumably only occurence -- Delete up to 10 Authentication-Results headers
odkim.del_header(ctx, "Authentication-Results", 0) for i = 9, 0, -1 do
odkim.del_header(ctx, "Authentication-Results", 0)
end
else else
odkim.set_reply(ctx, "554", "5.7.1", error_msg) odkim.set_reply(ctx, "554", "5.7.1", error_msg)
odkim.set_result(ctx, SMFIS_REJECT) odkim.set_result(ctx, SMFIS_REJECT)