server för inkommande e-post gmail

How To Set Up Gmail’s Incoming Mail Server: Complete Guide For 2026 (IMAP, POP3, Ports, And Client Setup)

Getting Gmail to receive mail correctly in a desktop or mobile client is mostly a matter of choosing the right protocol, entering the correct host/port, and authenticating the account properly. This guide explains how Gmail’s incoming mail works, when to pick IMAP vs POP3, the exact server settings (hosts, ports, and encryption), and common client steps and troubleshooting for Outlook, Thunderbird, Apple Mail, and mobile mail apps. It’s aimed at homeowners and DIY techers who want clear, practical steps without contractor-level jargon.

Key Takeaways

  • IMAP is the recommended server protocol for incoming Gmail mail as it keeps messages synchronized across all devices using imap.gmail.com on port 993 with SSL/TLS.
  • POP3, using pop.gmail.com on port 995 with SSL/TLS, is best for single-device offline access or local-only mail storage needs.
  • Before configuring any mail client, enable IMAP and/or POP in Gmail’s web settings under Forwarding and POP/IMAP to allow incoming mail retrieval.
  • Use full Gmail addresses as usernames and apply OAuth2 sign-in or app passwords when 2-Step Verification is enabled to ensure smooth authentication.
  • Common troubleshooting steps include verifying correct server ports, enabling protocols in Gmail settings, and checking for firewall or network blockers.

How Gmail Incoming Mail Actually Works: IMAP Vs POP3 And What To Choose

IMAP (Internet Message Access Protocol) and POP3 (Post Office Protocol version 3) are the two standard ways a mail client retrieves messages from Gmail’s servers. Each behaves differently and suits different workflows.

IMAP keeps messages on Gmail’s servers and mirrors mailbox state across all devices. That means when a user reads, archives, or moves a message on a phone, the change shows up on a laptop and tablet too. For anyone who uses multiple devices or wants server-side search and labels, IMAP is the recommended choice. The incoming host for IMAP is imap.gmail.com and it requires SSL/TLS on port 993 (details and exceptions follow in the settings section).

POP3 downloads messages to a single client and, by default, can remove them from the server unless configured to leave a copy. This makes POP3 useful if a person wants a single local archive, has limited server storage, or needs offline-only access. The incoming host for POP3 is pop.gmail.com, and it requires SSL/TLS on port 995.

Which to choose? Use IMAP unless a user specifically needs local-only copies or runs a legacy workflow that depends on mail being pulled to one device. IMAP preserves labels, folder structure, and read/unread status across devices: POP3 is strictly download-and-store unless carefully configured. Modern mail apps and multi-device habits make IMAP the sensible default for most homeowners and small-business users.

Practical notes and gotchas:

  • If a user enables POP in Gmail web settings, they can control whether Gmail keeps a copy on the server. That option is useful if they want POP for an offline archive but still want mail accessible elsewhere.
  • Labels in Gmail map to folders in IMAP clients: users should expect a slightly different folder organization than a typical desktop-only client.
  • For accounts protected by 2‑Step Verification, many clients will require an app password or OAuth-based sign-in rather than the account’s primary password.

Bottom line: pick IMAP for synced access across devices: pick POP3 only when single‑device, offline storage is the goal or when migrating mail into a local archive.

Gmail Incoming Server Settings, Client Configuration, And Troubleshooting

Essential incoming settings (copy these exactly):

  • IMAP host: imap.gmail.com

  • IMAP port: 993

  • IMAP security: SSL/TLS required

  • POP3 host: pop.gmail.com

  • POP3 port: 995

  • POP3 security: SSL/TLS required

Before configuring a client, open Gmail in a web browser and go to Settings → See all settings → Forwarding and POP/IMAP. Enable IMAP and/or POP there: if neither is enabled, desktop/mobile clients will fail to download mail.

Step‑by‑step client setup (typical flow for Outlook, Thunderbird, Apple Mail, or most mobile mail apps):

  1. In the client app, add a new mail account and choose manual setup (this ensures protocol selection).
  2. Select IMAP (recommended) or POP.
  3. Enter the incoming server host and port listed above, and set encryption to SSL/TLS.
  4. For username, enter the full Gmail address ([email protected]). For password, enter the account password, or an app password if the account uses 2‑Step Verification.
  5. Configure outgoing (SMTP) with smtp.gmail.com and recommended ports (465 for SSL or 587 for STARTTLS). Ensure SMTP requires authentication and uses the same credentials.
  6. Finish account setup and let the client sync: initial sync may take several minutes for large mailboxes.

Authentication and modern security notes:

  • Google now prefers OAuth2 sign-in for most mail clients. If the client offers an OAuth sign‑in flow, use it, it’s more secure and avoids managing app passwords.
  • For older clients that don’t support OAuth, an app password may be required when 2‑Step Verification is enabled. App passwords are single‑use passwords generated in the Google Account security settings.
  • Google has deprecated the “Allow less secure apps” option: relying on plain username/password without app passwords or OAuth often fails.

Troubleshooting checklist (common problems and quick fixes):

  • IMAP/POP not enabled: Double-check Gmail web settings. This is the most common oversight.
  • Wrong ports or encryption: Ensure incoming is 993 (IMAP) or 995 (POP3) and set to SSL/TLS. Using the wrong port or no encryption will be rejected.
  • Authentication errors: Use full email as username, verify password or use an app password, and try OAuth sign‑in if available.
  • Two‑step verification issues: If 2‑Step is on and the client prompts for a password repeatedly, generate an app password or switch to an OAuth‑capable client.
  • Firewall or ISP blocking: Some networks block nonstandard ports: test from a different network or temporarily disable firewall/antivirus email scanning to isolate the issue.
  • Excessive mailbox size: Very large mailboxes slow initial sync. Consider archiving older mail into local folders or using Gmail’s web search to remove bulk attachments.

Client-specific tips:

  • Outlook: Use the built‑in Google account option (provides OAuth) when available. For manual IMAP, confirm “Root folder path” is blank to avoid duplicate folder trees.
  • Thunderbird: It exposes IMAP folder subscription options: unsubscribe from folders a user doesn’t need to accelerate sync.
  • Apple Mail (macOS/iOS): When adding an account, choose Google to get OAuth: only use manual IMAP if a specialized setup is needed.

If all else fails, log into Gmail via web, review recent security events, and check Google account alerts, Google sometimes blocks sign‑in attempts from new apps for security reasons and requires a confirmation via browser before a client will authenticate.

Conclusion

For most users in 2026, IMAP (imap.gmail.com:993 with SSL/TLS) is the right incoming protocol, it keeps mail synchronized across phones, tablets, and desktops. Use POP3 (pop.gmail.com:995 with SSL/TLS) only when a single device needs local-only storage or a mailbox migration requires downloading messages. Always enable IMAP/POP in Gmail web settings before configuring a client, use OAuth or app passwords when 2‑Step Verification is enabled, and double‑check ports and encryption if connection problems arise. Following these steps will make incoming Gmail reliable across common mail clients.