mscdex / node-imap

An IMAP client module for node.js.
MIT License
2.17k stars 383 forks source link

Node-Imap only works with gmail? #559

Closed marcelcremer closed 8 years ago

marcelcremer commented 8 years ago

Hello Everyone,

I have a problem connecting to servers. With my gmail account, node-imap works just fine. With all others, I get attempts like

<= '* OK [CAPABILITY IMAP4REV1 NAMESPACE ID AUTH=PLAIN AUTH=LOGIN UIDPLUS STARTTLS ACL METADATA] h*****.stratoserver.net IMAP4rev1 Citadel 8.24 ready'
=> 'A0 CAPABILITY'
{ Error: Timed out while authenticating with server
    at Timeout._onTimeout (..\node_modules\imap\lib\Connection.js:138:17)
    at tryOnTimeout (timers.js:224:11)
    at Timer.listOnTimeout (timers.js:198:5) source: 'timeout-auth' }
[connection] Closed

It looks like the 'A0 CAPABILITY' command is not ended with an \r\n - at least I have the same behaviour with manual connecting to the servers via telnet and don't press enter afterwards. If I do, both servers answer just fine:

image

I can reproduce the same behaviour also with Exchange ('A0 CAPABILITY' is sent - now answer from server until the timeout occurs). I've already extended the authTimeout to 60 seconds which didn't help too. I've tried SSL, StartTLS and tls deactivated. All Options had the same effect.

My Node Version is 6.2.1.

Any help would be appreciated.

Best Regards Marcel

mscdex commented 8 years ago

It should work with any IMAP server. I and many others have tested imap with non-gmail servers. You will not see the CRLF because they are stripped in the debug output.

I have never heard of Citadel before. I will try to set it up to reproduce the issue.

marcelcremer commented 8 years ago

Hey @mscdex, thank you for your answer. I uninstalled the whole citadel system and used a postfix instead. it seems to work with postfix. Most Likely Citadel doesn't implement the IMAP standard or some other issue occured.

Thank you for your time, I will close the ticket for now. Feel free to test citadel anyway, because it's an easy to use/install open source groupware.

BR Marcel