After struggling with this for months, I believe I have finally have workarounds for the issue.
Symptoms included:
- Unable to access an IMAP account in Outlook for Android (OfA) after application update via Play Store ; no account changes made
- Unable to authenticate to IMAP server after performing OfA reset (clear cache, clear storage, uninstall, reinstall) ; username and password work correctly via webmail and exact settings work in Outlook on PC
- Set secure ports for IMAP (993) and SMTP (465) and receive a username/password authentication error ; username and password work correctly via webmail and exact settings work in Outlook on PC (Issue #1 )
- Complex password not working in OfA ; username and password work correctly via webmail and exact settings work in Outlook on PC (Issue #1)
- Able to setup IMAP account in OfA but unable to open messages, application crashes, folders open without displaying messages, etc; everything continues to work properly in Outlook for PC ( Issue #2 )
Issue #1
While troubleshooting the issue I ran the IMAP Email Connectivity Test from Microsoft as the issue was presenting as a certificate issue.
https://testconnectivity.microsoft.com/ → Exchange Server → IMAP Email.
Certificate validation displayed a warning but the actual failure was failing on login with “2 BAD Invalid characters in atom”
Workaround #1: I simplified the password to contain only upper and lower case letters and numbers.
Reference articles:
Issue #2
With the account setup in OfA, I was able to access the mailbox however there were still significant issues and OfA was virtually unusable.
Believing this was likely an issue with an update to the application as these issues started after an application update, I tested the app with the working settings every time the application was updated without any change in the issue.
Finally, I found a thread where someone was having the same/similar issue and they changed the SMTP port to 587.
With SMTP port set to 587, OfA is functioning normally.
Workaround #2: Set SMTP port to 587 not 465.
Conclusion:
Neither of these issues have been resolved, I have simply been able to work around these issues to get OfA to work.
Outlook on PC continues to work with IMAP 993 and SMTP 465 and with a complex password set for the account.