Discussion:
can not send mail with SSL
Frank Schloeder
2003-05-28 08:29:23 UTC
Permalink
Hi,

if I tried to send a mail with SSL enabled (Use SSL for SMTP connection)
I get the following error message...
SLC-0.9.0claws4 --debug

send_message.c:408:send_message_smtp(): begin event loop
session.c:142:session: child: connecting to mail.XXX.XXX.de:465 ...
ssl.c:93:Setting SSLv23 client method

** WARNING **: SSL connect failed (error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol)

session.c:267:session: child: session_close()

any ideas? what can i try to get a SSL connection to my SMTP.
There is no problem with mozilla.

Thanks
Frank.


-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
Darko K.
2003-05-29 17:51:03 UTC
Permalink
Post by Frank Schloeder
if I tried to send a mail with SSL enabled (Use SSL for SMTP
connection) I get the following error message...
SLC-0.9.0claws4 --debug
send_message.c:408:send_message_smtp(): begin event loop
session.c:142:session: child: connecting to mail.XXX.XXX.de:465 ...
ssl.c:93:Setting SSLv23 client method
** WARNING **: SSL connect failed (error:140770FC:SSL
routines:SSL23_GET_SERVER_HELLO:unknown protocol)
session.c:267:session: child: session_close()
any ideas? what can i try to get a SSL connection to my SMTP.
There is no problem with mozilla.
What version of OpenSSL do you have installed ?

Cheers,
Darko
--
===============================================================
"Freedom is just another word for nothing left to lose"
Janis Joplin, Me And Bobby McGee
===============================================================


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Frank Schloeder
2003-05-30 08:16:16 UTC
Permalink
On Thu, 29 May 2003 19:51:03 +0200
[...]
Post by Darko K.
What version of OpenSSL do you have installed ?
Cheers,
i have installed

openssl-0.9.7a-5
openssl-devel-0.9.7a-5

these packages came with RH9

Cheers,
Frank


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Darko K.
2003-05-30 18:54:41 UTC
Permalink
Post by Frank Schloeder
[...]
Post by Darko K.
What version of OpenSSL do you have installed ?
i have installed
openssl-0.9.7a-5
openssl-devel-0.9.7a-5
these packages came with RH9
I've seen exactly the same error with older versions of OpenSSL that's
why I suspected that might be the case. It is not this in your case.
Are you sure your SMTP server supports SSL connections ? Perhaps it
only supports STARTTLS command. Judging from your original mail I do
think it does though because you connect to port 465 and that is
ssmtp.

Can you try this:
openssl s_client -connect host:port
and see if that works. If it does it is a Sylpheed problem, if it
doesn't it's a SSL problem.

Cheers,
Darko
--
===============================================================
"Freedom is just another word for nothing left to lose"
Janis Joplin, Me And Bobby McGee
===============================================================


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Frank Schloeder
2003-05-30 21:33:16 UTC
Permalink
Post by Darko K.
[...]
openssl s_client -connect host:port
and see if that works. If it does it is a Sylpheed problem, if it
doesn't it's a SSL problem.
ok. here is the output:
openssl s_client -connect mail:465
CONNECTED(00000003)
1293:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol:s23_clnt.c:475:

but with the option -starttls smtp
it works i think
--------------------
openssl s_client -starttls smtp -connect mail:465

CONNECTED(00000003)
depth=0 /C=DE/ST=Germany/L=Cologne/O=University of Cologne/OU=Department
of Physics/CN=mail.ph1.uni-koeln.de/emailAddress=***@ph1.uni-koeln.de
verify error:num=18:self signed certificate
verify return:1
...
SSL-Session:
Protocol : TLSv1
Cipher : DES-CBC3-SHA
Session-ID:
98674D36CEC3A2E2C2460685D8A3B5BEF6A364BF131595EE5C41FE9CC2741D11
Session-ID-ctx:
Master-Key:
50C3B2D622607127EDA72C74913FD8F8A613F5AB26C0799F7BEE17E4DAC5D6384AE035E29763A6E92A7DC371E2007C60
Key-Arg : None
Krb5 Principal: None
Start Time: 1054330055
Timeout : 300 (sec)
Verify return code: 18 (self signed certificate)
---
220 mail.ph1.uni-koeln.de ESMTP Exim 3.35 #1 Fri, 30 May 2003 23:25:33 +0200
--------------------------------------------
and witth the option -ssl2
openssl s_client -ssl2 -connect mail:465
CONNECTED(00000003)
---------------

do you see the problem or solution :-)

Cheers,
Frank.




-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Syafril Hermansyah
2003-05-31 17:52:55 UTC
Permalink
Post by Frank Schloeder
i have installed
openssl-0.9.7a-5
openssl-devel-0.9.7a-5
these packages came with RH9
I think you should upgrade to 0.9.7.
I remember that I have this kind of problem when using Claws W32, then
Thorsten Maerz upgrade to openssl 0.9.7, since then everything fine
either SSL or TLS connection (POP/SMTP). On openssl 0.9.5 I have problem
with TLS but no problem with SSL.
--
syafril
-------
Syafril Hermansyah<syafril.dutaint.co.id>
.



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Timo Gerke
2003-05-31 20:17:35 UTC
Permalink
On Sun, 1 Jun 2003 00:52:55 +0700
Post by Syafril Hermansyah
Post by Frank Schloeder
i have installed
openssl-0.9.7a-5
openssl-devel-0.9.7a-5
these packages came with RH9
I think you should upgrade to 0.9.7.
I remember that I have this kind of problem when using Claws W32, then
Thorsten Maerz upgrade to openssl 0.9.7, since then everything fine
either SSL or TLS connection (POP/SMTP). On openssl 0.9.5 I have problem
with TLS but no problem with SSL.
Hi Syafril,

0.9.7a doesn't mean 0.9.7 alpha.

Regards,
--
| Timo Gerke Phone: +49-40-32519337 |
| Lohbekstieg 63 E-Mail: ***@web.de |
| 22529 Hamburg IRC: irc.freenode.net |
+------------- Usenet compatible signature --------------+

BOFH excuse #100: IRQ dropout
Syafril Hermansyah
2003-06-01 15:25:46 UTC
Permalink
Post by Timo Gerke
0.9.7a doesn't mean 0.9.7 alpha.
I don't know for sure, but I also using it on linux box

[***@home syafril]$ openssl version
OpenSSL 0.9.7a Feb 19 2003
--
syafril
-------
Syafril Hermansyah<syafril.dutaint.co.id>
.



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Continue reading on narkive:
Loading...