Thank you Davide. After the patch is applied, the command output for: openssl s_client -starttls smtp -crlf -connect traiano.telsey.it:25 is 7388:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:188:
Bye. Sergio bh Da: Davide Libenzi <davi...@xmailserver.org> Per: XMail Users Mailing List <xmail@xmailserver.org> Data: 27/10/2009 17.31 Oggetto: Re: [xmail] TLS section Inviato da: xmail-boun...@xmailserver.org On Tue, 27 Oct 2009, sergio.casagra...@telsey.it 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 xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail ______________________________________________________________________________ --- NOTICE --- This email and any attachments are confidential and are intended for the addressee only. If you have received this message by mistake, please contact us immediately and then delete the message from your system. You must not copy, distribute, disclose or act upon the contents of this email. Personal and corporate data submitted will be used in a correct, transparent and lawful manner. The data collected will be processed in paper or computerized form for the performance of contractual and lawful obligations as well as for the effective management of business relationship. The data processor is Telsey S.p.A. The data subject may exercise all the rights set forth in art. 7 of Law by Decree 30.06.2003 n. 196 as reported in the following url http://www.telsey.com/privacy.asp. ______________________________________________________________________________
_______________________________________________ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail