Copy and Paste Gmail IMAP Server and Port Settings

Gmail IMAP Port and Server Address

Gmail seems to keep all the good stuff to itself and web? Want to access your account in an email program (on your computer, say, or mobile device) in addition to the web interface? Find here the recommended Gmail IMAP server and port settings ⤓ to set up synchronization of email and folders.

Copy and Paste Gmail IMAP Server and Port Settings to Sync Email

To set up Gmail in an email program or service for synchronizing emails, folders, and actions:

NameValue
Gmail IMAP server
Gmail IMAP port
Require TLS/SSL securityyes
User nameYour full Gmail address (e.g., me@gmail.com)
PasswordOAuth2 authentication if the email program supports it, a Gmail app password otherwise

Also want to send? Gmail SMTP settings to copy and paste
Example usage: How to Add a Gmail Account to iPhone Mail (IMAP Settings)

Copy and Paste Gmail IMAP Server and Port Settings: FAQ

Can I connect to Gmail IMAP using a different port (such as 143)?

No.

Gmail requires a TLS/SSL connection to port 993.

Trying to connect to the standard unencrypted IMAP port 143 will not work, even if the email program supports STARTTLS to add encryption to the connection. The one thing you can try is to use a proxy server that connects to Gmail on its preferred secure port and to your email program on the alternative port.

My email program supports OAuth2; do I need to set up an app password?

No.

If you have authorized your email program or service for Gmail using OAuth2, you need not create a password for it to access your account, and it does not have to save a password on the computer.

OAuth2 is currently the most secure way to access Gmail in an email program.

What settings should I use inside Gmail for IMAP access?

Gmail IMAP Settings explained (with recommended settings).

IMAP in the bag — and pocket?

Buy La De Du a tea

Tips help fuel these email and tech how-tos.

(Tested with various email programs and services; first published January 2019, last updated August 2026)

Home » Email Tips and Resources » Gmail Tips and Resources » Copy and Paste Gmail IMAP Server and Port Settings