aboutsummaryrefslogtreecommitdiffstats
path: root/rules/misc.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-06-11 17:25:22 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-06-11 17:25:22 +0200
commitf2c10417d91ad587ec866693dcd95f65f8d5e463 (patch)
tree49405113168df9c60276f3c1b33d850ffad38dd9 /rules/misc.lua
parentfdf0cf9941ced79fb57bc1f7cb334cca7204b37d (diff)
downloadrspamd-f2c10417d91ad587ec866693dcd95f65f8d5e463.tar.gz
rspamd-f2c10417d91ad587ec866693dcd95f65f8d5e463.zip
[Minor] SPOOF_REPLY_TO: mitigate some possible FPs on mailing list posts
Diffstat (limited to 'rules/misc.lua')
-rw-r--r--rules/misc.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/misc.lua b/rules/misc.lua
index 35942e3e1..1814be8ab 100644
--- a/rules/misc.lua
+++ b/rules/misc.lua
@@ -570,6 +570,8 @@ rspamd_config.SPOOF_REPLYTO = {
-- SMTP recipients must contain From domain
to = task:get_recipients(1)
if not to then return false end
+ -- Try mitigate some possible FPs on mailing list posts
+ if #to == 1 and util.strequal_caseless(to[1].addr, from[1].addr) then return false end
local found_fromdom = false
for _, t in ipairs(to) do
if util.strequal_caseless(t.domain, from[1].domain) then