tags:

views:

5

answers:

0
 Stunnel is listening on port xxxx, and will establish a secure SMTP connection upon receiving "EHLO" from the remote server.  I want to modify the code so that if "HELO" is received instead of "EHLO" the message is forwarded directly to the local mail server.  In other words, I want to use the same port for both encrypted and unencrypted mail.  

 The code handles incoming encrypted mail, so I need to code for the case in which unencrypted mail is received.  It would seem that this could be done by "internally" encrypting the message, then "internally" unencrypting it, and sending it to the mail server, 

or alternatively by somehow bypassing SSL and sending the message directly to the local mail server.

 If there is some trick to accomplish this using the config file, without modifying the Stunnel code, that would be good.  Otherwise, I would appreciate insight as to which I should modify, and how.