#!/bin/bash # pass mail through spam filter Bogofilter # arguments are passed on to sendmail /usr/bin/bogofilter -p | /usr/sbin/sendmail "$@"