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

Reio Remma reio at mrstuudio.ee
Mon Oct 21 16:29:06 UTC 2019


On 20.10.2019 17:58, Vlad Buslov via Users wrote:
> Hi,
>
> 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
>    end
>
>    local header = task:get_header('Precedence')
>    if not header or (header ~= 'list' and header ~= 'bulk') then
>      return false
>    end
>
>    return true
> end
>
> Any suggestions?

This code seems to have been removed in July and merged info 
check_generic_list_headers.

It might be a good idea to bugrep the maillist plugin with sample 
headers from Majordomo lists, because check_generic_list_headers 
probably doesn't gather enough score to detect Majordomo lists.

Good luck,
Reio


More information about the Users mailing list