Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant connect via SSL, wrong version #38

Open
scrummie02 opened this issue Feb 12, 2022 · 1 comment
Open

Cant connect via SSL, wrong version #38

scrummie02 opened this issue Feb 12, 2022 · 1 comment

Comments

@scrummie02
Copy link

Using docker image with config with SSL set to true and the correct port get the following:

account1/__ALL__ (on imap.host)
Traceback (most recent call last):
  File "/opt/bin/imapbox.py", line 98, in <module>
    main()
  File "/opt/bin/imapbox.py", line 89, in main
    for folder_entry in get_folder_fist(account):
  File "/opt/bin/mailboxresource.py", line 115, in get_folder_fist
    mailbox = imaplib.IMAP4_SSL(account['host'], account['port'])
  File "/usr/local/lib/python3.7/imaplib.py", line 1288, in __init__
    IMAP4.__init__(self, host, port)
  File "/usr/local/lib/python3.7/imaplib.py", line 198, in __init__
    self.open(host, port)
  File "/usr/local/lib/python3.7/imaplib.py", line 1301, in open
    IMAP4.open(self, host, port)
  File "/usr/local/lib/python3.7/imaplib.py", line 299, in open
    self.sock = self._create_socket()
  File "/usr/local/lib/python3.7/imaplib.py", line 1293, in _create_socket
    server_hostname=self.host)
  File "/usr/local/lib/python3.7/ssl.py", line 423, in wrap_socket
    session=session
  File "/usr/local/lib/python3.7/ssl.py", line 870, in _create
    self.do_handshake()
  File "/usr/local/lib/python3.7/ssl.py", line 1139, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1076)
@Maurice-Mueller
Copy link
Contributor

I just updated the container because I ran into a similar issue. So you can try again and see if it works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants