NetTalk Central

Author Topic: Hotmail and TLS using NT 6.51  (Read 8120 times)

PaulMacFarlane

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • Email
Hotmail and TLS using NT 6.51
« on: May 12, 2015, 11:52:08 PM »
I have an older project in C55 using NT 6.51.  Client had been sending messages via Hotmail.
Not it doesn't work...

Gives and error -53.  

If I uncheck TLS I get an error indicating I need to start TLS...
If I StartTLS I get the error -53

So, something's happening but not sure why the error -53....

Any suggestions?  Is TLS broken in this release (6.51)?
« Last Edit: May 13, 2015, 10:53:42 PM by PaulMacFarlane »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Hotmail and TLS using NT 6.51
« Reply #1 on: May 13, 2015, 11:38:21 PM »
Hi Paul,

You're probably gonna get lucky Paul, but take this as a warning because I predict pretty soon you're gonna have a problem.

The root of the issue is that the internet is a very fluid beast. So things are changing all the time with regard to what services support, and don't support. Many services switched to SSL, then to TLS and then potentially to TLS 1.1, 1.2 and so on.

Last November an issue with SSL v3 surfaced which has resulted in many services turning off support for SSL v3. More recently there has been a push away from TLS 1.0 to TLS 1.2 and I expect that in future months and years that will continue.

NetTalk 6 supports SSL up to TLS v1, but not 1.1 or 1.2. Obviously later NetTalks have that support, but you're in Clarion 5.5 so your update path there is limited.

So here's the short answer - You can fully expect Clarion 5.5 programs to slowly start not being able to connect to any external services. That includes mail, ftp, web, whatever. Most everything is moving to secure now (email used to be plain-text but is now often SSL, same for FTP and same for Web.) You probably have a window to update the program, or alternatively for the parties to accept that it will gradually degrade in abilities.

Regarding the Hotmail settings - I would recommend using the NetDemo program and playing with the different settings it offers to determine what the best combination for hotmail is. If you're lucky they haven't discarded TLS 1.0 completely yet.

Also test with the NetDemo from your NT8 or NT7 - that will be the best test, then you can try back porting those settings to the 5.5 app.

Cheers
Bruce




PaulMacFarlane

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • Email
Re: Hotmail and TLS using NT 6.51
« Reply #2 on: May 15, 2015, 12:40:40 AM »
Well I wrote a test app in C8 w/NT8.18 with the same error -53 result.

So, what does that error mean?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Hotmail and TLS using NT 6.51
« Reply #3 on: May 16, 2015, 12:38:25 PM »
From NetAll.Inc;

ERROR:OpenTimeOut                     equate(-53)

Which typically means the URL or port number you are using is wrong.

cheers
Bruce

PaulMacFarlane

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • Email
Re: Hotmail and TLS using NT 6.51
« Reply #4 on: May 18, 2015, 09:44:48 AM »
Using Nettalk Demo I've got the same problem.  This is what the LOG generates. 
I don't see a problem:

0 <71 < 220 BLU436-SMTP9.smtp.hotmail.com Microsoft ESMTP MAIL Service, Version: 8.0.9200.16384 ready at  Mon, 18 May 2015 10:42:53 -0700
84 > EHLO outlook.com
84 < 250-BLU436-SMTP9.smtp.hotmail.com Hello [98.173.162.234]
250-TURN
250-SIZE 41943040
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-TLS
250-STARTTLS
250 OK
85 > STARTTLS
85 < 220 2.0.0 SMTP server ready

bijan

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • Email
Re: Hotmail and TLS using NT 6.51
« Reply #5 on: May 18, 2015, 02:00:39 PM »
Hi Paul,

Which port are you using?
Is the sender's email a hotmail account?

I tested Microsoft Live a few month back and it worked fine. Should be similar or same.

Please look at the following links:

http://www.serversmtp.com/en/smtp-hotmail

http://email.about.com/od/accessinghotmail/f/Windows_Live_Hotmail_SMTP_Settings.htm

Bijan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Hotmail and TLS using NT 6.51
« Reply #6 on: May 20, 2015, 01:28:20 AM »
What SSLMethod are you using for the connection?
(The default in NT 6 will likely cause the Error -53, SSL Error 16)

so set the SSLMethod specifically - in the NetDemo, and your app to
NET:SSLMethodTLSv1

thisEmail.SSLMethod = NET:SSLMethodTLSv1

Cheers
Bruce