Skip to content

Commit

Permalink
[Project] Dmarc: Use full recipient address instead of a domain map
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Mar 24, 2021
1 parent 0d69dbb commit c3d33f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/lua/dmarc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)')
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c3d33f2

Please sign in to comment.