You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by sargon <sa...@lordsargon.com> on 2005/09/26 18:10:19 UTC
Razor reporting error
I use Theo's excellent handlespam.pl script for reporting spam. Since
upgrading to SA 3.1 over the weekend, I see this error when I run the
script:
(razor) Could not report spam to Razor et al!
If I check the Razor log, I see this for the most-recent use of the
script:
Sep 26 11:01:52.038064 report[62]: [ 5] mail 1.0, eng 4: Server
accepted report.
It thus appears that the error reported by the script is, in fact, not
an error. What changed in 3.1 to cause the erroneous reporting error?
Any ideas on what should be changed in the script to fix it?
Thanks.
Re: Razor reporting error
Posted by Ed Kasky <ed...@esson.net>.
At 05:32 PM Monday, 9/26/2005, Theo Van Dinter wrote -=>
>On Mon, Sep 26, 2005 at 01:15:36PM -0700, Ed Kasky wrote:
> > FWIW, from here, I see the error in the results from handlespam on every
> > message processed.
>
>Ok, I did some more digging. Apparently in 3.1, we reversed the return code
>for report_as_spam() to be correct, ie: 1 is ok, 0 is error, which
>makes things like 'report_as_spam() || die "foo"' do the right thing.
>
>Feh. Who writes this crap? ;)
I dare not touch that one...
>Anyway, I put in a few 3.1-related changes into handlespam, which includes
>a fix for this problem. http://www.kluge.net/~felicity/random/handlespam.txt
Seems to report fine now:
(razor) Submitted message to Razor et al
Thanks once again for your contributions...
Ed
. . . . . . . . . . . . . . . . . .
Randomly Generated Quote (335 of 1006):
A woman drove me to drink and I never even had
the courtesy to thank her.
Re: Razor reporting error
Posted by Theo Van Dinter <fe...@apache.org>.
On Mon, Sep 26, 2005 at 01:15:36PM -0700, Ed Kasky wrote:
> FWIW, from here, I see the error in the results from handlespam on every
> message processed.
Ok, I did some more digging. Apparently in 3.1, we reversed the return code
for report_as_spam() to be correct, ie: 1 is ok, 0 is error, which
makes things like 'report_as_spam() || die "foo"' do the right thing.
Feh. Who writes this crap? ;)
Anyway, I put in a few 3.1-related changes into handlespam, which includes
a fix for this problem. http://www.kluge.net/~felicity/random/handlespam.txt
--
Randomly Generated Tagline:
"Getting impressive titles isn't hard if you work for people without a clue."
- Theo about misleading "Senior Administrator" titles
Re: Razor reporting error
Posted by Ed Kasky <ed...@esson.net>.
At 11:58 AM Monday, 9/26/2005, Theo Van Dinter wrote -=>
>On Mon, Sep 26, 2005 at 11:10:19AM -0500, sargon wrote:
> > I use Theo's excellent handlespam.pl script for reporting spam. Since
> > upgrading to SA 3.1 over the weekend, I see this error when I run the
> > script:
> >
> > (razor) Could not report spam to Razor et al!
Same here...
> > It thus appears that the error reported by the script is, in fact, not
> > an error. What changed in 3.1 to cause the erroneous reporting error?
> > Any ideas on what should be changed in the script to fix it?
>
>1) I'm glad you like the script. :)
>2) Razor (along with a bunch of other stuff) was moved to be a plugin in 3.1.
>3) The version I'm running works fine with Razor. ;)
>
>Do you see the warning everytime you try to report? Does "spamassassin
>-r" on a single message work? Are you sure the entry corresponds to
>the handlespam run? Is your version different than the one I have up
>at http://www.kluge.net/~felicity/random/handlespam.txt ?
FWIW, from here, I see the error in the results from handlespam on every
message processed.
Here's a sample:
Mail From: "Jimmy Downey" <ji...@zoom.co.uk>
Subject : Buy popular drugs online
SA Status: Yes, score=40.6 required=6.9
Spamtrap?: No
Autorept?: No
(razor) Could not report spam to Razor et al!
(relay) Already did a relay check for 204.60.203.69, skipping
(scopy) Sending spam copies
(archi) Message archived to /home/ed/mail/spammers.
"spamassassin -D -r " results:
[17450] info: reporter: spam reported to DCC
[17450] info: reporter: spam reported to Razor
[17450] info: reporter: spam reported to Pyzor
[17540] info: reporter: spam reported to SpamCop
Ed
. . . . . . . . . . . . . . . . . .
"I can think of nothing more boring for the American people than to
have to sit in their living rooms for a whole half hour looking at
my face on their television screens." --Dwight D. Eisenhower
Re: Razor reporting error
Posted by sargon <sa...@lordsargon.com>.
On Monday, 26-September-2005 13:58, Theo Van Dinter wrote:
> On Mon, Sep 26, 2005 at 11:10:19AM -0500, sargon wrote:
> > I use Theo's excellent handlespam.pl script for reporting spam.
> > Since upgrading to SA 3.1 over the weekend, I see this error when
> > I run the script:
> >
> > (razor) Could not report spam to Razor et al!
> >
> > If I check the Razor log, I see this for the most-recent use of
> > the script:
> >
> > Sep 26 11:01:52.038064 report[62]: [ 5] mail 1.0, eng 4: Server
> > accepted report.
> >
> > It thus appears that the error reported by the script is, in
> > fact, not an error. What changed in 3.1 to cause the erroneous
> > reporting error? Any ideas on what should be changed in the
> > script to fix it?
>
> 1) I'm glad you like the script. :)
> 2) Razor (along with a bunch of other stuff) was moved to be a
> plugin in 3.1. 3) The version I'm running works fine with Razor. ;)
Hmmmmmmm. Razor is working here as well, at least according to the
Razor log. And spamassassin -r -D shows SA reporting to Razor, Pyzor,
and SpamCop.
I like the plug-in concept of 3.1. Very nice.
> Do you see the warning everytime you try to report?
Yes.
> Does "spamassassin -r" on a single message work?
Yes.
[28193] info: reporter: spam reported to Razor
> Are you sure the entry corresponds to the handlespam run?
Yes. Just ran it again and immediately checked the Razor log.
> Is your version different than the one I have up at
> http://www.kluge.net/~felicity/random/handlespam.txt ?
Identical.
Thanks.
Re: Razor reporting error
Posted by Theo Van Dinter <fe...@apache.org>.
On Mon, Sep 26, 2005 at 11:10:19AM -0500, sargon wrote:
> I use Theo's excellent handlespam.pl script for reporting spam. Since
> upgrading to SA 3.1 over the weekend, I see this error when I run the
> script:
>
> (razor) Could not report spam to Razor et al!
>
> If I check the Razor log, I see this for the most-recent use of the
> script:
>
> Sep 26 11:01:52.038064 report[62]: [ 5] mail 1.0, eng 4: Server
> accepted report.
>
> It thus appears that the error reported by the script is, in fact, not
> an error. What changed in 3.1 to cause the erroneous reporting error?
> Any ideas on what should be changed in the script to fix it?
1) I'm glad you like the script. :)
2) Razor (along with a bunch of other stuff) was moved to be a plugin in 3.1.
3) The version I'm running works fine with Razor. ;)
Do you see the warning everytime you try to report? Does "spamassassin
-r" on a single message work? Are you sure the entry corresponds to
the handlespam run? Is your version different than the one I have up
at http://www.kluge.net/~felicity/random/handlespam.txt ?
--
Randomly Generated Tagline:
"Don't ever make trouble here, I beat you up each time."
- From Rumble in the Bronx