On Thursday, Jul 10th 2008 at 23:22 -0000, quoth Matt Kettler:

=>Actually it is functionally correct as is written. It doesn't matter what the
=>added header is name, unless you wish to be pedantic about semantics.
=>
=>The rules check X-Relay-Countries, which is an internal pseudo-header created
=>by the RelayCountry plugin. That header isn't added to the message, but the
=>rules will still match on it. They will work even if your add_header doesn't
=>exist at all.
=>
=>The only purpose of the add_header is to create a human readable copy, but SA
=>doesn't use it internally.
=>
=>Hmm, any chance you neglected to restart spamd after editing the configs?
=>
=>Do you get the same lack of modifications piping messages through spamc on the
=>command line?
=>

On Thursday, Jul 10th 2008 at 23:48 -0000, quoth David B Funk:

=>On Thu, 10 Jul 2008, Steven W. Orr wrote:
=>
=>The issue here is the way that sendmail milters work.
=>In the sendmail "system" milters work more as a 'T' not a traditional
=>unix "pipe". That is, the milter daemon receives a -copy- of the
=>input message, it then needs to activly send specific commands back
=>to the sendmail process telling sendmail what (if any) changes should
=>be made to the original.
=>
=>More detail; spamass-milter receives a copy of the input message, it
=>then sends that on to spamd using the spamc-2-spamd protoocl.
=>spamass-milter receives the results of the scoring back from spamd,
=>spamass-milter evaluates the spamd results and then sends specific
=>commands back to the sendmail process telling sendmail to make a few
=>explicit changes to the original message (such as adding the
=>'X-Spam-Status' and 'X-Spam-Report' headers).
=>
=>No changes will be added to the original messsage -except- for those
=>that spamass-milter knows to add. So if spamd adds headers that
=>spamass-milter doesn't know about, spamass-milter will not tell sendmail
=>to add them and thus they won't show up in the final results.
=>
=>So to get your X-Spam-Relay-Countries header, you'll have to modify
=>spamass-milter to know about it and tell sendmail to add it.

Thanks to David and Matt. Understanding what I'm working with is key to 
this. I solved my problem by simply 

add_header ham Status country=_RELAYCOUNTRY_

Now the countries involved are visible in the few false negatives that 
come through.

-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net

Reply via email to