Sign in
Gmail

Set Up Gmail with IMAP or POP and Create an App Password

Choose IMAP for syncing or POP for downloading. Check Gmail’s settings, create an app password only if your client needs one, then enter the server details and test the connection.

4 min read
Set Up Gmail with IMAP or POP and Create an App Password

1. Choose a protocol and sign-in method

  1. Choose IMAP if you want read status, folders, and message moves to stay in sync across devices. IMAP syncs with Gmail; it is not a separate backup. Test it by marking a message as read, not by deleting important mail.
  2. Choose POP if your client only needs to download new messages. POP does not sync local read status back to Gmail. To send mail, configure SMTP separately. Skip SMTP if you only need to receive mail.
  3. When adding the account, look for “Google” or “Sign in with Google” first. If available, select it, check the email address and requested permissions, then approve access. You do not need an app password. Use the app password steps below only if you trust the client and it does not support Google sign-in.
A smiling envelope in an orchard chooses between two trees glowing in sync and a basket catching a single pear.

2. Check IMAP and POP settings in Gmail

  1. Sign in to the Gmail account you want to connect. Click the gear icon → See all settings → Forwarding and POP/IMAP. IMAP is enabled by default for personal Gmail accounts. If there is no IMAP switch, go straight to client setup.
  2. For POP, under “POP download,” select “Enable POP for mail that arrives from now on.” Choose “Enable POP for all mail” only if you also want to download older messages. Under “When messages are accessed with POP,” select “keep Gmail’s copy in the Inbox,” then click “Save Changes” at the bottom of the page.
  3. For a work or school account, ask your administrator whether your organization allows the protocol and client you want to use. Changing the port in your client will not override an organization restriction. If the settings look different, check the Gmail Help Center.
A smiling envelope at an observatory opens a small aperture to collect fresh stardust beside a telescope that is already on.

3. Create an app password for an older client

  1. Open your Google Account security settings. Click the profile icon in the upper-right corner to confirm the email address, then turn on “2-Step Verification” and complete the prompts. For authenticator setup, see the two-step verification guide.
  2. Search your Google Account settings for “App passwords.” Open the result and verify your identity if prompted. Enter a name you will recognize, such as “Warehouse PC mail client,” and create the password. Paste the generated 16-character app password into the client’s password field instead of your Google Account password.
  3. Create a separate app password for each client. Do not include it in support tickets, screenshots, or shared documents. If “App passwords” is missing even though 2-Step Verification is on, check whether you use only security keys for verification, have Advanced Protection enabled, or are subject to an organization policy. Prefer a client that supports Google sign-in.
A smiling envelope beside a pottery kiln presses clay into a key shaped to fit a particular box.

4. Enter the incoming and outgoing server settings

Choose manual account setup and enter your full email address as the username. Configure only one incoming server: IMAP or POP. If you need to send mail, enable authentication for the SMTP server and use the same email address and the app password you created for this client.

PurposeServerPort and encryption
Sync incoming mail (IMAP)imap.gmail.com993 with SSL/TLS
Download incoming mail (POP)pop.gmail.com995 with SSL/TLS
Send mail (SMTP)smtp.gmail.com465 with SSL/TLS or 587 with STARTTLS
A smiling envelope in a pipe organ loft matches color-coded bellows to two silver intake pipes and a gold outlet horn.

5. Connection testing and access removal checklist

  • Send a new message from another email account and confirm it arrives in the client. For IMAP, mark it as read in the client and check its status in Gmail on the web. If you configured SMTP, reply from the client and confirm the reply arrives in the other inbox.
  • If you can receive but not send, check that SMTP authentication is enabled and that the port matches the encryption method in the table. Changing your Google Account password invalidates existing app passwords. Generate a new one for each client you still use and update its password field.
  • If you uninstall a client or lose a device, return to “App passwords” and revoke its entry. If the client used Google sign-in instead, remove its access under third-party connections in your Google Account.