[mew-int 2913] Re: Problems connecting to imap with TLS
Harald Hanche-Olsen
hanche at example.com
Mon Aug 30 18:23:16 JST 2010
+ Harri Kiiskinen <harri.kiiskinen at example.com>:
> The web page with instructions for Thunderbird (which does work,
> incidentally) says: server imap.utu.fi, security STARTTLS, port 143,
> auth.type 'normal password', perhaps meaning PLAIN.
Ah. Your original setup should have worked, then.
I think the most likely explanation is exactly what the error message
says: Input line too long.
If you connect to port 143 of imap.utu.fi you get this greeting:
* OK [CAPABILITY STARTTLS CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY UNSELECT SORT LANGUAGE IDLE XSENDER X-NETSCAPE XSERVERINFO X-SUN-SORT X-SUN-IMAP X-ANNOTATEMORE X-UNAUTHENTICATE XUM1 AUTH=PLAIN AUTH=PLAIN] Messaging Multiplexor (Sun Java(tm) System Messaging Server 7.3-11.01 (built Sep 1 2009))
That is 337 bytes. Looking for the error message "Input line too long"
in the stunnel source code reveals that it expects input lines no
longer than 256 bytes, including the terminating null character.
One possible workaround might be to patch the file common.h in the
stunnel source code, changing the line
#define STRLEN 256
to use a bigger number (such as 512).
- Harald
More information about the Mew-int
mailing list