Function to train spamassassin?

mailserver
v7

(Tony Boston) #1

Old topic but, do we have a function to train spamassassin? I am receiving a lot of spam since a few days and I’d like to train spamassassin with “sa-learn” here.
Anyone?


Tony


NethServer as antispam antivirus gateway to your mail server
Slider functions for spam control?
(Davide Principi) #2

Hi @tboston,

the spam filter training function is triggered when a message is moved into the Junk mail folder.


(Alessio Fattorini) #3

The other way around works too, move a message from the Junk to the Inbox


(Tony Boston) #4

Ahh yeah, one look at my logs tell me that too, sorry :slight_smile:


(Guus) #5

Nethserver 7.6.1810(final)
emclient over imap and carddav (SOGo)

I also tried to get the learn funktion working with no luck. I moved junk mail from inbox to junk folder and got this bounce message:

The mail system

<“guus@ijzereef.nl+learn_spam”@spamtrain.nh>: Command died with status 1:
“/usr/bin/rspamc”. Command output: Results for file: stdin (2.017 seconds)
HTTP error: 1, error getting reply from redis server
/var/run/redis-rspamd/rspamd: No such file or directory

So I searched, found this topic and checked my log files:

imap log:
Jan 9 19:51:34 yz1web dovecot: imap(guus@ijzereef.nl): sieve: pipe action: piped message to program `spam-training’
Jan 9 19:51:34 yz1web dovecot: imap(guus@ijzereef.nl): sieve: left message in mailbox ‘Junk’

maillog:
Jan 9 19:54:41 yz1web rspamd[30096]: <>; ; rspamd_redis_pool_new_connection: cannot connect to redis: No such file or directory
Jan 9 19:54:41 yz1web rspamd[30096]: <>; ; rspamd_lua_redis_prepare_connection: cannot connect to redis: unknown error
Jan 9 19:54:41 yz1web rspamd[30096]: <>; lua; lua_redis.lua:722: cannot execute redis request

redis rspamd log:
empty file

any suggestions how to solve?