Gentoo Archives: gentoo-user

From: David Rioja <rams@×××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] procmail+spamassassin user filters
Date: Thu, 16 Oct 2008 11:51:43
Message-Id: 48F72AC5.6020100@englobe-tec.com
In Reply to: Re: [gentoo-user] procmail+spamassassin user filters by David Wei
1 Hello!
2
3 I had did both mistakes you said:
4
5 1.- My recipe file was named .procmail instead of .procmailrc
6 2.- My recipe file had permissions other than 700
7
8 Both from an outdated (or mistaken) howto (I've reported it to the author).
9
10 Now it's working. Note that the option
11
12 --prefs-file=$HOME/.spamassassin/user_prefs
13
14 is unnecesary as this is the default path to user_prefs.
15
16 Thanks a lot!
17
18 David Wei escribió:
19 > One more tip, the .procmailrc file should belong and only belong to the mail owner user(right 700),procmail refuse to run when the .procmailrc 's right is not properly set on my box.
20 >
21 > On Wed, 15 Oct 2008 11:24:34 -0400
22 > Willie Wong <wwong@×××××××××.EDU> wrote:
23 >
24 >
25 >> On Wed, Oct 15, 2008 at 09:08:49AM +0200, Penguin Lover David Rioja squawked:
26 >>
27 >>> Willie Wong escribi?:
28 >>>
29 >>>> On Tue, Oct 14, 2008 at 05:45:02PM +0200, Penguin Lover David Rioja
30 >>>> squawked:
31 >>>>
32 >>>>
33 >>>>> 2.- I created ~/.procmail with the following contents:
34 >>>>>
35 >>>>> SHELL=/bin/sh
36 >>>>> MAILDIR=$HOME/.maildir
37 >>>>> DEFAULT=$MAILDIR
38 >>>>> LOGFILE=$MAILDIR/procmail.log
39 >>>>>
40 >>>>> | spamassassin --prefs-file=$HOME/.spamassassin/user_prefs
41 >>>>>
42 >>>>>
43 >>>>>
44 >>>> Is that all you have in the recipe? I thought a recipe always begins
45 >>>> with 0: ? From my procmailrc file:
46 >>>>
47 >>>> -----------snip---------------
48 >>>> :0fw
49 >>>> | /usr/bin/spamc
50 >>>> ----------endsnip-------------
51 >>>>
52 >>>> since I use spamc/spamd. f makes it a filter and w waits for the
53 >>>> filter to finish.
54 >>>> W
55 >>>>
56 >>>>
57 >>> Ok, you win :)
58 >>>
59 >>> I actually have this on .procmail
60 >>>
61 >>> INCLUDERC=$HOME/.spamassassin.rc
62 >>>
63 >>> instead of that line. In the file .spamassassin.rc I have:
64 >>>
65 >>> :0fw
66 >>> | spamassassin --prefs-file=$HOME/.spamassassin/user_prefs
67 >>>
68 >> Another really stupid question, when you sayin your .procmail file, do
69 >> you mean $HOME/.procmailrc ? I certainly hope you just have a typo,
70 >> and not named your file something that procmail does not know is the
71 >> config file.
72 >>
73 >> (Was the ~/.maildir/procmail.log log file created?)
74 >>
75 >> I am pretty sure the $HOME in your command should parse properly even
76 >> if procmail passes control to a subshell, so there shouldn't be any
77 >> reason why your recipe doesn't work.
78 >>
79 >> W
80 >>
81 >> --
82 >> "It was real. At least, if it wasn't real, it did support
83 >> them, and as that is what sofas are supposed to do, this,
84 >> by any test that mattered, was a real sofa. "
85 >> Sortir en Pantoufles: up 677 days, 13:59
86 >>
87 >>
88 >
89 >
90 > -------------------------------
91 > 魏亮 David Wei
92 >
93 > 您可以通过下面的方式和我联系:
94 > MSN: inadavid@×××××××.com
95 > Gtalk: inadavid@×××××.com
96 > Email: davidwei@×××××××××××.cn
97 >
98 >
99 >
100 >
101
102 --
103 David Rioja Redondo
104 Tel. (34) 91 675 14 29
105 Fax: (34) 91 656 91 89