Skip to content
Permalink
Browse files

FIX: POP3 doesn't work with TLS 1.3

  • Loading branch information...
gschlager committed Sep 11, 2019
1 parent f7ad879 commit 56c6e8e961ab59336953bb564debcad7288d4fc0
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/jobs/scheduled/poll_mailbox.rb
  2. +1 −1 lib/tasks/emails.rake
@@ -34,7 +34,7 @@ def poll_pop3

if SiteSetting.pop3_polling_ssl
if SiteSetting.pop3_polling_openssl_verify
pop3.enable_ssl
pop3.enable_ssl(max_version: OpenSSL::SSL::TLS1_2_VERSION)
else
pop3.enable_ssl(OpenSSL::SSL::VERIFY_NONE)
end
@@ -37,7 +37,7 @@ task "emails:import" => :environment do

mails_left = 1
pop3 = Net::POP3.new(address, port)
pop3.enable_ssl if ssl
pop3.enable_ssl(max_version: OpenSSL::SSL::TLS1_2_VERSION) if ssl

while mails_left > 0
pop3.start(username, password) do |pop|

1 comment on commit 56c6e8e

@discoursebot

This comment has been minimized.

Copy link

commented on 56c6e8e Sep 11, 2019

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/pop3-polling-ssl-issue/128265/3

Please sign in to comment.
You can’t perform that action at this time.