On Tue, 27 Oct 2009, [email protected] wrote:

> Hi all,
> I am trying to use xmail TLS configuration and I am having these problems:
> I try to use this command to test TLS connection (is it right?):
> openssl s_client -starttls smtp -crlf -connect traiano.telsey.it:25
> and I received this error:
> CONNECTED(00000003)
> 3821:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake 
> failure:s23_lib.c:188:
> In xmail debug console:
> SMTP failed to STARTTLS (ip address)
> SMTP client exit (ip address)
> 
> My environment is:
> Ubuntu server 9.04
> xmailserver 1.27pre01
> openssl OpenSSL 0.9.8g 19 Oct 2007
> 
> Where have I a mistake?

Try to apply the patch below, and show the XMail debug message again ...


- Davide



diff --git a/SMTPSvr.cpp b/SMTPSvr.cpp
index d71eb91..7d4f28f 100644
--- a/SMTPSvr.cpp
+++ b/SMTPSvr.cpp
@@ -2350,8 +2350,8 @@ static int SMTPHandleCmd_STARTTLS(char const *pszCommand, 
BSOCK_HANDLE hBSock, S
                ErrorPush();
                if (SMTPLogEnabled(SMTPS.pThCfg->hThShb, SMTPS.pSMTPCfg))
                        SMTPLogSession(SMTPS, "", "", "SMTP=ESSL", 0);
-               SysLogMessage(LOG_LEV_MESSAGE, "SMTP failed to STARTTLS [%s]\n",
-                             SysInetNToA(SMTPS.PeerInfo, szIP, sizeof(szIP)));
+               SysLogMessage(LOG_LEV_MESSAGE, "SMTP failed to STARTTLS (%d) 
[%s]\n",
+                             iError, SysInetNToA(SMTPS.PeerInfo, szIP, 
sizeof(szIP)));
                SMTPS.iSMTPState = stateExit;
 
                return ErrorPop();
_______________________________________________
xmail mailing list
[email protected]
http://xmailserver.org/mailman/listinfo/xmail

Reply via email to