Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

"Stream error" during SMTP-SSL connection #605

Open
link2xt opened this issue Mar 10, 2019 · 4 comments
Open

"Stream error" during SMTP-SSL connection #605

link2xt opened this issue Mar 10, 2019 · 4 comments

Comments

@link2xt
Copy link
Contributor

link2xt commented Mar 10, 2019

I am running deltachat-fat-debug-0.101.0.apk on Android, but the issue seems to be in deltachat-core.

I have an SMTP server that only accepts SSL/TLS on port 465, but not port 587. When trying to connect, I get error "SMTP-Socket connection to SERVER_REDACTED:587 failed (Connection refused)". This error is irrelevant due to the bug #594

Attaching adb to DeltaChat, I get the following log:

I DeltaChat: Configure ...
I DeltaChat: Trying: LOGIN_REDACTED LOGIN_REDACTED:***:SERVER_REDACTED:993 LOGIN_REDACTED:***:SERVER_REDACTED:465 AUTH_NORMAL IMAP_SSL SMTP_SSL
I DeltaChat: IMAP-server SERVER_REDACTED:993 SSL-connected.
E DeltaChat: SMTP-SSL connection to SERVER_REDACTED:465 failed (Stream error)
I DeltaChat: Trying: LOGIN_REDACTED LOGIN_REDACTED:***:SERVER_REDACTED:993 LOGIN_REDACTED:***:SERVER_REDACTED:587 AUTH_NORMAL IMAP_SSL SMTP_STARTTLS
E DeltaChat: SMTP-Socket connection to SERVER_REDACTED:587 failed (Connection refused)
I DeltaChat: IMAP disconnected.

I can trace this "Stream error" down to

but there is no context available on where exactly this MAILSMTP_ERROR_STREAM is returned.

@link2xt
Copy link
Contributor Author

link2xt commented May 10, 2019

If deltachat is going to move to deltachat-core-rust, I may just stop caring about this since libetpan is going away:
deltachat/deltachat-core-rust@83917ef#diff-a7b0a2dee0126cddf994326e705a91ea

(or not, looks like mmime is a c2rust translation of libetpan)

@r10s
Copy link
Member

r10s commented May 10, 2019

yip, i would not put much effort into this and see how deltachat-core-rust behaves.

mmime is only used for mime-parsing, there is no network involved in this part. the imap- and smtp-parts of libetpan are going to be rewritten in pure-rust, resp. this is already done :)

@link2xt
Copy link
Contributor Author

link2xt commented Jul 2, 2019

Everything works on 0.500.0, closing this.

@link2xt link2xt closed this as completed Jul 2, 2019
@link2xt
Copy link
Contributor Author

link2xt commented Jul 2, 2019

Reopening. The interface works, but nothing is actually sent/received. After some timeout, I get errors on the screen, both for SMTP and IMAP.

Waiting for Rust version, then. I have been able to receive a message sent from example REPL with an ordinary MUA.

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

No branches or pull requests

2 participants