GMAIL SETUP GUIDE

Gmail IMAP and SMTP settings for Mac

Gmail IMAP and SMTP server settings for any Mac email app, plus how to create an app password and fix the most common Gmail sign-in and sending errors.

Updated 2026-11-267 min readEnglish
Email envelopes and server settings connected in a simple setup diagram

QUICK ANSWER

Use imap.gmail.com on port 993 with SSL to receive mail, and smtp.gmail.com on port 465 with SSL or port 587 with STARTTLS to send. Most third-party Mac mail apps need an app password, and Gmail only offers app passwords after 2-Step Verification is enabled.

Gmail server settings

These are the standard Gmail IMAP and SMTP settings for a Mac mail app. Use your full Gmail or Google Workspace address as the username.

Gmail IMAP and SMTP settings
SettingIncoming mail (IMAP)Outgoing mail (SMTP)
Serverimap.gmail.comsmtp.gmail.com
Port993465 (SSL) or 587 (STARTTLS)
SecuritySSL/TLSSSL/TLS or STARTTLS
UsernameFull Gmail addressFull Gmail address
PasswordGoogle app passwordGoogle app password

How to create a Gmail app password

Turn on 2-Step Verification, open your Google Account security settings, create an app password for the mail app, and paste the 16-character password into the app.

  • Sign in to your Google Account and open Security.
  • Turn on 2-Step Verification if it is not already enabled.
  • Open the App Passwords section. Google may ask you to sign in again.
  • Create a password named for the Mac mail app you are using.
  • Copy the generated password and paste it into the app's password field.
  • Keep the password somewhere secure; do not use your normal Google password.

If Google says app passwords are unavailable, use the current Google sign-in flow when the mail app supports it, or check whether your organization has disabled app passwords.

Add Gmail to Glassmail

In Glassmail, add a Gmail account, enter the full address, and use the provider's app-password flow when prompted. The app fills in the standard server settings and tests the connection.

If the automatic setup fails, choose manual IMAP setup and enter imap.gmail.com on 993 with SSL and smtp.gmail.com on 465 with SSL. Use the app password, not your Google account password.

After the account connects, send a test message and confirm it appears in both Gmail's Sent folder and Glassmail. Check labels, archive behavior, and the signature before migrating your daily workflow.

Common Gmail errors and fixes

Most failures are caused by 2-Step Verification not being enabled, an app password being pasted incorrectly, or a Google Workspace policy that blocks password-based access.

Gmail connection troubleshooting
ErrorLikely causeFix
Invalid credentialsNormal password or stale app passwordCreate and paste a new app password
App passwords unavailable2-Step Verification off or admin policyEnable 2SV or ask the workspace administrator
Cannot connect to serverWrong host, port, or security modeUse imap.gmail.com:993 SSL
Can receive but not sendSMTP port or password problemTry smtp.gmail.com:465 SSL or 587 STARTTLS
Authentication failed after password changeGoogle revoked the old app passwordCreate a new app password and update the app

Is an app password safe?

An app password is safer than sharing your main Google password, but it still grants mail access to the app. Use a unique password, keep it in the macOS Keychain, and revoke it if the device is lost.

Generate a separate app password for each mail app or device so you can revoke one without disrupting everything else. Review the list periodically and remove entries you no longer use. Do not paste app passwords into chat, tickets, screenshots, or repository files.

If your Google account supports OAuth sign-in in the app, that can be preferable because you can revoke access without handling a password. The available method depends on both Google and the mail client.

Frequently asked questions

What is the Gmail IMAP server for Mac?

The standard Gmail IMAP server is imap.gmail.com on port 993 with SSL/TLS. Use your full Gmail address as the username and an app password if required.

What is the Gmail SMTP server for Mac?

Use smtp.gmail.com on port 465 with SSL/TLS, or port 587 with STARTTLS. The username is your full Gmail address.

Why does Gmail reject my password in a Mac mail app?

Gmail usually requires an app password for third-party mail clients. Turn on 2-Step Verification, generate an app password, and use that instead of your normal Google password.

Can I use Gmail IMAP without an app password?

Some mail clients use Google's OAuth sign-in flow and do not require an app password. If your app only supports password authentication, you will need an app password and a Google account policy that permits it.

Does Gmail use IMAP or POP for Mac mail?

Gmail supports IMAP and POP, but IMAP is the better choice for a modern mail app because it keeps folders and read state synchronized across devices.