Procmail rule problem

Procmail rule problem

am 30.08.2005 22:52:16 von Gordon Colyn

Help please!
I have created 2 procmail files with rules to remove spam for filtered
domains in my sendmail server; the first is for normal email the second for
ESMTP mail that I want to reduce/stop incoming spam on.

The result from my normal procmail file is as follows and the spam gets
appended to the necessary file no problem;
procmail: Match on "<204800"
procmail: Executing "/usr/bin/spamc"
procmail: Match on "^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*"
procmail: Locking "/home/spam/Mail/definately_spam.lock"
procmail: Assigning "LASTFOLDER=/home/spam/Mail/definately_spam"
procmail: Opening "/home/spam/Mail/definately_spam"
procmail: Acquiring kernel-lock
procmail: Unlocking "/home/spam/Mail/definately_spam.lock"
procmail: Notified comsat: "gordon@107810:/home/spam/Mail/definately_spam"
From gordon@domain.com Tue Aug 30 22:33:22 2005
Subject: [SPAM] test 5
Folder: /home/spam/Mail/definately_spam
5266

On my 2nd rule however it picks up similar info but the email just
dissapears;
procmail: Match on "<204800"
procmail: Executing "/usr/bin/spamc"
procmail: [19337] Tue Aug 30 22:33:41 2005
procmail: Match on "^X-Spam-Status: Yes"
procmail: Assigning "LASTFOLDER=/home/spam/Mail/spam"
procmail: Opening "/home/spam/Mail/spam"
procmail: Acquiring kernel-lock
Subject: [SPAM] test 6
Folder: /home/spam/Mail/spam
5164

The main difference that stands out is that there is no 'procmail: Notified
comsat:' . How do I resolve this?

Here is an example of the rule;

VERBOSE=yes
LOGABSTRACT=all
LOGFILE=/var/log/messages
:0fw
* <204800
| /usr/bin/spamc

###may be spam
:0
* ^X-Spam-Status: Yes
/home/spam/Mail/spam

#filtered domain sendmail hack
:0 w
! -oi -f "$@"
###end

I also tried adding the following at the top of the file;
SENDER = "<$1>" # fix for empty sender addresses
SHIFT = 1 # remove it from $@

and right at the bottom;
:0 w
! -oi -f "$SENDER" "$@"

Still no joy........

Thanks

Gordon