Re: question re. SA setup

2005-08-16 Thread Theo Van Dinter
On Tue, Aug 16, 2005 at 11:48:26AM -0700, Richard Ozer wrote:
> Search your drive for stray copies of local.cf.  See if you ended up with 
> an etc/spamassassin directory or have  a local.cf in your home directory.

Or even better, as with anytime you have a question about what's going on with
SA, run with -D and see what's up.  In this case, up at the top you'll see
which config files are being read.

-- 
Randomly Generated Tagline:
"Linux is like a Vorlon.  It is incredibly powerful, gives terse,
 cryptic answers and has a lot of things going on in the background."
  - Unknown


pgpRxOc1k0cuH.pgp
Description: PGP signature


Re: question re. SA setup

2005-08-16 Thread Richard Ozer
Search your drive for stray copies of local.cf.  See if you ended up with an 
etc/spamassassin directory or have  a local.cf in your home directory.


RO

- Original Message - 
From: "Christopher Scott" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, August 16, 2005 11:30 AM
Subject: Re: question re. SA setup




On Aug 16, 2005, at 1:51 PM, Kevin Peuhkurinen wrote:


Christopher Scott wrote:




debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH (0x8430ec8) 
implements 'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH (0x8e687ec) 
implements 'parse_config'

config: SpamAssassin failed to parse line, skipping:  rewrite_subject 1
config: SpamAssassin failed to parse line, skipping: subject_tag 
[***SPAM***]
config: SpamAssassin failed to parse line, skipping:   auto_learn 
1

config: SpamAssassin failed to parse line, skipping: report_header 1
config: SpamAssassin failed to parse line, skipping:   rewrite_subject 
1
config: SpamAssassin failed to parse line, skipping:   subject_tag 
[***SPAM***]
config: SpamAssassin failed to parse line, skipping:   use_terse_report 
0
config: SpamAssassin failed to parse line, skipping:   report_header 
1
config: SpamAssassin failed to parse line, skipping:   auto_learn 
1

debug: using "/root/.spamassassin" for user state dir
debug: bayes: 8624 tie-ing to DB file R/O /root/.spamassassin/ 
bayes_toks
debug: bayes: 8624 tie-ing to DB file R/O /root/.spamassassin/ 
bayes_seen

debug: bayes: found bayes db version 3
debug: using "/root/.spamassassin" for user state dir
debug: bayes: Not available for scanning, only 33 spam(s) in Bayes  DB 
< 200




You appear to be running SA 3.04 but using a config file with older  and 
obsolete directives.   This is likely the root of all of your  problems. 
For instance, instead of "auto_learn 1", the line  should be 
"bayes_auto_learn 1", which is the directive that allows  SA to auto 
train the Bayesian database.


Take a look at the documentation on configuring SA (http:// 
spamassassin.apache.org/full/3.0.x/dist/doc/ Mail_SpamAssassin_Conf.html) 
and spend some time making sure that  your local.cf file uses the proper 
syntax.   This should hopefully  solve your problems.


Kevin



This makes sense, as I installed SA3 on top of a previous version. 
However, I've edited /etc/mail/spamassassin/local.cf to contain the 
following (minus comments):


   whitelist_from [EMAIL PROTECTED]
   required_score 5
   rewrite_header subject [***SPAM***]
   use_bayes   1
   bayes_auto_learn1
   use_razor2  1
   use_dcc 1
   use_pyzor   1
   dns_available yes

and restarted the service, yet spamassassin --lint -D returns  identical 
results as before! Could there be another local.cf file  somewhere?!






Re: question re. SA setup

2005-08-16 Thread Christopher Scott


On Aug 16, 2005, at 1:51 PM, Kevin Peuhkurinen wrote:


Christopher Scott wrote:




debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH 
(0x8430ec8)  implements 'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH 
(0x8e687ec)  implements 'parse_config'
config: SpamAssassin failed to parse line, skipping:  
rewrite_subject 1
config: SpamAssassin failed to parse line, skipping: subject_tag   
[***SPAM***]
config: SpamAssassin failed to parse line, skipping:   
auto_learn 1

config: SpamAssassin failed to parse line, skipping: report_header 1
config: SpamAssassin failed to parse line, skipping:   
rewrite_subject1
config: SpamAssassin failed to parse line, skipping:   
subject_tag[***SPAM***]
config: SpamAssassin failed to parse line, skipping:   
use_terse_report   0
config: SpamAssassin failed to parse line, skipping:   
report_header  1
config: SpamAssassin failed to parse line, skipping:   
auto_learn 1

debug: using "/root/.spamassassin" for user state dir
debug: bayes: 8624 tie-ing to DB file R/O /root/.spamassassin/ 
bayes_toks
debug: bayes: 8624 tie-ing to DB file R/O /root/.spamassassin/ 
bayes_seen

debug: bayes: found bayes db version 3
debug: using "/root/.spamassassin" for user state dir
debug: bayes: Not available for scanning, only 33 spam(s) in Bayes  
DB  < 200




You appear to be running SA 3.04 but using a config file with older  
and obsolete directives.   This is likely the root of all of your  
problems.   For instance, instead of "auto_learn 1", the line  
should be "bayes_auto_learn 1", which is the directive that allows  
SA to auto train the Bayesian database.


Take a look at the documentation on configuring SA (http:// 
spamassassin.apache.org/full/3.0.x/dist/doc/ 
Mail_SpamAssassin_Conf.html) and spend some time making sure that  
your local.cf file uses the proper syntax.   This should hopefully  
solve your problems.


Kevin



This makes sense, as I installed SA3 on top of a previous version.  
However, I've edited /etc/mail/spamassassin/local.cf to contain the  
following (minus comments):


   whitelist_from [EMAIL PROTECTED]
   required_score 5
   rewrite_header subject [***SPAM***]
   use_bayes   1
   bayes_auto_learn1
   use_razor2  1
   use_dcc 1
   use_pyzor   1
   dns_available yes

and restarted the service, yet spamassassin --lint -D returns  
identical results as before! Could there be another local.cf file  
somewhere?!


Re: question re. SA setup

2005-08-16 Thread Kevin Peuhkurinen

Christopher Scott wrote:



debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x8430ec8)  
implements 'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8e687ec)  
implements 'parse_config'

config: SpamAssassin failed to parse line, skipping: rewrite_subject 1
config: SpamAssassin failed to parse line, skipping: subject_tag  
[***SPAM***]
config: SpamAssassin failed to parse line, skipping:  
auto_learn 1

config: SpamAssassin failed to parse line, skipping: report_header 1
config: SpamAssassin failed to parse line, skipping:  
rewrite_subject1
config: SpamAssassin failed to parse line, skipping:  
subject_tag[***SPAM***]
config: SpamAssassin failed to parse line, skipping:  
use_terse_report   0
config: SpamAssassin failed to parse line, skipping:  
report_header  1
config: SpamAssassin failed to parse line, skipping:  
auto_learn 1

debug: using "/root/.spamassassin" for user state dir
debug: bayes: 8624 tie-ing to DB file R/O /root/.spamassassin/bayes_toks
debug: bayes: 8624 tie-ing to DB file R/O /root/.spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: using "/root/.spamassassin" for user state dir
debug: bayes: Not available for scanning, only 33 spam(s) in Bayes DB  
< 200



You appear to be running SA 3.04 but using a config file with older and 
obsolete directives.   This is likely the root of all of your 
problems.   For instance, instead of "auto_learn 1", the line should be 
"bayes_auto_learn 1", which is the directive that allows SA to auto 
train the Bayesian database.


Take a look at the documentation on configuring SA 
(http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Conf.html) 
and spend some time making sure that your local.cf file uses the proper 
syntax.   This should hopefully solve your problems.


Kevin