On 8/18/2016 8:34 PM, jdow wrote:
On 2016-08-18 17:11, RW wrote:
On Thu, 18 Aug 2016 18:14:47 -0500
Jerry Malcolm wrote:


I'm still trying to see why I'm not getting the report back.  I've
gone all the way back to the source code that does the streaming of
the spamd invocation on port 783.   I can't seem to find the
documentation anywhere on the format of the data I should read back
on port 783 from spamd.   It looks like I'm getting two text lines
back on the read: SPAMD/1.1 0 EX_OK
Spam: True ; 7.7 / 5.0


This a waste of time. Just try sending a file to spamd  with spamc and
look at the output. If the header is missing them SA is probably not
picking up the config. If it is then the problem is with James.

My guess is that James adds the x-spam-status header itself.


And I suppose the following line in local.cf is insufficient for James' needs?

rewrite_header Subject     *****SPAM***** _SCORE(00)_ **

Then all he need to do is look for the string "*****SPAM***** _SCORE(" in the title of the message and sort it into the spam bucket.

{o.o}


This discussion has gotten way off track from the original question. I asked about too much spam not getting scored above the threshold in SA. Someone asked for the REPORT header. But I was not getting the report header inserted in my emails. So I went to the JAMES code and realized they were using the CHECK command in spamd. The SA docs say that CHECK returns the modified mail body. But I ran -c on spamc, and it does NOT return the mail body, just a summary line. So JAMES is working just as designed. It simply adds it's own spam headers to its original message based on the summary statement it gets back from spamd. Any headers that are generated inside spamd are not returned by spamd with CHECK. So basically, it's now understood why I can't get a report headers at all. I could modify james to get the modified msg returned with the headers and replace the original msg with the updated msg. But I don't see that as necessary. In other words, this is NOT a james issue. I can get report headers now if I really need to by saving a message to a file and running spamc. Fixing my dns to use recursive improved the scores of obvious spam. So the problem is not as bad as it was. I still need to write some code to integrate my uncaught-spam folders in the james repository with spamd LEARN command, and I think everything will be resolved.

Reply via email to