mobizt / ESP-Mail-Client

The comprehensive Arduino Email Client Library to send and read Email for Arduino devices. The library also supports other network shields or modules e.g., Wi-Fi, Ethernet, and GSM/4G modules.
https://mobizt.github.io/ESP-Mail-Client/
MIT License
200 stars 58 forks source link

startTLS #160

Closed fiveoften closed 2 years ago

fiveoften commented 2 years ago

Build tool used:

Board used (ESP32/ESP8266/Arudino): Lolin(wemos) D1 R2 & Mini

Other Libraries That are used:

none

Description of problem:

we have the problem that we dont get a startTLS connection. he refuse TLS on Port 143. Port: 993 SSL works great.

16:41:13.426 -> IMAP server connected 16:41:13.426 -> > server connected 16:41:13.426 -> 16:41:13.426 -> Check the capability... 16:41:13.426 -> > check the capability 16:41:13.426 -> OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS LOGINDISABLED AUTH=CRAM-MD5] Dovecot (Debian) ready. 16:41:13.426 -> CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS LOGINDISABLED AUTH=CRAM-MD5 16:41:13.426 -> $ OK Pre-login capabilities listed, post-login capabilities have more. 16:41:13.426 -> 16:41:13.426 -> Send command, STARTTLS 16:41:13.426 -> > send STARTTLS command 16:41:13.426 -> STARTTLS BAD Error in IMAP command received by server. 16:41:43.265 -> Error, connection closed 16:41:43.265 -> > E: connection closed

Additional information and things you've tried:

SSL works great.

our emailserver setup is after this tutorial https://workaround.org/ispmail/bullseye/

mobizt commented 2 years ago

I'm investigating this issue.

mobizt commented 2 years ago

The library update v2.1.2 is available with this issue fixed.

Please update.