Roost Download free
All IMAP settings

IMAP and SMTP settingsFree mail

Gmail IMAP and SMTP settings

The server names take one line. The password is where it goes wrong: since March 2025 Gmail only lets mail apps in with Google's sign-in or an app password.

By Telman, who makes Roost · Checked 19 November 2026

Gmail's IMAP server is imap.gmail.com on port 993 with SSL/TLS. Its SMTP server is smtp.gmail.com on port 465 (SSL/TLS) or 587 (STARTTLS). The username is your full Gmail address, and the password is not your Google password: it's Google's sign-in, or an app password.

SettingGmail
Incoming server (IMAP)imap.gmail.com
IMAP port993, SSL/TLS from the start
Outgoing server (SMTP)smtp.gmail.com
SMTP port465 with SSL/TLS, or 587 with STARTTLS
UsernameYour full address, like [email protected]
Password"Sign in with Google" in the app, or a 16-character app password
POP, if you need itpop.gmail.com, port 995, SSL/TLS

Google's Gmail Help no longer prints this table. Its "Add Gmail to another email client" page only says to look for Sign in with Google. The servers above come from Google's developer page "IMAP, POP, and SMTP for Gmail", last updated 3 November 2026. Google Workspace addresses on your own domain use the same servers.

Why Gmail refuses your password

Since 14 March 2025 Gmail lets a mail app in two ways only: the app signs in with Google (OAuth), or you give it an app password. A plain username and password is turned away, which is where "Username and password not accepted" comes from. Google's Workspace page says you no longer use a password for access, "with the exception of app passwords".

App passwords come with conditions. They only exist once 2-Step Verification is on. Google hides the option for accounts that use only security keys, for accounts with Advanced Protection, and often for work or school accounts. And changing your Google password cancels every app password you made, so a mail app that worked for months can stop the day you change it.

One thing you no longer need: the IMAP switch. Google removed "Enable IMAP" and "Disable IMAP" for personal accounts in January 2025, and IMAP is always on. In Google Workspace an administrator can still turn IMAP off, or allow only apps that sign in with Google, which rules out app passwords.

Make a Gmail app password

  1. Open myaccount.google.com/security and check that 2-Step Verification says On.
  2. Go to myaccount.google.com/apppasswords. Google may ask for your password again.
  3. Type a name for the app (any name, it's only a label) and click Create.
  4. Copy the password into your mail app's password field. Google shows it once; spaces don't matter.

Pictures of each step: Add your Gmail to Roost. They work for any app that asks for a password.

Limits that look like errors

  • Up to 15 email clients can connect to one account at a time. The next one gets "Too many simultaneous connections".
  • A personal Gmail account sends up to 500 messages a day, with up to 100 recipients per message over SMTP. Paid Workspace accounts get 2,000 a day.
  • Gmail ends an IMAP session after about 24 hours, or after about an hour when the app signed in with OAuth. A good app just reconnects.

On a Mac

Apple Mail doesn't need this table. In Mail › Add Account, pick Google, and Mail signs in on Google's own page; Apple's list of providers points every @gmail.com address there. You need the servers only for an app that asks for them, such as Thunderbird's manual setup or a scanner that emails. Adding Gmail to Apple Mail step by step: Add Gmail to Mac Mail. If it keeps failing: Gmail not working in Mac Mail.

In Roost

Type your Gmail address and Roost fills in these servers by itself, so you never see a server field. Until Google finishes verifying Roost, Gmail goes in with an app password, and setup links straight to Google's App passwords page for the account you typed. The password stays in your Mac's Keychain; Roost has no server to keep it on.

About that 15-connection limit: Roost keeps at most six connections open per Gmail inbox, and if Gmail answers "Too many simultaneous connections" anyway, Roost closes one of its own idle connections and tries once more. It can't close your phone's.

Questions

Port 465 or 587 for Gmail SMTP?

Either. Google lists both. Port 465 is encrypted from the first byte (SSL/TLS); port 587 starts in plain text and switches to encryption with STARTTLS. Use whichever your app offers.

Do I need to enable IMAP in Gmail settings?

Not for a personal Gmail account. Google removed that switch in January 2025 and IMAP is always on. A Workspace account can have IMAP turned off by its administrator.

Google says "The setting you are looking for is not available for your account". Why?

Google gives three reasons: 2-Step Verification is set up only with security keys, the account is a work, school or other organization account, or it has Advanced Protection. If 2-Step Verification is off, turn it on first.

Why does Google say app passwords aren't recommended?

Google prefers apps that sign in with Google, since a sign-in can be limited and taken back without changing anything else. An app password works like any password: whoever has it can read your mail. Make one per app, and delete it at myaccount.google.com/apppasswords when you stop using the app.

Can I use smtp.gmail.com to send from a website or printer?

Yes, for sending as yourself, with an app password or OAuth, inside the 500-a-day limit. Google Workspace administrators routing a whole server or device through Gmail use smtp-relay.gmail.com instead.

Sources

  1. Google for Developers, IMAP, POP, and SMTP for Gmail (last updated 3 November 2026), read 19 November 2026.
  2. Gmail Help, Add Gmail to another email client, read 19 November 2026.
  3. Gmail Help, Choose your IMAP email client settings for Gmail (no server table on it today), read 19 November 2026.
  4. Google Account Help, Sign in with app passwords, read 19 November 2026.
  5. Google Workspace Admin Help, Transition from less secure apps to OAuth, read 19 November 2026.
  6. Google Workspace Admin Help, Turn POP and IMAP on or off for users, read 19 November 2026.
  7. Apple Support, Choose the correct email provider when adding an account to Mail, read 19 November 2026.