-
Notifications
You must be signed in to change notification settings - Fork 64
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
TLS/SSL connection has been closed (EOF) with TLSv1 #118
Comments
Workaround: run in pyton2 with openssl 1.1: OfflineIMAP 7.3.4 I did this by using a container, which I built like so: FROM python:2-alpine
RUN apk add openssl & pip install offlineimap==7.3.4
ENTRYPOINT ["offlineimap"] and run like so function offlineimap {
if [[ -z "${XDG_CONFIG_HOME}" ]]; then
CONFIG="${HOME}/"
else
CONFIG="${XDG_CONFIG_HOME}/offlineimap/config"
fi
docker run \
--user "${UID}:${GID}" \
--mount type=bind,source="${CONFIG}",target="/.offlineimaprc" \
--volume "${HOME}/Mail":"/Mail" \
--volume "${HOME}/.offlineimap":"/.offlineimap" \
--rm -it \
offlineimap "$@"
} Where my local accounts end up in |
I had a similar problem. I needed to pass ciphers parameter into ssl:
So my solution was to add
This approach works fine with python3. |
I think this is an upstream issue:
though please correct me if I am wrong :-)
General information
offlineimap -V
): offlineimap v7.3.4, imaplib2 v2.101 (bundled)Configuration file offlineimaprc
Note: I have played with setting
ssl_version
and disabling starttls.Logs, error
Steps to reproduce the error
offlineimap
SSL notes
The server uses TLS version 1. The standard OpenSSL configuration in Ubuntu 22.04 does not allow the protocol. To get something useful, I use this openssl config (grabbed from stackoverflow):
Looking up the SSL information on the host (
OPENSSL_CONF=openssl_tls1.cnf openssl s_client -connect imap.cern.ch:993
):Input that openssl config blurb into the
/etc/ssl/openssl.cnf
, but that did not change the error when running offlineimap.What am I doing wrong?
The text was updated successfully, but these errors were encountered: