Invalid login or password for IMAP, Exchange

Hi @peterze,
please have a look: A Beginner's Guide to IMAP and SMTP Server Settings.
Video guide: - How to Bypass 2 step verification for Third-Party Apps using App Password - YouTube
You need to generate an app password because policy change on 30 May 2022. Please look:- Less secure apps & your Google Account - Google Account Help?