On Sun, 24 Aug 2003 21:55:11 -0230
Mike Pelley <[EMAIL PROTECTED]> wrote:

 
> Sorry - How do I configure the SpamAssassin rules to automatically
> delete mail identified as spam at the server level (e.g., send it to
> /dev/null or whatever).
> 

First of all, its worth remembering that no Spam Blocker is perfect. There will always 
be some that beat the rules. The best way is to use the SpamAssassin to move the 
suspect mail to another mail box that only your friend has access to. Having said that 
(and If I was teaching Grandmother to suck eggs, I apologise) then the best bet is to 
write the rules into procmailrc that will catch the spam.

One recipe is 

        :0fw
        * < 100000                      #anything greater than 100K in length
        | /usr/bin/spamassassin -a      #Go through Spam Assassin

        :0:
        * ^X-Spam-Status: Yes           #If the X-Spam header is Yes
        /dev/null                       #File it

It is preferable however to do this


        MAILDIR=$HOME/mail       # Make sure this directory exists!
        :0fw
        * < 100000                      #anything greater than 100K in length
        | /usr/bin/spamassassin -a      #Go through Spam Assassin

        :0:
        * ^X-Spam-Status: Yes           #If the X-Spam header is Yes
        Spam-Store 



Then do a touch $HOME/mail/Spam-Store

This will create a mailbox that can be read, and all the possible spam hits can go 
there instead.


Hope this helps


-- 
Alan Harding
alanh (at) flashmail (dot) com

"TINSTAAFL"


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to