RE: [SAtalk] bayes question: HAM
At 08:10 AM 1/28/04 +0200, Thomas Kinghorn wrote: My spamd is running as xadmin xadmin 17057 1 0 Jan27 ?00:00:22 /usr/bin/perl -T -w /usr/bin/spamd -d -a -u xadmin Do I need to run sa-learn as xadmin If so, I could kick myself, I have been training it while logged in as root... Yes. With default settings, the bayes database goes in the user's home directory and is only read/write by that user. Optionaly you can use the bayes_path and baye_file_mode settings to make both users look at the same bayes DB, and allow both read/write access to it. --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk
RE: [SAtalk] bayes question: HAM
Sorry about that. My spamd is running as xadmin xadmin 17057 1 0 Jan27 ?00:00:22 /usr/bin/perl -T -w /usr/bin/spamd -d -a -u xadmin Do I need to run sa-learn as xadmin If so, I could kick myself, I have been training it while logged in as root... Thanks Tom > -Original Message- > From: Matt Kettler [mailto:[EMAIL PROTECTED] > Sent: 27 January 2004 05:55 > To: Thomas Kinghorn; Spamassassin-Talk (E-mail) > Subject: Re: [SAtalk] bayes question: HAM > > > At 02:10 PM 1/27/04 +0200, Thomas Kinghorn wrote: > >While using spamd -D, I can see the messages being learned as ham. > >However, while doing a spamassasin -D --lint, it shows only 1 ham. > > > >sa-learn --dump magic shows > > > >[EMAIL PROTECTED] exim]# sa-learn --dump magic > > > > >I have attached the --lint debug. > > > >Any ideas as to why SA is not showing ham. > > you're running sa-learn as root.. but that's NOT who spamd is > going to be > learning as. > > spamd will assume the userid that calls spamc. If that userID > is root, > spamd will force itself to become nobody for security. It is > extreemely > unwise to leave spamd running as. > > Consider setting up a user account and home directory to have > spamd use as > its default user, and specify it with -u. > --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk
Re: [SAtalk] bayes question: HAM
At 02:10 PM 1/27/04 +0200, Thomas Kinghorn wrote: While using spamd -D, I can see the messages being learned as ham. However, while doing a spamassasin -D --lint, it shows only 1 ham. sa-learn --dump magic shows [EMAIL PROTECTED] exim]# sa-learn --dump magic I have attached the --lint debug. Any ideas as to why SA is not showing ham. you're running sa-learn as root.. but that's NOT who spamd is going to be learning as. spamd will assume the userid that calls spamc. If that userID is root, spamd will force itself to become nobody for security. It is extreemely unwise to leave spamd running as. Consider setting up a user account and home directory to have spamd use as its default user, and specify it with -u. --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk
FW: [SAtalk] bayes question: HAM: RESOLVED
Thats better Thanks Matt. [EMAIL PROTECTED] etc]$ sa-learn --dump magic 0.000 0 2 0 non-token data: bayes db version 0.000 0 15759 0 non-token data: nspam 0.000 0 14832 0 non-token data: nham 0.000 0 134389 0 non-token data: ntokens 0.000 0 1074182929 0 non-token data: oldest atime 0.000 0 1075283729 0 non-token data: newest atime 0.000 0 1075282777 0 non-token data: last journal sync atime 0.000 0 1075210586 0 non-token data: last expiry atime 0.000 01027604 0 non-token data: last expire atime delta 0.000 0 26385 0 non-token data: last expire reduction count Regards Tom -Original Message- From: Thomas Kinghorn Sent: 28 January 2004 08:10 To: 'Matt Kettler'; Spamassassin-Talk (E-mail) Subject: RE: [SAtalk] bayes question: HAM Sorry about that. My spamd is running as xadmin xadmin 17057 1 0 Jan27 ?00:00:22 /usr/bin/perl -T -w /usr/bin/spamd -d -a -u xadmin Do I need to run sa-learn as xadmin If so, I could kick myself, I have been training it while logged in as root... Thanks Tom > -Original Message- > From: Matt Kettler [mailto:[EMAIL PROTECTED] > Sent: 27 January 2004 05:55 > To: Thomas Kinghorn; Spamassassin-Talk (E-mail) > Subject: Re: [SAtalk] bayes question: HAM > > > At 02:10 PM 1/27/04 +0200, Thomas Kinghorn wrote: > >While using spamd -D, I can see the messages being learned as ham. > >However, while doing a spamassasin -D --lint, it shows only 1 ham. > > > >sa-learn --dump magic shows > > > >[EMAIL PROTECTED] exim]# sa-learn --dump magic > > > > >I have attached the --lint debug. > > > >Any ideas as to why SA is not showing ham. > > you're running sa-learn as root.. but that's NOT who spamd is > going to be > learning as. > > spamd will assume the userid that calls spamc. If that userID > is root, > spamd will force itself to become nobody for security. It is > extreemely > unwise to leave spamd running as. > > Consider setting up a user account and home directory to have > spamd use as > its default user, and specify it with -u. > --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk
[SAtalk] bayes question: HAM
Hi List. While using spamd -D, I can see the messages being learned as ham. However, while doing a spamassasin -D --lint, it shows only 1 ham. sa-learn --dump magic shows [EMAIL PROTECTED] exim]# sa-learn --dump magic 0.000 0 2 0 non-token data: bayes db version 0.000 0 29437 0 non-token data: nspam 0.000 0 1 0 non-token data: nham 0.000 0 165425 0 non-token data: ntokens 0.000 0 1072799340 0 non-token data: oldest atime 0.000 0 1075190443 0 non-token data: newest atime 0.000 0 0 0 non-token data: last journal sync atime 0.000 0 1075190478 0 non-token data: last expiry atime 0.000 0 578132 0 non-token data: last expire atime delta 0.000 0 81333 0 non-token data: last expire reduction count I have attached the --lint debug. Any ideas as to why SA is not showing ham. <> Regards, Tom Kinghorn DNS Administrator MTN Network Solutions (Pty) Ltd 7 Sturdee Ave; Rosebank; Johannesburg; South Africa; 2196. P.O. Box 3070; Randburg; 2125; South Africa. Tel: +27(0) 11 280 0600 | Fax: +27(0) 11 280 0880 Email: [EMAIL PROTECTED]|| Website: www.mtnns.net Note: DNS requests MUST be mailed to [EMAIL PROTECTED] | Disclaimer | This email and the documents transmitted with it are confidential and are intended for the addressee only, and must be treated as such. The views expressed herein are those of the author and do not necessarily represent those of MTN Network Solutions (MTN NS). MTN NS accepts no liability in respect of any illegal content. No employee or agent of MTN NS is authorised to conclude a binding agreement on behalf of MTN NS by email (or otherwise) unless specifically stating otherwise in such correspondence. Binding agreements with MTN NS may only be concluded if printed in hard copy and signed by an authorised representative of MTN NS. [EMAIL PROTECTED] exim]# spamassassin -D --lint debug: Score set 0 chosen. debug: running in taint mode? yes debug: Running in taint mode, removing unsafe env vars, and resetting PATH debug: PATH included '/usr/local/sbin', keeping. debug: PATH included '/usr/local/bin', keeping. debug: PATH included '/sbin', keeping. debug: PATH included '/bin', keeping. debug: PATH included '/usr/sbin', keeping. debug: PATH included '/usr/bin', keeping. debug: PATH included '/usr/X11R6/bin', keeping. debug: PATH included '/root/bin', which doesn't exist, dropping. debug: Final PATH set to: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin debug: ignore: using a test message to lint rules debug: using "/usr/share/spamassassin" for default rules dir debug: using "/etc/mail/spamassassin" for site rules dir debug: using "/root/.spamassassin" for user state dir debug: using "/root/.spamassassin/user_prefs" for user prefs file debug: using "/root/.spamassassin" for user state dir debug: bayes: 17062 tie-ing to DB file R/O /root/.spamassassin/bayes_toks debug: bayes: 17062 tie-ing to DB file R/O /root/.spamassassin/bayes_seen debug: bayes: found bayes db version 2 debug: bayes: Not available for scanning, only 1 ham(s) in Bayes DB < 200 debug: bayes: 17062 untie-ing debug: bayes: 17062 untie-ing db_toks debug: bayes: 17062 untie-ing db_seen debug: Score set 1 chosen. debug: Initialising learner debug: using "/root/.spamassassin" for user state dir debug: bayes: 17062 tie-ing to DB file R/O /root/.spamassassin/bayes_toks debug: bayes: 17062 tie-ing to DB file R/O /root/.spamassassin/bayes_seen debug: bayes: found bayes db version 2 debug: bayes: Not available for scanning, only 1 ham(s) in Bayes DB < 200 debug: bayes: 17062 untie-ing debug: bayes: 17062 untie-ing db_toks debug: bayes: 17062 untie-ing db_seen debug: is Net::DNS::Resolver available? yes debug: trying (3) yahoo.com... debug: looking up MX for 'yahoo.com' debug: MX for 'yahoo.com' exists? 1 debug: MX lookup of yahoo.com succeeded => Dns available (set dns_available to hardcode) debug: is DNS available? 1 debug: all '*From' addrs: [EMAIL PROTECTED] debug: running header regexp tests; score so far=0 debug: running body-text per-line regexp tests; score so far=1.27 debug: running raw-body-text per-line regexp tests; score so far=1.27 debug: running uri tests; score so far=1.27 debug: uri tests: Done uriRE debug: running full-text regexp tests; score so far=1.27 debug: DCCifd is not available: no r/w dccifd socket found. debug: all '*To' addrs: debug: RBL: success for 1 of 1 queries debug: running meta tests; score so far=1.27 debug: is spam? score=1.27 required=4.4 tests=DATE_MISSING,NO_REAL_NAME