Skip to content

Commit

Permalink
domain match should be case insensitive
Browse files Browse the repository at this point in the history
domain match should be case insensitive - see #3749 (comment)
  • Loading branch information
jnorell committed Jun 9, 2021
1 parent f36f1fe commit f2d94be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/lua/dmarc.lua
Expand Up @@ -1199,7 +1199,7 @@ if opts['reporting'] == true then
if urlt['protocol'] ~= 'mailto' then
rspamd_logger.errx(rspamd_config, 'invalid URL: %s', url)
else
if urlt['tld'] == rspamd_util.get_tld(reporting_domain) then
if string.lower(urlt['tld']) == string.lower(rspamd_util.get_tld(reporting_domain)) then
reporting_addrs[string.format('%s@%s', urlt['user'], urlt['host'])] = true
else
to_verify[string.format('%s@%s', urlt['user'], urlt['host'])] = urlt['host']
Expand Down Expand Up @@ -1620,4 +1620,4 @@ if opts.munging then
rspamd_config:register_dependency('ARC_SIGNED', 'DMARC_MUNGED')

rspamd_logger.infox(rspamd_config, 'enabled DMARC munging')
end
end

0 comments on commit f2d94be

Please sign in to comment.