#add this to $HOME/.procmailrc :0 c * ^To.*mytest@mymail.com |/usr/local/bin/mail.sh