[Rspamd-Users] Rspamd doesn't recognize mailing list emails

Vlad Buslov vlad at buslov.dev
Sun Oct 20 14:58:00 UTC 2019


My Rspamd installation (now 2.0, and version 1.x before that) doesn't
recognize Linux netdev mailing list emails as such. The mailing list is
powered by Majordomo and emails have proper headers:

Sender: netdev-owner at vger.kernel.org
Precedence: bulk
List-ID: <netdev.vger.kernel.org>
X-Mailing-List: netdev at vger.kernel.org

However, all such emails get following +2 from Rspamd:

FORGED_RECIPIENTS (2) [netdev at vger.kernel.org ..,vlad at buslov.dev]

Skimming through maillist plugin source code it looks like these headers
should be enough:

-- Majordomo detector
-- Check Sender for owner- or -owner
-- Check Precendence for 'Bulk' or 'List'
-- And nothing more can be extracted :(
local function check_ml_majordomo(task)
  local header = task:get_header('Sender')
  if not header or (not string.find(header, '^owner-.*$') and not string.find(header, '^.*-owner$')) then
    return false

  local header = task:get_header('Precedence')
  if not header or (header ~= 'list' and header ~= 'bulk') then
    return false

  return true

Any suggestions?


More information about the Users mailing list