PATH=/bin:/usr/bin:$HOME/bin:/usr/local/bin TRASH=$HOME/mail/spam LOGFILE=$HOME/.procmail.log # Partly taken from http://wiki.apache.org/spamassassin/UsedViaProcmail # Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc' # if you use the spamc/spamd combination) # # The condition line ensures that only messages smaller than 250 kB # (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam # isn't bigger than a few k and working with big messages can bring # SpamAssassin to its knees. # # The lock file ensures that only 1 spamassassin invocation happens # at 1 time, to keep the load down. # :0fw: spamassassin.lock * < 256000 | spamassassin # All mail tagged as spam (eg. with a score higher than the set threshold) # is moved to dedicated folder $TRASH. :0: * ^X-Spam-Status: Yes $TRASH # additional rules go here # catch all rule at the end # if commented out, mail goes to /var/spool/mail/ #:0 #* #$HOME/mail/inbox