From owner-freebsd-questions@FreeBSD.ORG Fri Oct 12 19:26:50 2007 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 A351B16A418 for ; Fri, 12 Oct 2007 19:26:50 +0000 (UTC) (envelope-from lisa@jellico.com) Received: from mail.jellico.com (mail.jellico.com [207.191.185.6]) by mx1.freebsd.org (Postfix) with ESMTP id 474EA13C447 for ; Fri, 12 Oct 2007 19:26:50 +0000 (UTC) (envelope-from lisa@jellico.com) Received: from lisac (lisa.jellico.com [207.191.185.213]) (authenticated bits=0) by mail.jellico.com (8.13.1/8.13.1) with ESMTP id l9CJYa3O081219 for ; Fri, 12 Oct 2007 15:34:36 -0400 (EDT) (envelope-from lisa@jellico.com) Message-ID: <00e701c80d05$d296e0c0$d5b9bfcf@lisac> From: "Lisa Casey" To: Date: Fri, 12 Oct 2007 15:26:40 -0400 Organization: Netlink 2000, Inc. MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Scanned-By: MIMEDefang 2.61 on 207.191.185.6 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: OT: Procmail not recognising /etc/procmailrc? 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: Fri, 12 Oct 2007 19:26:50 -0000 Hi, This is kind of off topic for this list, but I know a lot of FreeBSD = Admins use Procmail, so hopefully someone here can help. I'm running procmail 3.22 on FreeBSD. I verified that procmail does work = on my system by following the "testing your procmail installation" in = the ii Procmail Quick Start. Procmail worked flawlessly in processing a = .procmailrc file in my home directory. Problem is, I can't seem to get = it to do what is in my /etc/procmailrc file. Either procmail doesn't = recognise the /etc/procmailrc file, or my syntax in that file is wrong. I'm using spamassassin, and I want to send email that gets a very high = spam score to /dev/null. In the headers of these high scoring emails, = there's a line like this: X-Spam-Score: 25.762 (*************************) My /etc/procmail.rc file looks like this: mail# more /etc/procmailrc # Directory for storing procmail configuration and log files # You can name this environment variable anything you like # (for example PROCMAILDIR) or, if you prefer, don't set it # (but then don't refer to it!) # PMDIR=3D/etc/Procmail # LOGFILE should be specified ASAP so everything below it is logged # Put ## before LOGFILE if you want no logging (not recommended) LOGFILE=3D/var/log/pmlog # To insert a blank line between each message's log entry,=20 # uncomment next two lines (this is helpful for debugging) LOG=3D" " LOGABSTRACT=3Dall =20 # Set to yes when debugging; VERBOSE default is no VERBOSE=3Dyes # Replace $HOME/Msgs with your mailbox directory # Mutt and elm use $HOME/Mail # Pine uses $HOME/mail # Netscape Messenger uses $HOME/nsmail # Some NNTP clients, such as slrn & nn, use $HOME/News # Mailboxes in maildir format are often put in $HOME/Maildir # # IMPORTANT: Upon reading an instruction that contains MAILDIR=3D, # Procmail does a chdir to $MAILDIR and # relative paths are relative to $MAILDIR # MAILDIR=3D$HOME/mail # Make sure this directory exists! =20 =20 #### End Variables section; Begin Processing section #### =20 :0: * ^X-Spam-Score: [2-9][0-9]=20 /dev/null =20 :0: * ^spam,[2-9][0-9] /dev/null =20 =20 # INCLUDERC=3D$PMDIR/rc.testing # INCLUDERC=3D/etc/rc.testing INCLUDERC=3D/etc/rc.renattach When I receive an email with a spam score above 20, it is delivered, not = sent to /dev/null. Also, procmail is not logging at all, even though = with this procmailrc it ought to be logging verbosely in /var/log/pmlog By the way, the permissions and ownership of /etc/procmailrc is = -rw-r--r-- 1 root wheel and of /var/log/pmlog: -rw-rw-rw- 1 root wheel How can I figure out why this isn't working? Lisa Casey