mirror of
https://github.com/chatmail/relay.git
synced 2026-05-13 09:24:43 +00:00
Compare commits
3 Commits
fix/multip
...
j4n/remove
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ebcd498db | ||
|
|
4d0a7001aa | ||
|
|
436f4d0014 |
@@ -31,9 +31,14 @@ end
|
|||||||
if valid then
|
if valid then
|
||||||
-- Strip all DKIM-Signature headers after successful validation
|
-- Strip all DKIM-Signature headers after successful validation
|
||||||
-- Delete in reverse order to avoid index shifting.
|
-- Delete in reverse order to avoid index shifting.
|
||||||
for i = nsigs, 1, -1 do
|
for i = nsigs - 1, 0, -1 do
|
||||||
odkim.del_header(ctx, "DKIM-Signature", i)
|
odkim.del_header(ctx, "DKIM-Signature", i)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Delete up to 10 Authentication-Results headers
|
||||||
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user