aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-24 11:18:16 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-24 11:18:16 +0000
commitc3d33f2d2d508839c2fd9a27f67a187f96933f88 (patch)
treef6c550f2fa6d9e7a8b2fbb98514abb5c247cf4e1
parent0d69dbb1a454af7fd1e75b2e54001399773f6a4f (diff)
downloadrspamd-c3d33f2d2d508839c2fd9a27f67a187f96933f88.tar.gz
rspamd-c3d33f2d2d508839c2fd9a27f67a187f96933f88.zip
[Project] Dmarc: Use full recipient address instead of a domain map
-rw-r--r--src/plugins/lua/dmarc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua
index b6174c093..f6793745b 100644
--- a/src/plugins/lua/dmarc.lua
+++ b/src/plugins/lua/dmarc.lua
@@ -1469,7 +1469,7 @@ if opts.munging then
end
munging_opts.list_map = lua_maps.map_add_from_ucl(munging_opts.list_map,
- 'set', 'DMARC munging map')
+ 'set', 'DMARC munging map of the recipients addresses to munge')
if not munging_opts.list_map then
rspamd_logger.errx(rspamd_config, 'cannot enable DMARC munging with invalid list_map (invalid map)')
@@ -1536,7 +1536,7 @@ if opts.munging then
local rcpt_found
if mr then
for _,r in ipairs(mr) do
- if r.domain and munging_opts.list_map:get_key(r.domain) then
+ if r.domain and munging_opts.list_map:get_key(r.addr) then
rcpt_found = r
break
end