[Rspamd-Users] Manage mailing list

Mickael Profeta mike at alezan.org
Wed Nov 24 23:47:10 UTC 2021


Hi,

I try to understand a bit better. Talking about mailinglist.lua, I
notice that the ezmlm is not recognized as mailinglist because in 

-- RFC 2919 headers
local function check_generic_list_headers(task)
  local score = 0

the total score obtained for ezmlm header is 0.875 and not 1

if I change 

local function check_maillist(task)
  local score = check_generic_list_headers(task)
  if score >= 0.75 then
    if check_ml_ezmlm(task) then
      task:insert_result(symbol, 1, 'ezmlm')

mails are correctly recongized as mailinglist and
FREEMAIL_POLICY_FAILURE disappear. 

Should I submit a bug about that?

here is ezmlm header:

Mailing-List: contact liste.test-help at prepareims.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Post: <mailto:liste.test at prepareims.org>
List-Help: <mailto:liste.test-help at prepareims.org>
List-Unsubscribe: <mailto:liste.test-unsubscribe at prepareims.org>
List-Subscribe: <mailto:liste.test-subscribe at prepareims.org>
Reply-To: liste.test at prepareims.org
Delivered-To: mailing list liste.test at prepareims.org



Now about R_DKIM_REJECT, If i send a mail directly from gmail, I get 

R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112];

but when it come from a mailinglist, I have:

R_DKIM_REJECT(8.00)[gmail.com:s=20210112];

any clue how I can manage that one?

Thanks for help.

Mike.

> Hi,
> 
> Thanks for answer.
> 
> 
> I copy here the results of rspamd, I can provide the header of the
> mail if needed:
> 
> 
> 
> Sort by:
> 
> *FREEMAIL_POLICY_FAILURE* (16)
> *R_DKIM_REJECT* (8) [gmail.com:s=20210112]
> *NEURAL_HAM_LONG* (-4) [-1.000]
> *FORGED_W_BAD_POLICY* (3)
> *FORGED_RECIPIENTS* (2)
> [m:liste.test at prepareims.org,s:stephane at ravier.org] *R_SPF_ALLOW*
> (-0.2) [+ptr:mail-out.ovh.net] *IP_REPUTATION_HAM* (-0.176077) [asn:
> 16276(-0.17), country: FR(-0.01), ip: 46.105.39.213(0.00)]
> *DMARC_POLICY_SOFTFAIL* (0.1) [gmail.com : SPF not aligned
> (relaxed),none] *MIME_GOOD* (-0.1) [multipart/alternative,text/plain]
> *MX_GOOD* (-0.01) []
> *HAS_LIST_UNSUB* (-0.01)
> *BAYES_SPAM* (0.000199) [28.56%]
> *RCVD_TLS_LAST* (0)
> *MID_RHS_MATCH_FROMTLD* (0)
> *MIME_TRACE* (0) [0:+,1:+,2:~]
> *FORGED_SENDER_VERP_SRS* (0)
> *ARC_NA* (0)
> *RCVD_IN_DNSWL_NONE* (0) [46.105.39.213:from,209.85.210.48:received]
> *RWL_MAILSPIKE_POSSIBLE* (0) [46.105.39.213:from]
> *ARC_SIGNED* (0) [ravier.org:s=dkim:i=1]
> *HAS_REPLYTO* (0) [liste.test at prepareims.org]
> *FORGED_SENDER* (0) 
> [mickaelprofeta at gmail.com,liste.test-return-6-stephane=ravier.org at prepareims.org]
> *TAGGED_FROM* (0)
> *DKIM_TRACE* (0) [gmail.com:-]
> *BCC* (0)
> *RCPT_MAILCOW_DOMAIN* (0) [ravier.org]
> *ASN* (0) [asn:16276, ipnet:46.105.0.0/16, country:FR]
> *PRECEDENCE_BULK* (0)
> *FROM_HAS_DN* (0)
> *FROM_NEQ_ENVFROM* (0) 
> [mickaelprofeta at gmail.com,liste.test-return-6-stephane=ravier.org at prepareims.org]
> *RCPT_COUNT_ONE* (0) [1]
> *TO_DN_NONE* (0)
> *RCVD_COUNT_SEVEN* (0) [9]
> 
> 
> Thanks
> 
> Mickael
> 
> 
> >>
> >> I have set up a mail server with mailcow and rspamd. All is working
> >> pretty well, except for mail coming from mailling lists (ezmlm or
> >> mailman) which are rejected. I do see mailling list module, but I
> >> must admit I do not understand how it is supposed to work. Do I
> >> have to configure something to activate it? Do I have to add
> >> authorized mailing lists in a conf file?
> >>  
> >
> > Usually, there's nothing which needs to be configured for 
> > mailinglists. But please provide more information why these mails
> > get rejected.
> >
> > Regards
> > Bjoern  



-- 
A+
Mike


More information about the Users mailing list