I believe the easiest way is to test it by hand:

http://wiki.linuxwall.info/doku.php/en:ressources:dossiers:dspam#%C2%A0test_procedure%C2%A0


On 28.09.2011 03:06, John Kenyon wrote:
> Hi All,
>
> Just testing out 3.10.1 before moving into production but am not sure
> that retraining is working.
>
> I have the following in dspam.debug when I click to retrain via the
> webui... it seems to classify as SPAM, then libdspam returned
> probability of 1.000000 as NOT SPAM?
>
> 15703: [09/28/2011 17:00:35] DSPAM Instance Startup
> 15703: [09/28/2011 17:00:35] input args: /usr/local/bin/dspam
> --source=error --class=spam --signature=2,4e82c603156751855816261
> --user j...@example.com
> 15703: [09/28/2011 17:00:35] pass-thru args:
> 15703: [09/28/2011 17:00:35] processing user j...@example.com
> 15703: [09/28/2011 17:00:35] uid = 504, euid = 504, gid = 504, egid = 
> 504
> 15703: [09/28/2011 17:00:35] loading preferences for user 
> j...@example.com
> 15703: [09/28/2011 17:00:36] _mysql_drv_getpwnam: successful
> returning struct for name: j...@example.com
> 15703: [09/28/2011 17:00:36] Loading preferences for uid 2
> 15703: [09/28/2011 17:00:36] Loading preferences for uid 0
> 15703: [09/28/2011 17:00:36] Loading preferences for uid 0
> 15703: [09/28/2011 17:00:36] default preferences empty. reverting to
> dspam.conf preferences.
> 15703: [09/28/2011 17:00:36] Loading preferences from dspam.conf
> 15703: [09/28/2011 17:00:36] using
> /var/dspam/opt-in/example.com/john.dspam as path
> 15703: [09/28/2011 17:00:36] using
> /var/dspam/opt-out/example.com/john.nodspam as path
> 15703: [09/28/2011 17:00:36] user j...@example.com is member of
> global group defaultgroup
> 15703: [09/28/2011 17:00:36] adding dspam as classification peer for
> j...@example.com
> 15703: [09/28/2011 17:00:36] sedation level set to: 5
> 15703: [09/28/2011 17:00:36] _mysql_drv_getpwnam: successful
> returning struct for name: j...@example.com
> 15703: [09/28/2011 17:00:36] _mysql_drv_getpwnam returning cached
> name j...@example.com.
> 15703: [09/28/2011 17:00:36] _mysql_drv_getpwnam returning cached
> name j...@example.com.
> 15703: [09/28/2011 17:00:36] _mysql_drv_getpwnam: successful
> returning struct for name: j...@example.com
> 15703: [09/28/2011 17:00:36] loading preferences for user 
> j...@example.com
> 15703: [09/28/2011 17:00:36] _mysql_drv_getpwnam: successful
> returning struct for name: j...@example.com
> 15703: [09/28/2011 17:00:36] Loading preferences for uid 2
> 15703: [09/28/2011 17:00:36] Loading preferences for uid 0
> 15703: [09/28/2011 17:00:36] Loading preferences for uid 0
> 15703: [09/28/2011 17:00:36] default preferences empty. reverting to
> dspam.conf preferences.
> 15703: [09/28/2011 17:00:36] Loading preferences from dspam.conf
> 15703: [09/28/2011 17:00:36] processing signature.  length: 3968
> 15703: [09/28/2011 17:00:36] Reversing 248 tokens
> 15703: [09/28/2011 17:00:36] _mysql_drv_getpwnam returning cached
> name j...@example.com.
> 15703: [09/28/2011 17:00:36] _mysql_drv_getpwnam returning cached
> name j...@example.com.
> 15703: [09/28/2011 17:00:36] Control: [10 10] [11 9] Delta: [1
> 18446744073709551615]
> 15703: [09/28/2011 17:00:36] Message classification/result: SPAM
> 15703: [09/28/2011 17:00:36] reclassifying iteration 1 result: 0
> 15703: [09/28/2011 17:00:36] libdspam returned probability of 
> 1.000000
> 15703: [09/28/2011 17:00:36] message result: NOT SPAM
> 15703: [09/28/2011 17:00:36] _mysql_drv_getpwnam returning cached
> name j...@example.com.
> 15703: [09/28/2011 17:00:36] DSPAM Instance Shutdown.  Exit Code: 0
>
>
> -----
>
> DSPAM Anti-Spam Suite 3.10.1 (agent/library)
>
> Copyright (C) 2002-2011 DSPAM Project
> http://dspam.sourceforge.net.
>
> DSPAM may be copied only under the terms of the GNU Affero General 
> Public
> License, a copy of which can be found with the DSPAM distribution 
> kit.
>
> Configuration parameters:  '--sysconfdir=/etc'
> '--with-dspam-home=/var/dspam' '--with-logdir=/var/log/dspam'
> '--enable-domain-scale' '--with-storage-driver=mysql_drv'
> '--enable-daemon' '--with-mysql-includes=/usr/include/mysql'
> '--with-mysql-libraries=/usr/lib64/mysql' '--enable-virtual-users'
> '--enable-preferences-extension' '--enable-debug'
> '--with-dspam-home-owner=simscan' '--with-dspam-home-group=simscan'
> '--with-dspam-owner=simscan' '--with-dspam-group=simscan'
>
> -----
>
> Cheers,
>
> JLK
>
>
>
> 
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure 
> contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and 
> makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Dspam-user mailing list
> Dspam-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspam-user


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to