From: Andrew Lewis Date: Sun, 11 Jun 2017 15:25:22 +0000 (+0200) Subject: [Minor] SPOOF_REPLY_TO: mitigate some possible FPs on mailing list posts X-Git-Tag: 1.6.0~18^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1674%2Fhead;p=rspamd.git [Minor] SPOOF_REPLY_TO: mitigate some possible FPs on mailing list posts --- 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