Crash protection

Julian Field MailScanner at ecs.soton.ac.uk
Sun Mar 1 16:45:47 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On 1/3/09 15:25, Raymond Dijkxhoorn wrote:
> Hi!
>
>>>> All suggestions on how to improve this feature are most welcome!
>
>>> A way to notify a operator that this is happening. So a cron or
>>> something to send out a hourly report or something so at least you
>>> know something is stuck ;)
>
>> At the moment it just logs it. I might add a command-line option to
>> MailScanner to make it report the contents of the database table. Would
>> that do? You could then have a cron job that ran that command, and if it
>> produced anything then it could mail it to the postmaster.
>
> Sure, thats fine.
Take a look at 4.75.3. It adds a command "processing_messages_alert" 
which runs the command
     MailScanner --processing
which outputs a dump of the table, excluding messages which are only 
being processed for the first time (ie it only prints records for which 
tries>1). The "processing_messages_alert" turns that into an email 
message which it sends to you according to your MailScanner.conf setup.

It's a very simple script, feel free to rip it apart and improve it. You 
can run the command
     MailScanner --processing
yourself, but be warned it will only generate any output if there is 
something to tell you.

In the Linux RPM distributions of MailScanner, that script is run hourly 
to alert the sysadmin that there might be something wrong.

Jules

- -- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
PGP public key: http://www.jules.fm/julesfm.asc


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.9.1 (Build 287)
Comment: Use PGP or Thunderbird Enigmail to verify this message
Charset: ISO-8859-1

wj8DBQFJqru9EfZZRxQVtlQRAqsZAJ9lJUzpgkNG6Q5UZ7t0p57nl2S9LQCg1rt1
1HseekapBUyS91ubDd6/+uY=
=rt+I
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list