Re: Spamassassin doesn't learn / debug outputs

2008-06-20 Thread heinztomato



sa-learn --dump magic
if both nham, nspam is over 200 then show me

spamassassin 21 -D -t /tmp/msg /tmp/log
and maybe olso
spamassassin 21 -D --lint /tmp/lint

post log and lint file somewhere
 
 

First: The dump-data:

0.000  0  3  0  non-token data: bayes db version
 0.000  0555  0  non-token data: nspam
 0.000  0   7466  0  non-token data: nham
 0.000  0 136237  0  non-token data: ntokens
 0.000  0 1208412003  0  non-token data: oldest atime
 0.000  0 1213945203  0  non-token data: newest atime
 0.000  0  0  0  non-token data: last journal sync
 atime
 0.000  0 1213942542  0  non-token data: last expiry atime
 0.000  05529600  0  non-token data: last expire atime
 delta
 0.000  0  16661  0  non-token data: last expire
 reduction count

now with the link-parameter:

[1679] dbg: logger: adding facilities: all
 [1679] dbg: logger: logging level is DBG
 [1679] dbg: generic: SpamAssassin version 3.1.7-deb
 [1679] dbg: config: score set 0 chosen.
 [1679] dbg: util: running in taint mode? yes
 [1679] dbg: util: taint mode: deleting unsafe environment variables,
 resetting PATH
 [1679] dbg: util: PATH included '/home/ole/bin', which doesn't exist,
 dropping
 [1679] dbg: util: PATH included '/home/ole/perl5/bin', which doesn't
 exist, dropping
 [1679] dbg: util: PATH included '/usr/local/bin', keeping
 [1679] dbg: util: PATH included '/usr/bin', keeping
 [1679] dbg: util: PATH included '/bin', keeping
 [1679] dbg: util: PATH included '/usr/bin/X11', keeping
 [1679] dbg: util: PATH included '/usr/games', keeping
 [1679] dbg: util: final PATH set to:
 /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
 [1679] dbg: message:  MIME PARSER START 
 [1679] dbg: message: main message type: text/plain
 [1679] dbg: message: parsing normal part
 [1679] dbg: message: added part, type: text/plain
 [1679] dbg: message:  MIME PARSER END 
 [1679] dbg: dns: is Net::DNS::Resolver available? yes
 [1679] dbg: dns: Net::DNS version: 0.59
 [1679] dbg: diag: perl platform: 5.008008 linux
 [1679] dbg: diag: module installed: Digest::SHA1, version 2.11
 [1679] dbg: diag: module installed: Razor2::Client::Agent, version 2.81
 [1679] dbg: diag: module not installed: Net::Ident ('require' failed)
 [1679] dbg: diag: module not installed: IO::Socket::INET6 ('require'
 failed)
 [1679] dbg: diag: module installed: IO::Socket::SSL, version 1.01
 [1679] dbg: diag: module installed: Time::HiRes, version 1.86
 [1679] dbg: diag: module installed: DBI, version 1.53
 [1679] dbg: diag: module installed: Getopt::Long, version 2.35
 [1679] dbg: diag: module installed: LWP::UserAgent, version 2.033
 [1679] dbg: diag: module installed: HTML::Parser, version 3.55
 [1679] dbg: diag: module installed: MIME::Base64, version 3.07
 [1679] dbg: diag: module installed: DB_File, version 1.814
 [1679] dbg: diag: module installed: Net::DNS, version 0.59
 [1679] dbg: diag: module installed: Net::SMTP, version 2.29
 [1679] dbg: diag: module not installed: Mail::SPF::Query ('require'
 failed)
 [1679] dbg: diag: module not installed: IP::Country::Fast ('require'
 failed)
 [1679] dbg: diag: module installed: HTTP::Date, version 1.47
 [1679] dbg: diag: module installed: Archive::Tar, version 1.30
 [1679] dbg: diag: module installed: IO::Zlib, version 1.04
 [1679] dbg: ignore: using a test message to lint rules
 [1679] dbg: config: using /etc/spamassassin for site rules pre files
 [1679] dbg: config: read file /etc/spamassassin/init.pre
 [1679] dbg: config: read file /etc/spamassassin/v310.pre
 [1679] dbg: config: read file /etc/spamassassin/v312.pre
 [1679] dbg: config: using /usr/share/spamassassin for sys rules pre
 files
 [1679] dbg: config: using /usr/share/spamassassin for default rules dir
 [1679] dbg: config: read file /usr/share/spamassassin/10_misc.cf
 [1679] dbg: config: read file /usr/share/spamassassin/20_advance_fee.cf
 [1679] dbg: config: read file /usr/share/spamassassin/20_anti_ratware.cf
 [1679] dbg: config: read file /usr/share/spamassassin/20_body_tests.cf
 [1679] dbg: config: read file /usr/share/spamassassin/20_compensate.cf
 [1679] dbg: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
 [1679] dbg: config: read file /usr/share/spamassassin/20_drugs.cf
 [1679] dbg: config: read file
 /usr/share/spamassassin/20_fake_helo_tests.cf
 [1679] dbg: config: read file /usr/share/spamassassin/20_head_tests.cf
 [1679] dbg: config: read file /usr/share/spamassassin/20_html_tests.cf
 [1679] dbg: config: read file /usr/share/spamassassin/20_meta_tests.cf
 [1679] dbg: config: read file /usr/share/spamassassin/20_net_tests.cf
 [1679] dbg: config: read file /usr/share/spamassassin/20_phrases.cf
 [1679] dbg: config: read file /usr/share/spamassassin/20_porn.cf
 [1679] dbg: config: read file /usr/share/spamassassin/20_ratware.cf
 [1679] dbg: 

Re: Spamassassin doesn't learn / debug outputs

2008-06-20 Thread heinztomato

Well. Three senders of that bad domain made it into the users'
(auto)whitelist. 

I'm not quite sure why. But now I just remove those hoping they won't appear
there again.

Thanks for helping!
-- 
View this message in context: 
http://www.nabble.com/Spamassassin-doesn%27t-learn---debug-outputs-tp18011818p18026483.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.



Re: Spamassassin doesn't learn / debug outputs

2008-06-20 Thread Benny Pedersen

On Fredag, 20/6 2008, 09:58, heinztomato wrote:

 First: The dump-data:

thats ok

 now with the link-parameter:
[1679] dbg: util: PATH included '/home/ole/bin', which doesn't exist,
 dropping
 [1679] dbg: util: PATH included '/home/ole/perl5/bin', which doesn't
 exist, dropping

problems above

 [1679] dbg: diag: module not installed: Net::Ident ('require' failed)
 [1679] dbg: diag: module not installed: IO::Socket::INET6 ('require'
 failed)

install

 [1679] dbg: diag: module not installed: Mail::SPF::Query ('require'
 failed)
 [1679] dbg: diag: module not installed: IP::Country::Fast ('require'
 failed)

install

 [1679] dbg: config: read file /home/ole/.spamassassin/user_prefs

spamassassin runs entirely in your shell ?

 [1679] warn: config: failed to parse line, skipping: SpamAssassin config
 file for version 3.x

old config somewhere

 [1679] warn: config: failed to parse line, skipping: use_dcc 1

search for use_dcc in your config

and see perldoc Mail::SpamAssassin::Plugin::DCC on how to make config for dcc

if you want to test for dcc make sure its configured

else remove use_dcc its a pluging now

 [1679] warn: config: failed to parse, now a plugin, skipping: ok_languages
 all

that is a missing plugin in a pre file

 the first command did not work. /tmp/msg is non-existing.

that was intended you to put testing msg there


Benny Pedersen
Need more webspace ? http://www.servage.net/?coupon=cust37098



Re: Spamassassin doesn't learn / debug outputs

2008-06-20 Thread Benny Pedersen

On Fredag, 20/6 2008, 12:09, heinztomato wrote:

 Well. Three senders of that bad domain made it into the users'
 (auto)whitelist.

well awl is for scoreing forged emails to possive

and non forged senders to negative

and in all that try to compensate it all to not being that will scores based
on awl_factor in the plugin

awl_factor 0 gives sender none benefit on forges
awl_factor 1 gives sender full benefit on forges

default is 0.5

 I'm not quite sure why. But now I just remove those hoping they won't appear
 there again.

i can assure your work in this area is waste :-)


Benny Pedersen
Need more webspace ? http://www.servage.net/?coupon=cust37098



Re: Spamassassin doesn't learn / debug outputs

2008-06-19 Thread Benny Pedersen

On Thu, June 19, 2008 17:41, heinztomato wrote:

 /usr/bin/fetchmail -a -s -n --folder assassin/spam -m '/usr/bin/sa-learn -D
 --spam' /var/log/assassinspam.log

 Learned tokens from 1 message(s) (1 message(s) examined)

seems ok :-)

/usr/bin/fetchmail -a -s -n --folder assassin/spam -m '/usr/bin/sa-learn 21
-D --spam' /var/log/assassinspam.log

i hope its this, not tested


Benny Pedersen
Need more webspace ? http://www.servage.net/?coupon=cust37098




RE: Spamassassin doesn't learn / debug outputs

2008-06-19 Thread Giampaolo Tomassoni
 -Original Message-
 From: heinztomato [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 19, 2008 5:41 PM
 To: users@spamassassin.apache.org
 Subject: Spamassassin doesn't learn / debug outputs
 
 
 Hi there. It seems my Spamassassin does not learn very well...
 
 I use the following statements to learn spam/ham:
 
 /usr/bin/fetchmail -a -s -n --folder assassin/spam -m '/usr/bin/sa-
 learn -D
 --spam' /var/log/assassinspam.log
 /usr/bin/fetchmail -a -s -n --folder assassin/ham -m '/usr/bin/sa-learn
 -D
 --ham' /var/log/assassinham.log
 
 when watchig the logfiles the only information I get is

 Learned tokens from 1 message(s) (1 message(s) examined)
 Learned tokens from 0 message(s) (1 message(s) examined)
 Learned tokens from 0 message(s) (1 message(s) examined)
 Learned tokens from 1 message(s) (1 message(s) examined)
 Learned tokens from 1 message(s) (1 message(s) examined)

Are you training the right user?

Maybe you have to use something like:

/usr/bin/fetchmail -a -s -n --folder assassin/spam -m 'su -s /bin/sh -c
\'/usr/bin/sa-learn --spam\' - amavis' /var/log/assassinspam.log

or whatever user owns the right bayes db...

Giampaolo


 No more informations to be seen even with the -D Parameter. Is there
 a way
 to get more information so I can check out what is going wrong?!?
 
 thx in advance
 --
 View this message in context: http://www.nabble.com/Spamassassin-
 doesn%27t-learn---debug-outputs-tp18011818p18011818.html
 Sent from the SpamAssassin - Users mailing list archive at Nabble.com.



Re: Spamassassin doesn't learn / debug outputs

2008-06-19 Thread heinztomato


Benny Pedersen wrote:
 
 seems ok :-)
 
 /usr/bin/fetchmail -a -s -n --folder assassin/spam -m '/usr/bin/sa-learn
 21
 -D --spam' /var/log/assassinspam.log
 
 i hope its this, not tested
 
 

That helped (wrong position for 21 but sometimes I surprisingly manage to
think for myself :)

So everything looks ok, but I still got mails from a sender which always get
through. I saved mails from him a dozen times in spam... Is there a
possibility that spamassassin ignores the learned data but only uses
white/blacklists?!?
-- 
View this message in context: 
http://www.nabble.com/Spamassassin-doesn%27t-learn---debug-outputs-tp18011818p18012471.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.



Re: Spamassassin doesn't learn / debug outputs

2008-06-19 Thread Benny Pedersen

On Torsdag, 19/6 2008, 18:11, heinztomato wrote:

 That helped (wrong position for 21 but sometimes I surprisingly manage to
 think for myself :)

good

 So everything looks ok, but I still got mails from a sender which always get
 through.

whitelisted ?

 I saved mails from him a dozen times in spam... Is there a
 possibility that spamassassin ignores the learned data but only uses
 white/blacklists?!?

sa-learn --dump magic

if both nham, nspam is over 200 then show me

spamassassin 21 -D -t /tmp/msg /tmp/log
and maybe olso
spamassassin 21 -D --lint /tmp/lint

post log and lint file somewhere


Benny Pedersen
Need more webspace ? http://www.servage.net/?coupon=cust37098