These scripts were written by Bob Falkenberg and Mark Cohen. monitor.sh monitors the maillog and looks for errors from the milter. Once it reaches a certain threshold, it can restart the milter. This script coupled with the small changes for the number of daemons in the sendmail.mc have produced a very stable mail server for them that gets ~20K messages per day. count_spam.sh parses the various maillog's and reports on the number of emails total, the number flagged as SPAM, and the number of non-SPAM (aka HAM) emails.