Simply schedule a batch file in 5 min. intervals -Windows Server 2008 minimum interval is 5 minute- It's not high cpu or memory consuming process. You also need freeware *cryping* utility. I use MailEnable as MTA, you may ignore it. Script produces 2 files: check.log & error.log I also test SA score on exit to make sure things are ok.
This script checks spamd is alive or not and restarts if necessary. *check-spamassassin.bat* c: cd \NET\Services @echo %Date%, %time:~0,8% >> check-spamassassin.log @REM Test Spamassassin service cryping -port 783 127.0.0.1 | Find "100%%" > nul @If ErrorLevel 1 Goto OK :RESTART @echo Restarting Spamassassin & MTA services... NET STOP MEMTAS NET STOP Spamassassin TASKKILL /F /IM:spamd.exe NET START Spamassassin NET START MEMTAS @echo Done! @echo RESTARTED >> check-spamassassin.log @echo %Date%, %time:~0,8%, RESTARTED >> error-spamassassin.log @GoTo EXIT :OK @echo Everything seems OK! @echo OK >> check-spamassassin.log @GoTo EXIT :EXIT @REM Test spam score C:\NET\SpamAssassinWin32-EX\winspamc.exe < C:\NET\SpamAssassinWin32-EX\realspam3.txt | Find "X-Spam-Status:" >> check-spamassassin.log @REM Add a blank line @echo >> check-spamassassin.log @rem pause > nul On Wed, Aug 18, 2010 at 4:45 PM, Jerry M <techst...@malcolms.com> wrote: > Thank you so much for the info. Yes. the monitoring script would be > great as well. > > Thanks.again. > > Jerry >