Does the spam filter learn?

Hi@all,

I have set up the spam filter as described in the documentation. See:

https://documentation.kopano.io/kopanocore_administrator_manual/special_kc_configurations.html#configuring-kopano-spamd-for-automatic-spam-ham-learning

The file /etc/kopano/spamd.cfg looks like this:

run_as_group        = kopano
log_method          =   syslog
sa_group = kopano

The rest are just comments and were removed for posting. I keep receiving advertising mails from the same addresses/senders (with whom I have nothing to do). Although I always mark them as junk in Kopano, the server does not automatically sort them out. As an example I exported a mail as EML and looked at the header.

Return-Path: <bounce-hdh3vfe5bp5vdryzkhzlqkqtog74fmq7p7zjxoq@post.vollblutwerber.de>
Received: from com01.gehr.local (127.0.0.1:39518)
	by com01 (kopano-dagent) with LMTP;
	Fri, 10 Jul 2020 09:58:18 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by com01.gehr.local (Postfix) with ESMTP id 6C7E8E374B
	for <office@domain.de>; Fri, 10 Jul 2020 09:58:18 +0200 (CEST)
X-Virus-Scanned: by amavisd-new-2.10.1 (20141025) (Debian) at gehr.local
X-Spam-Flag: NO
X-Spam-Score: -0.098
X-Spam-Level:
X-Spam-Status: No, score=-0.098 tagged_above=-1000 required=5
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HTML_IMAGE_RATIO_06=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=disabled

The mail is processed by amavisd but is not classified as spam. What surprises me is the entry:

autolearn=disabled

Did I forget something during setup or does “sa-learn” still have to be executed via cron?

If I mark this mail as spam in Kopano and look at the syslog at the same time, nothing happens here :frowning:

What did I forget?

with best
sven

I’am interessting too for!

Hi @pixel,

this message is explained a bit more in detail at https://cwiki.apache.org/confluence/display/SPAMASSASSIN/AutolearningNotWorking

1 Like

thanks, now I got it :slight_smile:

Mastodon