Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54543 - qmail-scanner ignores spamassassins config or modifications to spam email
Summary: qmail-scanner ignores spamassassins config or modifications to spam email
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-20 11:38 UTC by William L. Thomson Jr. (RETIRED)
Modified: 2004-06-20 12:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William L. Thomson Jr. (RETIRED) gentoo-dev 2004-06-20 11:38:24 UTC
No matter how I configure spam assasin all I ever get in the email is X-Spam-Status:  Yes, hits=7.3 required=5.0

Reproducible: Always
Steps to Reproduce:
Send spam email through my qmail smtp server. Spam assassin will scan and identify the email as spam. It will attempt to modify the email, but qmail keeps if from doing it's job. I think.
Actual Results:  
Got the spam email with only X-Spam-Status no report, headers, rewritten subject
etc.

Expected Results:  
Done what ever my Spamassassin config told spamassassin what to do with the
email. Show a report, rewrite subject, attach original message, etc.

I think the problem lies in qmail-scanner-queue.pl somewhere around

$
  while (<SA>) {
    if ($spamc_options =~ /\-c/) {
      ($sa_score,$sa_max)=split(/\//,$_,2);
      $sa_max=~s/\n//g;
    }
    #X-Spam-Status: No, hits=2.8 required=5.0
    if (/^X-Spam-Status: (Yes|No), hits=(.*) required=(.*)/) {
      $sa_status=1 if ($1 eq "Yes");
      $sa_score=$2;$sa_max=$3;
    }
    print SOUT;
  }

In the spamassassin subroutine/function.
Comment 1 William L. Thomson Jr. (RETIRED) gentoo-dev 2004-06-20 12:57:20 UTC
First off I am closing the bug since IT IS NOT A BUG AT ALL

All I had to do was get rid of the -c option to spamc in 
qmail-scanner-queue.pl.

I guess by default during install that flag is set to speed up
spamassassin. However it kills any sort of configuration with regard to
modification of the email.

So to fix edit qmail-scanner-queue.pl

from
my $spamc_options=' -c -f';


to

my $spamc_options=' -f';


Now I can configure Spamassassin how ever I like, and it works. Happy
camper.

Thanks goes to 
Jason Staudenmayer <jasons at NJAQUARIUM dot ORG>

Who quickly responded to my post on qmail-scanner-general mailing list.