[Mimedefang] swatch script to email you when an error occurs.

Ole Craig olc at cs.umass.edu
Wed Feb 18 12:22:28 EST 2004


On 02/18/04 at 10:05, 'twas brillig and Lucas Albers scrobe:

> I am paranoid that my mail server will stop working, so I whipped up this
> little swatch script to notify me when mimedefang encounters an error,
> which might indicate it has stopped working.
> I could have it do a restart or similar, but for now I just have it email me.
> Someone posted c-code to do similar,but I'm a big fan of only using perl
> for my system administration code.
> Minor improvements, it could only notify you once or a maximum number of
> times when an error occurs, instead of everytime.

[...]

	You have a script that emails you to tell you that your email
swerver has stopped swerving?

	I think to be on the safe side, the script should also check
to make sure it was able to send the alert mail correctly, and email
you if it didn't... :-)

		Ole "bootstraps" Craig
-- 
Ole Craig * UNIX, linux, SMTP-ninja; news, web; SGI martyr * CS Computing
Facility, UMass * <www.cs.umass.edu/~olc/pgppubkey.txt> for public key

  Where are the missing deficit-reduction program-related activities?



More information about the MIMEDefang mailing list