Gmail IMAP & SMTP Settings for Mac (2026) · Glassmail

Setup guide

Gmail IMAP and SMTP settings for Mac

Every Gmail server setting, how to make the app password Google asks for, and what to do when Gmail won’t connect or send.

All setup guides

Gmail works in any Mac email app that supports IMAP, Glassmail included. The one thing Google makes you do first is create an app password , because it doesn’t let mail apps sign in with your normal Google password. Glassmail fills in every server setting below for you. They’re listed here for other apps, and for checking when something won’t connect.

Gmail server settings

IMAP server (incoming) imap.gmail.com
IMAP port 993
IMAP security SSL/TLS
SMTP server (outgoing) smtp.gmail.com
SMTP port 465, or 587
SMTP security SSL/TLS on 465, STARTTLS on 587
Username Your full address, like you@gmail.com (or your Google Workspace address)
Password A 16-character app password, not your Google password

From Google’s IMAP and SMTP reference . Glassmail sends on port 465 with SSL/TLS. Gmail has no separate setting for googlemail.com addresses; they use the same servers.

Make a Gmail app password

App passwords only appear once 2-Step Verification is on.

If 2-Step Verification is off, turn it on at myaccount.google.com › 2-Step Verification .

Open myaccount.google.com/apppasswords . Google may ask you to sign in again.

Under “App name”, type Glassmail (or any name you’ll recognise) and click Create .

Google shows a 16-character password in four groups. Copy it. The spaces don’t matter.

Google shows it only once. If you lose it, delete it on the same page and create another. Changing your Google password revokes every app password, so you’ll need a new one afterwards. Why this is safer than your real password, and what to do on a work account, is in How to add Gmail to a Mac email app with an app password .

Add Gmail to Glassmail

Open Glassmail and choose Add Account (the first screen asks for an address the first time you open it). Type your Gmail address and click Continue .

Glassmail recognises Gmail, and Google Workspace domains, and fills in the servers. Click Create App Password to open Google’s page and make one as above.

Paste it into App password and click Connect account .

Glassmail signs in to both servers and starts syncing. The password is kept in your Mac’s Keychain, and your mail goes straight between your Mac and Google.

Common errors and fixes

Authentication failed, or “The server rejected the password”

Use the 16-character app password, not your Google password. Google refuses normal passwords from mail apps.

If you changed your Google password, every app password was revoked. Make a new one and enter it in Glassmail › Settings › Accounts › Update Password…

The username must be your full address, including @gmail.com or your Workspace domain.

2-Step Verification: “The setting you’re looking for is not available for your account”

2-Step Verification is off. Turn it on, then open the app passwords page again.

Your only second step is a security key. Google doesn’t offer app passwords then. Add another second step, such as Google prompts or an authenticator app.

Advanced Protection is on. Google doesn’t allow app passwords with Advanced Protection.

It’s a work or school account and your administrator has turned app passwords off. Only they can allow them.

Can’t connect to the server

For a personal Gmail account, IMAP is always on, so a connection error almost always means the network. A VPN, firewall or office Wi-Fi may block port 993. Try another network.

For Google Workspace, your administrator must turn on IMAP in the Admin console.

More causes are in Fix email errors › Can’t reach the server .

Reading works, but sending fails

Check the pair matches: port 465 with SSL/TLS, or port 587 with STARTTLS. Port 465 with STARTTLS fails.

Some networks block outgoing mail ports. Try another network, or the other port.

Google limits how much one account can send in a day. After a large batch, wait and try again.

To send from another address, add it in Gmail on the web under Settings › Accounts › Send mail as first.

Every message Glassmail can show for Gmail is explained in Fix email errors .

Get Glassmail. A native Mac email app for Gmail and every other account you have, with AI that runs on your Mac. Free for 14 days.

Download Glassmail

Still stuck? Write to hi@glassmail.app and a person replies, usually within a day. Never send us a password.

Frequently asked questions

What are Gmail’s IMAP and SMTP settings?

Incoming: imap.gmail.com, port 993, SSL/TLS. Outgoing: smtp.gmail.com, port 465 with SSL/TLS or port 587 with STARTTLS. The username is your full Gmail address and the password is a 16-character app password.

Do I need to turn on IMAP in Gmail?

Not for a personal Gmail account. Since January 2025 IMAP is always on and the switch is gone from Gmail’s settings. For Google Workspace, your administrator turns IMAP on in the Admin console.

Why doesn’t my Google password work in a Mac email app?

Google no longer lets mail apps sign in with your normal password. Make an app password at myaccount.google.com/apppasswords and use that instead. It only works for mail, and you can revoke it at any time.

When does a Gmail app password stop working?

When you delete it, or when you change your Google password, which revokes every app password. Make a new one and enter it in Glassmail › Settings › Accounts › Update Password….

Does Glassmail work with Google Workspace email?

Yes. Type your work address and Glassmail recognises a Google Workspace domain from its mail servers and uses the Gmail settings. You need an app password, which your administrator must allow.

Other guides

All setup guides

Installing Glassmail

Using Claude, Codex or Cursor with your mail

iCloud Mail

Yahoo Mail and AOL

Outlook, Hotmail and Microsoft 365

Fastmail

Custom domains and other providers

All setup guides

IMAP and SMTP reference

myaccount.google.com › 2-Step Verification

myaccount.google.com/apppasswords

How to add Gmail to a Mac email app with an app password

Fix email errors › Can’t reach the server

Fix email errors

Download Glassmail

Installing Glassmail

Using Claude, Codex or Cursor with your mail

iCloud Mail

Yahoo Mail and AOL

Outlook, Hotmail and Microsoft 365

Fastmail

Custom domains and other providers