Open bcsridhar opened 6 years ago
A brief google search reveals it could be at least one of three possibilities:
1. It is a Microsoft's mechanism to shut down chatty clients. The solution would be to login to this account less frequently. 2. It is due to a bug in the IMAP implementation. If the client presents a valid user name but an invalid password, the server accepts the login, but subsequent commands fail with the aforementioned error message. 3. It is a shared mailbox and you are using incorrect login scheme. Use Username@DomainName\SharedMailboxAlias for O365
If none of those help, I'm not sure what to suggest, you will have to contact either whoever administers your account or Microsoft because there is something misbehaving on the server side.
Is there any workaround that i can implement ?
I have no personal experience with Microsoft IMAP servers, so I do not have anything to suggest other than look around on google for other possible solutions and/or contact Microsoft about it.
Thanks for that, what if I keep the connection alive (keepalive : true) and reuse the connection instead of login and login out multiple times will that considered a chatty client.
I really don't know, it may be worth a try though.
@bcsridhar Hi. Did you find a solution or workaround to this problem. I seem to face a similar situation where I get this error after doing some operations on the mail box.
I am facing the same issue, is there any workaround found?
what I am trying to is, every 30 seconds I am checking my office o365 mail account that is there any mail arrived.
it works for few successful attempts, but suddenly this error appears
`events.js:183 throw er; // Unhandled 'error' event ^
Error: User is authenticated but not connected.
at Connection._resTagged (I:\Projects\QFRM\KEDBNodeElasticSearch\node_modules\imap\lib\Connection.js:1502:11)
at Parser.
@Roledenez me too i have the same issue , please can you help me to implement it
@Roledenez @Rebaiahmed @bcsridhar facing the same issue with outlook. Did you guys get any solution?
Any solution to this problem?
This is the error you'll get when IMAP is disabled at the user level. Set-CasMailbox -ImapEnabled $True/$False.
It might also be the case if Security Defaults are enabled, meaning Basic Auth is disabled. New tenants created these days have Security Defaults enabled.
I was getting this error when more than two connections were being made from the same machine. It was rejecting the third connection. Restricting it to one connection solved the problem for me.
When I try to connect to my office365 account I get the below error, "A3 BAD User is authenticated but not connected" The same code works for sometimes also I have checked the password by logging into webmail. Please help,
Debug Log:- <= 'A1 OK LOGIN completed.' => 'A2 CAPABILITY' <= '* CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CLIENTACCESSRULES CLIENTNETWORKPRESENCELOCATION BACKENDAUTHENTICATE CHILDREN IDLE NAMESPACE LITERAL+' <= 'A2 OK CAPABILITY completed.' => 'A3 NAMESPACE' <= 'A3 BAD User is authenticated but not connected.