internetcreations
asked on
Procmail recipe problem
I have a recipe that is supposed to delete any messages marked as spam by spamassassin. This should be a simple recipe, but I can't get it to work. Below is the recipe, the headers from the message, and the log results. Any suggestions?
Here is the recipe:
VERBOSE=on
LOGFILE=/home/vpopmail/dom ains/ic-20 00.com/chr is.log
:0
* ^X-Spam-Status: Yes
/dev/null
:0
* ^.*
! chrisf@ic-2000.com
-----------------------
Here are the headers from my test spam.
Received: from sbs2003.ic-2000.local ([192.168.0.200]) by SBS2003.ic-2000.local with Microsoft SMTPSVC(6.0.3790.1830);
Thu, 15 Jun 2006 12:36:53 -0400
Return-Path: <test@tet.com>
Delivered-To: chrisf@ic-2000.com
Return-Path: <test@tet.com>
Delivered-To: ic-2000.com-chrisf@ic-2000 .com
Received: (qmail 14842 invoked by uid 107); 15 Jun 2006 16:31:47 -0000
Date: 15 Jun 2006 16:31:47 -0000
Message-ID: <20060615163147.14841.qmai l@mail.ic- 2000.com>
From: vpopmail@mail.ic-2000.com
Cc: recipient list not shown: ;
Delivered-To: ic-2000.com-chris@ic-2000. com
Received: (qmail 14772 invoked by uid 0); 15 Jun 2006 16:31:27 -0000
Received: from unknown (HELO hi) (127.0.0.1)
by mail.ic-2000.com with SMTP; 15 Jun 2006 16:31:27 -0000
Subject: [SPAM][6.0]
X-Spam-Prev-Subject: (nonexistent)
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.ic-2000.com
X-Spam-Level: *****
X-Spam-Status: Yes, score=6.0 required=4.0 tests=ALL_TRUSTED,BEST_POR N,
DRUGS_ANXIETY,DRUGS_ANXIET Y_EREC,DRU GS_ERECTIL E,DRUG_ED_ CAPS,
FREE_PORN,MISSING_SUBJECT, MSGID_FROM _MTA_HEADE R,NO_REAL_ NAME
autolearn=disabled version=3.0.4
X-Spam-Report: [SNIP]
Here are the log results:
procmail: No match on "^X-Spam-Status: Yes"
procmail: Match on "^.*"
procmail: Executing "/usr/sbin/sendmail,-oi,ch risf@ic-20 00.com"
procmail: Assigning "LASTFOLDER=/usr/sbin/send mail -oi chrisf@ic-2000.com"
From test@tet.com Thu Jun 15 16:31:47 2006
Folder: /usr/sbin/sendmail -oi chrisf@ic-2000.com 342
Here is the recipe:
VERBOSE=on
LOGFILE=/home/vpopmail/dom
:0
* ^X-Spam-Status: Yes
/dev/null
:0
* ^.*
! chrisf@ic-2000.com
-----------------------
Here are the headers from my test spam.
Received: from sbs2003.ic-2000.local ([192.168.0.200]) by SBS2003.ic-2000.local with Microsoft SMTPSVC(6.0.3790.1830);
Thu, 15 Jun 2006 12:36:53 -0400
Return-Path: <test@tet.com>
Delivered-To: chrisf@ic-2000.com
Return-Path: <test@tet.com>
Delivered-To: ic-2000.com-chrisf@ic-2000
Received: (qmail 14842 invoked by uid 107); 15 Jun 2006 16:31:47 -0000
Date: 15 Jun 2006 16:31:47 -0000
Message-ID: <20060615163147.14841.qmai
From: vpopmail@mail.ic-2000.com
Cc: recipient list not shown: ;
Delivered-To: ic-2000.com-chris@ic-2000.
Received: (qmail 14772 invoked by uid 0); 15 Jun 2006 16:31:27 -0000
Received: from unknown (HELO hi) (127.0.0.1)
by mail.ic-2000.com with SMTP; 15 Jun 2006 16:31:27 -0000
Subject: [SPAM][6.0]
X-Spam-Prev-Subject: (nonexistent)
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.ic-2000.com
X-Spam-Level: *****
X-Spam-Status: Yes, score=6.0 required=4.0 tests=ALL_TRUSTED,BEST_POR
DRUGS_ANXIETY,DRUGS_ANXIET
FREE_PORN,MISSING_SUBJECT,
autolearn=disabled version=3.0.4
X-Spam-Report: [SNIP]
Here are the log results:
procmail: No match on "^X-Spam-Status: Yes"
procmail: Match on "^.*"
procmail: Executing "/usr/sbin/sendmail,-oi,ch
procmail: Assigning "LASTFOLDER=/usr/sbin/send
From test@tet.com Thu Jun 15 16:31:47 2006
Folder: /usr/sbin/sendmail -oi chrisf@ic-2000.com 342
Are You sure that procmail gets the message already filtered with SA?
ASKER
Maybe not... does the rule set look like it should filter this message? I think it should.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.