Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Studbaker  
#1 Posted : Thursday, November 21, 2019 6:27:33 AM(UTC)
Studbaker

Rank: Newbie

Groups: Registered
Joined: 11/21/2019(UTC)
Posts: 1
Location: Noirge

I have had a program that has worked until recently. I now get a handshake error - nothing in my program or setuup has changed.

Errrorlog is as follows:
220 2.0.0 SMTP server ready
[SSL]client handshake
[SSL]client handshake failed
connect failed

The error only happens on win2003 servers. Same program does it correctly on a newer server:
[SSL]client handshake
[SSL]warning: client certificate is required
[SSL]verify server certificate
[SSL]EHLO terminalserver.local
250-AM0PR06CA0032.outlook.office365.com Hello [85.112.155.187]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH LOGIN XOAUTH2
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
[SSL]AUTH LOGIN
etc

My softwarecode is as follows:
objmail.LicenseCode = "Sensured"
objmail.ServerAddr = "smtp.office365.com"
objmail.FromAddr = "Sensured"
objmail.UserName = "Sensured"
objmail.Password = "Sensured"
objmail.AddRecipient "Epostkopi", "epostkopi@eggum.no", 2
objmail.ReplyTo = "Erik@eggum.no"
objmail.SSL_init
objmail.ServerPort = 587
objmail.Protocol = 0
objmail.LogFileName = "c:\eggum\EpostLoggTest" & Format(Now, "YYYY-MM-DD") & ".TXT"
objmail.Subject = "Test"
objmail.BodyText = "Testbody"
objmail.AddRecipient "Erik@eggum.no", "erik@eggum.no", 0
' If objmail.AddAttachment("erik@eggum.no") <> 0 Then
' End If
If objmail.SendMail() = 0 Then
End If


Does anyone know why I suddently get a handshake error, but only on win2003 servers ?

Br Erik
ivan  
#2 Posted : Thursday, November 21, 2019 6:47:34 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,153

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
Hi, that is because office365 requires TLS 1.2 now. You have to upgrade OS to windows 2008/7 or later version.

To enable TLS 1.2 on Windows 2008/2008 R2/7, you also need to install this update:

TLS 1.2 Support added to Windows Server 2008
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.060 seconds.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.