Solved

Procmail recipe problem

Posted on 2006-06-15
3
415 Views
Last Modified: 2011-10-03
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/domains/ic-2000.com/chris.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.qmail@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_PORN,
      DRUGS_ANXIETY,DRUGS_ANXIETY_EREC,DRUGS_ERECTILE,DRUG_ED_CAPS,
      FREE_PORN,MISSING_SUBJECT,MSGID_FROM_MTA_HEADER,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,chrisf@ic-2000.com"
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -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
0
Comment
Question by:internetcreations
  • 2
3 Comments
 
LVL 43

Expert Comment

by:ravenpl
ID: 16913867
Are You sure that procmail gets the message already filtered with SA?
0
 
LVL 1

Author Comment

by:internetcreations
ID: 16913967
Maybe not... does the rule set look like it should filter this message?  I think it should.
0
 
LVL 43

Accepted Solution

by:
ravenpl earned 250 total points
ID: 16914389
Yes it should filter this message out. Unless it's checked with SA later (on the another account)
Usually such filters looks like following (example from mine .procmailrc)

:0fw
| spamc

:0
* ^X-Spam-Flag: YES
$HOME/Mail/spam
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Mint 18 31 77
Java / Linux and Regular Expressions 11 71
Replace Ubuntu Desktop with Ubuntu Server 7 91
route 2 traffic streams on single NIC 6 36
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now