Spam Assassin Doesn't Seem To Be Learning

Quintin S. Giesbrecht q at
Thu Sep 14 18:58:11 UTC 2017

Thanks, that was it.  Needed to run as postfix user.  I think it should work from now on :)

Thanks again,


-----Original Message-----
From: MailScanner [ at] On Behalf Of Mark Sapiro
Sent: Thursday, September 14, 2017 12:38 PM
To: mailscanner at
Subject: Re: Spam Assassin Doesn't Seem To Be Learning

On 09/14/2017 09:29 AM, Quintin S. Giesbrecht wrote:
> It seems that SpamAssassin is not learning. When I run sa-learn --spam
> on an email, it says it learned from 1 message, etc…but if another
> message comes through that is identical, the spam score remains the
> same.  Any idea what I did wrong?

It's sensitive to the user id that runs it (every user has its own bayes data). You have to ensure you run sa-learn as the user that MailScanner runs as. Using the -u/--username option to sa-learn isn't enough.

Mark Sapiro <mark at>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

MailScanner mailing list
mailscanner at

This communication, including its attachments, if any, is confidential and intended only for the person(s) to whom it is addressed, and may contain proprietary and/or privileged material. Any unauthorized review, disclosure, copying, other distribution of this communication or taking of any action in reliance on its contents is strictly prohibited. If you have received this message in error, please notify SNJ immediately so that we may amend our records. Then, please delete this message, and its attachments, if any, without reading, copying or forwarding it to anyone.

More information about the MailScanner mailing list