Here is a concise description describing how to setup your SME to learn SPAM and HAM from IMAP folders named 'LearnAsSpam' and 'LearnAsHam'. I use this on several systems with good results:
I've also combined this at one site with
ImapSync so that Exchange users need only drag spam and ham to 'LearnAsSpam' or 'LearnAsHam' in the public folders on their Exchange server...
Here's a contrib that is based on the LearnAsSpam and LearnAsHam scripts mentioned above. I've never used this contrib and don't know if/how well it works:
To get Spamassassin Coach to work, you need to modify the command that starts the clamd daemon - by default, clamd only allows connections from 127.0.0.1. To modify the clamd command, you would need to edit
/var/service/clamd/run. Since this file is not templated, your changes would potentially disappear each time you install SME updates.
So, to get Spamassassin Coach to work, need to
- enable bayesian learning as described in Bug 1701 Comment 25 or This wiki page (these two methods are equivalent, as far as I can tell)
- edit /var/service/spamd/run to include the --listen-ip and --allowed-ips
- customize the firewall settings for spamd to allow inbound traffic on port 783 from reasonable hosts. Specifically, I'm sure you don't want to allow remote spamd connections from the whole planet (which could happen if you aren't careful)
- If you choose to allow clamd connections from off-site, you need to decide if/whether/how to use SSL
Read more about spamd options here:
http://spamassassin.apache.org/full/3.0.x/dist/doc/spamd.html