Dear Wiki user,

You have subscribed to a wiki page or wiki category on "James Wiki" for change 
notification.

The following page has been changed by SteveIolone:
http://wiki.apache.org/james/SpamAssassinWithWindows

New page:
##language:en
== Getting SpamAssassin to run under James 2.2.0 and Windows XP ==
=== Start with a running version of James 2.2.0. ===
=== Make sure you have Java SDK 1.4.2 ===
=== You need to have Perl and SpamAssassin installed and running ===
Good instructions are at [http://openhandhome.com/howtosa310.html]
=== Download and unpack james-with-phoenix-2.2.0-src.tar.gz. ===
 Make sure the fix is applied to {{{ MBoxMailRepository.java }}} 

[http://mail-archives.apache.org/mod_mbox/james-server-dev/200508.mbox/[EMAIL 
PROTECTED]

]
You can find {{{ MBoxMailRepository.java }}} "where you installed the 
source\src\java\org\apache\james\mailrepository".
=== Download Herman Reintke's spamcheck.zip. ===
[http://issues.apache.org/jira/browse/JAMES-259] Copy Herman's SpamCheck.java 
to:
"where you installed the source\src\java\org\apache\james\transport\matchers"
=== Switch back to where you installed the source and re-build ===
Execute build.bat. Should build with no errors.
=== Copy the new james.sar from /dist/james-2.2.0/apps to your 
production/james-2.2.0/apps ===
=== Update config.xml per Herman's instructions ===
Make sure you use the correct path where you installed spamassassin.bat.
{{{
<mailet match='SpamCheck=c:\perl\bin\spamassassin -e,c:\temp' class="AddHeader">
             <name>X-SpamChecked</name>
             <value>true</value>
</mailet>
<mailet match="HasHeader=X-Spam-Flag" class="ToRepository">
<repositoryPath>file://var/mail/inboxes/spambox/</repositoryPath>
</mailet>
}}}
=== If you use MySQL for your repositories ===
Create a table for use with spambox. I used phpMyAdmin, selected my mail 
database, using OPERATIONS, then I copied my inbox table,
structure only, to a new one named "spambox".
Then I changed config.xml repositoryPath to
{{{
<repositoryPath> db://maildb/spambox/spam </repositoryPath>
}}}

Reply via email to