On Sun, Apr 23, 2006 at 11:23:49AM +0200, mouss wrote:
> Mike Galvez wrote:
> >Hello,
> >
> >I have searched the archives, but I can't find an answer to why I
> >can't add headers such as "X-Spam-Score".
> >
> >I'm using SpamAssassin 3.1.1, Sendmail and spamass-milter-0.3.0_1
> >
> >My local.cf has:
> >
> >add_header all Score _SCORE_
> >version=_VERSION_
> >add_header spam Flag _YESNOCAPS_
> >report_safe 2
> >lock_method flock
> >required_score 5.5
> >use_bayes 1
> >bayes_auto_learn 1
> >bayes_ignore_header X-Bogosity
> >bayes_ignore_header X-Spam-Flag
> >bayes_ignore_header X-Spam-Status
> >
> >
> >In the headers, I get:
> >
> >X-Spam-Level: *********
> >X-Spam-Status: Yes, score=9.2 required=5.5 tests=AWL=-0.591,
> >        DRUGS_ERECTILE=0.1,DRUGS_ERECTILE_OBFU=2.046,GAPPY_SUBJECT=1.625,
> >        MANY_EXCLAMATIONS=0,PLING_PLING=0.461,SUBJECT_DRUG_GAP_C=2.88,
> >        SUBJECT_FUZZY_VPILL=1.644,UPPERCASE_75_100=1.04 autolearn=no 
> >        version=3.1.1
> >X-Spam-Flag: YES
> >X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on
> >
> >But no X-Spam-Score
> >
> >  
> Did you try it manually (spamassassin -t < message.eml)? if it works 
> manually, then you probably need to restart something for the change to 
> take effect.

Thanks for the reply and suggestion. 

Using cat spam1.txt | spamc -u username, I see that the "X-Spam-Score" is 
written:


From: "Creativity Courses <[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [SPAM-13.6]- $100 off Early Registration Promotion expires soon 
Date: Tue, 10 Jan 2006 12:46:57 +0000 (GMT)
Message-Id: <[EMAIL PROTECTED]>
X-Spam-Score: 13.6
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on 

X-Spam-Level: *************
X-Spam-score: 13.6
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_444BA993.2FBD218F"


Sending from another domain I see that Milter is not adding the "X-Spam-Score" 
header

sm-mta[42788]: k3NHW0wP042788: Milter add: header: X-Spam-Flag: YES
sm-mta[42788]: k3NHW0wP042788: Milter add: header: X-Spam-Level: **********
sm-mta[42788]: k3NHW0wP042788: Milter add: header: X-Spam-Checker-Version: 
SpamAssassin 3.1.1 (2006-03-10) on
sm-mta[42788]: k3NHW0wP042788: Milter change: header Subject: from Buy Them 
Now! to [SPAM-10.5]- Buy Them Now!
sm-mta[42788]: k3NHW0wP042788: Milter add: header: Content-Type: 
multipart/mixed; boundary="----------=_444BBA16.97D41A46"
sm-mta[42788]: k3NHW0wP042788: Milter message: body replaced


> 
> >I am pulling in user_pref rules from an sql database. Using debug, 
> >I know it's checking the sql table and parsing rules. The only pref
> >in the sql table that affects the header is:
> >rewrite_header Subject [SPAM-_HITS_]- 
> >
> >I appreciate any help you can provide.
> >
> >Thanks
> >
> >  
> 

-- 
Michael Galvez

Reply via email to