On Wed, 2009-07-01 at 01:14 +0200, Karsten Bräckelmann wrote:
> On Tue, 2009-06-30 at 21:57 +0100, John Horne wrote:

> > However, as far as I can tell, the X-Spam-Report header gets added to
> > ham mail as well as spam. For example:
> > 
> >    X-spam-report: Score=-6.9 
> >         tests=BAYES_00,DCC_CHECK,RCVD_IN_DNSWL_HI autolearn=ham
> 
> That is not a standard SA header. Actually, there's quite a lot fishy
> about that.
> 
Sorry, lack of information and understanding from my part. SA is called
at SMTP time by the Exim MTA.

I have now found out that exim invokes a connection to spamd, and hence
gets the 'report' back regardless of whether the message is spam or not.
Exim then builds up what it calls:

   $spam_report
      A multiline text table, containing the full SpamAssassin report
      for the message.

I took the $spam_report variable contents to be the same as the
X-Spam-Report header from SA. It is not, it is built from the output
received from spamd.

(The header quoted above by me is deliberately built by us in the MTA,
and called X-Spam-Report by us. Either exim or my mail client is
lowercasing part of it.)



Thanks,

John.

-- 
---------------------------------------------------------------
John Horne, University of Plymouth, UK  Tel: +44 (0)1752 587287
E-mail: john.ho...@plymouth.ac.uk       Fax: +44 (0)1752 587001

Reply via email to