Spamtrain.nh error

,

go to the software center

there is no update found under the software center

is there any possibility that I can update rspamd with a command using ssh?

1 Like

my bad sorry, stable is 2.2
 I run 2.5 :slight_smile:

WHY :-?

now what I can do?’

signal-event nethserver-mail-filter-save

check that the error has not changed since the beginning, we don’t know :slight_smile:

Just wanted to throw something in here; I was getting exactly this error when I would mark something as junk or not junk in roundcube. This was due to the fact that I had turned off rspamd in the Email settings since I’m using an external spam appliance. So rspamd was still running and appeared in good order when checking using systemctl, but it was disabled along with antivirus in the cockpit control panel.

The server has been configured like this for a very long time. The emails didn’t show up until upgrading nethserver to 7.8.2003.

running rspamd-2.2-1.x86_64

I experimented by turning it back on and bam, no more errors which I would expect. I don’t know if that applies to you adnanbutt0550, but hopefully it will help someone if they are confused by this message and seeing it when training spam/ham.

3 Likes

Same problem here.

Errors appeared after upgrading to 7.8.2003, Antispam is disabled in the web interface, Antivirus is enabled. I’ve enabled Antispam now as a workaround.

1 Like

Cc @davidep

2 Likes

A fix is waiting your test

yum update nethserver-mail-\* enablerepo=nethserver-testing

check https://github.com/NethServer/dev/issues/6200#issuecomment-643245161

2 Likes

Hi stephdl,

Thanks for looking into this! I performed the update using the nethserver-testing repo and the behavior didn’t change.

I also went and double-checked that the markasjunk plugin config is set to null for the training driver so that I’m not somehow causing the messages.

So with the updates, if rspamd is disabled in the cockpit control panel, I still get messages. I get them when I mark as junk, or mark as not junk. I can also manually move the messages between the inbox and the junk folders without using any plugins in roundcube or thunderbird and the move will trigger the emails.

My log after manually moving a message:

Jun 12 09:34:04 ----- postfix/cleanup[4728]: 34EE6216C27D: message-id=<20200612163343.AEABF216C27D@----->
Jun 12 09:34:04 ----- spam-training/-----[5493]: Message enqueued as learn_spam
Jun 12 09:34:04 ----- opendkim[4651]: 34EE6216C27D: no signing table match for ‘MAILER-DAEMON@-----’
Jun 12 09:34:04 ----- postfix/qmgr[4711]: 34EE6216C27D: from=<----->, size=43842, nrcpt=1 (queue active)
Jun 12 09:34:04 ----- rspamd[5147]: <4d5028>; csession; rspamd_controller_check_password: allow unauthorized connection from a trusted IP 127.0.0.1
Jun 12 09:34:04 ----- rspamd[5147]: <4d5028>; csession; rspamd_mime_part_get_cte: detected missing CTE for part as: 7bit
Jun 12 09:34:04 ----- rspamd[5147]: <4d5028>; csession; rspamd_mime_part_get_cte: detected missing CTE for part as: 7bit
Jun 12 09:34:04 ----- rspamd[5147]: <4d5028>; csession; rspamd_message_parse: loaded message; id: <20200612163343.AEABF216C27D@----->; queue-id: ; size: 42868; checksum:
Jun 12 09:34:04 ----- rspamd[5147]: <4d5028>; csession; rspamd_mime_part_detect_language: detected part language: en
Jun 12 09:34:04 ----- rspamd[5147]: <4d5028>; csession; rspamd_mime_part_detect_language: detected part language: en
Jun 12 09:34:04 ----- rspamd[5147]: <4d5028>; csession; rspamd_mime_part_detect_language: detected part language: en
Jun 12 09:34:04 ----- rspamd[5147]: <4d5028>; csession; rspamd_stat_classifiers_process: skip statistics as SPAM class is missing
Jun 12 09:34:04 ----- rspamd[5147]: <4d5028>; csession; rspamd_task_process: learn error: Unknown statistics error, found when storing data on backend; classifier: (null)
Jun 12 09:34:04 ----- rspamd[5147]: <4d5028>; csession; rspamd_controller_learn_fin_task: cannot learn <20200612163343.AEABF216C27D@----->: Unknown statistics error, found when storing data on backend; classifier: (null)
Jun 12 09:34:04 ----- postfix/pipe[5421]: 34EE6216C27D: to=-----+learn_spam@spamtrain.nh, relay=spamtrain, delay=0.05, delays=0.02/0/0/0.03, dsn=5.3.0, status=bounced (Command died with status 1: “/usr/bin/rspamc”. Command output: Results for file: stdin (0.009 seconds) HTTP error: 500, Unknown statistics error, found when storing data on backend; classifier: (null) )
Jun 12 09:34:04 ----- postfix/cleanup[4728]: 3FA1C2003543: message-id=<20200612163404.3FA1C2003543@----->
Jun 12 09:34:04 ----- postfix/bounce[5423]: 34EE6216C27D: sender non-delivery notification: 3FA1C2003543
Jun 12 09:34:04 ----- postfix/qmgr[4711]: 3FA1C2003543: from=<>, size=45984, nrcpt=1 (queue active)
Jun 12 09:34:04 ----- postfix/qmgr[4711]: 34EE6216C27D: removed
Jun 12 09:34:04 ----- dovecot: lmtp(4768): Connect from local
Jun 12 09:34:04 ----- dovecot: lmtp(-----): SIIvEHyu416gEgAAX+Q5+A: sieve: msgid=<20200612163404.3FA1C2003543@----->: stored mail into mailbox ‘INBOX’

rpm -qa | grep nethserver-mail (after upgrading using testing repo)

nethserver-mail-server-2.15.1-1.2.g2b8c73a.ns7.noarch
nethserver-mail-common-2.15.1-1.2.g2b8c73a.ns7.noarch
nethserver-mail-filter-2.15.1-1.2.g2b8c73a.ns7.noarch
nethserver-mail-quarantine-2.15.1-1.2.g2b8c73a.ns7.noarch
nethserver-mail-smarthost-2.15.1-1.2.g2b8c73a.ns7.noarch

I’ve gone over the config everywhere I can think of but if anyone has an idea about a hidden setting to turn on/off I’ll be happy to give it a go.

2 Likes

thank, I will check more, BTW it is a pleasure to read a such detailed bug report.

5 Likes

Please could you have a go again, same QA

Yes, that seems to have stopped the behavior.

I disabled Antispam in the control panel, and moved emails to and from junk to verify the emails were being sent (sanity check). Then upgraded using the testing repos to:

nethserver-mail-smarthost-2.15.1-1.5.gc4eaf7b.ns7.noarch
nethserver-mail-filter-2.15.1-1.5.gc4eaf7b.ns7.noarch
nethserver-mail-quarantine-2.15.1-1.5.gc4eaf7b.ns7.noarch
nethserver-mail-server-2.15.1-1.5.gc4eaf7b.ns7.noarch
nethserver-mail-common-2.15.1-1.5.gc4eaf7b.ns7.noarch

Have moved many emails and the issue has disappeared. In searching the logs for “spamtrain” now nothing shows up as well.

Thank you for the quick response.

4 Likes

Released!

Thank you @Jason_Marshall and @stephdl for the good work!

1 Like