Follow these steps in order, testing Gmail in Outlook after each major step.
- Confirm IMAP is enabled in Gmail
- In a browser, sign in to Gmail.
- Select Settings (gear) > See all settings.
- Go to Forwarding and POP/IMAP.
- Under IMAP access, make sure Enable IMAP is selected.
- Select Save Changes.
- Re‑grant Microsoft access to the Google account
If Outlook previously worked and suddenly stopped, the Microsoft apps & services permission may be broken.
- Close Outlook.
- In a browser, sign in to the Google account.
- Select the profile picture > Manage your Google Account.
- Go to Security.
- Under Your connections to third‑party apps & services, select Microsoft apps & services.
- Under Access you've given to Microsoft apps & services, choose Remove all access, then Confirm.
- Remove old Google OAuth credentials from Windows
- Open Credential Manager (Start > type “Credential Manager”).
- Select Windows Credentials.
- Under Generic Credentials, find entries starting with MicrosoftOffice16_Data:OAUTH2.
- Expand each and hover over the name; remove those that include tp_google_imap_oauth2.
- Remove both credentials for each affected Gmail account.
- Add or re‑sign‑in to Gmail in classic Outlook
If the Gmail account is still in the profile but failing:
- Start Outlook and use any Retry or Sign in via browser prompt.
- In the Google sign‑in window, after entering the account and password, on the permissions page make sure the checkbox for:
- “Read, compose, send, and permanently delete all your email from Gmail.” under Microsoft apps & services is selected, then choose Allow.
If the account was removed from Outlook:
- Open Outlook classic.
- Go to File > Add Account.
- Enter the Gmail address and select Connect.
- Complete the Google sign‑in and on the permissions page select Allow (including the email access permission above).
- Finish the wizard.
- Ensure Outlook is on a fixed build (if errors persist)
If errors like “We weren’t able to set up your Google account with IMAP” or “The browser or app may not be secure” continue, update Office so classic Outlook includes the Gmail sign‑in fixes:
- In Outlook, go to File > Office Account > Update Options > Update Now.
- After updating, retry adding/signing in to the Gmail account as in step 4.
- If automatic setup still fails, verify manual IMAP/SMTP settings
When using manual setup, confirm these values match Gmail’s settings:
- Incoming (IMAP) server: imap.gmail.com, SSL required, port 993
- Outgoing (SMTP) server: smtp.gmail.com, SSL or TLS required, authentication required, port 465 (SSL) or 587 (TLS/STARTTLS)
If Outlook still will not accept the password on older builds, an app password (with two‑factor authentication on the Google account) may be required instead of the normal Gmail password.
References: