webcraft
posted this
29 December 2021
This is the error when exim is configured to use STARTTLS:
Unable to send email: 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 /usr/src/mono/external/boringssl/ssl/tls_record.c:217 at Mono.Btls.MonoBtlsContext.ProcessHandshake () [0x00048] in <89c0593a45af442582ca75c3a3483f44>:0 at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) [0x000da] in <89c0593a45af442582ca75c3a3483f44>: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 <89c0593a45af442582ca75c3a3483f44>:0 at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (System.Threading.CancellationToken cancellationToken) [0x000fc] in <89c0593a45af442582ca75c3a3483f44>: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 <89c0593a45af442582ca75c3a3483f44>: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 <89c0593a45af442582ca75c3a3483f44>:0 at System.Net.Mail.SmtpClient.InitiateSecureConnection () [0x0005b] in <89c0593a45af442582ca75c3a3483f44>:0 at System.Net.Mail.SmtpClient.SendCore (System.Net.Mail.MailMessage message) [0x000a0] in <89c0593a45af442582ca75c3a3483f44>:0 at System.Net.Mail.SmtpClient.SendInternal (System.Net.Mail.MailMessage message) [0x00050] in <89c0593a45af442582ca75c3a3483f44>:0 at System.Net.Mail.SmtpClient.Send (System.Net.Mail.MailMessage message) [0x00084] in <89c0593a45af442582ca75c3a3483f44>:0 --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient+<>c__DisplayClass90_0.<sendasync>b__0 (System.Object o, System.ComponentModel.DoWorkEventArgs ea) [0x0002c] in <89c0593a45af442582ca75c3a3483f44>:0 at System.ComponentModel.BackgroundWorker.OnDoWork (System.ComponentModel.DoWorkEventArgs e) [0x0000a] in <89c0593a45af442582ca75c3a3483f44>:0 at System.ComponentModel.BackgroundWorker.WorkerThreadStart (System.Object argument) [0x0000e] in <89c0593a45af442582ca75c3a3483f44>:0 --- End of stack trace from previous location where exception was thrown --- at EmailSenderPlugin.PluginMain.SendMail (System.String To, System.String Subject, System.String Message, System.Net.Mail.MailPriority Priority) [0x0013f] in <fd2cbd7f73b045439373025011a6e080>:0
And this one with TLSv1.2:
Unable to send email: System.Net.Mail.SmtpException: Message could not be sent. ---> System.IO.IOException: Connection closed at System.Net.Mail.SmtpClient.Read () [0x000bd] in <89c0593a45af442582ca75c3a3483f44>:0 at System.Net.Mail.SmtpClient.SendCore (System.Net.Mail.MailMessage message) [0x00000] in <89c0593a45af442582ca75c3a3483f44>:0 at System.Net.Mail.SmtpClient.SendInternal (System.Net.Mail.MailMessage message) [0x00050] in <89c0593a45af442582ca75c3a3483f44>:0 at System.Net.Mail.SmtpClient.Send (System.Net.Mail.MailMessage message) [0x00084] in <89c0593a45af442582ca75c3a3483f44>:0 --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient+<>c__DisplayClass90_0.<sendasync>b__0 (System.Object o, System.ComponentModel.DoWorkEventArgs ea) [0x0002c] in <89c0593a45af442582ca75c3a3483f44>:0 at System.ComponentModel.BackgroundWorker.OnDoWork (System.ComponentModel.DoWorkEventArgs e) [0x0000a] in <89c0593a45af442582ca75c3a3483f44>:0 at System.ComponentModel.BackgroundWorker.WorkerThreadStart (System.Object argument) [0x0000e] in <89c0593a45af442582ca75c3a3483f44>:0 --- End of stack trace from previous location where exception was thrown --- at EmailSenderPlugin.PluginMain.SendMail (System.String To, System.String Subject, System.String Message, System.Net.Mail.MailPriority Priority) [0x0013f] in <fd2cbd7f73b045439373025011a6e080>:0</fd2cbd7f73b045439373025011a6e080></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44></sendasync></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44></fd2cbd7f73b045439373025011a6e080></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44></sendasync></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44></89c0593a45af442582ca75c3a3483f44>