Joe,
If it helps I have posted a summary of my working config.xml settings on
this list before. Here they are again. I've removed all the
non-Bayesian bits and replaced them with a line of dots. Maybe it will
give you some ideas.
------------------------ config.xml ---------------------------------
...
<config>
...
<spoolmanager>
<threads> 5 </threads>
<!-- ROOT PROCESSOR -->
<processor name="root">
...
<!-- "not spam" bayesian analysis feeder. -->
<mailet match="recipientis=not.s...@xxx.yyy"
class="BayesianAnalysisFeeder">
<repositoryPath> db://maildb </repositoryPath>
<feedType>ham</feedType>
<maxSize>500000</maxSize>
</mailet>
<!-- "spam" bayesian analysis feeder. -->
<mailet match="recipientis=s...@xxx.yyy"
class="BayesianAnalysisFeeder">
<repositoryPath> db://maildb </repositoryPath>
<feedType>spam</feedType>
<maxSize>500000</maxSize>
</mailet>
...
<!-- Anti-spam processing -->
<!-- The following two entries avoid double anti-spam analysis -->
<!-- for forwarded messages. -->
<!-- Has spam checking already been done? -->
<mailet match="HasMailAttribute=spamChecked" class="ToProcessor">
<processor> transport </processor>
</mailet>
<!-- Spam checking will not be done twice -->
<mailet match="All" class="SetMailAttribute">
<spamChecked>true</spamChecked>
</mailet>
<!-- Messages from authenticated senders are never spam -->
<mailet match="SMTPAuthSuccessful" class="ToProcessor">
<processor> transport </processor>
</mailet>
...
<!-- Anti spam bayesian analysis -->
<mailet match="All" class="BayesianAnalysis"
onMailetException="ignore">
<repositoryPath>db://maildb</repositoryPath>
<maxSize>3000000</maxSize>
<headerName>X-MessageIsSpamProbability</headerName>
<ignoreLocalSender>false</ignoreLocalSender>
</mailet>
<mailet
match="CompareNumericHeaderValue=X-MessageIsSpamProbability > 0.50"
class="SetMailAttribute" onMatchException="noMatch">
<isSpam>true</isSpam>
</mailet>
<mailet
match="CompareNumericHeaderValue=X-MessageIsSpamProbability > 0.50"
class="SetMimeHeader" onMatchException="noMatch">
<name>X-MessageIsSpam</name>
<value>true</value>
</mailet>
<mailet
match="CompareNumericHeaderValue=X-MessageIsSpamProbability > 0.50"
class="ToProcessor" onMatchException="noMatch">
<processor> spam </processor>
<notice>Spam not accepted</notice>
</mailet>
<!-- Send remaining mails to the transport processor for either
local or remote delivery -->
<mailet match="All" class="ToProcessor">
<processor> transport </processor>
</mailet>
</processor>
...
<processor name="transport">
<mailet match="SMTPAuthSuccessful" class="SetMimeHeader">
<name>X-UserIsAuth</name>
<value>true</value>
</mailet>
...
</processor>
<processor name="spam">
<mailet match="All" class="Null"/>
<!-- To notify the postmaster that a message was marked as spam,
uncomment this matcher/mailet configuration -->
<!--
<mailet match="All" class="NotifyPostmaster"/>
-->
</processor>
...
</spoolmanager>
...
</config>
Regards,
David Legg
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org