procmail
[Top] [All Lists]

Re: Trapping SPAM on Mail Lists

2003-07-04 08:49:06
Newbie disclaimer still applies:

I don't use spamassassin or spamd (I want to learn "just Procmail" first), nor 
have I attempted any recipes which measure a message's size. So, I can't help 
with question 1.

You are right, though, in your assessment that recipes run in order from top 
to bottom. No other recipes are run after any recipe encounters a "delivery 
situation". What I (newbie!) notice about your recipes is you don't use a 
space after 
:0
so that all of your colon lines follow a format of :0: or :0fw.  Any examples 
I've seen have a space: 
:0 :
or
:0 fw

I don't know if that makes a difference to Procmail, but it may be something 
to watch out for.

What do your logs say?

Procmail is powerful but hard to learn (as I am finding out!) Hopefully, 
others are reading and can offer more advice.



On Friday 04 July 2003 10:10 am, Jack L. Stone wrote:
Lee: Your suggestion worked and many thanks! But, 2 more questions, please.

1) I run spamd as a daemon, so I don't need to call the "spamassassin"
recipe, but how do I apply the < 256000 limit which is omitted in my global
procmailrc file?

2) I assume the recipes are run in sequence from top to bottom. If this is
true, will my 2 "spam" recipes below work together okay? The reason for the
question is that I notice an occasional email is screened twice by
SpamAssassin, each with different "hits" vs my threshold -- one (first)
will be properly measured as being above and thus spam, while the other is
slightly below, and not spam. These all get the [SPAM Conten] tag however.
So, I thought the second recipe would catch those that slip by.

Here is a snippet of my global procmailrc:

<part of variables>
SPAM=/usr/samba/mail/spams

## RECIPES:

# This works
# NOTE: Do not use if spamd is already running.....
##:0fw: spamassassin.lock
##* < 256000
##| /usr/local/bin/spamassassin

# This works
# NOTE: Do not use if spamd is already running.....
##:0fw
##| /usr/local/bin/spamassassin

# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "spam".

:0:

* ^X-Spam-Status: Yes
$SPAM

:0:

* ^Subject:[ ]\[SPAM Content]
$SPAM


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>