Search Authority

The Ultimate Guide to Gmail Host and Port Settings (Configured Correctly)

Gmail host port settings determine how email clients and devices connect securely to Google’s servers. Understanding the correct port numbers and encryption methods helps you...

Mara Ellison Jul 11, 2026
The Ultimate Guide to Gmail Host and Port Settings (Configured Correctly)

Gmail host port settings determine how email clients and devices connect securely to Google’s servers. Understanding the correct port numbers and encryption methods helps you send and receive mail reliably.

Use the table below to compare the main Gmail host port configurations for different email protocols and security levels.

Protocol Incoming Port Outgoing Port Encryption
IMAP 993 SSL/TLS
SMTP 587 STARTTLS
SMTP (Legacy) 465 SSL/TLS
Exchange ActiveSync 443 443 SSL/TLS

Configure IMAP Ports for Gmail

IMAP syncs your Gmail across devices while keeping messages on the server. For secure connections, use port 993 with SSL/TLS.

Most modern email clients default to this port when you enable secure connections. It supports full folder synchronization and real-time updates.

Configure SMTP Ports for Sending Mail

Use port 587 with STARTTLS for reliable authenticated submission. This is the recommended Gmail host port for outgoing mail from clients and devices.

If port 587 is blocked, port 465 with SSL/TLS can serve as an alternative. Some older applications or network environments work better with this legacy configuration.

Troubleshooting Connection Issues

Incorrect port settings often cause authentication failures or timeouts. Verify that encryption matches the port your client expects.

Firewalls and ISP restrictions may block port 587. Switching to port 465 or confirming that your network allows submission ports can restore connectivity.

Security and Best Practices

Always prefer encrypted connections to protect credentials and message content. Never use unencrypted ports for Gmail host port configurations.

Keep client software updated so security patches for TLS and SSL are applied promptly. Periodically review account activity for suspicious access patterns.

Final Recommendations on Gmail Host Port Usage

  • Use port 993 with SSL/TLS for IMAP access to Gmail.
  • Prefer port 587 with STARTTLS for SMTP submission.
  • Fallback to port 465 with SSL/TLS if 587 is unavailable.
  • Avoid unencrypted ports and disable deprecated protocols.
  • Test connectivity after any network or client changes.

FAQ

Reader questions

Why does my email client fail when I enter port 587?

Your network may be blocking outbound submission traffic. Try switching to port 465 with SSL/TLS or contact your administrator to allow port 587.

Can I use port 465 for incoming Gmail mail?

No, port 465 is intended for SMTP submission. Use port 993 for secure IMAP connections instead.

Is port 25 supported for Gmail host port configurations? Google does not support unencrypted or authenticated relay on port 25 for consumer Gmail accounts. Use port 587 or 465 for reliable delivery. What should I do if STARTTLS fails on port 587?

Check that your email client requires SSL/TLS and verify that your firewall allows outbound connections on this port.

Related Reading

More pages in this topic cluster.

Baby Growth Spurts: Navigating Rapid Developmental Leaps

Baby growth spurts are rapid increases in weight and length that can transform a sleepy newborn into a more demanding, fussier feeder almost overnight. These short but intense p...

Read next
Olecranon Process Anatomy: The Elbow's Key Bone Structure

The olecranon process is the prominent bony point of the elbow, forming the upper extremity of the ulna. It functions as a lever arm that transmits forces from the triceps muscl...

Read next
Mastering Economics Current Account: Balance, Trade & Prosperity

The economics current account captures a nation's net transactions with the rest of the world, including trade in goods and services, primary income, and secondary transfers. Un...

Read next