THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
The standard Mac OS X Server install has a number of incorrect settings in /etc/mail/spamassassin/local.cf - run this command to see what's broken then fix it. Note that Mac OS X Server calls spamassassin from amavisd, and so ignores much of what is in local.cf - the config settings are found in amavisd.conf.
No Format |
---|
spamassassin --lint |
...
- auto_learn should be bayes_auto_learn
- safe_reporting should be safe_reportreport_safe (Thanks to Alex from topicdesk.com for pointing out this error!)
- use_terse_report can be safely commented out
- subject_tag can be commented out
- rewrite_subject can be commented out
- ok_languages can be commented out and this line uncommented in v310.pre
loadplugin Mail::SpamAssassin::Plugin::TextCat
. ok_languages is now a User setting - I haven't implemented this, so I'm not sure if the plugin is even installed or how best to configure it. YMMV.
Pyzor
Wiki Markup |
---|
The \[http://pyzor.sourceforge.net Pyzor package\] is not installed by default on Mac OS X Server, you'll have to |
install it manually |
. |
Wiki Markup download pyzor from \[http://pyzor.sourceforge.net Sourceforge\] and unstuff the bzip archive. cd into the download directory and run these commands to build and install the package
No Format python setup.py build python setup.py install
Wiki Markup |
---|
Pyzor depends on py-gdbm which is most easily installed via \[http://darwinports.org DarwinPorts\] |
- first install Darwinports, then
sudo port install py-gdbm
to install the py-gdbm package - test the py-gdbm install with this command
python -c 'import gdbm' && echo 'gdbm found'
- test with
spamassassin -D < path_to_spam_message
and see what Pyzor messages come up - you should be good to go.
Razor2
Not free for non-personal use. The Razor2 package is not installed by default on Mac OS X Server, you'll have to find it and install it manually. On the TODO list...
...
Wiki Markup \[http://developer.apple.com/server/fighting_spam.html\] Fighting Spam on Mac OS Server 10.3 - includes stuff about installing Razor and other useful tools
Wiki Markup \[http://www.afp548.com/article.php?story=20051127235810230\] Greylisting - not exactly [SpamAssassin] related, but helpful in a global approach.
Wiki Markup \[http://www.afp548.com/\] AFP548.com has gobs of good info about spam fighting
Wiki Markup \[http://osx.topicdesk.com/\] the creators of the spamtrainer script and other software, as well as some Mac OS X tutorials (that were used in part for the writing of this article). Thanks to Alex who was kind enough to correct some of my errors on this page.