Does the spam filter learn?


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

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: <>
Received: from com01.gehr.local (
	by com01 (kopano-dagent) with LMTP;
	Fri, 10 Jul 2020 09:58:18 +0200 (CEST)
Received: from localhost (localhost [])
	by com01.gehr.local (Postfix) with ESMTP id 6C7E8E374B
	for <>; 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-Status: No, score=-0.098 tagged_above=-1000 required=5
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	SPF_PASS=-0.001] autolearn=disabled

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


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

I’am interessting too for!

Hi @pixel,

this message is explained a bit more in detail at

1 Like

thanks, now I got it :slight_smile: