deltachat / deltachat-desktop

Email-based instant messaging for Desktop.
GNU General Public License v3.0
915 stars 166 forks source link

cannot connect via SSL on mac #109

Closed r10s closed 5 years ago

r10s commented 6 years ago

when i try to login on mac, i get the error message Could not connect to IMAP-server imap.server.org:993 using SSL. (Error #43). in the core, the error is issued at https://github.com/deltachat/deltachat-core/blob/master/src/dc_imap.c#L1125 and error #43 is MAILIMAP_ERROR_SSL which is returned from libetpan if ssl fails.

i tried this with @deltachat.de and @librechat.net addresses, on desktop/linux, the addresses work. (for @librechat.net the DC_EVENT_HTTP_GET works btw and gets the server names from https://autoconfig.librechat.net/ :)

maybe openssl is not working properly on mac.

would be interesting if non-ssl connection will work, however, currently, there are no options to make advances settings.


EDIT: Lets write some action points below and tick them off one by one until mac works.

ralphtheninja commented 6 years ago

Ah bummer, but can't say that I'm surprised. Maybe we should look into getting LibreSSL, mac on travis reports the following:

screenshot from 2018-10-01 16-23-52

ralphtheninja commented 5 years ago

I have no idea how to address this.

ralphtheninja commented 5 years ago

Now I have an idea. Given that:

We should be able to build the desktop app on mac using LibreSSL, which potentially might make ssl work.

ralphtheninja commented 5 years ago

This issue is strange. Building with LibreSSL doesn't fix it either. https://github.com/deltachat/deltachat-desktop/pull/295

I'm out of ideas again.

ralphtheninja commented 5 years ago

in the core, the error is issued at https://github.com/deltachat/deltachat-core/blob/master/src/dc_imap.c#L1125 and error #43 is MAILIMAP_ERROR_SSL which is returned from libetpan if ssl fails.

@r10s Could you re-post that link to a fixed commit instead? (Master has changed and it's pointing somewhere else)

ralphtheninja commented 5 years ago

Ok, have some new ideas. I was playing around with deltachat-node locally and made a simple test file. We can use this file together with debug environment on Travis to get more information. Also, I think it's easier to test with the node bindings first.

Jikstra commented 5 years ago

Problem was, that the brew package of libetpan was broken. @dignifiedquire fixed it with https://github.com/Homebrew/homebrew-core/pull/35546 . We need to wait for upstream and add a proper install instruction for mac to the Readme.

Jikstra commented 5 years ago

This is a core/node bindings problem. Closing in favor of https://github.com/deltachat/deltachat-core/issues/494

ralphtheninja commented 5 years ago

Sorry, but I think issues like this should be closed when the underlying problem has been solved. Even though the fix is elsewhere. You can then link to the release when it was fixed and we have a better connected story of when something happened and what the fix was.

Jikstra commented 5 years ago

@ralphtheninja i'm fine with this, actually it makes very much sense to keep this open for the mac milestone. Sorry for closing this :)