.procmailrc example with Postfix and Maildir-format

PATH=/bin:/usr/bin:/usr/local/bin
MAILDIR=$HOME/Maildir
LOGFILE=$HOME/procmail.log
SHELL=/bin/sh

# Add rules here, for example:
:0
* ^Subject.*spam.*
! spam@gmail.com

# Catch-all rule for all unmatched email
:0
$HOME/Maildir/