I added support of STARTTLS and STLS to the Xmail v1.21.http://mail.godeltech.com/xmail/win32_bin/...-0.0.1a-bin.zip it is a win32binary distribution of Xmail v1.21 with SSL extension(It contains only executables. Before using it you should have working Xmail server installed).I compiled and tested it only with openssl-0.9.7e. All necessary files are included in win32 distribution.

Then you shoud add the new variables to the server.tab"SMTP-SSL"[TAB]"1""POP3-SSL"[TAB]"1""SMAIL-SSL"[TAB]"1""SSLCertificate"[TAB]"xmail-ssl.pem"

"SMTP-SSL" - allow or not support of STARTTLS command by SMTP, by default 0"POP3-SSL" - allow or not support of STLS command by POP3, by default 0"SMAIL-SSL" - allow or not send mail via SSL(ONLY if remote SMTP supports EHLO and STARTTLS), by default 0"SSLCertificate" - file with certificate

WARNING!!! it is an EXPERIMENTAL version,it was tested under win2003 server and outlook express v6 and Opera mail client 8.00.

Linux sources:http://mail.godeltech.com/xmail/src/xmail-...0.1a-src.tar.gzWARNING!!! I compiled ONLY (under Debian GNU/Linux 2.2) and I did not test it.I added Makefile-SSL.lnx for compiling under linux with SSL support.You shoud have installed openssl-0.9.7e and have libssl.a and libcrypto.a in /usr/lib and headers in /usr/include/openssl

Win32 sources:http://mail.godeltech.com/xmail/src/xmail-ssl-0.0.1a-src.zipIn win32 source package I added openssl headers, ssleay32.lib and libeay32.lib,so you don't need nothing more for compiling under win32.As I used VC7.1 for compiling I added solution mailsvr.sln and allnecessary *.vcproj to the package.

If you want to compile it under VC6 you shoud make the following changesin the project mailsvr:Add the preprocessor definition USE_SSLAdd the following files to the project:SSLSupport.cppSSLSupport.h

Add right path for openssl headers and inlude ssleay32.lib and libeay32.libto the linker library and of course add path where these library can be found.

Whooo.... that's it , I hope I did not forget anything.

P.S

If the author of Xmail do not mind my changing the code (and it is not buggy of course),may be he will include those changes to the next builds of Xmail.

> Hello Davide.>> First of all, thanks to the great mail server.>> If you are interested in support SSL by Xmail(STARTLS, STLS),> I would provide my implementation of SSL support by Xmail,> more info can be found at http://xmailforum.homelinux.net/index.php?showtopic=2415>> It will be nice to see native support of SSL by Xmail in future builds.

I don't think to add SSL to XMail, at least for the moment. Major reasonsare, 1) there is not enough request for it 2) I hate external librariesdependencies. I suggest you to 1) test carefully your code on everyplatform XMail supports 2) put your patches over the mailine XMail codeinside an organized HTML page. Then, I will link your HTML page frominside the XMail home page.

I would like to see this too, i'll patch my Xmail in the weekend I think.

What's the problem about adding SSL support? Can't davide create in the ./configure script an option --with-ssl, which defaults to disabled? Then it's easy to enable, but not needed for a standard installation.

Hi there.I released the new version of the SSL patch 0.0.2b for the XMail v1.21.

I made some changes for inter SMTP servers communication.These changes correspond to SMAIL-SSL variable.

In some cases after SSL session is established with Exim(in our case), it fails with error(example):<SSL session is established>220-server1 ESMTP Exim 4.43 #0 Wed, 29 Jun 2005 23:34:46 +0200220-We do not authorize the use of this system to transport unsolicited,220 and/or bulk e-mail.MAIL FROM: <user1@server1> size=4050501 <user1@server1> size=4050: malformed address: size=4050 may notfollow <user1@server1>