SSL error: wrong version number

AI-generated summary

User samtuke reports an SSL error (“wrong version number”) when enabling POP3 polling in Discourse, resulting in a generic UI error. The log points to an OpenSSL SSL_connect failure during POP3 authentication. samtuke follows up still seeking help. akhilgeothom suggests the issue may stem from Discourse’s lack of support for TLS 1.3 in POP3 polling, recommending enabling TLS 1.2 on the mail server instead. They also ask which mail service samtuke is using to further diagnose the issue.

Hello hello, when trying to enable POP3 polling a generic error appears in the UI: “sorry an error has occurred”. On checking the logs we see this:

OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: wrong version number) /usr/local/lib/ruby/2.6.0/net/protocol.rb:44:in `connect_non

What does this mean? Any pointers to the meaning or possible resolution of this issue would be much appreciated!

Full log and screenshot below.

Message (4 copies reported)

OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: wrong version number)
/usr/local/lib/ruby/2.6.0/net/protocol.rb:44:in `connect_nonblock'

Backtrace

/usr/local/lib/ruby/2.6.0/net/protocol.rb:44:in `connect_nonblock'
/usr/local/lib/ruby/2.6.0/net/protocol.rb:44:in `ssl_socket_connect'
/usr/local/lib/ruby/2.6.0/net/pop.rb:553:in `do_start'
/usr/local/lib/ruby/2.6.0/net/pop.rb:531:in `start'
/usr/local/lib/ruby/2.6.0/net/pop.rb:317:in `auth_only'
/var/www/discourse/lib/validators/pop3_polling_enabled_setting_validator.rb:39:in `authentication_works?'
/var/www/discourse/lib/validators/pop3_polling_enabled_setting_validator.rb:18:in `valid_value?'
/var/www/discourse/lib/site_settings/type_supervisor.rb:215:in `validate_value'
/var/www/discourse/lib/site_settings/type_supervisor.rb:140:in `to_db_value'
/var/www/discourse/lib/site_setting_extension.rb:349:in `add_override!'

Env

HTTP HOSTS: discuss.lightmeter.io

Any ideas? Still stuck on this

Hey! Did you fix it? I had a similar issue.
I was able to fix it by enabling TLS 1.2 in my mail server. I think discourse does not support SSL TLS1.3 while POP3 polling and that was causing the issue.
What service are you using for incoming mails?