Unable to setup IMAP Account due to "Socket closed unexpectedly"
-
Hi,
trying to setup an IMAP Account in Vivaldi 6.7.3329.39 (Stable channel) stable (64-bit) under Linux.
It fails with the error message "Socket closed unexpectedly".
Server is a Cyrus IMAPD I'm running locally. The server log just gives the following error:
cyrus/imaps[1192322]: inittls: Loading hard-coded DH parameters cyrus/imaps[1192322]: imaps TLS negotiation failed: .... [x.x.x.x]
The server certificate is a current valid Sectigo certificate.
Server side TLS settings are as follows:
tls_ciphers: EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA256:EECDH:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!IDEA:!ECDSA:kEDH:CAMELLIA128-SHA:AES128-SHA tls_prefer_server_ciphers: 1 tls_versions: tls1_1 tls1_2 tls1_3
I tried removing the tls_ciphers line but it didn't help.
Any ideas about this? The setup works with a whole lot of other clients including Thunderbird, alpine, various Apple clients, iPhone, ...
Cheers!
-
@ferdiG Had you tried with 6.8.3381.46?
On which port do you connect with IMAP? -
@DoctorG not yet, can probably do so this weekend once I upgrade my computer.
-
@ferdiG This is a known issue, a bug report had previously been filed and has been resolved. Look for VB-102850 in a future changelog.
-
Yeah, it works now after upgrading to 6.8... thx!
-
@ferdiG The bug fix is not yet in 6.8 Stable or 6.9 Snapshot and I continue to see this same error.
-
Seeing the same problem adding an IMAP account. Interestingly enough, it worked before (as in yesterday) - but then just stopped syncing. I tried then to set up the account again and now I am seeing the "Socket closed unexpectedly" error.
The Vivaldi.net mail account account works.
My Vivaldi browser:
Vivaldi 6.9.3447.54 (Stable channel) (arm64)
Revision eb6838f766b38d733d372a9b2bcf2126d106591e
OS macOS Version 14.7 (Build 23H124)My password is correct, the mailserver is up (tested with its webmail)
-
@jbove I've inquired internally about the logging levels. The fix for VB-102850 shows it was in the first 6.9 Stable release.
-
@edwardp Thanks for checking - seems like the "fix" is not exactly working yet. My email account is fairly massive (it's 10 years old) and perhaps that's the reason why the connection is failing (timing out). The problem started when I deleted some "archived" folder; Gave up the hope on using the "Mail" client of Vivaldi for now. The webmail still works and at home I use Evolution (Fedora).
-
@jbove don't know if it will help but I recently configured a new pc with mail in vivaldi and have problems with some messages that vivaldi simply does not download. The error is not the same however and is logged mostly as "Fetch raw error: Socket timed out".
In my case I didn't solve the issue but I set the account synchronization option to just 1 month instead of all messages. With that the connection remains stable and the client works normally unless I go to the problematic messages. Don't know what your setting is but maybe it is worth checking it out.
-
@Durtro @jbove I've had issues with non downloadable emails. Checking IMAP logs I noticed the pattern that the connection dropped when some (not all) emails without body/subject only were next in queue. Apparently this caused a process on the server to have a hiccup and Vivaldi for some reason couldn't get the connection to stay open. I fixed my connection issues by sorting emails by size and delete all without any content in the mail body. Then it worked, but I wasn't able to reproduce the issue with new empty messages.
-> please sort mails by size on the server, permanently delete all that have no email body or are super small, and then try again downloading. Do you get more emails to download now? If so, it might corroborate my findings.
-
@WildEnte Not my case. The emails do have a body in the server. In fact all the e-mails I found with the problem have attachments. Also in my case I did have those same e-mails downloaded in two other older vivaldi instances (snapshot vivaldi in windows and linux).
Details here: https://forum.vivaldi.net/topic/101700/download-fetch-of-messages-not-working
In my case I imported the messages to a offline account so I could see the contents. Now I can see them in both the offline account and the original account but I still can't set the synchronization option to "All messages" because the client will stop functioning properly since it enters a loop trying to download the messages and getting disconnected.
-
@jbove If the connection is taking an unusually long time due to the volume of messages, that could be why you're still seeing the error.
When I started experiencing this issue, it was always with the AOL/Yahoo accounts. Yahoo did not implement IMAP according to Internet standards and when they began to operate AOL Mail, the same began to occur with AOL accounts. At least with AOL/Yahoo, the error corrected itself on its own, until the next time it occurred.
-
Thanks all for the replies - I had the option to remove the "archive" folder, which contained thousands of messages, and moved it to a local backup file (did this using Evolution) - now my Email account is again much lighter and lo-and-behold, setting up the account worked again in Vivaldi! Feels good to have done a "digital cleanup"; especially data that was not on a machine I own.