On Fri, 20 Nov 2009, Martin Gregorie wrote:
> On Fri, 2009-11-20 at 14:56 -0800, Mark Hedges wrote: > > > > Trying your suggestion, I found something rather odd. The > > test is not triggered (or does not run) when received by > > sendmail and scanned via ~/procmailrc. But the test DOES > > run, and scores correctly, when I run through the command > > line as you suggested. Details follow. Actually it doesn't > > matter if I remove the X-* headers, the original message > > produces the same results. Thanks for your help. --mark-- > > > Where did you put the new test? To be globally accessible, i.e. used by > SA regardless of which user runs it, the test needs to be in the default > location, usually /etc/mail/spamassassin, in a *.cf file. As I've already confirmed by including the debugging log attachment in my first message, the test rule is loaded, it expects to be looking at spammers.rbl.dmz. (I have a somewhat complex setup due to multiple scanners with different preferences and mostly shared options.) Trust me, this is a weird problem or I wouldn't be asking. From my example, the local.cf in the siteconfigpath includes /etc/mail/spamassassin/local.cf, which then includes the cf file where the test is defined, which I already included in a previous message. And, it doesn't explain why the rule is correctly loaded, but not run when scanned, and is run when I put the message through the command line. Mark