From: Jesse Norell Date: Wed, 9 Jun 2021 22:16:13 +0000 (-0600) Subject: domain match should be case insensitive X-Git-Tag: 3.0~328^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3791%2Fhead;p=thirdparty%2Frspamd.git domain match should be case insensitive domain match should be case insensitive - see https://github.com/rspamd/rspamd/issues/3749#issuecomment-858013193 --- diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index aae556c960..ef2c89881a 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -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'] @@ -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 \ No newline at end of file +end