Forum > Networking and Web Programming

Office365, Indy and SMTP

(1/2) > >>

kinu:
The error when I do
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- SMTP.Authenticate is


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Error connecting with SSL.EOF was observed that violates the protocol.
My settings in SMTP component:

Authtype - satDefault
Host - 'smtp.office365.com'
Port - 587
Username and Password set too.
UseTLS - utUseExplicitTLS

and in SSLHandler

SSLOptions.Method - sslvTLSv1
so in SSLVersion is the same.

What am I doing wrong?

rvk:
sslvTLSv1 ??????? for smtp.office365.com ?
That seems really old.


--- Quote ---We have already disabled TLS 1.0 and 1.1 for most Microsoft 365 services in the world wide environment. For Microsoft 365 operated by 21 Vianet, TLS1.0 and TLS1.1 will be disabled on June 30, 2023.
--- End quote ---
https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/opt-in-exchange-online-endpoint-for-legacy-tls-using-smtp-auth

Remy Lebeau:

--- Quote from: kinu on May 15, 2024, 11:13:39 am ---
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Error connecting with SSL.EOF was observed that violates the protocol.
--- End quote ---

That means the server is closing the TCP connection during the TLS handshake without sending a TLS alert first to explain why.


--- Quote from: rvk on May 15, 2024, 12:20:11 pm ---
--- Quote ---We have already disabled TLS 1.0 and 1.1 for most Microsoft 365 services in the world wide environment. For Microsoft 365 operated by 21 Vianet, TLS1.0 and TLS1.1 will be disabled on June 30, 2023.
--- End quote ---

--- End quote ---

IOW, change SSLOptions.Method to sslvTLSv1_2 instead.

kinu:
Thank you. Set it to TLS 1_2. Then I got an error about user permissions:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- ERROR: Authentication unsuccessful, user is locked by your organization's security defaults policy. Contact your administrator. [longstringwithmydomainandsomethingmore]
So I made and check the changes in Exchange console:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---PS C:\Users\miguel> Get-TransportConfig | Format-List SmtpClientAuthenticationDisabledSmtpClientAuthenticationDisabled : True PS C:\Users\miguel> Set-TransportConfig -SmtpClientAuthenticationDisabled $false PS C:\Users\miguel> Get-TransportConfig | Format-List SmtpClientAuthenticationDisabledSmtpClientAuthenticationDisabled : False And then the user, that is ok:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---GET-CASMailbox -Identity user@domain.com | Format-list SmtpClientAuthenticationDisabledSmtpClientAuthenticationDisabled : False
But I keep having same user locked error. I think this is an Office365 error now, not Indy nor Lazarus related, but could you help?

Remy Lebeau:

--- Quote from: kinu on May 16, 2024, 01:57:57 pm ---But I keep having same user locked error. I think this is an Office365 error now, not Indy nor Lazarus related, but could you help?

--- End quote ---

Sorry, I don't know anything about how to address that issue.  You will probably have to ask Microsoft.

Navigation

[0] Message Index

[#] Next page

Go to full version