cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
355
Views
0
Helpful
2
Replies

CSM sendmail script

dojnetsup
Level 1
Level 1

Hi

Am trying to set up the CSM to send SMTP mail when a probe fails but it doesn't seem to be working at all. I have tried the example script but this does not work in our environment, even if I do put in the EHLO that is required.

Basically I think the problem is that the CSM is sending information too quickly and not waiting for the server to reply. Using gets $sock gets 1 line of information back, but the mail server sends something like 15 lines back with the initial EHLO and if you send it information too quickly the server does not actually send the mail. This behaviour can be duplicated by copy/paste into a telnet session with the server.

I have tried various options but, of course, the server doesn't send back an EOF or any other obvious prompt and gets just waits and doesn't return if there is no more data coming.

Does anybody have a working sendmail script that I could look at for enlightenment, or is there a way to have the CSM perform a time-based interrupt or pause/sleep cycle? I have looked at vwait and after but these don't seem to be implemented on the CSM.

Any ideas welcomed at this stage. Version of code on CSM is 4.2(1)

Thanks

LP

2 Replies 2

carenas123
Level 5
Level 5

Bad installation, it means that the whole gateway (or most files) are running version X but a few (but important files, including the MPNotify.exe itself) was running version Y. Because of this mismatch, it cause the problem to surface.

Huh? Was this answering a different question?