How to Enable IMAP and Set Up App Passwords in Google (Gmail)

1. Enable IMAP in Gmail:

  1. Sign in to your Gmail account.
  2. Click the gear icon in the top-right corner and select "See all settings."
  3. Navigate to the "Forwarding and POP/IMAP" tab.
  4. In the "IMAP Access" section, check the box for "Enable IMAP."
  5. Scroll to the bottom of the page and click "Save Changes."

2. Access Security Settings:

  1. In the left-hand menu, click on "Security."

3. Enable 2-Factor Authentication (2FA):

  1. Under "Signing in to Google," locate "2-Step Verification" and click "Get Started."
  2. Follow the on-screen instructions to choose your preferred second factor (e.g., text message, phone call, or Google Authenticator app).

4. Generate an App Password:

  1. Once 2FA is enabled, return to the "Security" section.
  2. Under "Signing in to Google," select "App Passwords."
  3. If prompted, enter your Google password again.
  4. In the "Select app" dropdown, choose the specific app you want to use the password for (e.g., Mail). If it’s not listed, select "Other" and enter a custom name.
  5. Select the device you’ll be using the app on, if applicable.