summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorJesse Norell <jesse@kci.net>2021-06-09 16:16:13 -0600
committerGitHub <noreply@github.com>2021-06-09 16:16:13 -0600
commitf2d94be62fdddb566d797918facb44974a941f0a (patch)
tree48e5927ca5441c3918fd160cb7ee8c49c4224df5 /src/plugins
parentf36f1fe83e2787dc098474808430f044d1b90333 (diff)
downloadrspamd-f2d94be62fdddb566d797918facb44974a941f0a.tar.gz
rspamd-f2d94be62fdddb566d797918facb44974a941f0a.zip
domain match should be case insensitive
domain match should be case insensitive - see https://github.com/rspamd/rspamd/issues/3749#issuecomment-858013193
Diffstat (limited to 'src/plugins')
-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 aae556c96..ef2c89881 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