RE: SA Not Scoring

2007-05-03 Thread Keith De Souza

Hi Matthias,

Thanks for you input with this, I will be reading it soon.

Cheers

Keith 
-Original Message-
From: Matthias Haegele [mailto:[EMAIL PROTECTED] 
Sent: 03 May 2007 07:40
To: Keith De Souza
Subject: Re: SA Not Scoring

Keith De Souza schrieb:
 Hi Jason,
 
 Thanks for this, I'm presuming I should be reading
 http://qmail-scanner.sourceforge.net/FAQ.php. Any ideas how I can find out
 if
 Spamd is hanging on DNS? My SA is running on Fedora Core 5 OS.

use the debug switches (see docu, manpages) ...


-- 
Grüsse/Greetings
MH


Dont send mail to: [EMAIL PROTECTED]
--




RE: SA Not Scoring

2007-05-03 Thread Keith De Souza
Hi Matthias,

Many thanks for this, I'm very new to SA and your distribution is much
appreciated.

Cheers

Keith 

-Original Message-
From: Matthias Haegele [mailto:[EMAIL PROTECTED] 
Sent: 03 May 2007 10:08
To: Keith De Souza
Subject: Re: SA Not Scoring

Keith De Souza schrieb:
 Hi Matthias,
 
 Thanks for you input with this, I will be reading it soon.

e.g.: for testing razor2 u could run this
spamassassin -t -D razor2  /path/to/a/message
spamassassin -t -D  /path/to/a/message

or
spamassassin -D (it will block your terminal)

and parallel send some testmails

 Cheers
 
 Keith 

hth
MH

 -Original Message-
 From: Matthias Haegele [mailto:[EMAIL PROTECTED] 
 Sent: 03 May 2007 07:40
 To: Keith De Souza
 Subject: Re: SA Not Scoring
 
 Keith De Souza schrieb:
 Hi Jason,

 Thanks for this, I'm presuming I should be reading
 http://qmail-scanner.sourceforge.net/FAQ.php. Any ideas how I can find
out
 if
 Spamd is hanging on DNS? My SA is running on Fedora Core 5 OS.
 
 use the debug switches (see docu, manpages) ...
 
 


-- 
Grüsse/Greetings
MH


Dont send mail to: [EMAIL PROTECTED]
--




Re: SA Not Scoring

2007-05-03 Thread Max de Mendizabal

Dear all,

I have a very rare problem: if I do not use the SARE rules everythings 
works ok but... If I run


sa-update

Then spamassassin stops working.

If I check it with

spamassassin -D  spam-mail.txt

Works ok, but if I use

spamc  spam-mail.txt

Shows the spamassassin version on the header, but doesn't make the 
scoring. Any Ideas?


Yours
Max






On Wed, 2 May 2007, Keith De Souza wrote:


Hello,



I'm new to this mailing list, please let me know if I'm doing anything wrong
with submitting

A problem here.



I'm running SpamAssassin version 3.1.8 running on Perl version 5.8.8 the OS
that is running on

Fedora Core 5. The problem that I'm having is every so often when mail come
in, it seems to skip

SA scanning. Here what the logs say:





Sat, 28 Apr 2007 19:42:53 BST:21005: SA: required_hits ? / sa_quarantine
+0.01 / sa_delete +2.4

Sat, 28 Apr 2007 19:42:53 BST:21005: SA: finished scan of dir
/var/spool/qmailscan/tmp/ssdd117778517072221005 in 600.013176 secs

- hits=?/?

Sat, 28 Apr 2007 19:42:53 BST:21005: qmail-scanner:
Clear:RC:0(67.186.37.67):SA:0(?/?): 602.343095  3106
overtaxingpinafore

@internetdynamics.com [EMAIL PROTECTED]   Re:
[EMAIL PROTECTED] textfile0:46

textfile1:468 textfile2:1145





This does not happen all the time but once in a while my log show a batch of
mail not being scanned and producing false negatives, I don't know why that
is.



Is there any possibility that my server is overloaded and spamd is unable to
spawn sufficient child process to handle the incoming mail. Just a logical
guess.



Any help on this is much appreciated.



Cheers



Keith






--
---
Max de Mendiz�bal
Subdirecci�n de Inform�tica
Universidad Pedag�gica Nacional

SARE rules (was: Re: SA Not Scoring)

2007-05-03 Thread Matthias Haegele

Max de Mendizabal schrieb:

Dear all,

I have a very rare problem: if I do not use the SARE rules everythings 
works ok but... If I run


sa-update

Then spamassassin stops working.

If I check it with

spamassassin -D  spam-mail.txt

Works ok, but if I use

spamc  spam-mail.txt

Shows the spamassassin version on the header, but doesn't make the 
scoring. Any Ideas?


Yours
Max






On Wed, 2 May 2007, Keith De Souza wrote:


Hello,



I'm new to this mailing list, please let me know if I'm doing anything 
wrong

with submitting

A problem here.



I'm running SpamAssassin version 3.1.8 running on Perl version 5.8.8 
the OS

that is running on

Fedora Core 5. The problem that I'm having is every so often when mail 
come

in, it seems to skip

SA scanning. Here what the logs say:





Sat, 28 Apr 2007 19:42:53 BST:21005: SA: required_hits ? / sa_quarantine
+0.01 / sa_delete +2.4

Sat, 28 Apr 2007 19:42:53 BST:21005: SA: finished scan of dir
/var/spool/qmailscan/tmp/ssdd117778517072221005 in 600.013176 secs

- hits=?/?

Sat, 28 Apr 2007 19:42:53 BST:21005: qmail-scanner:
Clear:RC:0(67.186.37.67):SA:0(?/?): 602.343095  3106
overtaxingpinafore

@internetdynamics.com [EMAIL PROTECTED]   Re:
[EMAIL PROTECTED] textfile0:46

textfile1:468 textfile2:1145





This does not happen all the time but once in a while my log show a 
batch of
mail not being scanned and producing false negatives, I don't know why 
that

is.



Is there any possibility that my server is overloaded and spamd is 
unable to
spawn sufficient child process to handle the incoming mail. Just a 
logical

guess.



Any help on this is much appreciated.



spamassassin --lint

should report you the broken rules ...

Perhaps you use a new thread next time? ;-).


Cheers



Keith


--
hth
MH


Dont send mail to: [EMAIL PROTECTED]
--



SA Not Scoring

2007-05-02 Thread Keith De Souza
Hello,

 

I'm new to this mailing list, please let me know if I'm doing anything wrong
with submitting

A problem here.

 

I'm running SpamAssassin version 3.1.8 running on Perl version 5.8.8 the OS
that is running on

Fedora Core 5. The problem that I'm having is every so often when mail come
in, it seems to skip

SA scanning. Here what the logs say:

 

 

Sat, 28 Apr 2007 19:42:53 BST:21005: SA: required_hits ? / sa_quarantine
+0.01 / sa_delete +2.4

Sat, 28 Apr 2007 19:42:53 BST:21005: SA: finished scan of dir
/var/spool/qmailscan/tmp/ssdd117778517072221005 in 600.013176 secs

 - hits=?/?

Sat, 28 Apr 2007 19:42:53 BST:21005: qmail-scanner:
Clear:RC:0(67.186.37.67):SA:0(?/?): 602.343095  3106
overtaxingpinafore

@internetdynamics.com [EMAIL PROTECTED]   Re:
[EMAIL PROTECTED] textfile0:46

 textfile1:468 textfile2:1145

 

 

This does not happen all the time but once in a while my log show a batch of
mail not being scanned and producing false negatives, I don't know why that
is.

 

Is there any possibility that my server is overloaded and spamd is unable to
spawn sufficient child process to handle the incoming mail. Just a logical
guess.

 

Any help on this is much appreciated.

 

Cheers

 

Keith

 



Re: SA Not Scoring

2007-05-02 Thread Jason Haar
Keith De Souza wrote:

  

  

 Sat, 28 Apr 2007 19:42:53 BST:21005: SA: required_hits ? /
 sa_quarantine +0.01 / sa_delete +2.4

 Sat, 28 Apr 2007 19:42:53 BST:21005: SA: finished scan of dir
 /var/spool/qmailscan/tmp/ssdd117778517072221005 in 600.013176 secs

  - hits=?/?

 Sat, 28 Apr 2007 19:42:53 BST:21005: qmail-scanner:
 Clear:RC:0(67.186.37.67):SA:0(?/?): 602.343095  3106   
 overtaxingpinafore

 @internetdynamics.com [EMAIL PROTECTED]   Re:
 [EMAIL PROTECTED] textfile0:46

  textfile1:468 textfile2:1145

  

  

 This does not happen all the time but once in a while my log show a
 batch of mail not being scanned and producing false negatives, I don’t
 know why that is.

  

 Is there any possibility that my server is overloaded and spamd is
 unable to spawn sufficient child process to handle the incoming mail.
 Just a logical guess.

  

Did you read the Qmail-Scanner FAQ - Q19?

Look at the timestamp in there - 602 seconds. That means that message
took 10 minutes to process - something is wrong with your system. Either
it is overloaded or spamd is hanging on DNS (or other network) lookups.
However, you say this only happens every once in a while - in which case
that may be acceptable to you.

Also /var/spool/qmailscan implies you're using a VERY old Q-S 1.X
release...

-- 
Cheers

Jason Haar
Information Security Manager, Trimble Navigation Ltd.
Phone: +64 3 9635 377 Fax: +64 3 9635 417
PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1




RE: SA Not Scoring

2007-05-02 Thread Keith De Souza
Hi Jason,

Thanks for this, I'm presuming I should be reading
http://qmail-scanner.sourceforge.net/FAQ.php. Any ideas how I can find out
if
Spamd is hanging on DNS? My SA is running on Fedora Core 5 OS.
I will also be looking at updating qmail-scanner.

Many thanks for your input. 

Cheers

Keith 

-Original Message-
From: Jason Haar [mailto:[EMAIL PROTECTED] 
Sent: 03 May 2007 00:31
To: users@spamassassin.apache.org
Subject: Re: SA Not Scoring

Keith De Souza wrote:

  

  

 Sat, 28 Apr 2007 19:42:53 BST:21005: SA: required_hits ? /
 sa_quarantine +0.01 / sa_delete +2.4

 Sat, 28 Apr 2007 19:42:53 BST:21005: SA: finished scan of dir
 /var/spool/qmailscan/tmp/ssdd117778517072221005 in 600.013176 secs

  - hits=?/?

 Sat, 28 Apr 2007 19:42:53 BST:21005: qmail-scanner:
 Clear:RC:0(67.186.37.67):SA:0(?/?): 602.343095  3106   
 overtaxingpinafore

 @internetdynamics.com [EMAIL PROTECTED]   Re:
 [EMAIL PROTECTED] textfile0:46

  textfile1:468 textfile2:1145

  

  

 This does not happen all the time but once in a while my log show a
 batch of mail not being scanned and producing false negatives, I don't
 know why that is.

  

 Is there any possibility that my server is overloaded and spamd is
 unable to spawn sufficient child process to handle the incoming mail.
 Just a logical guess.

  

Did you read the Qmail-Scanner FAQ - Q19?

Look at the timestamp in there - 602 seconds. That means that message
took 10 minutes to process - something is wrong with your system. Either
it is overloaded or spamd is hanging on DNS (or other network) lookups.
However, you say this only happens every once in a while - in which case
that may be acceptable to you.

Also /var/spool/qmailscan implies you're using a VERY old Q-S 1.X
release...

-- 
Cheers

Jason Haar
Information Security Manager, Trimble Navigation Ltd.
Phone: +64 3 9635 377 Fax: +64 3 9635 417
PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1





Re: SA 3.01 scoring very low

2004-11-04 Thread Sean Doherty
On Wed, 2004-11-03 at 21:40, Dave Goodrich wrote:
 Good afternoon,
 
 I just finished testing an upgrade of SA to 3.01 and my scores fell 
 through the floor. Read the docs, tried to use the Wiki, followed 
 everyone else's upgrade on the list. Not sure just what went wrong.

 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on avhost.tls.net
 X-Spam-Status: No, score=0.6 required=5.0 tests=ALL_TRUSTED,DRUGS_ERECTILE,
  FROM_NO_LOWER,INVALID_DATE,MISSING_SUBJECT,RM_hm_EmtyMsgid
  autolearn=disabled version=3.0.1

You need to specify trusted_networks in local.cf, otherwise 
you're going to continue to hit the ALL_TRUSTED rule which can 
*decrease* your score by up to -3.3. If you don't specify
trusted_networks then SpamAssassin infers what your trusted 
networks are - and the inference algorithm may not always get 
the correct result. For instance if your mail relay/server is 
on a private network and NATed thru a firewall, then the 
algorithm may infer incorrectly that the connecting mail server 
is trusted. i.e. the algorithm assumes that since you're a 
private address, then the next hop server must belong to you 
since your MX must be public. However it does not take NAT 
into account. Setting trusted_networks appropriately will solve 
this issue (I don't think SA 2.64 has the ALL_TRUSTED rule - or 
at least it scores low).

Since you hit ALL_TRUSTED certain other DNS based tests are not 
run.

Also is dns unavailable (dns_available no)? This may explain
why you're not getting SURBL hits (which you should if dns
is fully operational). Also skip_rbl_checks will do just that.

Regards,
- Sean




Re: SA 3.01 scoring very low

2004-11-04 Thread Dave Goodrich
Sean Doherty wrote:
On Wed, 2004-11-03 at 21:40, Dave Goodrich wrote:
Good afternoon,
I just finished testing an upgrade of SA to 3.01 and my scores fell 
through the floor. Read the docs, tried to use the Wiki, followed 
everyone else's upgrade on the list. Not sure just what went wrong.

X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on avhost.tls.net
X-Spam-Status: No, score=0.6 required=5.0 tests=ALL_TRUSTED,DRUGS_ERECTILE,
FROM_NO_LOWER,INVALID_DATE,MISSING_SUBJECT,RM_hm_EmtyMsgid
autolearn=disabled version=3.0.1

You need to specify trusted_networks in local.cf, otherwise 
you're going to continue to hit the ALL_TRUSTED rule which can 
*decrease* your score by up to -3.3. If you don't specify
trusted_networks then SpamAssassin infers what your trusted 
networks are - and the inference algorithm may not always get 
the correct result. For instance if your mail relay/server is 
on a private network and NATed thru a firewall, then the 
algorithm may infer incorrectly that the connecting mail server 
is trusted. i.e. the algorithm assumes that since you're a 
private address, then the next hop server must belong to you 
since your MX must be public. However it does not take NAT 
into account. Setting trusted_networks appropriately will solve 
this issue (I don't think SA 2.64 has the ALL_TRUSTED rule - or 
at least it scores low).
I will look into that, I didn't set it as I want no network to be 
trusted. I'll reread what I can find on that.

Since you hit ALL_TRUSTED certain other DNS based tests are not 
run.
Eh? Where do I find this out?
Also is dns unavailable (dns_available no)? This may explain
why you're not getting SURBL hits (which you should if dns
is fully operational). 

I marked DNS unavailable as I don't want the DNS check, I do want DNS 
tests run, but only SURBL. Rereading it I think it was too late in the 
evening, I need to set dns_available yes to stop the dns testing, but 
still allow dns tests to run.

My choice for leaving trusted_networks blank was this;
If trusted_networks is not set and internal_networks is, the value 
of internal_networks will be used for this parameter.

If you're running with DNS checks enabled, SpamAssassin includes 
code to infer your trusted networks on the fly, so this may not be 
necessary.

I don't want any networks trusted, infered or otherwise. So I left 
trusted_networks and internal_networks both blank.

 Also skip_rbl_checks will do just that.
Umm I don't follow you there, are you saying skip_rbl_checks will skip 
SURBL? Because if it does, I'll need to go back to 2.64.

By default, SpamAssassin will run RBL checks. If your ISP already does 
this for you, set this to 1.

Thanks,
DAve

--
Systems Administrator
http://www.tls.net
Get rid of Unwanted Emails...get TLS Spam Blocker!


Re: {SPAM} SA 3.01 scoring very low

2004-11-04 Thread Sean Doherty
On Wed, 2004-11-03 at 21:52, Matt Kettler wrote:
 At 04:40 PM 11/3/2004, Dave Goodrich wrote:
 Good afternoon,
 
 I just finished testing an upgrade of SA to 3.01 and my scores fell 
 through the floor. Read the docs, tried to use the Wiki, followed everyone 
 else's upgrade on the list. Not sure just what went wrong.
 
 DAve
 
 Here is a sample output of spamassassin -D  test_spam (a known spam that 
 had been caught and scored as follows,
 
 snip
 debug: received-header: unknown format:
 debug: received-header: unknown format:
 debug: received-header: unknown format:
 debug: received-header: unknown format:
 
 snip
 
 There's the cause of your problem.. SA is having problems parsing your 
 received headers.
 
 As a result, SA is failing to properly detect a trust path, and is 
 triggering ALL_TRUSTED, which should never happen for outside mail.

 In the short term, force ALL_TRUSTED to 0

Matt, does this mean that even if trusted_networks is set in local.cf,
SpamAssassin will fire the ALL_TRUSTED rule even if it can't parse 
the received headers? i.e. Since there are no parsable received 
headers, SA will assume that all must have been trusted? 
Seems a bit aggressive to me...

- Sean





Re: SA 3.01 scoring very low

2004-11-04 Thread Sean Doherty
On Thu, 2004-11-04 at 14:14, Dave Goodrich wrote:
 Sean Doherty wrote:
  On Wed, 2004-11-03 at 21:40, Dave Goodrich wrote:
  
 Good afternoon,
 
 I just finished testing an upgrade of SA to 3.01 and my scores fell 
 through the floor. Read the docs, tried to use the Wiki, followed 
 everyone else's upgrade on the list. Not sure just what went wrong.
  
  
 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on avhost.tls.net
 X-Spam-Status: No, score=0.6 required=5.0 tests=ALL_TRUSTED,DRUGS_ERECTILE,
  FROM_NO_LOWER,INVALID_DATE,MISSING_SUBJECT,RM_hm_EmtyMsgid
  autolearn=disabled version=3.0.1
  
  
  You need to specify trusted_networks in local.cf, otherwise 
  you're going to continue to hit the ALL_TRUSTED rule which can 
  *decrease* your score by up to -3.3. If you don't specify
  trusted_networks then SpamAssassin infers what your trusted 
  networks are - and the inference algorithm may not always get 
  the correct result. For instance if your mail relay/server is 
  on a private network and NATed thru a firewall, then the 
  algorithm may infer incorrectly that the connecting mail server 
  is trusted. i.e. the algorithm assumes that since you're a 
  private address, then the next hop server must belong to you 
  since your MX must be public. However it does not take NAT 
  into account. Setting trusted_networks appropriately will solve 
  this issue (I don't think SA 2.64 has the ALL_TRUSTED rule - or 
  at least it scores low).
 I will look into that, I didn't set it as I want no network to be 
 trusted. I'll reread what I can find on that.

Just set trusted_network 127.0.0.1

  
  Since you hit ALL_TRUSTED certain other DNS based tests are not 
  run.
 Eh? Where do I find this out?

Check out trusted_network section of Mail::SpamAssassin::Conf
i.e no RBL tests on trusted networks.

 I don't want any networks trusted, infered or otherwise. So I left 
 trusted_networks and internal_networks both blank.

My understanding is that if unset trusted_networks will be infered.
Setting it to the loopback address and/or the host IP address will
prevent this.

   Also skip_rbl_checks will do just that.
 Umm I don't follow you there, are you saying skip_rbl_checks will skip 
 SURBL? Because if it does, I'll need to go back to 2.64.

No. Just pointing out that no RBL tests will not be run.

Also, Matt Kettler pointed out in this thread that reason for the
ALL_TRUSTED firing may not be entirely related invalid inference
of trust, but because the Received headers had unknown format in 
the debug output.

- Sean



Re: SA 3.01 scoring very low

2004-11-04 Thread Matt Kettler
At 02:19 PM 11/4/2004 +, Sean Doherty wrote:
Matt, does this mean that even if trusted_networks is set in local.cf,
SpamAssassin will fire the ALL_TRUSTED rule even if it can't parse
the received headers? i.e. Since there are no parsable received
headers, SA will assume that all must have been trusted?
Yes I just submitted a bug on the matter.. Currently ALL_TRUSTED fires 
whenever there are no untrusted relays detected.. However, it fails to 
check that any trusted relays exist...

I opened this bug to suggest a fix for ALL_TRUSTED:
http://bugzilla.spamassassin.org/show_bug.cgi?id=3949
However, the Received: path parsing bug is something I leave up to Dave to 
file.

Really mis-parsed Received: headers is a serious bug, the fix to 
ALL_TRUSTED is just damage control.



Re: SA 3.01 scoring very low

2004-11-04 Thread Dave Goodrich
Matt Kettler wrote:
At 02:19 PM 11/4/2004 +, Sean Doherty wrote:
Matt, does this mean that even if trusted_networks is set in local.cf,
SpamAssassin will fire the ALL_TRUSTED rule even if it can't parse
the received headers? i.e. Since there are no parsable received
headers, SA will assume that all must have been trusted?

Yes I just submitted a bug on the matter.. Currently ALL_TRUSTED fires 
whenever there are no untrusted relays detected.. However, it fails to 
check that any trusted relays exist...

I opened this bug to suggest a fix for ALL_TRUSTED:
http://bugzilla.spamassassin.org/show_bug.cgi?id=3949
However, the Received: path parsing bug is something I leave up to Dave 
to file.
No need, I rechecked my test message and it had some formatting problems 
from being transfered off my workstation (Thunderbird) and onto the SA 
box. I grabbed a couple other messages right out of the Maildir and they 
parsed fine.

I believe the issue with the headers was of my making, not a SA problem.
DAve
--
Systems Administrator
http://www.tls.net
Get rid of Unwanted Emails...get TLS Spam Blocker!


Re: SA 3.01 scoring very low

2004-11-04 Thread Matt Kettler
At 09:54 AM 11/4/2004 -0500, Dave Goodrich wrote:
Yes I just submitted a bug on the matter.. Currently ALL_TRUSTED fires 
whenever there are no untrusted relays detected.. However, it fails to 
check that any trusted relays exist...
I opened this bug to suggest a fix for ALL_TRUSTED:
http://bugzilla.spamassassin.org/show_bug.cgi?id=3949
However, the Received: path parsing bug is something I leave up to Dave 
to file.
No need, I rechecked my test message and it had some formatting problems 
from being transfered off my workstation (Thunderbird) and onto the SA 
box. I grabbed a couple other messages right out of the Maildir and they 
parsed fine.

I believe the issue with the headers was of my making, not a SA problem
Fair enough, thanks for the follow-up.
I still think it's worth fixing ALL_TRUSTED just in case.
There's at least one valid open bug regarding Received: formats..
http://bugzilla.spamassassin.org/show_bug.cgi?id=3600
And many others are possible, so it's definitely worth the preventative 
measures. 



Re: SA 3.01 scoring very low

2004-11-04 Thread Dave Goodrich
Sean Doherty wrote:
On Thu, 2004-11-04 at 14:14, Dave Goodrich wrote:
Sean Doherty wrote:
I will look into that, I didn't set it as I want no network to be 
trusted. I'll reread what I can find on that.
Just set trusted_network 127.0.0.1
Yes, this fixed it.

Since you hit ALL_TRUSTED certain other DNS based tests are not 
run.
Eh? Where do I find this out?

Check out trusted_network section of Mail::SpamAssassin::Conf
i.e no RBL tests on trusted networks.
If you're running with DNS checks enabled, SpamAssassin includes code 
to infer your trusted networks on the fly, so this may not be necessary. 
(Thanks to Scott Banister and Andrew Flury for the inspiration for this 
algorithm.) This inference works as follows:

This seems backwards to me. If a user does nothing, then his network 
will be considered trusted by default? We are an ISP, and SA is running 
on our toasters. I don't want any machine trusted as that leaves a door 
open for my smtp relay users (viruses, trojans, just bad folks) to spam 
local users.

JMHO, but shouldn't all networks be considered untrusted unless a user 
specifies otherwise?

DAve
--
Systems Administrator
http://www.tls.net
Get rid of Unwanted Emails...get TLS Spam Blocker!


Re: SA 3.01 scoring very low

2004-11-04 Thread Dave Goodrich
Thanks everyone, testing with several messages and comparing to 2.64 
scores looks good now.

Three issues,
1) My test message was munged and SA had problems parsing the headers. 
Used unmangled messages and SA parsed them fine.

2) Set trusted networks to 127.0.0.1, so no network is trusted.
3) set dns_available yes, this stopped the testing of dns 
availability, while still allowing dns tests themselves to run.

Of note, setting skip_rbl_checks 1 does not stop SURBL tests, which is 
good. Just stops the rbl checks for smtp connections.

DAve
Matt Kettler wrote:
At 09:54 AM 11/4/2004 -0500, Dave Goodrich wrote:
Yes I just submitted a bug on the matter.. Currently ALL_TRUSTED 
fires whenever there are no untrusted relays detected.. However, it 
fails to check that any trusted relays exist...
I opened this bug to suggest a fix for ALL_TRUSTED:
http://bugzilla.spamassassin.org/show_bug.cgi?id=3949
However, the Received: path parsing bug is something I leave up to 
Dave to file.
No need, I rechecked my test message and it had some formatting 
problems from being transfered off my workstation (Thunderbird) and 
onto the SA box. I grabbed a couple other messages right out of the 
Maildir and they parsed fine.

I believe the issue with the headers was of my making, not a SA problem

Fair enough, thanks for the follow-up.
I still think it's worth fixing ALL_TRUSTED just in case.
There's at least one valid open bug regarding Received: formats..
http://bugzilla.spamassassin.org/show_bug.cgi?id=3600
And many others are possible, so it's definitely worth the preventative 
measures.


--
Systems Administrator
http://www.tls.net
Get rid of Unwanted Emails...get TLS Spam Blocker!


Re: SA 3.01 scoring very low

2004-11-04 Thread Sean Doherty
On Thu, 2004-11-04 at 15:04, Dave Goodrich wrote: 
  Check out trusted_network section of Mail::SpamAssassin::Conf
  i.e no RBL tests on trusted networks.
 If you're running with DNS checks enabled, SpamAssassin includes code 
 to infer your trusted networks on the fly, so this may not be necessary. 
 (Thanks to Scott Banister and Andrew Flury for the inspiration for this 
 algorithm.) This inference works as follows:
 
 This seems backwards to me. If a user does nothing, then his network 
 will be considered trusted by default? We are an ISP, and SA is running 
 on our toasters. I don't want any machine trusted as that leaves a door 
 open for my smtp relay users (viruses, trojans, just bad folks) to spam 
 local users.
 
 JMHO, but shouldn't all networks be considered untrusted unless a user 
 specifies otherwise?

I got to agree with you there - especially given that the inference
algorithm doesn't work in every environment.

- Sean



Re: SA 3.01 scoring very low

2004-11-04 Thread Matt Kettler
At 10:17 AM 11/4/2004, Sean Doherty wrote:
 JMHO, but shouldn't all networks be considered untrusted unless a user
 specifies otherwise?
I got to agree with you there - especially given that the inference
algorithm doesn't work in every environment.
Unfortunately this only solves one aspect of the problem.
SA NEEDS to have the correct trust path.
 Trusting nobody is just as bad as trusting everyone. Trusting nobody 
breaks whitelist_from_rcvd, for example.



Re: SA 3.01 scoring very low

2004-11-04 Thread Jim Maul
Matt Kettler wrote:
At 10:17 AM 11/4/2004, Sean Doherty wrote:
 JMHO, but shouldn't all networks be considered untrusted unless a user
 specifies otherwise?
I got to agree with you there - especially given that the inference
algorithm doesn't work in every environment.

Unfortunately this only solves one aspect of the problem.
SA NEEDS to have the correct trust path.
 Trusting nobody is just as bad as trusting everyone. Trusting nobody 
breaks whitelist_from_rcvd, for example.


While i agree that trusting no one doesnt really solve the problem, I 
dont believe it is just as bad as trusting everyone.  Trusting 
everyone  stops other rules from firing and adds atleast -2.something to 
every message.  This seems far worse than trusting no one and breaking 
whitelist_from_rcvd.

-Jim


Re: SA 3.01 scoring very low

2004-11-04 Thread Dave Goodrich
Matt Kettler wrote:
At 10:17 AM 11/4/2004, Sean Doherty wrote:
 JMHO, but shouldn't all networks be considered untrusted unless a user
 specifies otherwise?
I got to agree with you there - especially given that the inference
algorithm doesn't work in every environment.

Unfortunately this only solves one aspect of the problem.
SA NEEDS to have the correct trust path.
 Trusting nobody is just as bad as trusting everyone. Trusting nobody 
breaks whitelist_from_rcvd, for example.
This is all becoming very confusing about what effect the trusted 
networks code has on the rest of SA. Possibly I have not read the conf 
pages correctly.

internal_networks ip.add.re.ss[/mask] ... (default: none)
If neither trusted_networks or internal_networks is set, no 
addresses will be considered local; in other words, any relays past the 
machine where SpamAssassin is running will be considered external.

And trusted?

whitelist_from_rcvd [EMAIL PROTECTED] sourceforge.net
Note that this requires that internal_networks be correct. For
^^
simple cases, it will be, but for a complex network, or running with DNS 
checks off or with -L, you may get better results by setting that 
parameter.

I'm confused here, if I set no trust params, then all networks are 
trusted by default. But if I trust no networks, then I cannot use 
whitelist_from_rcvd to define a trusted relay?

To me that says, in order to define a trusted relay via 
whitelist_from_rcvd, I first must trust ALL relays, or put all the 
relays I have in whitelist_from_rcvd into my trusted networks as well.

DAve
--
Systems Administrator
http://www.tls.net
Get rid of Unwanted Emails...get TLS Spam Blocker!


Re: SA 3.01 scoring very low

2004-11-04 Thread Matt Kettler
At 11:14 AM 11/4/2004, Jim Maul wrote:
While i agree that trusting no one doesnt really solve the problem, I dont 
believe it is just as bad as trusting everyone.  Trusting 
everyone  stops other rules from firing and adds atleast -2.something to 
every message.  This seems far worse than trusting no one and breaking 
whitelist_from_rcvd
While I'll concede it may not be just as bad it's still much worse than 
you think.

LOTS of rules in SA depend on trust. Not just whitelist_from_rcvd and 
ALL_TRUSTED.

All of these rules are broken by a broken trust path, some in ways that 
cause FPs, others just missing out on score:

HELO_DYNAMIC_*
FAKE_HELO_MAIL_COM_DOM
RCVD_IN_BSP_*
MSGID_FROM_MTA_ID
FORGED_RCVD_*
AWL
trust plays into notfirsthop as well, so all these DNSBLs get broken:
RCVD_IN_NJABL_DUL
RCVD_IN_SORBS_DUL
RCVD_IN_XBL
RCVD_IN_DSBL
RCVD_IN_MAPS_DUL 



Re: SA 3.01 scoring very low

2004-11-04 Thread Justin Mason
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Sean Doherty writes:
 On Thu, 2004-11-04 at 15:04, Dave Goodrich wrote: 
   Check out trusted_network section of Mail::SpamAssassin::Conf
   i.e no RBL tests on trusted networks.
  If you're running with DNS checks enabled, SpamAssassin includes code 
  to infer your trusted networks on the fly, so this may not be necessary. 
  (Thanks to Scott Banister and Andrew Flury for the inspiration for this 
  algorithm.) This inference works as follows:
  
  This seems backwards to me. If a user does nothing, then his network 
  will be considered trusted by default? We are an ISP, and SA is running 
  on our toasters. I don't want any machine trusted as that leaves a door 
  open for my smtp relay users (viruses, trojans, just bad folks) to spam 
  local users.
  
  JMHO, but shouldn't all networks be considered untrusted unless a user 
  specifies otherwise?
 
 I got to agree with you there - especially given that the inference
 algorithm doesn't work in every environment.

the idea is that an ISP *will* take the time to set that setting. ;)

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

iD4DBQFBimZxMJF5cimLx9ARAm7VAJdjojaKXz6t++f5BwK+ocf0jT5cAKChSgLF
7Wrsz2oohTyTjYLaJktIuA==
=LLyQ
-END PGP SIGNATURE-



SA 3.01 scoring very low

2004-11-03 Thread Dave Goodrich
Good afternoon,
I just finished testing an upgrade of SA to 3.01 and my scores fell 
through the floor. Read the docs, tried to use the Wiki, followed 
everyone else's upgrade on the list. Not sure just what went wrong.

DAve
Here is a sample output of spamassassin -D  test_spam (a known spam 
that had been caught and scored as follows,

 previous score 
Content analysis details:   (21.9 hits, 4.0 required)
 2.8 SUBJ_VIAGRASubject includes viagra
 2.6 LOCAL_OBFU_REGALIS_SUBJ Obfuscated 'REGALIS' in subject
 2.6 LOCAL_OBFU_CIALIS_SUBJ Obfuscated 'CIALIS' in subject
 0.9 SUBJ_BUY   'Subject' starts with Buy, Buying
 1.8 LOCAL_OBFU_CIALIS  BODY: Obfuscated 'CIALIS' in body
 1.8 LOCAL_OBFU_REGALIS BODY: Obfuscated 'REGALIS' in body
 3.0 SPAMCOP_URI_RBLURI's domain appears in spamcop database at 
sc.surbl.org
[a1medz.com is blacklisted in URI RBL at]
[multi.surbl.org]
 2.1 WS_URI_RBL URI's domain appears in ws database at 
ws.surbl.org
[a1medz.com is blacklisted in URI RBL at]
[multi.surbl.org]
 2.1 OB_URI_RBL URI's domain appears in ws database at 
ob.surbl.org
[a1medz.com is blacklisted in URI RBL at]
[multi.surbl.org]
 2.2 SARE_URI_MEDS  URI: domain selling meds

* my local.cf ***
# Add your own customisations to this file.  See 'man 
Mail::SpamAssassin::Conf'
# for details of what can be tweaked.
required_hits 5.0
rewrite_header Subject *SPAM*
report_safe 1
skip_rbl_checks 1
use_auto_whitelist 0
bayes_auto_learn 0
use_bayes 0
use_pyzor 0
use_dcc 0
use_razor2 0
dns_available no


 SA 3.01 debug output *
bash-2.05b# spamassassin -D  test_spam
debug: SpamAssassin version 3.0.1
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 '/sbin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/games', keeping.
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: Final PATH set to: 
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
debug: using /etc/mail/spamassassin/init.pre for site rules init.pre
debug: config: read file /etc/mail/spamassassin/init.pre
debug: using /usr/local/share/spamassassin for default rules dir
debug: config: read file /usr/local/share/spamassassin/10_misc.cf
debug: config: read file /usr/local/share/spamassassin/20_anti_ratware.cf
debug: config: read file /usr/local/share/spamassassin/20_body_tests.cf
debug: config: read file /usr/local/share/spamassassin/20_compensate.cf
debug: config: read file /usr/local/share/spamassassin/20_dnsbl_tests.cf
debug: config: read file /usr/local/share/spamassassin/20_drugs.cf
debug: config: read file /usr/local/share/spamassassin/20_fake_helo_tests.cf
debug: config: read file /usr/local/share/spamassassin/20_head_tests.cf
debug: config: read file /usr/local/share/spamassassin/20_html_tests.cf
debug: config: read file /usr/local/share/spamassassin/20_meta_tests.cf
debug: config: read file /usr/local/share/spamassassin/20_phrases.cf
debug: config: read file /usr/local/share/spamassassin/20_porn.cf
debug: config: read file /usr/local/share/spamassassin/20_ratware.cf
debug: config: read file /usr/local/share/spamassassin/20_uri_tests.cf
debug: config: read file /usr/local/share/spamassassin/23_bayes.cf
debug: config: read file /usr/local/share/spamassassin/25_body_tests_es.cf
debug: config: read file /usr/local/share/spamassassin/25_hashcash.cf
debug: config: read file /usr/local/share/spamassassin/25_spf.cf
debug: config: read file /usr/local/share/spamassassin/25_uribl.cf
debug: config: read file /usr/local/share/spamassassin/30_text_de.cf
debug: config: read file /usr/local/share/spamassassin/30_text_fr.cf
debug: config: read file /usr/local/share/spamassassin/30_text_nl.cf
debug: config: read file /usr/local/share/spamassassin/30_text_pl.cf
debug: config: read file /usr/local/share/spamassassin/50_scores.cf
debug: config: read file /usr/local/share/spamassassin/60_whitelist.cf
debug: using /etc/mail/spamassassin for site rules dir
debug: config: read file /etc/mail/spamassassin/70_sare_adult.cf
debug: config: read file /etc/mail/spamassassin/70_sare_bayes_poison_nxm.cf
debug: config: read file /etc/mail/spamassassin/70_sare_genlsubj0.cf
debug: config: read file /etc/mail/spamassassin/70_sare_header0.cf
debug: config: read file /etc/mail/spamassassin/70_sare_html0.cf
debug: config: read file /etc/mail/spamassassin/70_sare_oem.cf
debug: config: read file /etc/mail/spamassassin/70_sare_random.cf
debug: config: read file /etc/mail/spamassassin/70_sare_ratware.cf
debug: config: 

Re: {SPAM} SA 3.01 scoring very low

2004-11-03 Thread Matt Kettler
At 04:40 PM 11/3/2004, Dave Goodrich wrote:
Good afternoon,
I just finished testing an upgrade of SA to 3.01 and my scores fell 
through the floor. Read the docs, tried to use the Wiki, followed everyone 
else's upgrade on the list. Not sure just what went wrong.

DAve
Here is a sample output of spamassassin -D  test_spam (a known spam that 
had been caught and scored as follows,
snip
debug: received-header: unknown format:
debug: received-header: unknown format:
debug: received-header: unknown format:
debug: received-header: unknown format:
snip
There's the cause of your problem.. SA is having problems parsing your 
received headers.

As a result, SA is failing to properly detect a trust path, and is 
triggering ALL_TRUSTED, which should never happen for outside mail.

debug: 
tests=ALL_TRUSTED,DRUGS_ERECTILE,FROM_NO_LOWER,INVALID_DATE,MISSING_SUBJECT,RM_hm_EmtyMsgid
debug: 
subtests=__DRUGS_ERECTILE3,__DRUGS_ERECTILE_C,__SARE_HTML_HAS_MSG,__UNUSABLE_MSGID
In the short term, force ALL_TRUSTED to 0
score ALL_TRUSTED 0
Open a bug report pointing out that SA isn't parsing your recieved headers. 
After you create the bug, attach a sample message to the bug so that the 
devs can test and fix things.