no headers in email despite add_headers option

2007-06-26 Thread zbigniew szalbot
Hello,

I am new to SA but hope you will be able to guide me.

I have in my local.cf the following line:
add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_
autolearn=_AUTOLEARN_ version=_VERSION_

exim's log shows this:
Jun 26 07:54:23 szalbot spamd[738]: spamd: connection from
localhost.homedns.org [127.0.0.1] at port 56486
Jun 26 07:54:23 szalbot spamd[738]: spamd: setuid to spamd succeeded
Jun 26 07:54:23 szalbot spamd[738]: spamd: checking message
[EMAIL PROTECTED] for spamd:58
Jun 26 07:54:28 szalbot spamd[738]: spamd: clean message (0.0/5.0) for
spamd:58 in 5.4 seconds, 47392 bytes.
Jun 26 07:54:28 szalbot spamd[738]: spamd: result: . 0 -
HTML_MESSAGE,SPF_PASS
scantime=5.4,size=47392,user=spamd,uid=58,required_score=5.0,rhost=localhost.homedns.org,raddr=127.0.0.1,rport=56486,mid=[EMAIL
 PROTECTED],autolearn=ham

and yet SA does not add any headers to the emails. What am I missing?
Thank you in advance!

Zbignie Szalbot



Re: no headers in email despite add_headers option

2007-06-26 Thread Nigel Frankcom
On Tue, 26 Jun 2007 08:01:46 +0200 (CEST), zbigniew szalbot
[EMAIL PROTECTED] wrote:

Hello,

I am new to SA but hope you will be able to guide me.

I have in my local.cf the following line:
add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_
autolearn=_AUTOLEARN_ version=_VERSION_

exim's log shows this:
Jun 26 07:54:23 szalbot spamd[738]: spamd: connection from
localhost.homedns.org [127.0.0.1] at port 56486
Jun 26 07:54:23 szalbot spamd[738]: spamd: setuid to spamd succeeded
Jun 26 07:54:23 szalbot spamd[738]: spamd: checking message
[EMAIL PROTECTED] for spamd:58
Jun 26 07:54:28 szalbot spamd[738]: spamd: clean message (0.0/5.0) for
spamd:58 in 5.4 seconds, 47392 bytes.
Jun 26 07:54:28 szalbot spamd[738]: spamd: result: . 0 -
HTML_MESSAGE,SPF_PASS
scantime=5.4,size=47392,user=spamd,uid=58,required_score=5.0,rhost=localhost.homedns.org,raddr=127.0.0.1,rport=56486,mid=[EMAIL
 PROTECTED],autolearn=ham

and yet SA does not add any headers to the emails. What am I missing?
Thank you in advance!

Zbignie Szalbot


I have the following that does show headers. I don't know if exim will
be suppressing them on your setup.

required_score 5
rbl_timeout15
rewrite_header subject [SPAM]
fold_headers 1
skip_rbl_checks0
report_safe 1
dns_available yes

#Headers
add_header spam Flag _YESNOCAPS_
add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ 
tests=_TESTSSCORES_ autolearn=_AUTOLEARN_ version=_VERSION_
add_header all Level _STARS(*)_
add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on 
_HOSTNAME_
add_header all RBLReport _RBL_

HTH

Nigel


Re: no headers in email despite add_headers option

2007-06-26 Thread zbigniew szalbot
Hi,

 I have the following that does show headers. I don't know if exim will
 be suppressing them on your setup.

Yes, think before you ask. That was it. Exim was configured not to show
score for non-spam emails. Thank you!

Zbigniew Szalbot



import message into DB after processing

2007-06-26 Thread Peter Mikeska (MiKi)
Hello All,

I would ask you if there is any tool/plugin for importing message into
database ? Basically , as plugin for SA which at the end, when its
already known if it is spam or not, it will push email and score info
into  DB. It sound efficient to me, because message is already open,
so its not needed process it later again.


Or anyone know similar tools ? Im using qmail and maildir format.

thank you for any info.
PS:Sorry, Im not programmer, so I cant do it. ;)

Peter

-- 
Best regards,
 Peter  mailto:[EMAIL PROTECTED]



FuzzyOCR Use of uninitialized value Hashing.pm errors

2007-06-26 Thread Russell Galpin
Hi There

I'm running SA 3.2.1 with the latest version of FuzzyOCR (from svn) and I'm
receiving the same error over and over again in my mail logs:

Jun 25 17:25:56 mta1 spamd[629]: Use of uninitialized value in string eq at
/etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 245. Jun 25 17:25:56 mta1
spamd[629]: Use of uninitialized value in string eq at
/etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 248. Jun 25 17:25:56 mta1
spamd[629]: Use of uninitialized value in string eq at
/etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 251. Jun 25 17:25:56 mta1
spamd[629]: Use of uninitialized value in numeric eq (==) at
/etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 254. Jun 25 17:25:56 mta1
spamd[629]: Use of uninitialized value in numeric eq (==) at
/etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 257. Jun 25 17:25:56 mta1
spamd[629]: Argument  isn't numeric in numeric eq (==) at
/etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 260. Jun 25 17:25:56 mta1
spamd[629]: Use of uninitialized value in numeric eq (==) at
/etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 260. Jun 25 17:25:56 mta1
spamd[629]: Use of uninitialized value in string eq at
/etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 245. Jun 25 17:25:56 mta1
spamd[629]: Use of uninitialized value in string eq at
/etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 248. Jun 25 17:25:56 mta1
spamd[629]: Use of uninitialized value in string eq at
/etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 251. Jun 25 17:25:56 mta1
spamd[629]: Use of uninitialized value in numeric eq (==) at
/etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 254. Jun 25 17:25:56 mta1
spamd[629]: Use of uninitialized value in numeric eq (==) at
/etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 257. Jun 25 17:25:56 mta1
spamd[629]: Argument  isn't numeric in numeric eq (==) at
/etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 260. Jun 25 17:25:56 mta1
spamd[629]: Use of uninitialized value in numeric eq (==) at
/etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 260.

My FuzzyOcr.cf and setup are pretty much stock, I'm sending the mail from
spamc to spamd. I've tried sending a email (with spammy image attached) through
spamassassin -D fuzzyocr from the command line and I can't get the error to
reproduce itself. It seems to only occur on certain messages.

It appears as though FuzzyOCR is still working, it's scoring messages and
writing hashes to the MySQL database, I'm just not sure if it's working as well
as it should.

Anyone got any ideas where I can track down the problem?

TIA

Russ


Re: import message into DB after processing

2007-06-26 Thread Duane Hill

On Tue, 26 Jun 2007, Peter Mikeska (MiKi) wrote:


Hello All,

I would ask you if there is any tool/plugin for importing message into
database ? Basically , as plugin for SA which at the end, when its
already known if it is spam or not, it will push email and score info
into  DB. It sound efficient to me, because message is already open,
so its not needed process it later again.


Or anyone know similar tools ? Im using qmail and maildir format.

thank you for any info.
PS:Sorry, Im not programmer, so I cant do it. ;)


I don't know of any plugins for SA. However, there is an SQL solution that 
can be found here: http://www.dbmail.org/


Re: import message into DB after processing

2007-06-26 Thread Matt Kettler
Peter Mikeska (MiKi) wrote:
 Hello All,

 I would ask you if there is any tool/plugin for importing message into
 database ? Basically , as plugin for SA which at the end, when its
 already known if it is spam or not, it will push email and score info
 into  DB. It sound efficient to me, because message is already open,
 so its not needed process it later again.
   
That would be the autolearner, which is enabled by default.

See also
http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Plugin_AutoLearnThreshold.html

(this plugin is loaded by default by v310.pre)


Re: FuzzyOCR Use of uninitialized value Hashing.pm errors

2007-06-26 Thread decoder
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Russell Galpin wrote:
 Hi There

 I'm running SA 3.2.1 with the latest version of FuzzyOCR (from svn) and I'm
 receiving the same error over and over again in my mail logs:

 Jun 25 17:25:56 mta1 spamd[629]: Use of uninitialized value in string eq at
 /etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 245. Jun 25 17:25:56 mta1
 spamd[629]: Use of uninitialized value in string eq at
 /etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 248. Jun 25 17:25:56 mta1
 spamd[629]: Use of uninitialized value in string eq at
 /etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 251. Jun 25 17:25:56 mta1
 spamd[629]: Use of uninitialized value in numeric eq (==) at
 /etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 254. Jun 25 17:25:56 mta1
 spamd[629]: Use of uninitialized value in numeric eq (==) at
 /etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 257. Jun 25 17:25:56 mta1
 spamd[629]: Argument  isn't numeric in numeric eq (==) at
 /etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 260. Jun 25 17:25:56 mta1
 spamd[629]: Use of uninitialized value in numeric eq (==) at
 /etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 260. Jun 25 17:25:56 mta1
 spamd[629]: Use of uninitialized value in string eq at
 /etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 245. Jun 25 17:25:56 mta1
 spamd[629]: Use of uninitialized value in string eq at
 /etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 248. Jun 25 17:25:56 mta1
 spamd[629]: Use of uninitialized value in string eq at
 /etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 251. Jun 25 17:25:56 mta1
 spamd[629]: Use of uninitialized value in numeric eq (==) at
 /etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 254. Jun 25 17:25:56 mta1
 spamd[629]: Use of uninitialized value in numeric eq (==) at
 /etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 257. Jun 25 17:25:56 mta1
 spamd[629]: Argument  isn't numeric in numeric eq (==) at
 /etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 260. Jun 25 17:25:56 mta1
 spamd[629]: Use of uninitialized value in numeric eq (==) at
 /etc/mail/spamassassin/FuzzyOcr/Hashing.pm line 260.

 My FuzzyOcr.cf and setup are pretty much stock, I'm sending the mail from
 spamc to spamd. I've tried sending a email (with spammy image attached)
through
 spamassassin -D fuzzyocr from the command line and I can't get the error to
 reproduce itself. It seems to only occur on certain messages.

 It appears as though FuzzyOCR is still working, it's scoring messages and
 writing hashes to the MySQL database, I'm just not sure if it's working
as well
 as it should.

 Anyone got any ideas where I can track down the problem?
Hi,

I replied on your ticket in our Trac System, you can follow the steps
there to get more information.


Best regards,

Chris





 TIA

 Russ

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGgQqNJQIKXnJyDxURAtlEAJ0UdMMGAl6CVt+kTxaOglmpzFWEqACcCCI1
ooAIdpLjt+T7PRhSBnJV5CM=
=hVrh
-END PGP SIGNATURE-



Re: Mail not checked for spam in procmailrc

2007-06-26 Thread guenther
On Mon, 2007-06-25 at 16:17 -0700, Jai Rangi wrote:
 Two things here,
 1. I have two rule, (from and message_id) they both should match before 
 we add the tag  X-ALEKS-Spam: none. Right?

Yup.

 2. Why I dont have tag in the header?

See below for more comments on this.

 jdow wrote:
  Look at the line I underlined. Your rule decided you sent the email so
  exempted it.
 
  {^_^}
  - Original Message - From: Jai Rangi [EMAIL PROTECTED]
 
 
  I am not sure if I understand what do you mean by this,
  ***You wrote
  {^_^}
  **

That was just a default signature...


  Hello All,
  I am little confused here. I have this rule in my .procmailrc file.
 
  :0f
  * ^[F|f]rom:.*aleks\.com
  * 
  ^[m|M]essage-[i|I][D|d]:.*aleks\.com|^Received:.*(authenticated).*\.aleks\.com
   

By default, procmail is case insensitive. You don't need to provide
upper and lower case. Also note, that [Ff] is a char class, no grouping
parenthesis. The | in there is a literal char, not an alternation. See
man procmailrc.

  | formail -AX-ALEKS-Spam: none
 
  #:0fwE
  :0fw
  *  256000
  * !^X-ALEKS-Spam: none
  * !^FROM_DAEMON
  | /usr/bin/spamc
 
  So according to this rule every email should have tag X-ALEKS-Spam: 
  none or it should be checked for spam. Now I get few mail that dont 
  go through spam and do not get the No-Spam tag. For example this

This isn't quite true. There are 2 other exceptions to this rule.
Notably an upper size limit of 256 kByte, which coincidentally is the
spamc limit, too. That means, if the mail in question is larger than 256
kByte, it won't be processed by spamc. A totally valid case for a mail
that got neither header.

Anyway, this is getting pretty much off-topic for this list. I'd check
your procmail recipes first, to see why the mail has not been been
processed by SpamAssassin.


  Can some one please give me some hint why this happened. Why this 
  email was not checked by spamc. 

Yup, exactly. :)  Seems, the mail has not been processed by SA. Which is
not a SA issue, if spamc never has been called by procmail to filter the
mail...


Caveat: Didn't have a sane dose of coffee, yet. ;)

  guenther


-- 
char *t=[EMAIL PROTECTED];
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;il;i++){ i%8? c=1:
(c=*++x); c128  (s+=h); if (!(h=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}



howto set bayes to ignore certain patterns?

2007-06-26 Thread Rick van der Zwet (user)
Hi all,

The bayes module a spamassassin is a handy one, but I just want to help
him/her a bit, by telling what to ignore by default and not.

I know which headers to ignore and set those using the
bayes_ignore_header tags. But I would also like to ignore certain
(pattern of) words.

Does anyone know whether this will be possible, by either configure it
directly using some config or delete the words on day to day basis using
some kind of a script or some other alternative?

Thanks a lot!,
/Rick



Re: howto set bayes to ignore certain patterns?

2007-06-26 Thread Matt Kettler
Rick van der Zwet (user) wrote:
 Hi all,

   The bayes module a spamassassin is a handy one, but I just want to help
 him/her a bit, by telling what to ignore by default and not.

 I know which headers to ignore and set those using the
 bayes_ignore_header tags. But I would also like to ignore certain
 (pattern of) words.

 Does anyone know whether this will be possible, by either configure it
 directly using some config or delete the words on day to day basis using
 some kind of a script or some other alternative?
   

Well, if you use SQL, you could have a script find the relevant sha1
hashes and remove them.

However, why do you want to do this in the first place?

SA's chi-squared combining is pretty good at ignoring words that appear
in both spam and nonspam...




Re: howto set bayes to ignore certain patterns?

2007-06-26 Thread Rick van der Zwet
On 6/26/07 3:51 PM, Matt Kettler wrote:
 I know which headers to ignore and set those using the
 bayes_ignore_header tags. But I would also like to ignore certain
 (pattern of) words.


 Well, if you use SQL, you could have a script find the relevant sha1
 hashes and remove them.
 
 However, why do you want to do this in the first place?
 
 SA's chi-squared combining is pretty good at ignoring words that appear
 in both spam and nonspam...
Cause I know for example some really specific words which are added all
the time like footers/disclaimers/mailinglist prefixes. And I don't want
this words to affect the bayes score.

If you take for example a small spam message the ratio bad/good words
will be about 50 or more.

/Rick
-- 
http://rickvanderzwet.nl


RE: howto set bayes to ignore certain patterns?

2007-06-26 Thread Dan Barker
Have you looked at sa-learn? I believe that's what you need.

Dan 

-Original Message-
From: Rick van der Zwet [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 26, 2007 10:06 AM
To: Matt Kettler
Cc: users@spamassassin.apache.org
Subject: Re: howto set bayes to ignore certain patterns?

On 6/26/07 3:51 PM, Matt Kettler wrote:
 I know which headers to ignore and set those using the 
 bayes_ignore_header tags. But I would also like to ignore certain 
 (pattern of) words.


 Well, if you use SQL, you could have a script find the relevant sha1 
 hashes and remove them.
 
 However, why do you want to do this in the first place?
 
 SA's chi-squared combining is pretty good at ignoring words that 
 appear in both spam and nonspam...
Cause I know for example some really specific words which are added all the
time like footers/disclaimers/mailinglist prefixes. And I don't want this
words to affect the bayes score.

If you take for example a small spam message the ratio bad/good words will
be about 50 or more.

/Rick
--
http://rickvanderzwet.nl



Re: howto set bayes to ignore certain patterns?

2007-06-26 Thread Matt Kettler
Rick van der Zwet wrote:
 L, you could have a script find the relevant sha1
 hashes and remove them.

 However, why do you want to do this in the first place?

 SA's chi-squared combining is pretty good at ignoring words that appear
 in both spam and nonspam...
 
 Cause I know for example some really specific words which are added all
 the time like footers/disclaimers/mailinglist prefixes. And I don't want
 this words to affect the bayes score.
   
They really shouldn't matter.
 If you take for example a small spam message the ratio bad/good words
 will be about 50 or more.
   
So? the combining is chi-squared, which will favor the stronger tokens
(ie: those close to 0 or 1.0) over the present in everything ones (ie:
those close to 0.50).




howto set bayes to ignore certain patterns?

2007-06-26 Thread Rick van der Zwet
Hi all,

The bayes module a spamassassin is a handy one, but I just want to help
him/her a bit, by telling what to ignore by default and not.

I know which headers to ignore and set those using the
bayes_ignore_header tags. But I would also like to ignore certain
(pattern of) words.

Does anyone know whether this will be possible, by either configure it
directly using some config or delete the words on day to day basis using
some kind of a script or some other alternative?

Thanks a lot!,
/Rick


RE: Setup SA to use mysql DB

2007-06-26 Thread Bret Miller
OK, I don't use MySQL, but I do use SQL for Bayes and AWL. Here are my
settings (which are working currently in 3.2.1):

# auto_whitelist settings
auto_whitelist_factory Mail::SpamAssassin::SQLBasedAddrList
user_awl_dsn DBI:ODBC:Driver={SQL
Server};Server=MAIL;Database=sql-database
user_awl_sql_username sql-user-name
user_awl_sql_password sql-password
user_awl_sql_override_username global

# Bayes settings
bayes_store_module  Mail::SpamAssassin::BayesStore::SQL
bayes_sql_dsn   DBI:ODBC:Driver={SQL
Server};Server=MAIL;Database=sql-database
bayes_sql_username  sql-user-name
bayes_sql_password  sql-password
bayes_sql_override_username global

HTH,
Bret


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 21, 2007 2:23 PM
 To: users@spamassassin.apache.org
 Subject: Setup SA to use mysql DB

 OK, i have gotten a little further after searching some other email.
 This is what i get when i run spamassassin --lint
 [3069] warn: config: failed to parse line, skipping:
 bayes_store_dsn
 DBI:mysql:sadb:Spamassassin
 Can't locate Mail/Spamassassin/BayesStore/MySQL.pm in @INC (@INC
 contains: lib /usr/lib/perl5/vendor_perl/5.8.3/i586-linux-thread-multi
 /usr/lib/perl5/vendor_perl/5.8.3
 /usr/lib/perl5/5.8.3/i586-linux-thread-multi /usr/lib/perl5/5.8.3
 /usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi
 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl
 /usr/lib/perl5/vendor_perl) at (eval 2266) line 2.
 This is what my local.cf looks like:
 bayes_store_dsnDBI:mysql:sadb:Spamassassin*what does this
 signify? Can someone break this line down?
 bayes_sql_username nameis this the user of the mysql DB?
 bayes_sql_password passwordis this the password for the user
 of the mysql DB?
 bayes_sql_override_username  vscan*is this suppose to be here?
 bayes_store_module Mail::Spamassassin::BayesStore::MySQL









Consultant

2007-06-26 Thread Henry Weber
Hello,

 

We are an email hosting provider and are interested in finding sometime who
could help tighten the spamassassin setup on our servers. We are willing to
pay for services as long as there is a good result.

 

If you are interested, please email [EMAIL PROTECTED]

 

Thanks.

 

Henry Weber 

 



Problem with writing rules based on X-headers

2007-06-26 Thread David Robson

Hi,

My site runs spamassassin.  Our ISP runs a spam checker, that adds an
X-header to our email of the form

X-Spam-Bar: ###

where the number of hashes indicate the likelihood of spam.  I have written
a rule for our spamassassin, which makes use of this X-header, so I can
make use of both spam checkers.  This has worked well and reliably for
a number of years, until we upgraded from  spamassassin 2.60 to
spamassassin 3.1.9

Although all our other local rules work, this one no longer has any affect.
It looks as if the header rules for version 3.1.9 no longer work on
X-headers, although they did in version 2.60

Can anyone confirm this, and can anyone suggest a work around??  All
help gratefully received.

Dave

The rule in question is 

header DWR X-Spam-Bar =~ /\#\#\#\#\#\#\#\#\#/i
describe DWR Contains: Spam detected by our ISP
scoreDWR 5.50





dns problem - spamassassin bug?

2007-06-26 Thread Alex Woick

I have two nameservers in my /etc/resolv.conf:

nameserver 10.10.10.11
nameserver 10.10.10.12

Now, the named daemon on 10.10.10.11 was stopped. The one on 10.10.10.12 
was still up. SpamAssassin, which is also running on 10.10.10.11, 
suddenly threw these errors upon every dns request:


Jun 26 19:49:36 lxrouter spampd[16461]: dns: sendto() failed: Connection 
refused at 
/usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/DnsResolver.pm line 
366, _GEN_2 line 85.
Jun 26 19:49:36 lxrouter spampd[16461]: plugin: eval failed: oops, no 
key at /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/AsyncLoop.pm 
line 120, _GEN_2 line 85.


Isn't SpamAssassin supposed to try the next nameserver from resolv.conf 
on such a hard error? I expected that it would transparently fail over 
to 10.10.10.12 and use that server. Nothing else in my network 
encountered a problem with dns during the outtime, only Spamassassin.


(running SA 3.2.1 on Linux under Fedora 7)


Re: dns problem - spamassassin bug?

2007-06-26 Thread Theo Van Dinter
On Tue, Jun 26, 2007 at 08:26:22PM +0200, Alex Woick wrote:
 Isn't SpamAssassin supposed to try the next nameserver from resolv.conf 
 on such a hard error? I expected that it would transparently fail over 
 to 10.10.10.12 and use that server. Nothing else in my network 
 encountered a problem with dns during the outtime, only Spamassassin.

Net::DNS, which is what SA uses to call DNS, has been well known to only use
the first entry in resolv.conf, unfortunately.  fyi.

-- 
Randomly Selected Tagline:
Sarchasm: The gulf between the author of sarcastic wit, and the recipient
 who doesn't get it.
 - Washington Post


pgpVOYyNvY2ms.pgp
Description: PGP signature


errors after upgrading from 3.1.8 to 3.2.1

2007-06-26 Thread Irina
Hello all,

Could somebody point out how to fix the following errors (getting them when
running spamassassin --lint)


[12449] warn: config: 'uridnsbl_timeout' is obsolete, use 'rbl_timeout'
instead at
/usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin/Plugin/URIDNSBL.pm line
396.
[12449] warn: rules: failed to run FORGED_RCVD_HELO test, skipping:
[12449] warn:  (Can't locate object method check_for_forged_received_helo
via package Mail::SpamAssassin::PerMsgStatus at (eval 1263) line 105.
[12449] warn: )
[12449] warn: rules: failed to run MSGID_FROM_MTA_ID test, skipping:
[12449] warn:  (Can't locate object method message_id_from_mta via package
Mail::SpamAssassin::PerMsgStatus at (eval 1263) line 496.
[12449] warn: )
[12449] warn: rules: failed to run FROM_AND_TO_SAME test, skipping:
[12449] warn:  (Can't locate object method check_for_from_to_same via
package Mail::SpamAssassin::PerMsgStatus at (eval 1263) line 557.
[12449] warn: )
[12449] warn: rules: failed to run DOMAIN_RATIO test, skipping:
[12449] warn:  (Can't locate object method check_domain_ratio via package
Mail::SpamAssassin::PerMsgStatus at (eval 1312) line 281.
[12449] warn: )
[12449] warn: rules: failed to run UNIQUE_WORDS test, skipping:
[12449] warn:  (Can't locate object method check_unique_words via package
Mail::SpamAssassin::PerMsgStatus at (eval 1312) line 1706.
[12449] warn: )
[12449] warn: lint: 5 issues detected, please rerun with debug enabled for
more information



Thank you for your help in advance.
Irina



Re: Consultant

2007-06-26 Thread Ralph Seichter
* Henry Weber:

 We are willing to pay for services as long as there is a good result.

Well, it might be true that some Chinese doctors of ancient times were
content with being paid only when their treatment was successful (or so
I heard), but I very much doubt that this mode of payment can be applied
today. :-)

-Ralph


Re: Consultant

2007-06-26 Thread Jerry Durand

At 01:33 PM 6/26/2007, Ralph Seichter wrote:

* Henry Weber:

 We are willing to pay for services as long as there is a good result.

Well, it might be true that some Chinese doctors of ancient times were
content with being paid only when their treatment was successful (or so
I heard), but I very much doubt that this mode of payment can be applied
today. :-)

-Ralph


Well, we must be old Chinese doctors (funny, I thought I was 
EU/Native American).  Just had a client demand a big discount on a 
device he tested for 2 months as a prototype, approved production of, 
THEN decided he didn't like the function of the lid latch.



--
Jerry Durand, Durand Interstellar, Inc.  www.interstellar.com
tel: +1 408 356-3886, USA toll free: 1 866 356-3886
Skype:  jerrydurand



Re: exposing rules

2007-06-26 Thread OliverScott

Assuming that you have managed to get SA to add headers to messages which is
thinks are spam, and are looking to add a header to ALL messages so you can
see what rules are firing on your HAM, then you can do the following. This
may not be what you are after, but may be of some use!

edit your local.cf file and add:

add_header all Status _YESNO_, score=_SCORE_ required=_REQD_
tests=_TESTSSCORES(,)_ _DCCR_ _PYZOR_ _RBL_ autolearn=_AUTOLEARN_
languages=_LANGUAGES_

Note: this should all be added as ONE long line!
-- 
View this message in context: 
http://www.nabble.com/exposing-rules-tf3979477.html#a11314268
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.



Re: Problem with writing rules based on X-headers

2007-06-26 Thread Matt Kettler
David Robson wrote:
 Hi,

 My site runs spamassassin.  Our ISP runs a spam checker, that adds an
 X-header to our email of the form

 X-Spam-Bar: ###

 where the number of hashes indicate the likelihood of spam.  I have
 written
 a rule for our spamassassin, which makes use of this X-header, so I can
 make use of both spam checkers.  This has worked well and reliably for
 a number of years, until we upgraded from  spamassassin 2.60 to
 spamassassin 3.1.9

 Although all our other local rules work, this one no longer has any
 affect.
 It looks as if the header rules for version 3.1.9 no longer work on
 X-headers, although they did in version 2.60

 Can anyone confirm this, and can anyone suggest a work around??  All
 help gratefully received.
It should work just fine.

Two questions:

1) have you run spamassassin --lint after your upgrade? It could be that
SA is choking on your config file further up and ditching it.

2) where is this declared? user_prefs, or a *.cf file in your site rules
dir?

3) if user_prefs, do you use spamd? Do you have allow_user_rules set to
1 at the site rules level?


 Dave

 The rule in question is 

 header DWR X-Spam-Bar =~ /\#\#\#\#\#\#\#\#\#/i
 describe DWR Contains: Spam detected by our ISP
 scoreDWR 5.50

Looks perfectly fine to me.








attempt to manually remove address from AWL failing

2007-06-26 Thread JT DeLys

I'm trying to /remove/ an address from my current AWL.

Here's the active whitelist,

% cd /usr/local/etc/spamassassin/.spamassassin/

% ls -al auto-whitelist
  -rw-rw 1 saadmin saadmin 10248192 Jun 26 16:04 auto-whitelist

It contains this address,

% check_whitelist auto-whitelist | grep carparts | grep info
  -1.5  (-16.6/11)  --  [EMAIL PROTECTED]|ip=11.222

I remove it, apparently successfully,

% spamassassin --nocreate-prefs [EMAIL PROTECTED]
  SpamAssassin auto-whitelist: removing address: [EMAIL PROTECTED]

But the address still appears to be in the database,

% check_whitelist auto-whitelist | grep carparts | grep info
  -1.5  (-16.6/11)  --  [EMAIL PROTECTED]|ip=11.222

Any hints as to what I'm doing incorrectly?

--
Thanks,

   JTDeLys


training SA

2007-06-26 Thread zigniew szalbot
Hello,

I tried to learn SA and used the following syntax:

sa-learn --spam -f /usr/home/zbyszek/june.txt
archive-iterator: unable to open  Dear Valued Customer,: No such file
or directory

june.txt is a spam email message downloaded from squirrelmail for the
purpose of feeding to SA. I only got unable to open message. And at the
end:
Learned tokens from 0 message(s) (0 message(s) examined)

I guess I made a mistake with the syntax but how should I change it so
that I can train SA?

Thank you in advance!

Zbigniew Szalbot




Re: training SA

2007-06-26 Thread zigniew szalbot
Hi,

 I tried to learn SA and used the following syntax:

 sa-learn --spam -f /usr/home/zbyszek/june.txt
 I guess I made a mistake with the syntax but how should I change it so
 that I can train SA?

I already found out:
sa-learn --spam --no-sync /usr/home/zbyszek/june.txt

Sorry to have bothered!

Warm regards,

Zbigniew Szalbot



Re: training SA

2007-06-26 Thread Nigel Frankcom
On Wed, 27 Jun 2007 07:35:01 +0200 (CEST), zigniew szalbot
[EMAIL PROTECTED] wrote:

Hello,

I tried to learn SA and used the following syntax:

sa-learn --spam -f /usr/home/zbyszek/june.txt
archive-iterator: unable to open  Dear Valued Customer,: No such file
or directory

june.txt is a spam email message downloaded from squirrelmail for the
purpose of feeding to SA. I only got unable to open message. And at the
end:
Learned tokens from 0 message(s) (0 message(s) examined)

I guess I made a mistake with the syntax but how should I change it so
that I can train SA?



Hi,

Have you double checked the path for typos?

Also, you may well need the -u switch. I use:


sa-learn --spam -u sauser /downloads/spam  mv -f /downloads/spam/*.Mail 
/downloads/spam/fn

The last bit   mv -f /downloads/spam/*.Mail /downloads/spam/fn is
just copying the file to a dir so I can track what's been trained and
is probably surplus to your requirements.

I have mine as a script so I just call ./ham or ./spam as required.

HTH

Nigel