mirror of
https://github.com/chatmail/relay.git
synced 2026-06-10 13:41:08 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 189275a2b9 | |||
| 3ef307611f | |||
| e1d97c5dd1 | |||
| f840ea761e |
@@ -34,6 +34,15 @@ 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
|
||||||
|
odkim.set_reply(ctx, "554", "5.7.1", "No valid DKIM signature found")
|
||||||
|
-- Delete in reverse order to avoid index shifting.
|
||||||
|
for i = nsigs, 1, -1 do
|
||||||
|
odkim.del_header(ctx, "DKIM-Signature", i)
|
||||||
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user