Mailimport error: AUTHENTICATE failed

IMPORTANT: As of 1 October 2022, Microsoft is phasing out Basic Authentication/EWS for Office 365. If you are unable to connect mail imports through IMAP, you may see this error message.

IMPORTANT: As of 1 October 2022, Microsoft is phasing out Basic Authentication/EWS for Office 365. If you are unable to connect mail imports through IMAP, you may see this error message. If this connection method cannot be enabled, you have to use a different connection method. Please follow the instructions in KI 12173 to configure the mailimport to use OAuth 2.0. Environment: Applies to mail import with connection method IMAP Answer: The error message indicates that an incorrect username and password combination has been entered in the mailimport settings. The username and password combination can be checked by logging in with the credentials through webmail. If it is possible to login into the webmail then please check: •Change the username format to 'username@domain', instead of 'domain\username'. •Check if IMAP is enabled for the mailbox on the mailserver •Check if MFA/2FA is disabled for the mailbox on the mailserver •For Gmail, check if "Allow access for less secure apps" is enabled at https://myaccount.google.com/lesssecureapps •If the mail import for example works during office hours and at night the error "authenticate failed" can be found in the log files, please check the logon hours of this account in the AD. •The authentication can fail due to the underlying configuration in the AD. When using a shared mailbox, the AD account has to be enabled. If this does not resolve the issue, please log an incident via My TOPdesk and upload the TOPdesk logfiles to this incident after you have tested the connection again. More information: More information and troubleshooting tips about the mail import are found in knowledge item KI 8765.