# Sample Courier Maildrop file to demonstrate filtering messages # according to how Spamassassin scores them. logfile "mailfilter-log.txt" log "========" if ( /^Subject: Test1/ ) { log "-------------------------------------------- Test1 found " to "Maildir/.blah" } xfilter "/usr/bin/spamassassin -x" # Look out for marginal scoring spam & # put it somewhere I can scrutinise it # easily, away from the worst stuff. # If the threshold of 3.0 is too low # there will be man false-postives in # -SPAM-marginal, and I will need to # fish them out manually. if ( ( /X-Spam-Status: No, score=3./ ) \ ||( /X-Spam-Status: No, score=4./ ) \ ||( /X-Spam-Status: Yes, score=5./ ) \ ) { log "-------------------------------- Spam marginal. " to "Maildir/.-SPAM-marginal" } # Watch out for header line added by # Spamassassin, which it will be for # anything scoring 5.0 or above. # # Don't allow any blank lines after the # if statement! if ( /^X-Spam-Flag: YES/ ) { log "----------------------------------- Spam general. " to "Maildir/.-SPAM" } # The Anomy Sanitizer stuff goes in here # when we are ready to test it too. log "- - - - - - - - - - - - - - - - - - - - - - No match" # Deliver to the Inbox. to "Maildir"