Using Classic Outlook on Windows for personal email, calendar, and contact management
Outlook 2016 IMAP connections to Gmail are failing because Office was previously granted incomplete or incorrect access to the Google account, or because the stored OAuth2 credentials for Gmail in Windows are now invalid. This causes errors such as “We couldn’t log on to the incoming (POP/IMAP) server” or “cannot connect to the server” when Outlook tries to connect to Gmail via IMAP.
To fix this for classic Outlook with Gmail IMAP:
- Confirm Gmail IMAP is enabled
- In a browser, go to Gmail.
- Open Settings → Forwarding and POP/IMAP.
- Under IMAP Access, make sure Enable IMAP is selected.
- Select Save Changes.
- Remove Microsoft apps & services access in Google
- Close Outlook.
- Sign in to the Google account at Google.com.
- Select the profile picture → Manage your Google Account.
- Go to Security.
- Under Your connections to third-party apps & services, select Microsoft apps & services.
- Find Microsoft apps & services has some access to your Google Account and select See Details.
- Under Access you've given to Microsoft apps & services, select Remove all access, then Confirm.
- Delete the stored Google IMAP OAuth2 credentials
- Open Credential Manager from the Windows Start menu (on some systems via Control Panel → Credential Manager).
- Select Windows Credentials.
- Under Generic Credentials, locate entries starting with MicrosoftOffice16_Data:OAUTH2.
- Expand each and hover over the name to see the full value including tp_google_imap_Oauth2; these are the Gmail credentials.
- Remove each credential that matches MicrosoftOffice16_Data:OAUTH2 (there are two per Gmail account; remove both for the affected accounts).
- Re-add the Gmail account in Outlook and grant full access
- Start Outlook and add the Gmail account again.
- During the browser-based Google sign-in, ensure the checkbox for allowing Microsoft apps & services to “Read, compose, send, and permanently delete all your email from Gmail” is selected before continuing.
If running a newer Current Channel build (Version 2412 Build 18324.20168 or later) and an error dialog appears during setup, use the Retry link in that dialog to repeat the browser sign-in and this time select the required access checkbox.
If Outlook.com connected accounts were previously used, note that Microsoft has removed the ability to connect new third-party accounts such as Gmail directly in Outlook.com; in that case, Gmail must be accessed via Outlook as a separate account rather than as a connected account in Outlook.com.
References:
- Unable to add a Gmail account to classic Outlook
- Fix problems connecting your Google account to the Microsoft Cloud
- Connected email accounts like Gmail and Yahoo not working in Outlook.com
- Gmail IMAP won't connect to Classic Outlook - Microsoft Q&A
- Outlook gives me an error message when I try to update gmail. - Microsoft Q&A
- gmail accounts no longer working in outlook classic - Microsoft Q&A