On 08/14/2009 12:39:30 PM, Mark Martinec wrote:

> Thomas Mueller writes:
> > as said before: as long as you don't train any messages you will 
> get
> 0.
> >
> > first get crm114 standalone working before proceeding to
> SpamAssassin/
> > Amavis.
> 
> It's certainly worthwhile to try first if the standalone crm114 
> works.
> Just let it learn a couple of spam and ham messages, and see if that
> works.
> 
> The CRM114 plugin for SA will also train the crm114 system on misses,
> or on request (spamassassin --report/--revoke). Check the SA log
> and verify that this auto-learning does indeed work, e.g. by
> manually running 'spamassassin -D -t <0.msg' and
> 'spamassassin -D --report <spam.msg' / 'spamassassin -D --revoke
> <ham.msg'
> 
> Running 'amavisd -d noall,crm114' will produce SA logging of
> the 'log area' crm114 at amavisd log level 3 - it's worth looking
> at this log, at least initially.
> 
>   Mark
> 


Finally got my crm114 setup working. But I did observe the following 
contrary to what's been mentioned:

1.  Training crm114 using: "spamassassin -D --revoke <good.msg" did not 
work for me (no update to *.css file) even after training 10 messages 
or so. Same is true for --report option. The typical output I got from 
spamassassin: 

[31687] dbg: crm114: plugin_revoke() called
[31687] dbg: crm114: call_crm() called, action: train_good
[31687] dbg: info: entering helper-app run mode
[31687] dbg: crm114: opening pipe: /usr/bin/crm -u /var/amavis/.crm114 
mailreaver.crm --good --good_threshold=10 --spam_threshold=-5 < /
tmp/.spamassassin31687QKJL53tmp
[31688] dbg: util: setuid: ruid=500 euid=500
[31687] dbg: crm114: [31688] finished successfully
[31687] dbg: info: leaving helper-app run mode
[31687] dbg: crm114: found Action LEARNED AND CACHED GOOD
[31687] dbg: crm114: call_crm returns (UNKNOWN, 0)


2.  Training crm114 using: "crm -u /var/amavis/.crm114 mailtrainer.crm 
--good=./ham/ --spam=./spam/ --repeat 5" works as documented. 
Bot spam.css and nonspam.css files will be updated and subsequent 
incoming ham mail will produce the intended result in the mail header:
"X-CRM114-Status: GOOD ( 19.90 )"


Thanks to all for the pointers and help. 
Patrick

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to