# # This is a simple script intended to demonstrate sendmail rule-invoked # procmail filtering. # DEFAULT=| SHELL=/bin/sh LOGFILE=/etc/procmailrcs/outbound.log VERBOSE=ON # grab the arguments from the commandline and put them into variables. USER=$1 REC=$2 # copy *ALL* messages. This is just an example. :0c: /etc/procmailrcs/outbound.copy # rewrite certain message to include a trailing disclaimer :0f * USER ?? someusername * ^From:.*someusername@host\.domain\.tld | cat - /etc/procmailrcs/trailer.sig # Pass along all other mail (or filtered messages) :0 ! -f "$@"