-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To partially answer myself...I have fetchmail, postfix, and procmail working - 
or at least, procmail is partially working.  I have a recipe that checks to 
make sure an email isn't from anyone in my email address or from any of the 
lists that I am a member of, then it is supposed to check to see if the 
"X-Spam-Status: Yes" header exists and, if so, pipe the message to /dev/null.

The first part is working.  The expert list and others are not getting 
processed by spamassassin.  The problem is the second action, to pass spam to 
/dev/null.  

I generated a fake spam message and have been using it by sending it to 
myself.  It gets processed by spamassassin and my kmail filters properly 
identify it as tagged spam and dumps it in my trash folder.  I shouldn't even 
SEE the message, however, because I thought I had procmail setup to dump such 
mails to /dev/null.

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.  The second recipe is:

:0fH:
 * ^X-Spam-Status: Yes
| /dev/null
 
I have tried several different variations of this with regards to the :0f 
entry.  I have tried :0f, :0fw, :0fW, and so on to no avail.  How do I get 
procmail to use this second recipe?

praedor

On Monday 06 October 2003 02:48 pm, Praedor Atrebates wrote:
> I am not real up on procmail filter writing (or the cryptic language of
> procmail).  I have run postfix locally in the past but haven't lately...I
> have set it up to run again now.  I have never had it work with
> spamassassin or procmail before.
>
> Here's what I'm interested in then, and perhaps you could provide hints(?):
>
> I want all email that _doesn't_ come from someone in my email addressbook
> or the expert mailing list to pass through spamassassin.  I assume I would
> still be using spamd/spamc?  How might I create a procmailrc "recipe" to do
> the above?  Just dinking around I produced something like:
>
> This first is intended to sidestep spamassassin:
> :0f
>
> * [EMAIL PROTECTED]
> * [EMAIL PROTECTED]
> * !<an email address>
> * !<an email address>
> * !<an email address> ...etc...
>
> | spamc
[...]
>
> headers that spamassassin places?):
> :0 H:
>
>  * ^(X-UCIRVINE-SpamCheck:)
>
> | /dev/null
>
> Is this workable or totally offbase?
>
> On Monday 06 October 2003 10:42 am, Bryan Phinney wrote:
> [...]
>
> > Something like:
> > :0H
> >
> > * ^List-Owner: <mailto:[EMAIL PROTECTED]>
> > /var/spool/mail/user
> >
> > will put all Mandrake Expert messages into user's mail spool and will
> > essentially bypass spamassassin if that recipe is used first, before the
> > one that sends all remaining mail to spamassassin.
>
> [...]

- -- 
"What influence in fact have Christian ecclesiastical establishments had on 
civil society? In no instance have they been seen as the guardians of the 
liberties of the people. Rulers who wished to subvert the public liberty have 
found in the clergy convenient auxiliaries. A just government, instituted to 
secure and perpetuate liberty, does not need the clergy."
- --James Madison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/gdSzaKr9sJYeTxgRAp0dAJwOpZzg2IeZoURcPnz3X+K/bFlaDQCfX1O8
RpTSQMKGrrxuw1vNwcpe0g4=
=z6Lf
-----END PGP SIGNATURE-----

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

Reply via email to