Rspamd: 'has been already learned as spam, ignore it' fill my history tab

Created on 30 Nov 2018  路  6Comments  路  Source: rspamd/rspamd

Classification (Please choose one option):

  • [ ] Crash/Hang/Data loss
  • [ ] WebUI/Usability
  • [ ] Serious bug
  • [x] Ordinary bug
  • [ ] Feature
  • [ ] Enhancement

Reproducibility (Please choose one option):

  • [X] Always
  • [ ] Sometimes
  • [ ] Rarely
  • [ ] Unable
  • [ ] I didn鈥檛 try
  • [ ] Not applicable

Rspamd version:

rspamd 1.8.2-2

Operation system, CPU:

centos7

Description (Please provide a descriptive summary of the issue):

From time to time rspamd complains that the spam is already in the class spam in its logs

for example :

Nov 30 01:26:09 prometheus rspamd[2893]: <52f247>; proxy; rspamd_task_process: learn error: <[email protected]> has been already learned as sp
am, ignore it

This does not affect the work of rspamd except that the error fills the history tab in the rspamd UI, and other errors could not be displayed. @moisseev do you think we could filter this kind of lines and not display them ?

Compile errors (if any):

Relevant logs (see details here):

Expected results:

I expect that this line of logs is understood as a warn and not an error

Actual results:

Actually each time this line appears, an error is displayed in the tab history

Debugging information (see details here):

Most helpful comment

In my opinion, it is not an error, actually. @vstakhov Can we just change its severity to notice?

All 6 comments

screenshot_2018-11-30 prometheus 980 rspamd - rspamd web interface 1

In my opinion, it is not an error, actually. @vstakhov Can we just change its severity to notice?

yes, a notice should be good

Hi @vstakhov

thank for the 1.8.3 version today, do you think we could change the severity to something not an error, the history tab is full of learn error

I figured that the learn error comes after a virus detection found by clamav

Dec  9 04:15:38 prometheus rspamd[25030]: <8fd7a1>; lua; antivirus.lua:105: clamav: virus found: "Sanesecurity.Scam.12538.UNOFFICIAL"
Dec  9 04:15:38 prometheus rspamd[25030]: <8fd7a1>; proxy; rspamd_add_passthrough_result: <[email protected]>: set pre-result to reject (no score): 'clamav: virus found: "Sanesecurity.Scam.12538.UNOFFICIAL"' from antivirus(1)
Dec  9 04:15:38 prometheus rspamd[25030]: <8fd7a1>; surbl; process_dns_results: <[email protected]> domain [helgahanna.su] is in surbl sbl.spamhaus.org(200007f)
Dec  9 04:15:38 prometheus rspamd[25030]: <8fd7a1>; proxy; rspamd_check_group_score: maximum group score 12.50 for group surbl has been reached, ignoring symbol URIBL_SBL with weight 6.50
Dec  9 04:15:38 prometheus rspamd[25030]: <8fd7a1>; proxy; rspamd_stat_check_autolearn: <[email protected]>: autolearn spam for classifier 'bayes' as message's action is reject, score: 43.26
Dec  9 04:15:38 prometheus rspamd[25030]: <8fd7a1>; proxy; rspamd_task_process: learn error: <[email protected]> has been already learned as spam, ignore it

this is the full gist

set pre-result to reject (no score)

will try to set a score in /etc/rspamd/scores.d/nethserver_group.conf

symbols = {
    symbol "CLAM_VIRUS" {
        weight = 200.0;
        description = "Clamav Antivirus found";
    }
}
Was this page helpful?
0 / 5 - 0 ratings