The Network People Support Forums

Mail::Toaster => Upgrading a Mail::Toaster => Topic started by: joseph on March 18, 2007, 06:28:59 PM

Title: OpenSSL Upgrade Breaks SMTP
Post by: joseph on March 18, 2007, 06:28:59 PM
Using Mail::Toaster 4.10 -

Yesterday I upgraded OpenSSL from 0.9.7 to 0.9.8e, and it seems to have broken smtp SSL services.  Standard smtp and submission work, but any attempts at an SSL handshake on those ports bomb out.

I've recompiled ucspi via toaster_setup.pl -s ucspi.  Stopped and restarted services, didn't seem to fix anything.

IMAP-SSL and POP3-SSL seem to be functioning as intended.

[root@kyogi]:/usr/ports/sysutils/ucspi-tcp# openssl s_client -connect kyogi.net:587
CONNECTED(00000003)
3127:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s23_clnt.c:478:

Any thoughts?
Title: Re: OpenSSL Upgrade Breaks SMTP
Post by: jerm on March 22, 2007, 10:46:38 AM
Someome please correct me if i'm wrong here, but doesn't ssl upgrade require a qmail recompile?  I think i ran into the same thing once upon a time.

toaster_setup -s qmail

should fix it.
Title: Re: OpenSSL Upgrade Breaks SMTP
Post by: matt on March 27, 2007, 09:40:40 AM
Jerm is right, you just also recompile qmail.

But as mentioned on the  mailing list weeks ago, openssl 0.9.8e has changed some internal APIs that break the TLS patches we are using for qmail. Don't upgrade to 0.9.8e.
Title: Re: OpenSSL Upgrade Breaks SMTP *Workaround and Fix*
Post by: TheGillis on April 07, 2007, 07:37:46 AM
I did some debugging and found out that the problem is a programming error in netqmail. I wrote a detailed explanation on my site explaining the problem and the fix at http://www.thegillis.net/index.php?option=com_content&task=view&id=41&Itemid=31 (http://www.thegillis.net/index.php?option=com_content&task=view&id=41&Itemid=31). I supply a patch at that location for the code.

There is also a simple workaround. Create the file tlsserverciphers in the (qmail home)/control folder. The file should contain one line with the word DEFAULT in it.

Hope this helps.

Brain Gillis
http://www.thegillis.net/ (http://www.thegillis.net/)
brian@thegillis.net