On Thu, 10 Jul 2008, Steven W. Orr wrote: > I dug deeper into the problem of why I was not getting the > X-Spam-Relay-Countries header added to my mail, and I think I understand > things a bit better. (The goal is to see what countries the few false > negatives are going through.) > > First of all, the correct add_header command seems to not be: > add_header all Relay-Country _RELAYCOUNTRY_ > > Instead, it should be: > add_header all Relay-Countries _RELAYCOUNTRY_ > > I saw that the plugin was active by running spamassassin -D. > > Also, by running spamassassin manually with a known piece of spam, I > could see the X-Spam-Relay-Countries header being added but not when I ran > spamc through sendmail/spamass-milter. > > The problem was that the headers were not be passed through by (drum roll > please): spamass-milter even though I am *not* using the -M option. Also, > I am using spamass-milter to reject mail during reception (via -r 5) > > I'm not looking for spamass-milter support from here (unless someone knows > what to do), but I do like the way my system works and I'd like to > continue using a milter to reject the spam. Are other people using milters > with sendmail that don't suffer from this problem? > > TIA
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. -- Dave Funk University of Iowa <dbfunk (at) engineering.uiowa.edu> College of Engineering 319/335-5751 FAX: 319/384-0549 1256 Seamans Center Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527 #include <std_disclaimer.h> Better is not better, 'standard' is better. B{