On Mon, 6 Oct 2003 15:46:43 -0500
Praedor Atrebates <[EMAIL PROTECTED]> wrote:

 
> Here's a synopsis of the first working procmail recipe:
> 
> :0f
> * [EMAIL PROTECTED] 
> * [EMAIL PROTECTED]
> * !<someone>@att.net
> * [EMAIL PROTECTED]
> * !<someone>@purdue.edu
> * !<someone>@yahoo.com
> * !<someone>@msn.net
> * !<someone>@yahoo.com
> | spamc -f
> 
> This works.  Mails from the expert list or from any of the particular
> emails listed do not get processed by spamassassin. 

I'm not an expert but what I think is happening is anything not listed
in the email addresses is being piped into spamc, which is what you
want, but as soon as procmail has performed an operation on a mail it
does not process any recipes that follow on that mail. I would suggest
putting your working part in /etc/procmailrc (or wherever your global
file is) and the second recipe in a personal .procmailrc in your home
directory that gets processed by a second invokation of procmail. Also I
would suggest changeing it to

:0:
* [EMAIL PROTECTED] 
* [EMAIL PROTECTED]
* !<someone>@att.net
* [EMAIL PROTECTED]
* !<someone>@purdue.edu
* !<someone>@yahoo.com
* !<someone>@msn.net
* !<someone>@yahoo.com
* <256000
| spamc -f

This will mean that any message that doesn't match the email addresses
and is smaller than 250 kb will be piped into spamc. According to the
documentation most spam isn't bigger than a few k and working with big
messages can bring SpamAssassin to its knees.

The change in the first line adds a lock to prevent the message being
mangled


> The second recipe
> is:
> :0fH:
>  * ^X-Spam-Status: Yes
> | /dev/null

Spam will be marked so if you put your second recipe in .procmailrc in
your home directory it will filter out the spam. A few pointers about
the second recipe, try

:0
* ^X-Spam-Status:.*Yes
/dev/null

You don't want the f or the | because you are not piping it to a
programme and you don't want the second : because you don't want a lock
on it (I don't remember why but all the FAQ's say this).

I would also suggest that in the .procmailrc in your home directory you
put the following (adapted for your setup) at the beginning of the file
so procmail knows where to send messages that match nothing but MAKE
SURE the destination exists

MAILDIR=$HOME/Mail      # 
DEFAULT=$MAILDIR/mbox   # You had better make sure it exists

Also make sure that .procmailrc in ~/ is not world or group writable.

Like I said, I'm not a guru so please don't risk loosing valuable
emails.

Good Luck
Nigel




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to