On Sat, 29 Jun 2002, Steven W. Orr wrote:
> Then I run into problems. I sent myself a test message whose body is
> sample-spam.txt and it gets delivered to me with no indication that sa
> thought anything bad happened. Am I missing something here?

I just set up spamassassin the other day.  I'm running qmail - and not 
running razor, so we're a little different, but it should be close enough.  
I'm running mine on a user by user basis (with only a couple of users, 
this is easiest for me) - I run spamassassin through procmail.  This is 
incredibly easy... Here's how I installed:

        perl -MCPAN -e shell
        cpan> install Mail::SpamAssassin
        (answer yes to all of the dependencies)
        once it's complete successfully:
        cpan> quit

Now, if you're running procmail already, great, just add something like:

        :0fw
        | /usr/bin/spamassassin -P -c /usr/share/spamassassin
        :0:
        * ^X-Spam-Status: Yes
        junkmail

To your recipe.  If you're not running procmail, you'll need to just make 
sendmail process procmail for you - I think you put "|procmail" in your 
.forward, but I really can't recall.  Just check the docs or maybe someone 
else will see errors in my email and reply :).  Then, create a .procmailrc 
for it to read and mkdir .procmail - I use a pretty minimal setup in 
.procmailrc:

        MAILDIR=mail
        PMDIR=$HOME/.procmail
        :0fw
        | /usr/bin/spamassassin -P -c /usr/share/spamassassin
        :0:
        * ^X-Spam-Status: Yes
        junkmail

And that's about all you have to do, I believe.  You can check your 
headers for things like this:

        X-Spam-Status: No, hits=-0.7 required=5.0
                tests=X_AUTH_WARNING
                version=2.31
        X-Spam-Level: 

If your X-Spam-Status says "Yes", you get a larger spam report in the body 
of the email.  

Good luck,
Ben

 -- 

"In learning how to think with nature is the salvation of our 
sanity and Earth. Stressfully separated from nature's sensous
rewards, we psychologically bond to destructive gratifications. 
Genuinely reconnecting our thinking with nature replaces destructive 
bonds with constructive passions."
- Dr. Michael J. Cohen



*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to