From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Kpm5D-0002NB-B1 for garchives@archives.gentoo.org; Tue, 14 Oct 2008 15:45:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F4DAE0124; Tue, 14 Oct 2008 15:45:12 +0000 (UTC) Received: from correo11.acens.net (correo11.acens.net [217.116.0.29]) by pigeon.gentoo.org (Postfix) with ESMTP id 1DE37E0124 for ; Tue, 14 Oct 2008 15:45:11 +0000 (UTC) Received: (qmail 9603 invoked from network); 14 Oct 2008 15:45:08 -0000 Received: from unknown (HELO [192.168.0.51]) (rams.englobe-tec.com@[79.153.77.176]) (envelope-sender ) by correo11.acens.net (qmail-ldap-1.03) with SMTP for ; 14 Oct 2008 15:45:08 -0000 Message-ID: <48F4BE7E.9060909@englobe-tec.com> Date: Tue, 14 Oct 2008 17:45:02 +0200 From: David Rioja User-Agent: Thunderbird 2.0.0.17 (X11/20080925) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] procmail+spamassassin user filters Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 9729d5b7-ead0-4d9c-9ec0-e037f44be355 X-Archives-Hash: cc6d1e730a9692cdbd4a28ffcebe350d Hello! my mail users want to define their own individual antispam rules. I've installed procmail in order to pipe messages through spamassassin but I can't get it working. This is what I've done: 1.- I created ~/.spamassassin/user_prefs with the following line (just for testing): add_header all hello_you _TESTS_ 2.- I created ~/.procmail with the following contents: SHELL=/bin/sh MAILDIR=$HOME/.maildir DEFAULT=$MAILDIR LOGFILE=$MAILDIR/procmail.log | spamassassin --prefs-file=$HOME/.spamassassin/user_prefs # actually I had a separate rc file named spamassassin.rc with further stuff # but I've changed it for clearness 3.- I send myself a message: procmail.log echoes its processing but my X-Spam-hello_you header is missing. However, when I pipe an stored message by typing on the shell: spamassassin < message_file It returns me the message rewritten with my test header. Piping to procmail with: procmail < message_file Creates another message file but without my text header. Can anyone guess what am I doing wrong? Thanks!