mirror of
https://github.com/chatmail/relay.git
synced 2026-05-21 13:28:05 +00:00
opendkim/final.lua: also strip Authentication-Results Header
This commit is contained in:
@@ -34,6 +34,9 @@ if valid then
|
|||||||
for i = nsigs, 1, -1 do
|
for i = nsigs, 1, -1 do
|
||||||
odkim.del_header(ctx, "DKIM-Signature", i)
|
odkim.del_header(ctx, "DKIM-Signature", i)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Delete first and presumably only occurence
|
||||||
|
odkim.del_header(ctx, "Authentication-Results", 0)
|
||||||
else
|
else
|
||||||
odkim.set_reply(ctx, "554", "5.7.1", "No valid DKIM signature found")
|
odkim.set_reply(ctx, "554", "5.7.1", "No valid DKIM signature found")
|
||||||
-- Delete in reverse order to avoid index shifting.
|
-- Delete in reverse order to avoid index shifting.
|
||||||
|
|||||||
Reference in New Issue
Block a user