0 votes

Running the same software from two machines, using identical configuration, trying to read an imap (MSExchange) mail box.

One works fine - the other says

login failed. Description:Tried to read a line. Only '


Pe\0v[Vx¨$‰[T‰å°$†Í8éüWÁgy
5–§
$‡
o½HÏÇГE”5aúó¬SÒÒ_Ùø¬ :ÿý\9q'õÃ
lÙ QÉžÛ' received.

Any ideas what this is indicative of ?
What could be configured on one OS and not the other which might cause this. (Note that the connect phase was successful).

Thanks

by
What protocol you are using? POP3, SMTP. IMAP? How does your code look like?
IMAP

code is along the lines of

                fUseSSL = True
                Try
                    m_imap.Connect(strHost, CInt(strPort), fUseSSL)
                Catch ex As Exception
                    m_LogThread.LogException(ex.Message)
                End Try


                Try
                    m_imap.Login(strAccount, strPassword_Clear)
                Catch ex As Exception
                    m_LogThread.LogException(ex.Message)
                    Return ""
                End Try

and is obviously failing on the login.
What is the exception's stack trace? Can you turn on logging: https://www.limilabs.com/blog/logging-in-mail-dll
unfortunately not - it is on a remote machine which I do not have access to.  However I have just been given more information. It DOES fail on the connect.

"The remote certificate is invalid according to the validation procedure"
The remote certificate is invalid according to the validation procedure:
https://www.limilabs.com/blog/the-remote-certificate-is-invalid-according-to-the-validation-procedure

1 Answer

0 votes

Please make sure that the antivirus (this includes Windows Defender) is disabled or configured correctly.

If you are getting the remote certificate is invalid according to the validation procedure, you are either using self sign certificate, or AV software (or malicious software) is trying to bypass SSL traffic.

You can ignore this error, but this may lead to security risk:
https://www.limilabs.com/blog/the-remote-certificate-is-invalid-according-to-the-validation-procedure

by (301k points)
edited by
...