Google Workspace

Google Workspace · Gmail · SMTP / IMAP

Google Workspace Gmail Won't Accept Your Password for SMTP or IMAP — Switch to OAuth or the SMTP Relay

First published 10 November 2026 · Updated on 14 November 2026 · Google Workspace Admin Help, Google Account Help and Google for Developers, read 12 November 2026. Where Google publishes no number, this guide says so instead of inventing one.

Merroway Editorial · Verified against governing standards and vendor documentation.

Your password is probably right. If you can still sign in to Gmail on the web at mail.google.com, the password is fine — the problem is the way your mail app or device is signing in. Google Workspace no longer accepts a plain username and password from third-party mail apps over IMAP, SMTP or POP. Typing the same password again, harder, will not fix it — and retrying it over and over can temporarily lock sign-in attempts. The fix is to change the sign-in method: reconnect the app with OAuth, move a device or server to the SMTP relay, or — only for an app that cannot do OAuth — use an app password instead of your account password.

The fast answer

Stop entering your account password into the mail app. Google Workspace accounts no longer support “less secure apps” — third-party apps or devices that sign in with only a username and password. Google's own Workspace help says it plainly: “You must use OAuth to let these apps and devices access your account.” There are three supported routes, and which one you need depends on what is connecting:

  • A mail app (Outlook, Thunderbird, Apple Mail, a phone mail app) → OAuth. Remove the failing account from the app and add it again as a Google account. The app opens a Google sign-in window, you approve it, and the app never sees your password. This is Step 1.
  • A printer, scanner, server or business app that only sends mail → the SMTP relay. Your Workspace admin sets it up once in the Admin console, and the device points at smtp-relay.gmail.com on port 587 with TLS. Google recommends this route for devices. This is Step 2.
  • An app or device that has no “Sign in with Google” button at all → an app password. A 16-digit code you create after turning on 2-Step Verification, entered in the app's password field instead of your account password. It is a fallback, not the first choice — Google says app passwords “aren't recommended and are unnecessary in most cases.” This is Step 3.
MAIL APP — OAuthOutlook, Thunderbird,Apple Mail, phone mail“Sign in with Google”window — no passwordSTEP 1DEVICE / SERVER — relayPrinter, scanner, server,business app — sends onlysmtp-relay.gmail.comport 587, TLS — admin sets upSTEP 2NO GOOGLE BUTTON — fallbackOld app or device withonly a password field16-digit app passwordneeds 2-Step VerificationSTEP 3 — FALLBACK ONLYThe account password on its own works on none of these routes.Pick the route by what is connecting, not by which error you saw.Source: Google Workspace Admin Help, “Send email from a printer, scanner, or app”.
Drawn diagram — the three supported routes side by side, not a screenshot. A mail app takes OAuth, a sending device takes the relay, and only an app with no Google sign-in button takes an app password.

What you are looking at, in plain words

“Less secure apps” was the name for signing in with just a username and password. For years, any mail app could connect to Gmail over IMAP (incoming mail), SMTP (outgoing mail) or POP with your email address and your account password. Google called those “less secure apps” because the app held your real password and there was no second check. Google removed that path in stages: personal Gmail accounts lost it in May 2022, the “Less secure apps” setting was removed from the Google Workspace Admin console in June 2024, and Google's Workspace Updates blog gives 1 May 2025 as the final date it stopped being supported. Google's Workspace admin help puts it plainly: “Google Workspace accounts no longer support less secure apps, third-party apps, or devices that ask you to sign in to your Google Account with your username and password.”

One date is not settled — and it does not change the fix. Google's own material gives two dates for the final Workspace step: the Workspace Updates blog's final update (29 April 2025) says 1 May 2025, while the Transition admin-help page says 14 March 2025 — the blog's earlier update said 14 March too, before the date was moved to 1 May. The shut-off itself is not in doubt — every route below is confirmed against Google's current pages — but this guide will not pretend the two dates agree. Either way, password-only sign-in from a mail app is gone, and no setting brings it back.

OAuth is the replacement for mail apps. Instead of handing your password to the app, the app opens a Google sign-in window, you sign in there, and Google gives the app a token that lets it read and send your mail. The app never sees your password. Changing your password later does break the connection for a mail app, though — Google revokes the app’s Gmail access when the password changes, so you sign in again through the Google window. That is a re-sign-in, not a password typed into the app. Under the hood, mail apps do this with OAuth 2.0 over IMAP and SMTP — the mechanism is called SASL XOAUTH2, and Google documents it on its developer pages. You do not need to set any of that up yourself: if the app offers “Sign in with Google”, that is OAuth, and the app handles the mechanism.

The SMTP relay is the replacement for things that send mail but have no person to sign in. A printer, a scanner, a server or a business app cannot open a Google sign-in window. For those, your Workspace admin registers the device with Google once, and the device sends through smtp-relay.gmail.com instead of logging in as a person. Google recommends the relay for devices and calls it the most secure of its three sending options.

An app password is the narrow exception, not a second password. It is a 16-digit code that stands in for your account password in one app that cannot do OAuth. It only exists on accounts with 2-Step Verification turned on, Google shows it once when you create it, and changing your account password revokes all of your app passwords. Google's own account help says app passwords “aren't recommended and are unnecessary in most cases” — use one only where OAuth is genuinely unavailable.

What is connectingServer and portHow it signs inDaily limit (Google's figure)
Mail app — incoming (IMAP)imap.gmail.com, port 993, SSL/TLSOAuth (“Sign in with Google”); app password only if the app cannot do OAuth—
Mail app — outgoing (SMTP)smtp.gmail.com, port 587 with TLS, or port 465 with SSLOAuth; or an app password in the password field2,000 messages per day
Device / server — SMTP relaysmtp-relay.gmail.com, port 587 with TLS (25 or 465 also listed by Google)IP allowlist, SMTP authentication, or both — set by your admin10,000 recipients per user per day; 100 recipients per transaction
Device with no SSL — restricted SMTPaspmx.l.google.com, port 25, no authenticationNone — but the device IP must be allowlisted and SPF set upGoogle Workspace per-user limits apply

Do not use the restricted server for outside mail. The restricted SMTP server (aspmx.l.google.com) sends only to Gmail and Google Workspace addresses. If your scanner needs to email customers, suppliers or anyone outside Google, it needs the relay or the normal SMTP server — the restricted server will not do it.

Step 0 — Prove which part is failing

Do this before changing any setting. Two minutes here decides which of the three steps below is yours — and stops you rebuilding a working relay to fix a mistyped password.

  1. Sign in to Gmail on the web first. Open mail.google.com in a browser and sign in with the same address and password. If that works, your password and your account are fine, and the failure is the sign-in method — continue with this guide. If the web sign-in fails too, stop: that is a password or account problem (wrong password, locked account, 2-Step Verification), and no step below will fix it. Recover the account first.
  2. Write down the exact error, word for word. The code tells you which layer refused you. 535 5.7.80 “Username and Password not accepted” (older clients show the same text as 535 5.7.8) means password-only sign-in was refused — Step 1 or Step 3. 534 5.7.90 “Application-specific password required” (older: 534 5.7.9) means the account has 2-Step Verification on, so the normal password is never accepted here — you need an app password or OAuth. 550 5.7.0 “Email relay denied” is a relay problem, not a password problem — Step 2. Error 400: admin_policy_enforced means your Workspace admin has not trusted this app — see the ladder. 454 4.7.0 “Too many sign-in attempts” means stop retrying and wait — see the ladder.
  3. Look at the app: does it offer “Sign in with Google”? If it does, you are on the OAuth route (Step 1) — do not create an app password. If the app only has username and password fields and no Google button, it cannot do OAuth: a person's mailbox goes to Step 3, a sending device goes to Step 2.
  4. Work out whether you are the admin. Steps 1 and 3 are yours to do. Step 2, the relay, can only be set up by a Workspace admin in the Admin console. If that is not you, your job is to hand your admin the device's details (its public IP address and what it sends) and ask for the relay — not to keep trying passwords into the device.
Advertisements

Step 1 — Reconnect a mail app with OAuth

Use this for Outlook, Thunderbird, Apple Mail, a phone mail app, or any app where a person reads and sends mail. Do not just change the password field — the old account entry in the app is saved as a password login, and editing the password keeps it a password login.

  1. Remove the failing account from the app entirely. In the app's account settings, delete the Google Workspace account that keeps asking for its password. This clears the saved password login. (Your mail stays on Google's servers; removing the account from the app deletes nothing from the mailbox.)
  2. Add the account again — and choose Google as the account type. When the app asks what kind of account this is, pick Google or Gmail, not “IMAP” and not “Other”. That choice is what makes the app use OAuth. Enter your full Workspace email address when asked.
  3. Approve the Google sign-in window. The app opens a Google sign-in page in a browser window. Sign in there with your Workspace address and password, complete 2-Step Verification if asked, and approve the access the app requests. The window closes and the app connects — the app itself never receives your password.
  4. If the app still asks for server settings, enter Google's. Incoming: imap.gmail.com, port 993, SSL/TLS. Outgoing: smtp.gmail.com, port 587 with TLS (or port 465 with SSL). Username: your full Workspace email address. Leave the password field to the OAuth flow — if the app is asking you to type a password into its own settings screen at this point, it is not using OAuth, and you picked the wrong account type in step 2.
  5. Check IMAP is turned on by your admin, if mail still will not sync. There is no Enable IMAP switch in your own Gmail settings any more — Google removed the Enable/Disable IMAP choice from users’ Gmail settings in summer 2024, and IMAP is always on unless your admin has switched it off. If mail still will not sync, your Workspace admin has to turn IMAP on for your organisation in the Admin console (Apps → Google Workspace → Gmail → End User Access → POP and IMAP access) — ask them; it is an admin setting, not something you can switch on yourself.
If the app has no Google account type, stop here. An app that only offers “IMAP” or “Other” with username and password fields cannot do OAuth at all. Do not force it: a person's mailbox goes to Step 3 (app password), and a device that only sends mail goes to Step 2 (relay). Updating the app to its latest version is worth trying first — older versions of some apps gained Google sign-in in a later release.

Step 2 — Set up the SMTP relay for a device or server

This step is for a Workspace admin. It covers one printer, scanner, server or business app that sends mail and cannot open a Google sign-in window. Google recommends the relay for devices and calls it the most secure of its sending options.

  1. Open the relay setting in the Admin console. Sign in at admin.google.com, then go to Menu → Apps → Google Workspace → Gmail → Routing. Scroll to SMTP relay service and click Configure (or Edit / Add another rule if one already exists). You need the Gmail Settings administrator privilege, and the setting can only be added or changed at the top-level organisation — a child organisational unit can only view it.
  2. Set Allowed senders to the narrowest option that works. The three options are: Only registered Apps users in my domains (the sender must be a Workspace user in one of your domains — narrowest, use this first), Only addresses in my domains (the sender need not be a Workspace user, but the address must be in your domain — the right choice for a third-party app sending as an address in your domain), and Any addresses (not recommended) — Google marks this one not recommended, because it leaves you open to abuse. Do not pick “Any addresses” to save a minute.
  3. Pick at least one authentication method. Tick Only accept mail from the specified IP addresses and add the device's public IP address (use your own public IP, and keep the range as small as possible — Google allows up to 65,536 addresses in one range, but a wide range is a wide-open door), and/or tick Require SMTP Authentication, which checks the sending Workspace address and password. Requiring SMTP authentication also requires a TLS connection, so it does not suit a device that cannot do TLS — for that device, use the IP allowlist instead.
  4. Tick Require TLS encryption if every device in scope supports it. With this on, any message not sent over an encrypted TLS connection is rejected. If one of your devices cannot do TLS, leave it off for that rule and rely on the IP allowlist — and say so in the rule's name, so the next admin knows why.
  5. Save, then point the device at the relay. On the device or in the app, set the SMTP server to smtp-relay.gmail.com, port 587 with TLS (Google also lists ports 25 and 465). Set the From address to one your relay rule allows. Google says relay changes can take up to 24 hours, though they usually apply sooner — if a test sent in the first hour fails, wait before rebuilding the rule.
  6. Use a proper HELO name. Google recommends servers present a unique identifier in the HELO or EHLO greeting — your domain name or the server's name — instead of a generic one such as localhost. A device announcing itself as localhost is one of the things that earns a 550 5.7.0 relay denial.
SMTP relay — the admin console moves, in order (field map drawn by Merroway)
WHERE1Admin console → Apps → Google Workspace → Gmail → Routing → SMTP relay service → Configure
SENDERS2Allowed senders — narrowest first: Only registered Apps users in my domains; “Any addresses” is not recommended
AUTH3Only accept mail from the specified IP addresses and/or Require SMTP Authentication (needs TLS)
TLS4Require TLS encryption if every device in scope supports it — otherwise the rule rejects its mail
DEVICE5Server smtp-relay.gmail.com, port 587 with TLS; From address the rule allows; HELO name is your domain, not localhost
WAIT6Changes can take up to 24 hours — a test that fails in the first hour proves nothing yet
Do this: narrowest senders, at least one authentication method, TLS where the device supports it — then the device points at the relay and nothing else. Numbers: 1 — where the setting lives; 2 — who may send; 3 — how the relay knows it is you; 4 — encryption; 5 — the device side; 6 — the wait. Drawn map — not a screenshot.

Two limits to know about. Each user can relay up to 10,000 recipients per day through the relay, with a 100-recipient limit per SMTP transaction — send to more than 100 recipients in one go and the extra ones fail, so split large sends. Trial accounts have lower relay limits than paid ones: Google says only that they are lower, and publishes no trial number on the pages read for this guide, so this guide states no trial figure. And do not use the relay for mail that originates from Gmail itself — Google says the relay is for on-premise devices and applications that generate outbound mail, and routing Gmail-originated mail back through it risks mail loops and quota burn.

Step 3 — The fallback: an app password for an app that cannot do OAuth

Use this only when Step 0 showed the app has no “Sign in with Google” button. If the app can do OAuth, Step 1 is the fix — an app password is a workaround for an old app, not an equal alternative. Google's own printer and scanner page gives this as its Gmail SMTP server option: enter your full Workspace address and an app password.

  1. Turn on 2-Step Verification for the account. App passwords only exist on accounts with 2-Step Verification turned on. Sign in at myaccount.google.com, open Security, and set up 2-Step Verification if it is off. If your admin enforces 2-Step Verification for the organisation, it may already be on — check before changing anything.
  2. Create the app password. Go to myaccount.google.com/apppasswords (the page is not always listed in the Security menu, so use the address directly) and sign in again if asked. Name it after the app or device — “Office scanner”, “Old laptop Thunderbird” — and create it. Google shows a 16-digit code, usually in four groups of four characters. Copy it now: Google shows it only once, and you cannot look it up again later.
  3. Paste the code into the app's password field — not your account password. In the app or on the device, keep the server settings from the table in “What you are looking at” (smtp.gmail.com, port 587 with TLS or 465 with SSL; imap.gmail.com, port 993) and put the 16-digit code where the password goes. Use your full Workspace email address as the username.
  4. Keep one app password per app or device. If the scanner's code leaks or the laptop is lost, you revoke that one code and the others keep working. Sharing one code across everything means one revocation breaks everything at once.
Three ways the app-password page can be missing — none of them is a Google outage. Google's own account help says the option may not appear if (a) your 2-Step Verification is set up for security keys only, (b) you are signed in to a work, school or other organisation account whose admin has restricted it, or (c) the account has Advanced Protection turned on. On a Workspace account, (b) is the common one: your admin controls app passwords in the Admin console under Security → Authentication → 2-Step Verification, and enforcing “Only security key” removes the option for everyone. Ask your admin — do not keep hunting the page.

Two things that silently break app passwords. First, Google revokes all of your app passwords when you change your Google Account password — after any password change, every app and device on an app password stops working until you create fresh codes. Second, an app password gives the app full access to the mailbox, so treat the code like a password: do not email it to yourself, do not paste it into a shared document, and revoke it the moment the device is retired or lost (myaccount.google.com/apppasswords → Remove).

Advertisements

Prove it worked

Do not trust a settings screen — a saved account that never tries to connect proves nothing. Prove each direction separately:

Proof — six checks, in order (field map drawn by Merroway)
WEB1Web sign-in at mail.google.com still works — the account and password are good
SEND2Send a test message from the app — it leaves without a 535 or 534 error
ARRIVE3The test message arrives at the recipient and appears in the app's Sent folder
RECEIVE4Reply to the test message — it arrives in the app's Inbox, not only on the web
RELAY5For a device: send a test scan or alert through the relay — it reaches an external address, not just a colleague
STAY6Close and reopen the app, then send again — it connects without asking for the password a second time
Do this: run the checks in this order and stop at the first failure — each row names the layer that owns the fix. Numbers: 1 — the account; 2 — sending; 3 — delivery and the Sent folder; 4 — receiving; 5 — the relay reaching outside; 6 — the connection holding. Drawn map — not a screenshot.
Done looks like this: the app connects without ever asking for the account password, mail sends and arrives in both directions, the Sent folder matches what the web shows, and a device's test scan reaches an external address. If the app asks for the password again the next morning, the OAuth approval did not stick, or the account password changed — a password change revokes both the app’s OAuth access and every app password — go back to Step 1, or create a fresh app password (Step 3).

Still not working? Work this ladder in order

  1. Error 400: admin_policy_enforced when the Google window opens. This is not a password error — your Workspace admin has not trusted this app. Ask your admin to trust it in the Admin console under Security → Access and data control → API controls → Manage third-party app access, by the app's name or OAuth Client ID. Until the app is trusted, no password, app password or reinstall will get past that screen.
  2. Mail sends but never arrives in the app (or the reverse). One direction working and the other failing means the two servers are configured separately — check the failing side's host and port against the table (IMAP imap.gmail.com 993; SMTP smtp.gmail.com 587 or 465), and check IMAP is enabled (Step 1, step 5). A common trap is an app that was set up as POP years ago: POP downloads mail to one device and does not sync — and if it was set to delete Gmail’s copy, the server copy is gone, so other devices see nothing. Re-add the account as IMAP, not POP.
  3. Still 535 5.7.80 after reconnecting with OAuth. Check you signed in to the right account in the Google window — a personal Gmail address signed in to the same browser will connect the app to the wrong mailbox. Remove the account from the app completely and re-add it, watching the address shown in the Google window. Also check the app is up to date: an old build may offer a Google button that no longer completes the flow.
  4. An app password that worked yesterday is rejected today. Did anyone change the account password? Google revokes all app passwords on a password change. Create a fresh app password and paste it in — and if the code was copied with a missing character, generate a new one rather than guessing which character is wrong. Google shows each code only once, so there is nothing to compare against.
  5. 454 4.7.0 “Too many sign-in attempts, try again later”. Stop. Wait for the block to clear, then try exactly once with the correct method (OAuth re-add, or a fresh app password). If a device retries on its own every few minutes, switch it off until you are ready to test — its retries are the attempts Google is counting.
  6. 550 5.7.0 “Email relay denied” from a device. Google's own wording for this error is: “Email is being sent from a domain or IP address which isn't registered in your Workspace account.” Check three things in the relay rule: the From address is one the rule's Allowed senders covers, the device's current public IP is in the allowlist (a dynamic IP that changed overnight is the usual cause — the relay needs a static IP, or SMTP authentication instead), and the device's HELO name is your domain, not localhost. Remember relay changes can take up to 24 hours.
  7. 550 5.4.5 “Daily user sending limit exceeded”. You have hit Google's sending limit for the day — 2,000 messages a day through smtp.gmail.com, or the relay's 10,000-recipient limit if you are relaying. This is a rolling 24-hour limit, not a setting to raise in the app: wait for the window to roll, and if you regularly hit it, the relay (or a proper bulk sender) is the answer, not a second account.
  8. It works on the office Wi-Fi but not elsewhere (or the reverse). Some networks block the port the device is using. Try the other listed port — 587 with TLS, or 465 with SSL for smtp.gmail.com — and check the device is on the network whose public IP the relay rule allows. A laptop that works at the office and fails at home is almost always an IP-allowlist problem, not a password problem.

Mistakes that make it worse

MistakeWhat happens
Retyping the same password again and againRepeated failures trigger 454 4.7.0 “Too many sign-in attempts, try again later” — a temporary block on top of the original problem. Stop and diagnose (Step 0) instead.
Hunting for the “Allow less secure apps” switchThere is no switch any more. Google removed the setting from the Admin console in June 2024 and turned the access off in 2025. Any guide telling you to flip it is out of date.
Using the account password in a device “just until IT looks at it”The device holds a live password that also signs in to the web, Drive and everything else — and it stops working the next password change anyway. Use the relay or an app password.
Setting the relay to “Any addresses”Google marks this option not recommended: anyone who can reach the relay can send as any address, including addresses outside your domain. Use the narrowest Allowed senders that works.
One app password shared across every deviceOne revocation — a lost laptop, a retired scanner — breaks every device at once, and you cannot tell which device a login came from. One code per app or device.
Pointing a scanner at aspmx.l.google.com to email customersThe restricted server sends only to Gmail and Google Workspace addresses. External recipients never receive it, with no useful error on the device. Use the relay.
Using a personal Gmail app password for the work mailboxThe code belongs to the personal account, not the Workspace account — the device signs in to the wrong mailbox, or fails outright. Create the code while signed in to the work account.
Following the personal-Gmail fix and stopping therePersonal Gmail and Workspace share the same shut-off, but Workspace adds the admin layer: IMAP on/off, app-password restrictions and API Controls are all admin settings. If a fix needs the Admin console and you are not the admin, ask — do not assume the setting is yours to change.

FAQ

Is my password actually wrong?

Probably not. If you can sign in to Gmail on the web with it, the password is correct and the account is fine. What changed is the sign-in method: Google Workspace no longer accepts a plain username and password from a mail app over IMAP, SMTP or POP. The app has to sign in with OAuth, the device has to use the SMTP relay, or — only for an app that cannot do OAuth — an app password. Typing the same correct password again will keep failing, because the password was never the problem.

Can I turn less secure apps back on?

No. Google removed the “Less secure apps” setting from the Workspace Admin console in June 2024 and turned the access off in 2025, and there is no admin setting, support request or account type that restores it. Any guide telling you to flip the switch is out of date. Reconnect the app with OAuth, move the device to the SMTP relay, or use an app password where OAuth is impossible.

Do app passwords still work on a Google Workspace account?

Yes — as a fallback, not as the first choice. Google’s own printer and scanner page tells you to enter an app password for its Gmail SMTP server option, and the codes work on Workspace accounts with 2-Step Verification turned on. But Google says app passwords “aren’t recommended and are unnecessary in most cases”, and your admin can restrict them. Use OAuth wherever the app offers “Sign in with Google”, and the SMTP relay for devices; keep the app password for the old app that has no Google sign-in button.

Which is right for a printer or scanner — an app password or the SMTP relay?

The SMTP relay, wherever you can set it up. Google recommends the relay for devices and calls it the most secure of its three sending options: the device doesn’t sign in as a user to read mail — it authenticates by its IP address or by SMTP authentication, and one compromised device cannot read anyone’s mailbox. An app password is the fallback for a single device when there is no admin available to set up the relay — it works, but it holds full access to one mailbox and stops working whenever that account’s password changes.

What do 535 5.7.80 and 534 5.7.90 mean?

Both are Google telling you the password was refused. 535 5.7.80 “Username and Password not accepted” means the sign-in method was rejected — switch to OAuth or use an app password. 534 5.7.90 “Application-specific password required” means the account has 2-Step Verification on, so the normal password is never accepted over SMTP or IMAP — you need an app password or OAuth. Older clients and older guides show the same texts with shorter codes, 535 5.7.8 and 534 5.7.9; Google’s own error list now carries the longer codes, and the fix is the same either way.

What does “550 5.7.0 Email relay denied” mean?

Google’s own wording is: “Email is being sent from a domain or IP address which isn’t registered in your Workspace account.” The relay rule does not cover what the device is sending as: either the From address is outside the rule’s Allowed senders, the device’s public IP is not in the allowlist (a dynamic IP that changed overnight is the usual cause), or the device’s HELO name is a generic one such as localhost instead of your domain. Check those three in the Admin console under Apps → Google Workspace → Gmail → Routing → SMTP relay service — and remember relay changes can take up to 24 hours. Our SMTP relay guide walks through this denial — IP, HELO and Allowed senders — step by step.

My admin says the app is blocked with “admin_policy_enforced”. What is that?

That is Error 400: admin_policy_enforced, and it is not a password error at all: your Workspace admin has not trusted this app, so Google refuses the OAuth connection before any password is checked. Ask your admin to trust the app in the Admin console under Security → Access and data control → API controls → Manage third-party app access, by the app’s name or OAuth Client ID. Until the app is trusted, no password, app password or reinstall will get past that screen. A fuller walkthrough of this error is our Error 400: admin_policy_enforced guide — this guide covers only the password side.

Does this apply to personal Gmail or Microsoft 365 too?

Personal Gmail went through the same shut-off earlier — less secure app access ended for personal accounts in May 2022 — and the same fixes apply: “Sign in with Google” first, an app password only where the app cannot do OAuth. Microsoft 365 is a different system with its own switch-off: SMTP AUTH basic authentication is disabled by default at the end of December 2026 — admins can still re-enable it, and Microsoft will announce a final removal date later — and our Microsoft 365 SMTP AUTH guide covers that separately.

Sources

Google Workspace Admin Help — Send email from a printer, scanner, or app (the three sending options; SMTP relay recommended; relay ports 25/465/587 and the 10,000-recipient limit; Gmail SMTP server with an app password; restricted server aspmx.l.google.com, internal recipients only; app password as the fix for a 2-Step Verification authentication error on a printer) · Google Workspace Admin Help — Route outgoing SMTP relay messages through Google (“You must use OAuth”; relay ports by TLS; Allowed senders; IP and SMTP authentication; Require TLS; top-level organisation only; 10,000 messages and 10,000 unique recipients per user per day; 100 recipients per transaction; HELO advice; changes up to 24 hours; trial limits lower) · Google Account Help — Sign in with app passwords (16-digit passcode; 2-Step Verification required; “aren't recommended and are unnecessary in most cases”; shown once; revoked on password change; missing when security-keys-only, organisation-managed or Advanced Protection) · Google Workspace Help — Gmail SMTP errors and codes (535 5.7.80 “Username and Password not accepted”; 534 5.7.90 “Application-specific password required”; 550 5.7.0 “Email relay denied … isn't registered in your Workspace account”; 550 5.4.5 daily limit; 454 4.7.0 too many sign-in attempts) · Google Workspace Admin Help — Set up Gmail with a third-party email client (use only clients that support OAuth; IMAP turned on in the Admin console; imap.gmail.com 993 SSL, smtp.gmail.com 587 TLS / 465 SSL) · Google for Developers — OAuth 2.0 mechanism (SASL XOAUTH2) (OAuth 2.0 access tokens for IMAP, POP and SMTP; scope https://mail.google.com/) · Google for Developers — IMAP, POP, and SMTP for Gmail (all three servers support OAuth 2.0; server addresses and ports) · Gmail Help — Add Gmail to another email client (IMAP access always turned on from January 2025, no Enable/Disable IMAP choice; after a password change, re-enter account information or repeat the Gmail account setup) · Google for Developers — Using OAuth 2.0 to Access Google APIs (a refresh token stops working when the user changes passwords and the token contains Gmail scopes) · Google Workspace Admin Help — Transition from less secure apps to OAuth (14 March 2025 date for the final shut-off) · Google Workspace Admin Help — Control which apps access Google Workspace data (Admin console path Security → Access and data control → API controls → Manage third-party app access; trust by app name or OAuth Client ID) · Google Workspace Admin Help — Monitor the health of your security settings (2-Step Verification admin path Security → Authentication → 2-step verification; “Only security key” as an allowed-methods option) · Microsoft Exchange Team blog — Updated Exchange Online SMTP AUTH Basic Authentication Deprecation Timeline, 27 January 2026 (Basic authentication for SMTP AUTH disabled by default at the end of December 2026, admins can re-enable it; final removal date to be announced in the second half of 2027) · Google Workspace Updates blog — “Beginning September 30, 2024: third-party apps that use only a password to access Google Accounts and Google Sync will no longer be supported” (update of 12 February 2025 giving 14 March 2025, and final update of 29 April 2025 giving 1 May 2025 — the two dates in the fenced note in “What you are looking at”).

Verification note: every load-bearing claim above was checked against Google's own pages on 12 November 2026. Four limits, kept explicit. First, the final shut-off date: Google's Workspace Updates blog gives 1 May 2025 as the final date (update of 29 April 2025), while the Transition admin-help page gives 14 March 2025 (the blog's earlier update said 14 March too) — the shut-off is complete either way and the date changes nothing in the fix. Second, a correction found during the re-check: app passwords were first thought not to be the Workspace route. Google's own printer and scanner page says otherwise — its Gmail SMTP server option instructs you to enter an app password — so this guide teaches the app password as a fallback for apps that cannot do OAuth, and the title's “OAuth or the SMTP relay” is the recommended order, not a claim that app passwords fail. Third, the double-verification pass on 10 November 2026 corrected two statements from the first build and re-checked the two Admin console click-paths against Google’s own pages: a password change also breaks a mail app’s OAuth connection (Google revokes Gmail-scope refresh tokens on a password change), and there is no Enable IMAP switch in Gmail settings any more (Google removed it from users’ Gmail settings in summer 2024) — both are now stated correctly in the guide, and the API Controls trust path and the app-password admin setting path were both confirmed against Google’s own pages in the same pass. Fourth, Google publishes no number I could verify for how many app passwords one account may hold, and no trial-account relay number on the pages read — no figure for either is stated anywhere in this guide.