toaster-watcher does several unique and important things.
toaster-watcher.pl reads a configuration file that stores settings about your mail system. Once you've configured toaster-watcher.conf to suit your needs, the script goes about making sure all the settings on your system are as you selected. Various other scripts (like toaster_setup.pl) and programs use this configuration file to determine how to configure themselves and other parts of the mail toaster solution.
Toaster-watcher.pl dynamically builds the run files for your qmail daemons (qmail-smtpd, qmail-send, and qmail-pop3). You choose your settings in toaster-watcher.conf and toaster-watcher.pl builds your run files for you, on the fly. It periodically (set via cron) tests the RBL's you've selected to use, and builds a control file based on your settings and dynamic information such as the availability of the RBLs you want to use.
Qmail-Scanner Quarantine Processing
Qmail-Scanner quarantines any files that fail certain tests, such as banned attachments, Virus laden messages, etc. The messages get left laying around in the quarantine until someone does something about it. If you enable this feature, toaster-watcher.pl will go through the quarantine and deal with messages as you see fit.
Maildir Processing & Message Cleanup
Many times its useful to have a script that cleans up old mail messages on your mail system and enforces policy. Now toaster-watcher.pl does that. You tell it how often to run (I use every 7 days), what mail folders to clean (Inbox, Read, Unread, Sent, Trash, Spam), and then how old the messaged need to be before you remove them.
I have also instructed toaster-watcher to feed any messages in my Spam and Read folders that are more than 1 day old through sa-learn. That way I train SpamAssassin by merely moving any mis-directed spam or ham into their respective IMAP folders.
Rebuild qmail-smtpd's SSL temp keys
Make email notice configurable on a per service basis. I can imagine wanting to know if pop3/run or send/run ever changed but I don't care to get emailed every time a RBL fails a DNS check.
Last modified on 4/28/05.