[Nagiosplug-devel] [ nagiosplug-Bugs-1174070 ] check_smtp TLS mistake with echange 2003

SourceForge.net noreply at sourceforge.net
Sat Apr 9 02:20:01 CEST 2005


Bugs item #1174070, was opened at 2005-03-31 13:06
Message generated for change (Comment added) made by jeff_fr
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1174070&group_id=29880

Category: None
Group: None
Status: Open
>Resolution: Accepted
Priority: 5
Submitted By: jeff_fr (jeff_fr)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_smtp TLS mistake with echange 2003

Initial Comment:
Exchange 2003 is waitng EHLO or HELO before the
STARTTLS instruction, this make the plugin unable to
get the OK state from echange 2003 when using TLS .

the solution is to add :

send(sd, helocmd, strlen(helocmd), 0);
recv(sd,buffer, MAX_INPUT_BUFFER-1, 0);

between the line (approx 181) :

 if(use_ssl){

and line:

send(sd, SMTP_STARTTLS, strelen(SMTP_STARTTLS), 0);

It's not very clean but it's a fast modification to get
the real result, in fact i checked that postfix was
able to get the HELO before or after STARTTLS




----------------------------------------------------------------------

>Comment By: jeff_fr (jeff_fr)
Date: 2005-04-09 09:19

Message:
Logged In: YES 
user_id=1250267

It should be ok (when reading the modification) i will test
it on exchange monday ^_^

Thanks

----------------------------------------------------------------------

Comment By: M. Sean Finney (seanius)
Date: 2005-04-07 04:35

Message:
Logged In: YES 
user_id=226838

i've committed a slightly cleaner version of your patch to
cvs.  try it out and let me know how it goes.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1174070&group_id=29880




More information about the Devel mailing list