package fetchmail retitle 361825 Insufficient connect error messages for multi-IP hosts severity 361825 minor tags 361825 confirmed thanks
Greetings, This looks rather like an inaccurate/incomplete error reporting of fetchmail's rather than a genuine bug. The SockOpen() function will retry *ALL* addresses it obtained with their respective address families, so it has probably tried IPv4 first, got "connection refused" or something, then tried IPv6 last and returned only the EAFNOSUPPORT error. Example that shows that fetchmail will try IPv4 sockets for IPv4 addresses: | $ LC_MESSAGES=C FETCHMAILHOME=/tmp strace -econnect,socket fetchmail -p pop3 -vv localhost --auth ssh | ... | socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3 | connect(3, {sa_family=AF_INET, sin_port=htons(110), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ECONNREFUSED (Connection refused) | socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 3 | connect(3, {sa_family=AF_INET6, sin6_port=htons(110), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 ECONNREFUSED (Connection refused) | POP3 connection to localhost failed: Connection refused | fetchmail: 6.3.4+svn querying localhost (protocol POP3) at Mi 10 Mai 2006 12:45:02 CEST: poll completed In conclusion, the title is wrong. I am retitling the bug. The fix will have to be that fetchmail logs every attempt and the result in order to not mislead the user. Severity adjusted to minor. Regards, -- Matthias Andree -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]