I have the following test rule in my local.cf:
header LOCAL_MISSING_MSGID      MESSAGEID =~ /^UNSET$/ [if-unset: UNSET]
describe LOCAL_MISSING_MSGID    Missing Message-Id header
score LOCAL_MISSING_MSGID       0.010

header    __HAVE_MSGID    exists:MESSAGEID
meta    MISSING_MSGID    !__HAVE_MSGID

or

header    __HAVE_MSGID    MESSAGEID    =~    /./
meta    MISSING_MSGID    !__HAVE_MSGID

The first test will test to see if the item exists. The second will test that it both exists and is not blank.


But it's not triggering. Other rules in local.cf are working, just this one isn't. To make things more complicated, my MTA inserts a Message-Id header when it doesn't see one, so by the time I get the source of the mail and feed it to spamassassin, it passes.

Is there a way to dump the input message as it enters spamassassin? I have spamd running as a daemon, using version 3.1.1. The log shows:

spamassassin -t <message


       Loren

Reply via email to