I don't know if this will work, but in current trunk we have a
SpamAssassin (SpamD) mailet.
You can try to build it or maybe it will even work copying the needed
classes to the apps/james/SAR-INF/classes folder and using the
SpamAssassing mailet.
You will need at least this 2 classes:
org.apache.james.transport.mailets.SpamAssassin
org.apache.james.util.SpamAssassinInvoker
And this is the documentation from the mailet:
Sends the message through daemonized SpamAssassin (spamd), visit
SpamAssassin.org for info on configuration. The header X-Spam-Status is
added to every message, this contains the score and the threshold score
for spam (usually 5.0). If the message exceeds the threshold, the header
X-Spam-Flag will be added with the value of YES. The default host for
spamd is localhost and the default port is 783.
org.apache.james.spamassassin.status - Holds the status
org.apache.james.spamassassin.flag - Holds the flag
Sample Configuration:
------
<mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
<spamdHost>localhost</spamdHost>
<spamdPort>783</spamdPort>
</mailet>
------
Stefano
Robert SKUBIJ wrote:
Hi!
I don't understand spam blocking policy in James 2.3.
Is possible to use SpammAssassin?
Please send me some information or sample config.xml.
Regards,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]