You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Floyd <fc...@gdts.ca> on 2006/09/08 17:15:07 UTC
Spam on Exchange
Hi,
I am new to SpamAssassin, I have been testing it for about 3 to 4 weeks now
and I have categorized about
4000 ham and about 1000 spam, and I still get the same spam after a few
days.
What I am trying to figure out is about sa-learn.
When I look at the logs and it classifies an incoming mail that is spam it
gives it a score of 2.8 out of 6 and therefore it classifies as ham.
Log file:
PreFile: C:\ESA\NEW\msg060907173314_A5169.in.eml PostFile:
C:\ESA\NEW\msg060907173314_A5169.out.eml
09-07-2006 05:33:14 : SpamAssassin: C:\PERL\BIN\SPAMASSASSIN.BAT <
"C:\ESA\NEW\msg060907173314_A5169.in.eml" >
"C:\ESA\NEW\msg060907173314_A5169.out.eml"
But when i run spamassassin -t < c:\esa\ham\message in question it gives me
a score of 10.6,
Now why is the previous score different from the manual score. They both are
running spamassassin from c:\perl\bin
The only difference is the logs show c:\perl\bin\spamassassin.bat
and i use c:\perl\bin\spamassassin -t
Is there a difference beteen the two....I don't think so
Any help would be appreciated
Thanks,
--
View this message in context: http://www.nabble.com/Spam-on-Exchange-tf2239711.html#a6210978
Sent from the SpamAssassin - Users forum at Nabble.com.
RE: Spam on Exchange
Posted by Floyd <fc...@gdts.ca>.
Thanks for the responses
I tried using the command
spamassassin.bat < c:\esa\ham\message
and it gave me the same score as spamassassasin -t < c:\esa\ham\message
and it also gave me the same score as spamassassin.bat -t <
c:\esa\ham\message
I am at a loss for words and actions...I do not know why it does not put it
as spam then
Bowie Bailey wrote:
>
> Duane Hill wrote:
>> On Friday, September 8, 2006 at 3:40:06 PM, Bowie confabulated:
>>
>> > Floyd wrote:
>> > > Hi,
>> > >
>> > > I am new to SpamAssassin, I have been testing it for about 3 to 4
>> > > weeks now and I have categorized about
>> > > 4000 ham and about 1000 spam, and I still get the same spam after
>> > > a few days. What I am trying to figure out is about sa-learn.
>> > > When I look at the logs and it classifies an incoming mail that is
>> > > spam it gives it a score of 2.8 out of 6 and therefore it
>> > > classifies as ham. Log file:
>> > >
>> > > PreFile: C:\ESA\NEW\msg060907173314_A5169.in.eml PostFile:
>> > > C:\ESA\NEW\msg060907173314_A5169.out.eml
>> > > 09-07-2006 05:33:14 : SpamAssassin:
>> > > C:\PERL\BIN\SPAMASSASSIN.BAT <
>> > > "C:\ESA\NEW\msg060907173314_A5169.in.eml" >
>> > > "C:\ESA\NEW\msg060907173314_A5169.out.eml"
>> > >
>> > >
>> > > But when i run spamassassin -t < c:\esa\ham\message in question
>> > > it gives me a score of 10.6,
>> > >
>> > > Now why is the previous score different from the manual score.
>> > > They both are running spamassassin from c:\perl\bin
>> > >
>> > > The only difference is the logs show c:\perl\bin\spamassassin.bat
>> > > and i use c:\perl\bin\spamassassin -t
>> > >
>> > > Is there a difference beteen the two....I don't think so
>>
>> > c:\perl\bin\spamassassin is a Perl program
>> > c:\perl\bin\spamassassin.bat is a DOS batch file
>>
>> > Take a look at the .bat file and see what options it uses when it
>> > calls spamassassin. Then do your tests with the same options and
>> > see what you get.
>>
>> By default, when something is ran on the command line without an
>> extension, Windows assumes to add the appropriate extension before
>> determining the proper application to use. Therefore, 'spamassassin'
>> on the command line ultimately runs 'spamassassin.bat'. The other
>> 'spamassassin' without the extension would never get ran unless you
>> supply the Perl interpreter with the command. I.e. 'perl spamassassin'
>> or 'c:\perl\bin\perl.exe c:\perl\bin\spamassassin'.
>>
>> The same would hold true for 'sa-learn' as would 'sa-update'.
>
> Ok, I'll give you that one. I tend to forget about that limitation
> since I mostly work with linux.
>
> Still, the symptom that you describe indicates that your mail system
> and your test are either running different spamassassin programs, or
> using different config files.
>
> Are you logged in as the same user your mail system uses to do the
> scan (probably not an issue with Windows, but still a valid question)?
>
> And just out of curiosity, try this command:
> c:\perl\bin\spamassassin.bat -t < c:\esa\ham\message
>
> It may or may not take the -t argument, but if not, you can look at
> the headers in the message returned.
>
> --
> Bowie
>
>
--
View this message in context: http://www.nabble.com/Spam-on-Exchange-tf2239711.html#a6212649
Sent from the SpamAssassin - Users forum at Nabble.com.