Cannot connect to SMTP w/ TLS, fails with TlsException

Sonarr version (exact version): 2.0.0.4949
Mono version (if Sonarr is not running on Windows): Mono JIT compiler version 4.2.3 (Stable 4.2.3.4/832de4b Wed Mar 16 13:19:08 UTC 2016)
OS: Ubuntu 14.04.5 LTS
((Debug logs)):
(Make sure debug logging is enabled in settings and post the full log to hastebin/pastebin/dropbox/google drive or something similar, do not post them directly here)
Description of issue:

I’m trying to send SMTP notifications from sonarr using SSL (port 587, SSL enabled). It connects to my SMTP server but immediately fails with a TlsException. Relevant statements from the log:

17-11-3 07:07:24.5|Error|EmailService|Error sending email. Subject: Sonarr - Test Notification
17-11-3 07:07:24.6|Error|EmailService|Unable to send test email
[v2.0.0.4949] System.Net.Mail.SmtpException: Message could not be sent. —> System.IO.IOException: The authentication or decryption has failed. —> System.IO.IOException: The authentication or decryption has failed. —> Mono.Security.Protocol.Tls.TlsException: Unknown server handshake message received (32)

Would upgrading to a newer version of mono resolve this? I’m hesitant to do that b/c I see a lot of older posts re: mono 5.x and TlsException.

Thank you.

I’d think so, but I’m not sure if there will be any issues with mono for other reasons. Most of the 5.0 issues have been with other OSes though, so you may not experience problems.

I’d try 5.0 and see if it solve it and doesn’t cause other issues, I don’t have any other suggestions on what to do.

Thanks for the quick reply. I went ahead and upgraded mono:

$ mono --version Mono JIT compiler version 5.4.0.201 (tarball Fri Oct 13 21:47:28 UTC 2017)

This is the latest from the Mono ubuntu repo. It fixed the TLS/SMTP issue - nice! So far have not seen any problems. I’ll keep an eye on the logs for a few days and see if anything crops up.

Thanks for the help and all the work on sonarr. I’ve been using it for a year or so and it’s always been rock-solid. Very nice software.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.