Jump to content
  • 0

Mono Password Reset error?


Justn

Question

Hi all!

 

I recently updated my game server and tried adding my old working smtp settings I instantly get this error:

 

> 2021-04-10 17:53:47.319 [Error] Failed to send email (Subject: Intersect Game Engine - Password Reset Code) to justn@gmail.com. Reason: Uncaught Error
System.Net.Mail.SmtpException: Message could not be sent. ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> Mono.Btls.MonoBtlsException: Ssl error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER
  at /build/mono-6.8.0.96/external/boringssl/ssl/tls_record.c:217
  at Mono.Btls.MonoBtlsContext.ProcessHandshake () [0x00048] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
  at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) [0x000da] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
  at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus,bool)
  at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00006] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
  at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (System.Threading.CancellationToken cancellationToken) [0x000fc] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
   --- End of inner exception stack trace ---
  at Mono.Net.Security.MobileAuthenticatedStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0004b] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
  at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.AuthenticateAsClient(string,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Security.Authentication.SslProtocols,bool)
  at System.Net.Security.SslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x00006] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
  at System.Net.Mail.SmtpClient.InitiateSecureConnection () [0x0005b] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
  at System.Net.Mail.SmtpClient.SendCore (System.Net.Mail.MailMessage message) [0x000a0] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
  at System.Net.Mail.SmtpClient.SendInternal (System.Net.Mail.MailMessage message) [0x00050] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
  at System.Net.Mail.SmtpClient.Send (System.Net.Mail.MailMessage message) [0x00084] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
   --- End of inner exception stack trace ---
  at System.Net.Mail.SmtpClient.Send (System.Net.Mail.MailMessage message) [0x0009f] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
  at Intersect.Server.Notifications.Notification.Send () [0x000eb] in C:\Users\Justin\Desktop\GitRepo\Amara\Intersect.Server\Notifications\Notification.cs:61  

 

 

 

Config settings:

 "SmtpSettings": {
    "FromAddress": "support@landsofamara.com",
    "FromName": "Lands of Amara Support",
    "Host": "landsofamara.com",
    "Port": 587,
    "UseSsl": true,
    "Username": "support@landsofamara.com",
    "Password": "abc123"
  },

 

 

 

Next I changed the port to match what my email server shows:

Username: support@landsofamara.com

Password: Use the email account’s password.

Incoming Server: landsofamara.com

Outgoing Server: landsofamara.com

SMTP Port: 465

 

When I do that nothing happens and I eventually get a connection timed out message on the server:

 

> 2021-04-10 17:48:13.122 [Error] Failed to send email (Subject: Intersect Game Engine - Password Reset Code) to justn53@gmail.com. Reason: Uncaught Error
System.Net.Mail.SmtpException: Message could not be sent. ---> System.IO.IOException: Connection closed
  at System.Net.Mail.SmtpClient.Read () [0x000bd] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
  at System.Net.Mail.SmtpClient.SendCore (System.Net.Mail.MailMessage message) [0x00000] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
  at System.Net.Mail.SmtpClient.SendInternal (System.Net.Mail.MailMessage message) [0x00050] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
  at System.Net.Mail.SmtpClient.Send (System.Net.Mail.MailMessage message) [0x00084] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
   --- End of inner exception stack trace ---
  at System.Net.Mail.SmtpClient.Send (System.Net.Mail.MailMessage message) [0x0009f] in <4d8f95b7df544b3fa1a27dda924b4424>:0 
  at Intersect.Server.Notifications.Notification.Send () [0x000eb] in C:\Users\Justin\Desktop\GitRepo\Amara\Intersect.Server\Notifications\Notification.cs:61 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
  On 4/10/2021 at 11:29 PM, Justn said:

 

@jcsnider Ok so I tried it and I received the same error.

So I just tried changing  "UseSsl": true, to false and it worked. Something wrong with my SSL I just renewed it yesterday?

 

 

*Also not sure if related but I noticed this when starting up the server:

gpath.c:115: assertion 'filename != NULL' failed

Expand  

If turning off UseSSL worked then your host isn't using SSL for mail. (SSL for mail and SSl for websites are different)

 

The gpath assertions can be ignored, not a problem :) 

Link to comment
Share on other sites

  • 0
  On 4/10/2021 at 9:44 PM, jcsnider said:

So the first config is the one you want, the server doesn't listen on 465.

 

I just made a tweak so your server runs on Mono v6.12.X instead of 6.8.X.. try that again and see if it works

Expand  

 

@jcsnider Ok so I tried it and I received the same error.

So I just tried changing  "UseSsl": true, to false and it worked. Something wrong with my SSL I just renewed it yesterday?

 

 

*Also not sure if related but I noticed this when starting up the server:

gpath.c:115: assertion 'filename != NULL' failed

Edited by Justn
Link to comment
Share on other sites

×
×
  • Create New...