From owner-freebsd-questions@FreeBSD.ORG Wed Nov 17 19:59:20 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BED1E106567A for ; Wed, 17 Nov 2010 19:59:20 +0000 (UTC) (envelope-from andy@neu.net) Received: from mail.neu.net (neu.net [204.109.60.194]) by mx1.freebsd.org (Postfix) with ESMTP id 9434F8FC19 for ; Wed, 17 Nov 2010 19:59:20 +0000 (UTC) Received: from neu.net (neu.net [204.109.60.194]) by mail.neu.net (8.14.4/8.14.4) with ESMTP id oAHJxBPT016016 for ; Wed, 17 Nov 2010 19:59:11 GMT (envelope-from andy@neu.net) Date: Wed, 17 Nov 2010 19:59:10 +0000 (UTC) From: AN To: freebsd-questions@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Virus-Scanned: clamav-milter 0.96.4 at neu.net X-Virus-Status: Clean X-Spam-Status: No, score=2.1 required=5.0 tests=TO_NO_BRKTS_DIRECT, T_RP_MATCHES_RCVD autolearn=no version=3.3.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.neu.net Subject: procmail config help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Nov 2010 19:59:20 -0000 I am trying to configure sendmail with spamassassin to move mail marked as spam to a spam folder in the users home directory. I have the following installed: p5-Mail-SpamAssassin-3.3.1 A highly efficient mail filter for identifying spam razor-agents-2.84 A distributed, collaborative, spam detection and filtering spamass-milter-0.3.1_10 Sendmail Milter (mail filter) plugin for SpamAssassin p5-Mail-DKIM-0.38 Perl5 module to process and/or create DKIM email procmail-3.22_6 A local mail delivery agent I would like to setup this configuration for each individual instead of system wide. I have the following procmail file in the user home directory: #Uncomment the following lines and use tail -f procmail.log to debug LOGFILE=/home/andy/procmail.log VERBOSE=yes LOGABSTRACT=all # Feed redirected spam to sa-learn, and also store a copy in a folder called spam. # This folder of false negatives could be useful if we needed to rebuild our Bayes # database in the future. :0 * ^To:.*spam@example.com { * < 256000 :0c: spamassassin.spamlock | sa-learn --spam :0: spamassassin.filelock spam } # Send all other mail through SpamAssassin :0fw: spamassassin.lock * < 256000 | spamassassin :0: spamassassin.filelock2 * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\* #/dev/null /home/andy/Mail/spam Spam messages are still being delivered to the user inbox. I tried to setup logging with the following: LOGFILE=/home/andy/procmail.log VERBOSE=yes LOGABSTRACT=all When I tried to send a test spam message nothing is written to the log file. How can I get logging to work to try to debug the problem? If anyone has a working procmail config file to share that would be appreciated. Any help debugging this would be greatly appreciated. TIA