public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: David Rioja <rams@englobe-tec.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] procmail+spamassassin user filters
Date: Tue, 14 Oct 2008 17:45:02 +0200	[thread overview]
Message-ID: <48F4BE7E.9060909@englobe-tec.com> (raw)

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!
 



             reply	other threads:[~2008-10-14 15:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-14 15:45 David Rioja [this message]
2008-10-14 17:29 ` [gentoo-user] procmail+spamassassin user filters Willie Wong
2008-10-15  7:08   ` David Rioja
2008-10-15 15:24     ` Willie Wong
2008-10-15 23:20       ` David Wei
2008-10-16 11:51         ` David Rioja

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48F4BE7E.9060909@englobe-tec.com \
    --to=rams@englobe-tec.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox