From owner-freebsd-questions@FreeBSD.ORG Wed Oct 15 13:49:41 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94E9D16A4B3 for ; Wed, 15 Oct 2003 13:49:41 -0700 (PDT) Received: from blacklamb.mykitchentable.net (207-173-254-228.bras01.elk.ca.frontiernet.net [207.173.254.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id C750343F3F for ; Wed, 15 Oct 2003 13:49:40 -0700 (PDT) (envelope-from drew@mykitchentable.net) Received: from l035522 (unknown [165.107.42.110]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id D9A523BF3CC for ; Wed, 15 Oct 2003 13:49:39 -0700 (PDT) Message-ID: <015801c3935d$da591a60$6e2a6ba5@l035522> From: "Drew Tomlinson" To: "FreeBSD Questions" Date: Wed, 15 Oct 2003 13:49:39 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: OT: Procmail Recipe Help - Pleeeeease..... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 20:49:41 -0000 I'm trying to use procmail to feed incoming mail to SpamAssassin and then forward the email to another address for one of my accounts. Because I use Postfix with Maildir, my /usr/local/etc/procmailrc file contains: DEFAULT="$HOME/Maildir/" so that messages that don't match any rule get delivered to the normal "inbox". But for one person, I want to have all his mail scanned by SpamAssassin and then forwarded to a non-local email address. Here is his ~/.procmailrc file: # Forward all mail to SpamAssassin :0 fw | /usr/local/bin/spamc :0 fw ! user@otherdomain.com The forwarding works but then procmail goes on to deliver a blank email in $HOME/Maildir/new. blacklamb# ll Maildir/new total 0 -rw------- 1 user user 0 Oct 15 11:30 1066242632.35780_0.blacklamb.mykitchentable.net -rw------- 1 user user 0 Oct 15 11:33 1066242826.35812_0.blacklamb.mykitchentable.net I assume this is because of the "DEFAULT" setting in the site-wide procmailrc. However, it is my understanding that since all mail matches the second rule, mail processing should stop at that point and nothing should be delivered to "DEFAULT". What am I missing? Thanks, Drew