From owner-freebsd-questions Mon Feb 3 9:10:59 2003 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 98D1A37B401 for ; Mon, 3 Feb 2003 09:10:57 -0800 (PST) Received: from catflap.home.slightlystrange.org (pc1-cmbg1-4-cust43.cmbg.cable.ntl.com [62.253.133.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id B98F643F79 for ; Mon, 3 Feb 2003 09:10:46 -0800 (PST) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 18fk7E-000Lia-00 for freebsd-questions@freebsd.org; Mon, 03 Feb 2003 17:10:40 +0000 Date: Mon, 3 Feb 2003 17:10:40 +0000 From: Daniel Bye To: freebsd-questions@freebsd.org Subject: Re: Sendmail, Spam Assassin, and Procmail Message-ID: <20030203171040.GB81723@catflap.home.slightlystrange.org> Reply-To: dan@slightlystrange.org Mail-Followup-To: freebsd-questions@freebsd.org References: <044001c2cba5$526c0b10$0e0ea8c0@xerxes> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <044001c2cba5$526c0b10$0e0ea8c0@xerxes> User-Agent: Mutt/1.4i X-Scanner: exiscan *18fk7E-000Lia-00*huhTkf0zCiQ* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 03, 2003 at 11:57:16AM -0500, Justin P. Michel wrote: > Greetings, > > I can't seem to get the procmailrc correct. What I would like to do, is > have all mail that Spam Assassin tags as spam, to be put into a separate > account called 'bulkmail'. I've created this account, and made sure that > the mailbox 'bulkmail' exists in '/var/mail'. Spam Assassin is tagging the > e-mail properly, however, it's still being sent out to the clients. Below > is my 'procmailrc' file. If someone can suggest a better one that works, > please do! :) > > PROCMAILRC START > :0fw > | spamassassin -P > > :0: > * X-Spam-Flag: YES > | sendmail bulkmail > PROCMAILRC END Try this: :0 * ^X-Spam-Flag: YES ! bulkmail@yourhost Use "!" instead of "|" to pipe the message to a mailer. Let procmail figure out how to handle sending the mail. Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message