------------sample .procmailrc file-----------
PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin #to enable spawning of procmail when new mail arrives
#LOGABSTRACT=all # debug logging
#VERBOSE=yes # verbose logging
MAILDIR=$HOME/Maildir #path to mail directory
PMDIR=$HOME/ProcMail #variable - PMDIR
LOGFILE=$PMDIR/procmail.log #path to logfile
INCLUDERC=$PMDIR/spam.rc #include rule files
:0:
new #mailbox to copy files that don't match any rules
----------end sample .procmailrc file---------
Now, most tutorials nag you about a .forward-file. In our case .qmail should be used instead.
----------sample .qmail file------------------
|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #USERID
----------end sample .qmail file--------------
example of a filter
----------sample /ProcMail/spam.rc------------
:0
* ^X-Spam-status:.*yes*
/dev/null #of course it's not recommended to do this
)
----------end sample /ProcMail/spam.rc--------