]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] SPOOF_REPLY_TO: mitigate some possible FPs on mailing list posts 1674/head
authorAndrew Lewis <nerf@judo.za.org>
Sun, 11 Jun 2017 15:25:22 +0000 (17:25 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Sun, 11 Jun 2017 15:25:22 +0000 (17:25 +0200)
rules/misc.lua

index 35942e3e1641e8e15fdf5e3e587e5804515faa3a..1814be8abe976d721cd069155e4596d4df56d0b2 100644 (file)
@@ -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