Bug 3244

Summary: Claws-mail fails connection to imap server as "connection refused" (ipv6=unreachable, ipv4=reachable)
Product: Claws Mail (GTK 2) Reporter: Bruno <bonbons67>
Component: Folders/IMAPAssignee: users
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 3.10.1   
Hardware: PC   
OS: Linux   

Description Bruno 2014-08-07 22:53:16 UTC
When attempting to connect to imap server claws-mail show error message stating that connection was refused.

stracing claws-mail during such an operation shows:
socket()
connect( ipv6-addr ): NETWORK UNREACHABLE

write(stderr, ... IMAP error on hostname.tld: connection refused ...)


I would expect claws-mail to retry connection to ipv4 address and only if that one fails too, report either failure cause of connection to ipv6 address or ipv4 address, but not an invented "connection refused" when it effectively is "network unreachable". "connection refused" means that either server or a firewall in between has actively rejected the connection. If there is no granularity regarding the cause available the error message should rather be "connection failed" instead of "connection refused".

Should apply to more recent releases as well unless news omitted to report a fix.
Comment 1 Paul 2014-08-21 10:32:57 UTC
version 3.9.0 is 18 months old and several releases and many changes have happened since then. Re-open this bug if you can reproduce it with the latest release.
Comment 2 Bruno 2014-08-23 19:50:43 UTC
Updated to 3.10.1 and the issue is the same.
Comment 3 Andrej Kacian 2015-11-23 15:15:26 UTC
This should be fixed in 3.13.0. Feel free to reopen if not, we will have another lookg at it.