Improvements and updates

Gmail with Google's sign-in

Connecting a Gmail or Google Workspace mailbox by signing in to Google — you pick the account on Google's page, no app password; signing in again, switching an app-password mailbox over, and what to do when it does not work.

Updated 2026-11-17

A Gmail mailbox can be connected in two ways. The simple one: press "Connect with Google", pick the account on Google's page and allow Mail to read and send its mail — nothing to type, no app password, your Google password never reaches Mail. The other way, an app password, still works too.

If you see no Connect with Google button, the site has not set up Google's sign-in for mailboxes yet. Use an app password meanwhile — see Getting started.

Connect a Gmail mailbox

  1. Open Mail and press the gear → Mailboxes → Add a mailbox (with no mailbox yet the form opens by itself).
  2. At the top of the form press Connect with Google ("Gmail or Google Workspace?"). You do not have to type the address. If you type a @gmail.com address instead, the password fields disappear and the button at the bottom becomes Connect with Google too.
  3. Google's page opens. Pick the account (or sign in), then allow access. Leave the access to Gmail ticked — without it Mail cannot read the mail.
  4. You come back to Mail's settings with a green line "The mailbox … is connected". The first messages arrive right away; the rest follow with the next sync.

The name on sent mail and the colour you chose in the form before pressing the button are kept; with nothing chosen, the name is the one of the Google account.

Google may show "Google hasn't verified this app" while the site's access to Gmail is being checked by Google. The site is the one you are on: press Advanced → Go to … to continue, or use an app password if you prefer.

A Google Workspace mailbox

A company address whose mail is at Google (Google Workspace) is connected the same way: press Connect with Google at the top of the form and pick the work account. The organisation decides what its mailboxes allow: if Google says the administrator must approve the app, or Mail reports that Gmail's mail server refused IMAP or SMTP, ask your administrator to allow IMAP and this app.

A Gmail mailbox with an app password → Google's sign-in

A Gmail mailbox you connected earlier with an app password can switch: the gear → Mailboxes → the mailbox → under the form Connect it with Google instead. Sign in with the same Google account. The mailbox, its mail here, folders and settings stay; from then on it signs in with Google's key, and the app password may be deleted at myaccount.google.com/apppasswords.

Use an app password instead

In the Add a mailbox form with a Gmail address, the blue box has Use an app password instead: the login, password and mail server fields come back, and a box with Gmail's mark lists the steps:

  1. Turn on 2-step verification in your Google account: open myaccount.google.com/signinoptions/twosv (Google account → Security → 2-Step Verification) and follow Google's steps — a phone number or an authenticator app. Without it Google makes no app passwords.
  2. Open myaccount.google.com/apppasswords, type a name — for example "Stjobno Mail" — and press Create.
  3. Google shows 16 letters. Copy them and paste them into the Password field of the form (the spaces do not matter), then press Add the mailbox.

Connect it with Google instead in the same box takes you back to Google's sign-in.

Google says "This setting is not available for your account" on the App passwords page? Then 2-step verification is still off (step 1), or it is set up only with security keys, or the account is in Google's Advanced Protection, or it is a work or school account whose administrator does not allow app passwords. In the last cases an app password cannot be made — use Connect with Google.

When Gmail refuses the password

Google tells no one whether your account has 2-step verification — but its mail server answers a refused password in different ways, and the form reads that answer. After Add the mailbox the reason appears under the Password field, and the box with the steps turns amber and says what to do next:

  • "2-step verification is already on — now make an app password" — you typed your usual Gmail password. Step 1 is ticked as done; do steps 2 and 3.
  • "Start with step 1: turn on 2-step verification…" — Gmail refused the password and it does not look like an app password (16 letters). Most likely 2-step verification is still off: Gmail then takes no password from mail apps at all.
  • "Make a new app password and paste it whole" — what you typed looks like an app password, but Google did not accept it: it was mistyped, deleted since, or made in another Google account than this address.
  • "Ask the administrator of your organisation to allow IMAP" — a work or school account where mail apps are switched off.
  • "Confirm the sign-in in your Google account, then try again" — Google held the sign-in back as unusual: Google account → Security → Recent security activity, say it was you, and press the button again.

This is a hint read from the mail server's answer, not a certainty — if it does not fit, Connect it with Google instead needs no app password at all.

What Mail keeps

  • No password. Mail keeps Google's access key for this mailbox, encrypted, and renews it by itself every hour.
  • What Mail does with the mailbox is the same as with any other: it reads the headers of the newest mail, opens a message's text when you open it, sends from the address and files what you move. See Synchronization with the mail server.
  • You can take the access back at any time at myaccount.google.com/permissions (Third-party apps & services). Mail then stops reaching the mailbox until you sign in again.

"Sign in to Google again"

Google ends the access when you change your Google password (for Gmail's access), take it back, or — while the site's Google app is still in testing — after 7 days. The mailbox then shows a yellow warning in Mailboxes:

  1. Press the gear → Mailboxes → the mailbox.
  2. Press Sign in to Google again and allow access on Google's page.

Sign in with the same Google account — another one is refused.

Changing or removing it

In the mailbox's form you change the name on sent mail, the colour, the signature and the folder switches. The address and the mail servers come from Google. Remove the mailbox takes it off Mail; nothing is deleted at Google (take the access back there too if you want).

When it does not work

What you see What to do
"You did not allow Mail to use the mailbox" You pressed Cancel on Google's page. Press Connect with Google again and allow.
"… the access to Gmail was not ticked" On Google's page the Gmail line was unticked. Try again and leave it ticked.
"Access blocked" / "This app is in testing" at Google The site's Google app is in testing and your address is not among its testers. Use an app password, or ask the site's administrator.
"The sign-in to Google took too long or came from another window" Start again from the form; finish within half an hour, in the same browser.
"You signed in to Google as …, but this mailbox is …" You picked another Google account. Pick the one the mailbox belongs to.
"… Gmail's mail server refused the connection (IMAP / SMTP)" A Workspace account whose administrator switched IMAP off — ask them. For a personal account, try again a little later.
A yellow warning "Google no longer lets Mail into this mailbox" Sign in to Google again.

More about adding mailboxes: Getting started. Outlook and Hotmail connect the same way through Microsoft: Outlook, Hotmail and Microsoft 365.