Gmail IMAP Settings
Gmail’s IMAP server, port and encryption settings—plus secure sign-in options and fixes for duplicate messages caused by the All Mail folder.
Server settings
Gmail
- IMAP incoming SSL/TLS
- SMTP outgoing STARTTLS
- POP3 download SSL/TLS
imap.gmail.com
port 993
smtp.gmail.com
port 587
pop.gmail.com
port 995
- Authentication
- Use “Sign in with Google” (OAuth). Older clients without Google sign-in may require an app password from an eligible account with 2-Step Verification.
- IMAP access
- Always enabled for personal Gmail accounts; Workspace administrators may restrict it
- Alt SMTP port
- 465 with SSL/TLS
- Username
- Your complete Gmail address, such as name@gmail.com
- POP access
- Enable it first in Gmail under Settings → See all settings → Forwarding and POP/IMAP
IMAP keeps your mail on Gmail's servers and mirrors it to every device you connect. Read a message on your phone and it shows as read on your laptop; file it into a folder and that folder appears everywhere. That synchronisation is the whole point of IMAP, and it is why it is the right choice for almost everyone connecting Gmail to a desktop or mobile mail client.
Gmail IMAP settings
Enter these values in your mail client's incoming server section:
| Protocol | Server | Port | Encryption |
|---|---|---|---|
| IMAP (incoming) | imap.gmail.com | 993 | SSL/TLS |
| SMTP (outgoing) | smtp.gmail.com | 587 | STARTTLS |
| POP3 (incoming) | pop.gmail.com | 995 | SSL/TLS |
Your username is normally your full email address, and the password is whatever your account requires — which, as the notes below explain, is not always the password you type into the website.
Before you start
Authentication: Choose “Sign in with Google” whenever it is available.
App passwords: Only use an app password for older software that cannot use Google sign-in. It requires 2-Step Verification and may be unavailable on some accounts.
IMAP access: Always enabled for personal Gmail accounts since January 2025. Google Workspace administrators may restrict it.
Alternative SMTP port: Port 465 with SSL/TLS.
Adding the account to a mail client
Open your mail client’s account settings and choose Add account. If you see Google or “Sign in with Google”, choose it. This uses Google’s secure OAuth sign-in and is the recommended setup because the mail client never handles your Google password.
Only choose Manual, Advanced or Other when the client does not offer Google sign-in. For manual setup, use imap.gmail.com on port 993 with SSL/TLS and your complete Gmail address as the username. Older software that cannot use OAuth may require an app password instead of your normal Google Account password.
Folders and syncing
Once connected, your client will download the folder list from the server. Some clients map special folders — Sent, Drafts, Trash, Spam — automatically; others need to be told which server folder corresponds to each. Getting this wrong produces the classic symptom of sent messages appearing twice, or drafts that vanish when you switch devices. It is worth checking that mapping once, at setup, rather than wondering about it later.
Most clients also let you choose how much mail to keep locally. Synchronising everything gives you offline access and fast search at the cost of disk space; synchronising only recent messages keeps things light on a laptop with a small drive. Neither choice changes what is stored on the server.
If it will not connect
Start with authentication. Google recommends “Sign in with Google”, so update the mail client and use that option whenever possible. If the software cannot use Google sign-in, you may need an app password. App passwords require 2-Step Verification and are not available for every managed or highly protected account.
For personal Gmail accounts, IMAP is already enabled. Google removed the enable and disable control in January 2025, so a missing IMAP switch is normal—not the cause of the connection failure. Google Workspace administrators can still restrict IMAP for managed accounts.
Checked against the source
Official sources
Enquiries
Frequently asked questions
What are Gmail's IMAP settings?
Use imap.gmail.com on port 993 with SSL/TLS and your complete Gmail address as the username. Choose “Sign in with Google” when available. Older clients that cannot use Google sign-in may require an app password.
How do I enable IMAP in Gmail?
You do not need to enable IMAP on a personal Gmail account. Starting in January 2025, Google made IMAP access permanently enabled and removed the enable and disable controls. Google Workspace administrators may still restrict IMAP for managed accounts.
Why does my mail client show every message twice?
It is synchronising Gmail's All Mail folder, which contains everything including your inbox. Exclude All Mail from syncing.
Does IMAP use my Gmail storage?
Yes. IMAP mirrors what is on the server; it does not create separate storage. Deleting through a client affects your Gmail quota only if the message actually goes to Trash.
Next delivery
Keep reading
Gmail Sign Up
How to Create a Gmail Account
Create a Gmail address step by step — how to find a username that isn't taken, what to do when Google asks for a phone number, and the shortcuts worth avoiding.
6 min read
Gmail Troubleshooting
Gmail Not Working? Common Fixes
Why Gmail stops receiving mail, refuses to send, or loses messages you know arrived — and how to find the cause rather than guessing at it.
6 min read
Gmail Security
Gmail Security: 2-Step Verification and App Passwords
Turn on 2-Step Verification, generate an app password for mail clients that cannot use OAuth, and understand why your ordinary Gmail password stopped working.
6 min read
Gmail Password Reset
How to Reset Your Gmail Password
Reset a forgotten Gmail password, and get through Google's account recovery when you have no recovery phone or email — including what actually improves your chances of passing.
6 min read
Gmail Login
How to Log In to Gmail
Sign in to Gmail on any device — including what to do when Google asks for a passkey instead of your password, and how to fix the errors that stop you getting in.
7 min read
Gmail SMTP
Gmail SMTP Settings
Gmail's outgoing mail server, port and encryption for any client or device — plus sending limits, and how to send from another address through Gmail.
5 min read