Gmail Server Settings: IMAP, SMTP and POP3
Verified Gmail IMAP, SMTP and POP3 settings with the authentication rules that determine whether a mail client can connect.
Jump to your problem 6
Quick answer
Gmail server settings
- IMAP Incoming SSL/TLS
-
imap.gmail.comport 993
- SMTP Outgoing STARTTLS
-
smtp.gmail.comport 587
- POP3 Download SSL/TLS
-
pop.gmail.comport 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
Where to type these
The values above are Gmail’s. Where you enter them depends on the app — each guide below is the same set of fields, in that app’s own screens.
Personal Gmail accounts now have IMAP access on by default. Google Workspace administrators can restrict client access. Use “Sign in with Google” and OAuth whenever the application offers it; the old Less secure apps password flow is gone.
All Gmail server settings
| 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 |
Authentication requirement
An app password is a fallback only for eligible Google Accounts with 2-Step Verification. It may be unavailable for managed accounts, Advanced Protection or security-key-only setups. A current OAuth-capable client should use the Google sign-in window instead.
IMAP or POP3?
Gmail IMAP uses labels rather than conventional single-location folders, so one message can appear under Inbox, All Mail and another label without being duplicated on Google’s server. A desktop client may represent those labels as folders. Subscribe only to useful labels, map Spam and Trash deliberately, and avoid configuring the client to download the same mail through both All Mail and another broad label when local duplication is a concern. Google documents bandwidth and simultaneous-connection limits for large or aggressively synchronized mailboxes. Personal Gmail users no longer need to hunt for the former Enable IMAP switch because IMAP is always available; a Google Workspace administrator can still restrict which clients or OAuth scopes are allowed.
POP3 is useful only when deliberate local downloading is the goal. IMAP is the normal choice for a mailbox shared across webmail, phones and computers because it retains the server folder model.
Outgoing SMTP
Gmail accepts authenticated client submission on port 587 with STARTTLS and port 465 with SSL/TLS. Use the complete Gmail or Workspace address and an OAuth2 Google sign-in whenever possible.
SMTP has its own saved credential in many applications, so replacing only the incoming password can leave messages stuck in Outbox.
When sending from an alias, add and verify that address in Gmail first; changing the From field in a desktop client does not by itself authorize it.
Google account sending limits and automated-abuse controls still apply to SMTP, so a temporary rejection after unusual volume is not corrected by changing ports. A Google security alert or revoked OAuth grant can invalidate a previously working client without changing any server value. Reauthorize the Google account through the application’s account manager and check recent security activity before generating another app password.
Common Gmail connection failures
Remove any saved Basic Authentication password and add the account again through its Google provider button. For app-password use, verify 2-Step Verification eligibility and generate a fresh 16-character password. For a managed Workspace mailbox, ask the administrator whether IMAP or OAuth client access is restricted. Gmail labels deserve a separate check after authentication succeeds: compare the client’s Sent, Drafts, Spam and Trash assignments with Gmail web settings, and decide whether All Mail should be synchronized on that device. A mailbox that authenticates but repeatedly downloads a large archive has a synchronization-scope problem, not an SMTP password problem. Google security activity can also show whether the attempted client sign-in was blocked or its OAuth grant was revoked.
Verify the finished account
Send a message to another address, reply to it, move the reply into a folder, and confirm that the same state appears in Gmail webmail. That short test checks SMTP submission, incoming synchronization and folder mapping separately. It catches a half-configured account before it silently misses or duplicates messages.
How this guide was checked · October 2026
Verified against 4 official sources
Every step, setting and limit in this guide was checked against the provider’s own documentation on support.google.com. Anything we couldn’t confirm was left out.
Questions
Frequently asked questions
Why do my Gmail messages appear twice in my mail client?
Gmail exposes labels as folders, so one message may appear under both Inbox and All Mail. These are normally two views of the same message, not separate stored copies. You can hide All Mail in clients where this becomes confusing.
Why does deleting a Gmail message not delete it?
Removing a message from a Gmail label may only remove that label. To delete it reliably, move it to Gmail’s Trash folder and confirm the result on the Gmail website.
Do I need to enable IMAP in Gmail?
No, not for a personal Gmail account. Google made IMAP access permanently enabled and removed the enable and disable controls in January 2025. Google Workspace administrators may still restrict IMAP for managed accounts.
Which is better for Gmail, IMAP or POP3?
IMAP, in nearly every case. POP downloads and can remove server copies, which suits a single archiving machine and causes lasting confusion on anything else.
Related guides
More Gmail guides
Gmail
How to Unsubscribe from Emails in Gmail
Use Gmail’s Unsubscribe button or the Manage subscriptions page to stop newsletters and promotions — and know the difference between unsubscribing and blocking.
3 min read
Gmail
How to Archive Emails in Gmail (and Find Them Again)
Archiving clears your inbox without deleting anything. Here’s how to archive on every device, where archived emails go, and how to get them back.
3 min read
Gmail
How to Recover Deleted Emails in Gmail
Deleted Gmail messages wait in Trash for up to 30 days. Here’s how to move them back on any device, where else to look, and what can’t be recovered.
3 min read
Gmail
How to Forward Emails in Gmail (One, Many or Automatically)
Forward one email, a whole conversation or several messages at once — or set Gmail to forward new mail to another address automatically.
3 min read
Gmail
How to Block (and Unblock) Someone in Gmail
Block a sender in Gmail so their emails go to Spam, unblock them, manage your blocked list — and when unsubscribing or reporting spam or phishing works better.
3 min read
Gmail
How to Add an Email Signature in Gmail
Create, edit and remove a Gmail signature, use different signatures for new emails and replies, the 10,000-character limit and image sizes — and fixes for broken signatures.
4 min read