On 15.06.2007 07:50, Eray Aslan wrote:
> amavisd debug-sa | grep bayes gives me the following for each message
> passing through our mail server:
> 
> [18178] dbg: bayes: database connection established
> [18178] dbg: bayes: found bayes db version 3
> [18178] dbg: bayes: Using userid: 1
> [18178] dbg: bayes: corpus size: nspam = 1668, nham = 1649
> [18178] dbg: bayes: tok_get_all: token count: 377
> [18178] dbg: bayes: cannot use bayes on this message; none of the tokens
> were found in the database
> [18178] dbg: bayes: not scoring message, returning undef
> 
> (token count: 377 is the only part that changes with different emails).
> 
> In other words, bayes is not scoring at all.  Any ideas on what can be
> wrong?  This is amavisd-new 2.5.0 and SA 3.2.0 and bayes is on Mysql.

Sorry for replying to my mail but -d bayes for 1 message gives:

sunny ~ # amavisd -d bayes debug-sa
[29438] dbg: bayes: using username: amavis
[29438] dbg: bayes: database connection established
[29438] dbg: bayes: found bayes db version 3
[29438] dbg: bayes: Using userid: 1
[29438] info: rules: meta test FM_DDDD_TIMES_2 has dependency
'FH_HOST_EQ_D_D_D_D' with a zero score
[29438] info: rules: meta test FM_SEX_HOSTDDDD has dependency
'FH_HOST_EQ_D_D_D_D' with a zero score
[29441] dbg: bayes: database connection established
[29441] dbg: bayes: found bayes db version 3
[29441] dbg: bayes: Using userid: 1
[29441] dbg: bayes: corpus size: nspam = 1668, nham = 1649
[29441] dbg: bayes: header tokens for *p =
"U*gentoo-user+bounces-65468-eray.aslan=caf.com.tr D*gentoo.org D*org"
[29441] dbg: bayes: header tokens for X-Amavis-OS-Fingerprint = " Linux
2.6.8 and newer (?) (NAT!) (up: 8736 hrs), (distance 18, link: sometimes
DSL (3))"
[29441] dbg: bayes: header tokens for X-Greylist = " Passed host:
140.105.134.102"
[29441] dbg: bayes: header tokens for X-Injected-Via-Gmane = "
http://gmane.org/";
[29441] dbg: bayes: header tokens for To = "U*gentoo-user
D*lists.gentoo.org D*gentoo.org D*org"
[29441] dbg: bayes: header tokens for *F = "U*listen
D*alexander.skwar.name D*skwar.name D*name"
[29441] dbg: bayes: header tokens for *o = " n/a"
[29441] dbg: bayes: header tokens for *M = " 1397640 oEj5C1dveu kn gn
rtr message center info "
[29441] dbg: bayes: header tokens for *f = "
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>"
[29441] dbg: bayes: header tokens for Precedence = " bulk"
[29441] dbg: bayes: header tokens for Reply-to = "U*gentoo-user
D*lists.gentoo.org D*gentoo.org D*org"
[29441] dbg: bayes: header tokens for Mime-Version = " 1.0"
[29441] dbg: bayes: header tokens for *c = " /plain; charset=us-ascii"
[29441] dbg: bayes: header tokens for Content-Transfer-Encoding = " 7Bit"
[29441] dbg: bayes: header tokens for X-Complaints-To = "
[EMAIL PROTECTED]"
[29441] dbg: bayes: header tokens for X-Gmane-NNTP-Posting-Host = "
zy-rieter.cyberlink.ch"
[29441] dbg: bayes: header tokens for *u = " KNode/0.10.5"
[29441] dbg: bayes: header tokens for X-Relay-Countries = " IT ** US **
** NO CH"
[29441] dbg: bayes: header tokens for X-Spam-Relays-External = " [
ip=140.105.134.102 rdns=lists.gentoo.org helo=robin.gentoo.org
by=mail.caf.com.tr ident= envfrom= intl=0 id=7A58939E355 auth= msa=0 ] [
ip=127.0.0.1 rdns=localhost helo=robin.gentoo.org by=robin.gentoo.org
ident= envfrom= intl=0 id=l5FAcZil026935 auth= msa=0 ] [
ip=140.211.166.183 rdns=smtp.gentoo.org helo=smtp.gentoo.org
by=robin.gentoo.org ident= envfrom= intl=0 id=l5FAZtZM024035 auth= msa=0
] [ ip=127.0.0.1 rdns=localhost helo=localhost by=smtp.gentoo.org ident=
envfrom= intl=0 id=E45BE64D8D auth= msa=0 ] [ ip=127.0.0.1 rdns=
helo=smtp.gentoo.org by=localhost ident= envfrom= intl=0 id=BvcIry89lZ4e
auth= msa=0 ] [ ip=80.91.229.2 rdns=main.gmane.org helo=ciao.gmane.org
by=smtp.gentoo.org ident= envfrom= intl=0 id=01E0764DD1 auth= msa=0 ] [
ip=212.55.215.153 rdns= helo=zy-rieter.cyberlink.ch by=main.gmane.org
ident= envfrom= intl=0 id=1AlnuQ-0007hv-00 auth= msa=0 ]"
[29441] dbg: bayes: header tokens for X-Spam-Relays-Internal = " "
[29441] dbg: bayes: header tokens for *RT = " "
[29441] dbg: bayes: header tokens for *RU = " [ ip=140.105.134.102
rdns=lists.gentoo.org helo=robin.gentoo.org by=mail.caf.com.tr ident=
envfrom= intl=0 id=7A58939E355 auth= msa=0 ] [ ip=127.0.0.1
rdns=localhost helo=robin.gentoo.org by=robin.gentoo.org ident= envfrom=
intl=0 id=l5FAcZil026935 auth= msa=0 ] [ ip=140.211.166.183
rdns=smtp.gentoo.org helo=smtp.gentoo.org by=robin.gentoo.org ident=
envfrom= intl=0 id=l5FAZtZM024035 auth= msa=0 ] [ ip=127.0.0.1
rdns=localhost helo=localhost by=smtp.gentoo.org ident= envfrom= intl=0
id=E45BE64D8D auth= msa=0 ] [ ip=127.0.0.1 rdns= helo=smtp.gentoo.org
by=localhost ident= envfrom= intl=0 id=BvcIry89lZ4e auth= msa=0 ] [
ip=80.91.229.2 rdns=main.gmane.org helo=ciao.gmane.org
by=smtp.gentoo.org ident= envfrom= intl=0 id=01E0764DD1 auth= msa=0 ] [
ip=212.55.215.153 rdns= helo=zy-rieter.cyberlink.ch by=main.gmane.org
ident= envfrom= intl=0 id=1AlnuQ-0007hv-00 auth= msa=0 ]"
[29441] dbg: bayes: header tokens for *r = " listen by
zy-rieter.cyberlink.ch local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00
<[EMAIL PROTECTED]>; "
[29441] dbg: bayes: header tokens for *r = " listen by
zy-rieter.cyberlink.ch local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00
<[EMAIL PROTECTED]>; zy-rieter.cyberlink.ch ([212.55.215
ip*212.55.215.153 ]) by main.gmane.org esmtp (Gmexim 0.1 (Debian)) id
1AlnuQ-0007hv-00 <[EMAIL PROTECTED]>; "
[29441] dbg: bayes: tok_get_all: token count: 264
[29441] dbg: bayes: cannot use bayes on this message; none of the tokens
were found in the database
[29441] dbg: bayes: not scoring message, returning undef


Looks fine to me.  So the problem is with the database probably.  How
can I check the database?

sunny ~ # sudo -u amavis /usr/bin/sa-learn --dump data |head
0.498          1          1 1181205101  0000202020
0.987          1          0 1181799750  000118d69e20
0.497          2          2 1179485871  0001202020
0.001          0         20 1180666817  0001242020
0.987          1          0 1176826362  00014c4620
0.998          9          0 1176727709  0001512020
0.993          2          0 1180427471  00015dc4bd20
0.016          0          1 1177941909  0002202020
0.200          1          4 1181228505  00031f2020
0.497          3          3 1181054073  0003202020

Does this look reasonable?  Any other suggestions?

-- 
Eray

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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