Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: IMAP Authentication Error Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
VigneshS
Newbie
Newbie


Joined: 13 October 2022
Location: India
Online Status: Offline
Posts: 7
Posted: 13 October 2022 at 8:21am | IP Logged Quote VigneshS

Hi,
Am getting The server has rejected authentication data sent by the client. The server responded: MBN00000002 NO AUTHENTICATE failed

while trying to connect to imap

Here is the scope i have provided "scope=https://outlook.office365.com/.imap.accessasapp"

Able to get the access token and the Accesspasskey through GetXOAuthKeyStatic method

Error in the log is here
[20:40:34.00] [INFO] Assembly version: 12.3.0 build 647 for .NET Core 2.0.
[20:40:33.99] [INFO] Will resolve host "outlook.office365.com".
[20:40:34.00] [INFO] Host "outlook.office365.com" resolved to IP address(es) 40.99.34.194, 40.100.137.242, 52.98.86.162, 40.99.34.242.
[20:40:34.00] [INFO] Will connect to host "outlook.office365.com" on port 993.
[20:40:34.01] [INFO] Socket connected to IP address 40.99.34.194 on port 993.
[20:40:34.01] [INFO] Will start TLS/SSL negotiation sequence.
[20:40:34.04] [INFO] TLS/SSL negotiation completed.
[20:40:34.09] [RECV] * OK The Microsoft Exchange IMAP4 service is ready. [TQBBADAAUABSADAAMQBDAEEAMAAwADYAMwAuAEkATgBEAFAAUgBEADAAMQAuAFAAUgBPAEQALgBPAFUAVABMAE8ATwBLAC4AQwBPAE0A]\r\n [Total 160 bytes received.]
[20:40:34.10] [INFO] Get the list of IMAP4 capabilities via CAPABILITY command.
[20:40:34.10] [SEND] MBN00000001 CAPABILITY\r\n
[20:40:34.11] [RECV] * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+\r\n [Total 115 bytes received.]
[20:40:34.11] [RECV] MBN00000001 OK CAPABILITY completed.\r\n [Total 38 bytes received.]
[20:40:34.12] [INFO] Connected to mail service at host "outlook.office365.com" on port 993 and ready.
[20:40:34.59] [INFO] Will login as "dev-sophtrac@sophos.com".
[20:40:34.59] [INFO] Will try SASL PLAIN authentication method.
[20:40:34.60] [SEND] MBN00000002 AUTHENTICATE PLAIN\r\n
[20:40:34.60] [RECV] + \r\n [Total 4 bytes received.]
[20:40:34.60] [SEND] ********\r\n
[20:40:39.08] [RECV] MBN00000002 NO AUTHENTICATE failed.\r\n [Total 37 bytes received.]
[20:40:39.09] [INFO] Will try regular LOGIN authentication.
[20:40:39.09] [SEND] MBN00000003 LOGIN "" "********"\r\n
[20:40:47.18] [RECV] MBN00000003 NO LOGIN failed.\r\n [Total 30 bytes received.]
[20:40:47.21] [INFO] Error: Wrong account name and/or password. The server responded: MBN00000003 NO LOGIN failed.
Back to Top View VigneshS's Profile Search for other posts by VigneshS
 
VigneshS
Newbie
Newbie


Joined: 13 October 2022
Location: India
Online Status: Offline
Posts: 7
Posted: 13 October 2022 at 8:23am | IP Logged Quote VigneshS

VigneshS wrote:
Hi,
Am getting The server has rejected authentication data sent by the client. The server responded: MBN00000002 NO AUTHENTICATE failed

while trying to connect to imap

Here is the scope i have provided "scope=https://outlook.office365.com/.imap.accessasapp"

Able to get the access token and the Accesspasskey through GetXOAuthKeyStatic method

Error in the log is here
[20:40:34.00] [INFO] Assembly version: 12.3.0 build 647 for .NET Core 2.0.
[20:40:33.99] [INFO] Will resolve host "outlook.office365.com".
[20:40:34.00] [INFO] Host "outlook.office365.com" resolved to IP address(es) 40.99.34.194, 40.100.137.242, 52.98.86.162, 40.99.34.242.
[20:40:34.00] [INFO] Will connect to host "outlook.office365.com" on port 993.
[20:40:34.01] [INFO] Socket connected to IP address 40.99.34.194 on port 993.
[20:40:34.01] [INFO] Will start TLS/SSL negotiation sequence.
[20:40:34.04] [INFO] TLS/SSL negotiation completed.
[20:40:34.09] [RECV] * OK The Microsoft Exchange IMAP4 service is ready. [TQBBADAAUABSADAAMQBDAEEAMAAwADYAMwAuAEkATgBEAFAAUgBEADAAMQAuAFAAUgBPAEQALgBPAFUAVABMAE8ATwBLAC4AQwBPAE0A]\r\n [Total 160 bytes received.]
[20:40:34.10] [INFO] Get the list of IMAP4 capabilities via CAPABILITY command.
[20:40:34.10] [SEND] MBN00000001 CAPABILITY\r\n
[20:40:34.11] [RECV] * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+\r\n [Total 115 bytes received.]
[20:40:34.11] [RECV] MBN00000001 OK CAPABILITY completed.\r\n [Total 38 bytes received.]
[20:40:34.12] [INFO] Connected to mail service at host "outlook.office365.com" on port 993 and ready.
[20:40:34.59] [INFO] Will login as "dev-sophtrac@sophos.com".
[20:40:34.59] [INFO] Will try SASL PLAIN authentication method.
[20:40:34.60] [SEND] MBN00000002 AUTHENTICATE PLAIN\r\n
[20:40:34.60] [RECV] + \r\n [Total 4 bytes received.]
[20:40:34.60] [SEND] ********\r\n
[20:40:39.08] [RECV] MBN00000002 NO AUTHENTICATE failed.\r\n [Total 37 bytes received.]
[20:40:39.09] [INFO] Will try regular LOGIN authentication.
[20:40:39.09] [SEND] MBN00000003 LOGIN "" "********"\r\n
[20:40:47.18] [RECV] MBN00000003 NO LOGIN failed.\r\n [Total 30 bytes received.]
[20:40:47.21] [INFO] Error: Wrong account name and/or password. The server responded: MBN00000003 NO LOGIN failed.
Back to Top View VigneshS's Profile Search for other posts by VigneshS
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 13 October 2022 at 8:24am | IP Logged Quote Igor

Hello,

My guess is this is about configuring the Azure application for Office365. If you open a ticket in HelpDesk we can share an unofficial guide for setting up the app.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
VigneshS
Newbie
Newbie


Joined: 13 October 2022
Location: India
Online Status: Offline
Posts: 7
Posted: 13 October 2022 at 10:05pm | IP Logged Quote VigneshS

Thanks Igor the issue is sorted out now after setting the proper configuration in AZURE :)
Back to Top View VigneshS's Profile Search for other posts by VigneshS
 
darkprojekt
Newbie
Newbie


Joined: 19 January 2023
Online Status: Offline
Posts: 1
Posted: 19 January 2023 at 12:33pm | IP Logged Quote darkprojekt

Can you share the instructions on about the "proper configuration in AZURE"?
I assume it's about to use an app key instead of password, but I seem to oversee a detail.
Back to Top View darkprojekt's Profile Search for other posts by darkprojekt
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 19 January 2023 at 10:46pm | IP Logged Quote Igor

Hello,

It's described at the following section of the Developer's Guide:

OAuth 2.0 for Office 365 Accounts (non-interactive mode)

Hope this helps.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide