5 messages in net.sourceforge.lists.courier-maildrop[maildropl] Rule problems, not filter...
FromSent OnAttachments
Jim McConnellFeb 27, 2004 10:46 am 
Ajai KhattriFeb 28, 2004 1:10 pm 
Rich DuzenburyFeb 28, 2004 1:58 pm 
Jeremy KitchenFeb 28, 2004 5:22 pm 
Jeremy KitchenFeb 29, 2004 3:22 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Rule problems, not filtering properlyActions...
From:Jim McConnell (ji@mcconnell.net)
Date:Feb 27, 2004 10:46:44 am
List:net.sourceforge.lists.courier-maildrop

Hello..

I apologize for this being perhaps overly-verbose. I felt it appropriate to include as much detail as possible. Basically, my problem is that two rules I've setup aren't working *all* the time. I'm subscribed to a number of mailing lists, and sometimes the mail is filtered properly, and sometimes it isn't. Specifically, this applies to the qmail and spamassassin-users lists, but I'm not certain that is relevant. Also, the problem seems to center around specific users, which I think is relevant, but I'm uncertain where to begin debugging.

The following two rules are what work intermittently:

if ( /^To:.*qma@list.cr.yp.to.*/ || /^Cc:.*qma@list.cr.yp.to.*/ ) to "$DEFAULT/.Lists.qmail"

if ( /^To:.*spam@incubator.apache.org.*/ || \ /^Cc:.*spam@incubator.apache.org.*/ ) to "$DEFAULT/.Lists.SpamAssassin"

I'm running the following:

maildrop 1.6.3 Copyright 1998-2003 Double Precision, Inc. GDBM extensions enabled. This program is distributed under the terms of the GNU General Public License. See COPYING for additional information.

This is called from a .qmail file, as follows:

| ~/usr/bin/spamassassin | preline maildrop ~/.mailfilters/default

The contents of ~/.mailfilters/default is:

VERBOSE=0 DEFAULT="${HOME}/Maildir" FILTERS="${HOME}/.mailfilters" BOUNCE="| bouncesaying 'Bad destination mailbox address (#5.1.1)' true"

logfile "${FILTERS}/log"

if ( /^X-Spam-Status: Yes.*/ ) to "$DEFAULT/.Spam"

if ( /^From:.*Luc@EZsweeps.com.*/ ) { log "something bounced!" $BOUNCE }

gdbmopen("$FILTERS/senders.db") foreach /^Sender: .*$/ { foreach (getaddr($MATCH)) =~ /.+/ { destbox = gdbmfetch($MATCH) to "${DEFAULT}/${destbox}" } } gdbmclose

if ( /^From:.*red@info.redhat.com.*/ ) to "$DEFAULT/.Lists.RedHat"

if ( /^To:.*qma@list.cr.yp.to.*/ || /^Cc:.*qma@list.cr.yp.to.*/ ) to "$DEFAULT/.Lists.qmail"

if ( /^To:.*spam@incubator.apache.org.*/ || /^Cc:.*spam@incubator.apache.org.*/ ) to "$DEFAULT/.Lists.SpamAssassin"

if ( /^From:.*@.*sun.com.*/ ) to "$DEFAULT/.Lists.Sun"

if ( /^From:.*cert@cert.org.*/ ) to "$DEFAULT/.Lists.CERT"

if ( /^From:.*ro@chumpy.pigish.com.*/ ) to "$DEFAULT/.Work.root"

if ( /^From:.*/ && lookup($MATCH,"$FILTERS/personal") ) to "$DEFAULT/.Personal"

if ( /^From:.*/ && lookup($MATCH,"$FILTERS/friends") ) to "$DEFAULT/.Friends"

if ( /^From:.*/ && lookup($MATCH,"$FILTERS/family") ) to "$DEFAULT/.Family"

Finally, here are the headers from a message that is NOT being filtered correctly:

Return-Path: <spamassassin-users-return-2279-jim=mcco@incubator.apache.org> Delivered-To: ji@clevs.com Received: (qmail 30622 invoked by uid 519); 27 Feb 2004 17:42:36 -0000 Received: from spamassassin-users-return-2279-jim=mcco@incubator.apache.org by chumpy.pigish.com by uid 513 with qmail-scanner-1.20 (f-prot: 4.3.2/3.14.7. Clear:RC:0(209.228.32.87):. Processed in 0.465993 secs); 27 Feb 2004 17:42:36 -0000 X-Qmail-Scanner-Mail-From: spamassassin-users-return-2279-jim=mcco@incubator.apache.org via chumpy.pigish.com X-Qmail-Scanner: 1.20 (Clear:RC:0(209.228.32.87):. Processed in 0.465993 secs) Received: from h027.c000.snv.cp.net (HELO c000.snv.cp.net) (209.228.32.87) by chumpy.pigish.com with SMTP; 27 Feb 2004 17:42:35 -0000 Received: (cpmta 29822 invoked from network); 27 Feb 2004 09:42:35 -0800 Delivered-To: mcco@mcconnell.net Received: (cpmta 29809 invoked from network); 27 Feb 2004 09:42:34 -0800 Received: from 208.185.179.12 (HELO mail.apache.org) by smtp.c000.snv.cp.net (209.228.32.87) with SMTP; 27 Feb 2004 09:42:34 -0800 X-Received: 27 Feb 2004 17:42:34 GMT Received: (qmail 93580 invoked by uid 500); 27 Feb 2004 17:42:26 -0000 Mailing-List: contact spam@incubator.apache.org; run by ezmlm Precedence: bulk list-help: <mailto:spam@incubator.apache.org> list-unsubscribe: <mailto:spam@incubator.apache.org> list-post: <mailto:spam@incubator.apache.org> List-Id: "SpamAssassin Users" <use@spamassassin.apache.org> Delivered-To: mailing list spam@incubator.apache.org Received: (qmail 93566 invoked from network); 27 Feb 2004 17:42:26 -0000 Received: from unknown (HELO amgod.boxhost.net) (195.218.96.101) by daedalus.apache.org with SMTP; 27 Feb 2004 17:42:26 -0000 Received: from radish.jmason.org (localhost [127.0.0.1]) by amgod.boxhost.net (Postfix) with ESMTP id 9996931008B; Fri, 27 Feb 2004 17:42:27 +0000 (GMT) Received: by radish.jmason.org (Postfix, from userid 1000) id 7BF53590026; Fri, 27 Feb 2004 09:42:21 -0800 (PST) Received: from jmason.org (localhost [127.0.0.1]) by radish.jmason.org (Postfix) with ESMTP id 79A8857C070; Fri, 27 Feb 2004 09:42:21 -0800 (PST) To: Jerrin Kallukalam <jer@guardiandigital.com> Cc: Eugene Morozov <kaed@online.ru>, spam@incubator.apache.org Subject: Re: CRM114 plugin In-Reply-To: <403F@guardiandigital.com> From: jm@jmason.org (Justin Mason) X-Gpg-Key-Fingerprint: 0A48 2D8B 0B52 A87D 0E8A 6ADD 4137 1B50 6E58 EF0A X-Habeas-Swe-1: winter into spring X-Habeas-Swe-2: brightly anticipated X-Habeas-Swe-3: like Habeas SWE (tm) X-Habeas-Swe-4: Copyright 2002 Habeas (tm) X-Habeas-Swe-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-Swe-6: email in exchange for a license for this Habeas X-Habeas-Swe-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-Swe-8: Message (HCM) and not spam. Please report use of this X-Habeas-Swe-9: mark in spam to <http://www.habeas.com/report/>. Date: Fri, 27 Feb 2004 09:42:20 -0800 Sender: jm@jmason.org Message-Id: <2004@radish.jmason.org> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on chumpy.pigish.com X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=4.0 tests=BAYES_00 autolearn=ham version=2.63

-----BEGIN PGP SIGNED MESSAGE-----

I am not sure if all the messages that are affected are PGP signed. I'll have to wait for more mail to arrive to be certain. In any case, it seems the following rule SHOULD match the above headers, but it didn't:

if ( /^To:.*spam@incubator.apache.org.*/ || /^Cc:.*spam@incubator.apache.org.*/ ) to "$DEFAULT/.Lists.SpamAssassin"

Where to begin?

Thanks in advance...

-Jim