You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2007/05/23 12:17:57 UTC
[Spamassassin Wiki] Update of "SpamAssassin on Mac OS X Server" by
KanthanPillay
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.
The following page has been changed by KanthanPillay:
http://wiki.apache.org/spamassassin/SpamAssassin_on_Mac_OS_X_Server
------------------------------------------------------------------------------
2. Make sure that the cron script to learn Ham and Spam is in place, or replace it with another script (I use [http://osx.topicdesk.com/downloads/ spamtrainer] because I'm too lazy to fix Apple's install when spamtrainer will do it for me. As a bonus, spamtrainer will clean up messages that it has already analysed, so you don't have to.) Read the documentation that is included.
- 3. Create system accounts with the short name junkmail and notjunkmail. These accounts do not exist by default, so you have to do it. In Workgroup Manager, make sure that you are in the local directory (not LDAP!!) and create the two users, (you don't need to give them home dirs) then enable mail for them. You can now redirect (not forward) any Spam to junkmail@yourdomain.com and Ham to notjunkmail@yourdomain.com and the system should learn from those messages. You can also create shared IMAP folders for these users (somebody have a link for doing that?) so your IMAP users can just drag spam into the shared junkmail mailbox and it will automagically be learned.
+ 3. Create system accounts with the short name junkmail and notjunkmail. These accounts do not exist by default, so you have to do it. In Workgroup Manager, make sure that you are in the local directory (not LDAP!!) and create the two users, (you don't need to give them home dirs) then enable mail for them. You can now redirect (not forward) any Spam to junkmail@yourdomain.com and Ham to notjunkmail@yourdomain.com and the system should learn from those messages. You can also create shared IMAP folders for these users so your IMAP users can just drag spam into the shared junkmail mailbox and it will automagically be learned. The standard MacOS X Server Cyrus install does not install the cyradm(1) command line facility for changing mailbox ACLs by default. A very effective GUI alternative for the Mac to set shared permissions on the inboxes for junkmail and notjunkmail is [http://explanatorygap.net/sw/SirAdmin.app.zip SirAdmin]. If you run SirAdmin remotely, remember to turn
on SSL else your password will be transmitted in cleartext.
4. Gather some spam (what, no spam??) and feed the bayes DB. SpamAssassin won't use bayes filtering until you have at least 200 messages. I have been told that it doesn't get really effective until your have about 2000 spam and 2000 ham messages in the DB. Note that the learning process is time and processor intensive! Schedule the DB updates to minimize impact on the server. When I build a server, I like to feed it big lumps of spam and ham before it goes on line. You can use spamtrainer to specify another mailbox (other than junkmail and notjunkmail) to use to learn spam and ham on a one time basis (handy!)