#LOGFILE=/var/log/procmail.log #VERBOSE=yes #LOGABSTRACT=all :0 HB # if the script exits with code != 0 the message is harmful. # See script /etc/procmail.d/blockmail.txt for details. * ! ? /usr/bin/blockmail.pl { # the MTA (sendmail, postfix) will return the message with # a "permission denied" error (see /usr/include/sysexits.h) # EXITCODE=77 # uncomment the action you want on the offending e-mail # ATTENTION: only one action can be done (man procmailrc) :0 /dev/null # drop to /dev/null #refused # put in a user folder #/var/log/refused-mail # append to a file (create it with perms 666) #! root # send to someone (take care about loops) } SHELL=/bin/sh