mirror of
https://github.com/chatmail/relay.git
synced 2026-05-18 12:38:57 +00:00
Compare commits
3 Commits
j4n/remove
...
j4n/remove
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ebcd498db | ||
|
|
4d0a7001aa | ||
|
|
436f4d0014 |
@@ -31,17 +31,13 @@ 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 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
|
||||||
else
|
odkim.del_header(ctx, "Authentication-Results", 0)
|
||||||
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
|
end
|
||||||
else
|
else
|
||||||
odkim.set_reply(ctx, "554", "5.7.1", error_msg)
|
odkim.set_reply(ctx, "554", "5.7.1", error_msg)
|
||||||
|
|||||||
@@ -272,8 +272,8 @@ by OpenDKIM screen policy script before validating the signatures. This
|
|||||||
corresponds to strict :rfc:`DMARC <7489>` alignment (``adkim=s``).
|
corresponds to strict :rfc:`DMARC <7489>` alignment (``adkim=s``).
|
||||||
If there is no valid DKIM signature on the incoming email, the
|
If there is no valid DKIM signature on the incoming email, the
|
||||||
sender receives a “5.7.1 No valid DKIM signature found” error.
|
sender receives a “5.7.1 No valid DKIM signature found” error.
|
||||||
After validating the DKIM signature,
|
After validating the DKIM signature,
|
||||||
the `final.lua` script strips all ``OpenDKIM:`` headers to reduce message size on disc.
|
the `final.lua` script strips all ``OpenDKIM:`` headers to reduce message size on disc.
|
||||||
|
|
||||||
Note that chatmail relays
|
Note that chatmail relays
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user