Thursday, 1 June 2017

node-imap how to determine which tls options to specify for mailbox

I have written an email processing node client that will connect to various mail boxes using node-imap.

I have previously sucessfully connected to imap mail boxes using node-imap however, their imap set up was quite basic, so I didn't have to worry too much about the deeper options.

I have a need to connect to an exchange2013 mailbox, and all I have been told about it is that it uses 'secure imap' and after further questions that tls is enabled.

I suspect that I have to put something into the tlsoptions parameter of the node-imap connection to get it to connect, but i'm not actually that familiar with all of the details of imap, and I don't know how to find out what to put there, or if i'm looking in the right direction!

With the tls parameter set to true, when it attempts to connect I recieve the following error : TLS unknown protocol:openssl\ssl\s23_clnt

Can anybody please advise me if I do need to put something into the tlsoptions parameter and if so, how I find out what to put there? Or what questions I may be able to ask?

Thanks in advance,

LKC

PS sorry if this sounds like a daft question, it's just at this point my knowledge of the finer points of email is limited!



via LinKeCodes

No comments:

Post a Comment