💡 Before anything else, you need to enable IMAP: without it, the connection will be impossible.
Enable IMAP
1️⃣ Open your Gmail account in the browser.
2️⃣ Click on "Settings" in the top right corner:
3️⃣ Click the Forwarding and POP/IMAP tab
4️⃣ In the "IMAP Access" section, select Enable IMAP
5️⃣ Click Save Changes:
6️⃣ Choose “G-Suite/Workspace”