# mailloop.monitor - sends email to mailboxes that are expected to send # the mail back to the sender. Probably not hard to do with procmail, etc. # I've only used a reflector agent for Lotus Notes. Instead of "hosts" in # a hostgroup, use email addresses you want to send bounce tests to. The # code still refers to these as hosts. # # You can use as many addresses as you'd like, but you'll need to use a # unique from address for each hostgroup that calls this monitor, because # it eats all the mail this running copy of the monitor didn't send. # Otherwise, previously delayed mail might lay around forever. # # The monitor then polls a POP3 account for the mail it sent. Don't use # that mailbox for anything else, the monitor will delete all your mail! # I'm not kidding, I didn't say "might", it *will*. # # This monitor assumes the local sendmail knows how to get the mail to # the the first relay in the loop you're testing. It also assumes that # the last host knows to deliver mail sent to the configured from # address so that it shows up in the POP server we poll. # # Takes 5 options: # -d Debug Mode. Not really compatible with normal mon scheduling, # because it doesn't log to syslog or anything, just print to STDOUT. # You'll have to call the monitor by hand to use this option. # Mostly helpful to debug your POP/SMTP setup. # # -f Set the from address, this option will also set the POP user to # all the bits before the '@'. So, don't do any wild aliasing... # # -p Set the POP password. Defaults to null password # # -s Set the POP server. Defaults to localhost. # # -t Standard monitor timeout option. # # # $Id: mailloop.monitor,v 1.3 2000/02/11 23:25:23 bill Exp $ # # Copyright 2000 Shared Medical Systems, Inc. # Author: Bill Smargiassi # Email: william.smargiassi@smed.com # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA