Re: spamassassin --lint ....how long does it take?

2005-07-07 Thread Matt Kettler
Dr Robert Young wrote:
> I am just becoming familiar with SpamAssassin, so I am sure this may
> appear to be an "obvious" issue to those familiar with the tool. I am
> just learning the ins and outs however.
> 
> I downloaded many of the SARE rulesets (not  bigevil however), and I am
> running  "spamassassin -D --lint". It seems like it is taking a very
> long time to run. Is this typical or am I "hosed"? 

Typical would be somewhere in the 5-10 second range. This test is in general
slower than scanning a message with spamc/spamd, as a new perl instance gets
invoked and the config files are parsed from scratch.

(for reference, I used time and a spamassassin --lint run takes 6.948 seconds on
my box, piping a message through spamc took 3.183s. SA 2.64 with network tests,
bayes, spamcopuri, and several add-on rulesets in use.)

Suggestions for debugging why it's taking a long time:

1) try disabling network tests with -L, as Theo suggested. If it suddenly
becomes fast when you add -L, post here, and we should be able to make further
suggestions to debug the problem.

2) If -L doesn't help, try removing your SARE rulesets by moving them to a
temporary directory, and see if that fixes it. If it does, try copying the
rulesets back a few at a time and see which file is the culprit.



RE: spamassassin --lint ....how long does it take?

2005-07-07 Thread Sander Holthaus - Orange XL
> I downloaded many of the SARE rulesets (not  bigevil 
> however), and I am running  "spamassassin -D --lint". It 
> seems like it is taking a very long time to run. Is this 
> typical or am I "hosed"?  I am running it on a test system 
> (non-production) so it is not currently a serious problem, 
> but I want to be sure of what's up before I try anything on 
> production (probably in a few days).

How many? Or better, can you specify which you downloaded?



Re: spamassassin --lint ....how long does it take?

2005-07-07 Thread jdow
From: "Jim Maul" <[EMAIL PROTECTED]>

> Theo Van Dinter wrote:
> > On Thu, Jul 07, 2005 at 11:43:10AM -0700, Justin Mason wrote:
> > 
> >>eh, Theo, --lint doesn't require a message, it uses one of its own!
> > 
> > 
> > Oh.  Hahaha.  I forgot about that. ;)
> > Never mind me, brain is scattered right now due to work.
> > 
> > My second suggestion is to do local-only in case there's a network
> > check hanging.  Try "spamassassin -LD --lint".
> > 
> 
> Then why does the manpage state to pass it a message?
> 
> spamassassin [options] < mailmessage > output
> spamassassin -d < mailmessage > 
> spamassassin -r [-w addr] < mailmessage
> spamassassin -k [-w addr] < mailmessage
> spamassassin -W|-R < mailmessage
> 
> All examples show "< mailmessage" after [options].  --lint doesnt say 
> anything about not needing a message passed to it.
> 

-Jim, "spamassassin --lint" is sufficient unto itself. The other examples
up there require input to process. The lint command simply checks that
all the rules are formatted correctly without actually running them.
{^_^}



Re: spamassassin --lint ....how long does it take?

2005-07-07 Thread jdow
From: "Theo Van Dinter" <[EMAIL PROTECTED]>

> I think you're not passing it a message so it's waiting on STDIN.
> Try "spamassassin -D --lint < /dev/null".

Er, Theo, --lint does not take any parameters.

{o.o}



Re: spamassassin --lint ....how long does it take?

2005-07-07 Thread jdow
From: "Dr Robert Young" <[EMAIL PROTECTED]>

> I am just becoming familiar with SpamAssassin, so I am sure this may 
> appear to be an "obvious" issue to those familiar with the tool. I am 
> just learning the ins and outs however.
> 
> I downloaded many of the SARE rulesets (not  bigevil however), and I am 
> running  "spamassassin -D --lint". It seems like it is taking a very 
> long time to run. Is this typical or am I "hosed"?  I am running it on 
> a test system (non-production) so it is not currently a serious 
> problem, but I want to be sure of what's up before I try anything on 
> production (probably in a few days).

On a 166MHz Pentium with limited memory it takes 20 to 30 seconds,
sometimes more if the machine is loaded down with other processes
at the moment.

With the 1GHz 1GiB Athlon machine I have it's more like 1 to 2 seconds,
sometimes more if I am doing something silly like several parallel
kernel recompiles or the like.

{^_^}



Re: spamassassin --lint ....how long does it take?

2005-07-07 Thread Jim Maul

Theo Van Dinter wrote:

On Thu, Jul 07, 2005 at 11:43:10AM -0700, Justin Mason wrote:


eh, Theo, --lint doesn't require a message, it uses one of its own!



Oh.  Hahaha.  I forgot about that. ;)
Never mind me, brain is scattered right now due to work.

My second suggestion is to do local-only in case there's a network
check hanging.  Try "spamassassin -LD --lint".



Then why does the manpage state to pass it a message?

   spamassassin [options] < mailmessage > output
   spamassassin -d < mailmessage > 
   spamassassin -r [-w addr] < mailmessage
   spamassassin -k [-w addr] < mailmessage
   spamassassin -W|-R < mailmessage

All examples show "< mailmessage" after [options].  --lint doesnt say 
anything about not needing a message passed to it.


-Jim


Re: spamassassin --lint ....how long does it take?

2005-07-07 Thread Theo Van Dinter
On Thu, Jul 07, 2005 at 11:43:10AM -0700, Justin Mason wrote:
> eh, Theo, --lint doesn't require a message, it uses one of its own!

Oh.  Hahaha.  I forgot about that. ;)
Never mind me, brain is scattered right now due to work.

My second suggestion is to do local-only in case there's a network
check hanging.  Try "spamassassin -LD --lint".

-- 
Randomly Generated Tagline:
"A committee is a life form with 6 or more legs and no brain."
  - Robert Heinlein


pgpbIjPNo2w0L.pgp
Description: PGP signature


Re: spamassassin --lint ....how long does it take?

2005-07-07 Thread Justin Mason
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Theo Van Dinter writes:
> On Thu, Jul 07, 2005 at 02:27:32PM -0400, Dr Robert Young wrote:
> > I downloaded many of the SARE rulesets (not  bigevil however), and I am 
> > running  "spamassassin -D --lint". It seems like it is taking a very 
> > long time to run. Is this typical or am I "hosed"?  I am running it on 
> > a test system (non-production) so it is not currently a serious 
> > problem, but I want to be sure of what's up before I try anything on 
> > production (probably in a few days).
> 
> I think you're not passing it a message so it's waiting on STDIN.
> Try "spamassassin -D --lint < /dev/null".

eh, Theo, --lint doesn't require a message, it uses one of its own!

- --j.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Exmh CVS

iD8DBQFCzXe+MJF5cimLx9ARAtemAJ9ySH5n4jhFA0G+55kN1YhqSgcyCACgj+5x
Aucgb/Qhk8RZxn8J1JI2f8U=
=hPnH
-END PGP SIGNATURE-



Re: spamassassin --lint ....how long does it take?

2005-07-07 Thread Kevin W. Gagel
> I am just becoming familiar with SpamAssassin, so I am
> sure this may  appear to be an "obvious" issue to those
> familiar with the tool. I am  just learning the ins and
> outs however.
> 
> I downloaded many of the SARE rulesets (not  bigevil
> however), and I am  running  "spamassassin -D --lint". It
> seems like it is taking a very  long time to run. Is this
> typical or am I "hosed"?  I am running it on  a test
> system (non-production) so it is not currently a serious 
> problem, but I want to be sure of what's up before I try
> anything on  production (probably in a few days).

It should only take a few seconds. As it works you'll see
output about what its doing, which works also as a progress
indicator. The output lets you know what is working and what
is not.


=
Kevin W. Gagel
Network Administrator
Information Technology Services
(250) 561-5848 local 448


---
The College of New Caledonia, Visit us at http://www.cnc.bc.ca
Virus scanning is done on all incoming and outgoing email.
Anti-spam information for CNC can be found at http://avas.cnc.bc.ca
---


Re: spamassassin --lint ....how long does it take?

2005-07-07 Thread Michele Neylon:: Blacknight
Dr Robert Young wrote:
> I am just becoming familiar with SpamAssassin, so I am sure this may
> appear to be an "obvious" issue to those familiar with the tool. I am
> just learning the ins and outs however.
> 
> I downloaded many of the SARE rulesets (not  bigevil however), and I am
> running  "spamassassin -D --lint". It seems like it is taking a very
> long time to run. Is this typical or am I "hosed"?  I am running it on a
> test system (non-production) so it is not currently a serious problem,
> but I want to be sure of what's up before I try anything on production
> (probably in a few days).
> 

What do you mean by "a very long time"?
On our servers it takes a few seconds.



Re: spamassassin --lint ....how long does it take?

2005-07-07 Thread Theo Van Dinter
On Thu, Jul 07, 2005 at 02:27:32PM -0400, Dr Robert Young wrote:
> I downloaded many of the SARE rulesets (not  bigevil however), and I am 
> running  "spamassassin -D --lint". It seems like it is taking a very 
> long time to run. Is this typical or am I "hosed"?  I am running it on 
> a test system (non-production) so it is not currently a serious 
> problem, but I want to be sure of what's up before I try anything on 
> production (probably in a few days).

I think you're not passing it a message so it's waiting on STDIN.
Try "spamassassin -D --lint < /dev/null".

-- 
Randomly Generated Tagline:
"Veni, Vidi, Visa" - I came, I saw, I bought


pgp0hd28EHyoc.pgp
Description: PGP signature