Ah-hah! When I put the pauses in I saw that for some reason the batch file couldn't change drives to the location of the blat.exe. I don't get it but copying it locally fixed it.
Thanks! -----Original Message----- From: Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Bulinckx Sent: Thursday, June 01, 2006 11:31 AM To: Servers Alive Discussion List Subject: [BAYESIAN] - RE: [SA-list] Getting BLAT/STUNNEL To Work For Alerts - Bayesian Filter detected spam The DEBUG part is as it says a debug logging that is still in the final code. Not linked to your alert. Try setting the WHEN part of the alert to ALWAYS, that way the alert has to be fired independantly of the status. At least we can then see if there is a problem or not. Also within the .BAT file try starting with a PAUSE command, and ending with one (after the blat command), that way you will at least see the command starting and the eventual error of the command itself. Dirk Bulinckx. -----Original Message----- From: Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Alex Davidson Sent: Thursday, June 01, 2006 7:01 PM To: Servers Alive Discussion List Subject: [SA-list] Getting BLAT/STUNNEL To Work For Alerts Normally I send Alerts to my cell phone as SMS messages using my [EMAIL PROTECTED] email address. However, I am currently trying to get Servers Alive (5.0.1743) to send using my Gmail account when mail starts to pile up at my outbound mail server as this would indicate a problem at the mail server and presumably my notifications won't go out. I have a batch file which calls BLAT and sends via STUNNEL via Gmail's SSL Port. It runs fine when run manually. The command the batch file is running is as follows: blat -server 127.0.0.1:26 -to [EMAIL PROTECTED] -from [EMAIL PROTECTED] -subject "Servers Alive" -body "Problems With Mail Server" -u [EMAIL PROTECTED] -pw mypassword In SA I go to my entry, switch the Alert tab, hit ADD, Execute Command, then select "Normal Command (EXE/BAT/...)" and in the command I enter c:\pathto\BlatAlex.bat and hit OK then UPDATE. When I test the alert in SA nothing happens - the batch file doesn't seem to run and STUNNEL doesn't register a hit in its log. I turned on SA logging and got the following: Thursday, June 01, 2006 10:20:01 AM Email Queue Thursday, June 01, 2006 10:20:01 AM External COM check started (W00000010,17,-1) Thursday, June 01, 2006 10:20:01 AM DEBUG: got new parameters Thursday, June 01, 2006 10:20:01 AM External COM check (W00000010,17):Found 42 files expected less then 30 I don't understand what "DEBUG: got new parameters" means. Does anyone have any suggestions? Alternatively, does anyone have any other suggestions on doing this? Thanks, Alex To unsubscribe send a message with UNSUBSCRIBE as subject to [email protected] If you use auto-responders (like out-of-the-office messages), then make sure that they are not send to the list nor to the individual members of the list that send a message. Doing this will get you removed from the list. To unsubscribe send a message with UNSUBSCRIBE as subject to [email protected] If you use auto-responders (like out-of-the-office messages), then make sure that they are not send to the list nor to the individual members of the list that send a message. Doing this will get you removed from the list. To unsubscribe send a message with UNSUBSCRIBE as subject to [email protected] If you use auto-responders (like out-of-the-office messages), then make sure that they are not send to the list nor to the individual members of the list that send a message. Doing this will get you removed from the list.
