On Jun 12, 2006, at 7:15 PM, David Haines wrote:
If you haven't already, I'd suggest putting in place the fix first
noted
here:
http://www.afp548.com/forum/viewtopic.php?forum=26&showtopic=11170
"(stop) mail, (move) /var/amavis/.spamassassin aside and replaced
it with a
symlink to /var/clamav/.spamassassin"
Thanks for the help, David. From there, I ended up on these pages:
http://discussions.apple.com/thread.jspa?messageID=2280532
http://wiki.apache.org/spamassassin/SpamAssassin_on_Mac_OS_X_Server
(note that the latter one contains an incorrect (reversed) iteration
of the symbolic link)
Apparently everyone agrees that Apple's SA implementation is either
messed up or deliberately hobbled.
I ended up creating the symbolic link as described in several places:
sudo -s
cd /var/amavis
mv .spamassassin .spamassassin.old
su clamav
ln -s /var/clamav/.spamassassin /var/amavis/.spamassassin
...then fixing the /etc/mail/spamassassin/local.cf file:
change 'auto_learn' to 'bayes_auto_learn'
change 'safe_reporting' to 'report_safe'
comment out 'use_terse_report 0'
comment out 'subject_tag' and 'rewrite_subject'
(note that it is "report_safe" and not "safe_report" as indicated in
some places)
...then setting up the junkmail and notjunkmail accounts as Apple
recommends
...then using spamtrainer <http://osx.topicdesk.com/downloads/> for
the actual scanning instead of either of Apple's scripts (strangely,
hardly anyone even talks about sa-learn).
Now, after scanning 200+ spams and 200+ non-spams (which takes quite
a long time with spamtrainer), Bayesian scanning appears to be
working. I can tell because the X-Spam-Status tag in my mail headers
now contains a BAYES tag:
X-Spam-Status: Yes, hits=5.33 tagged_above=-999 required=5
tests=BAYES_50, HELO_DYNAMIC_IPADDR2, HTML_40_50, HTML_MESSAGE,
MIME_HTML_ONLY
That was NOT trivial (considering that this is supposed to already be
a feature of Tiger). The discussion in the afp548 thread starts on
10.4.2. This misconfiguration (deliberate hobbling?) persists in
10.4.6. wtf?
Anyway, thanks!