mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
fix: opendkim/final.lua: Delete up to 10 Authentication-Results headers
There can be more than one header
This commit is contained in:
@@ -35,8 +35,10 @@ if valid then
|
||||
odkim.del_header(ctx, "DKIM-Signature", i)
|
||||
end
|
||||
|
||||
-- Delete first and presumably only occurence
|
||||
odkim.del_header(ctx, "Authentication-Results", 0)
|
||||
-- Delete up to 10 Authentication-Results headers
|
||||
for i = 9, 0, -1 do
|
||||
odkim.del_header(ctx, "Authentication-Results", 0)
|
||||
end
|
||||
else
|
||||
odkim.set_reply(ctx, "554", "5.7.1", error_msg)
|
||||
odkim.set_result(ctx, SMFIS_REJECT)
|
||||
|
||||
Reference in New Issue
Block a user