Blog/ Troubleshooting & errors

534 5.7.9 Application-Specific Password Required: Fix It

Nafiul HasanNafiul Hasan· 9 min read
A padlock and two-step shield beside a phone showing a sign-in prompt, and a tray holding a regular key next to a green app-specific key: the normal password no longer works over SMTP

The short answer

Gmail returns 534 5.7.9 when your account has 2-Step Verification on and your mail client sent the normal account password over SMTP. Google refuses it. Create a 16-character app password at myaccount.google.com/apppasswords and use that instead, or switch the client to Sign in with Google (OAuth). Work and school accounts may need an admin.

Gmail's 534 5.7.9 application specific password required means 2-Step Verification blocks your normal password over SMTP. Use an app password or OAuth.

On this page
  1. 01What does 534 5.7.9 application-specific password required mean?
  2. 02What causes the 534 5.7.9 error?
  3. 03Fix 1: How do I create an app password for Gmail?
  4. 04Fix 2: What if the app password option is missing?
  5. 05Fix 3: Should I use OAuth instead of an app password?
  6. 06How do I tell which cause I have?
  7. 07How do I stop 534 5.7.9 coming back?
  8. 08Where does AI Emaily fit?

You pointed a mail client, a printer, a script or a CRM at smtp.gmail.com, and the send failed with 534 5.7.9 application specific password required. The login was refused before a single message went out.

This page covers what the code means, the six causes behind it, and three fixes in order. It also covers the dead end most forum threads skip: the app password option simply not existing on your Google account.

What does 534 5.7.9 application-specific password required mean?#

It is an authentication refusal from Gmail's SMTP server. The account you are logging into has 2-Step Verification, and the client offered the regular account password. Google will not accept that over plain SMTP, so it tells you to use an application-specific password instead.

The numbers follow the standard SMTP scheme. The 5 means a permanent failure, so retrying the same credentials will never work. The 5.7.9 enhanced status code comes from RFC 4954, the SMTP authentication extension, where it is defined as the authentication mechanism being too weak. Gmail reuses it with its own text: application-specific password required. As of October 2026, Google's published SMTP error list prints the code as 534 5.7.90, while server replies in logs usually read 534 5.7.9; the wording is the same.

Google describes an app password as a 16-digit passcode (its wording; the code is 16 characters long) that gives a less secure app or device permission to access your Google Account, and it only works on accounts with 2-Step Verification turned on. Google also states that app passwords are not recommended and are unnecessary in most cases. Its preferred route is Sign in with Google.

What causes the 534 5.7.9 error?#

Most of the time it is the first row below. The other rows matter when the fix fails or when the app password option is missing from your account.

A closed door with a refusal symbol and three routes leading away: the green top route to a key for an app password, the middle route to a settings gear for an account setting, and the bottom route to a sign-in badge with a link for OAuth
One refusal, three routes. Which one you take depends on what your account allows.
CauseHow to confirmFix
Normal account password used in the client2-Step Verification is on and the client has the same password you type at gmail.comFix 1: create an app password and paste it into the client
App password was revoked after a password changeIt worked before, then you changed your Google passwordFix 1: create a new app password. Google revokes old ones on a password change
2-Step Verification is set up only for security keysThe app password page says the setting is not available, and security keys are your only second stepFix 2: add a phone prompt, authenticator app or other second step, then retry
Work, school or organization accountYour address is on a company or school domain, and the option is missing or disabledFix 2: ask your Workspace admin, or use Fix 3
Advanced Protection is enabledYou enrolled in Google's Advanced Protection ProgramFix 3: app passwords are not offered, so use OAuth
Client cannot use OAuth and has a typo in the app passwordPassword pasted with a stray character or the wrong account selectedFix 1: regenerate and paste again with no trailing space

Fix 1: How do I create an app password for Gmail?#

This is the right fix when 2-Step Verification is on, you are on a personal Google account, and your client has no Sign in with Google button. It takes about two minutes.

  1. 1

    Confirm 2-Step Verification is on

    Open your Google Account security page and check that 2-Step Verification shows as on. App passwords cannot exist without it.

  2. 2

    Open the app passwords page

    Go to myaccount.google.com/apppasswords and sign in again if prompted. Google links to this page from its own help article.

  3. 3

    Name the app and generate the password

    Type a label such as the name of the client or device, then create it. Google shows a 16-character password once. Copy it straight away, because it is not shown again.

  4. 4

    Paste it into the client in place of your password

    Keep your full Gmail address as the username. For the password field, paste the 16 characters without spaces. Google displays them in groups, and leaving the spaces out is the safe choice.

  5. 5

    Check the server settings

    Use smtp.gmail.com with port 465 (SSL/TLS) or port 587 (STARTTLS), and authentication switched on. Then send a test message.

Fix 2: What if the app password option is missing?#

This is the dead end. You open the app passwords page and either see nothing or are told the setting is not available. Google's help page lists the three reasons it happens: 2-Step Verification is set up only for security keys, you are signed into a work, school or other organization account, or Advanced Protection is on.

Work through them in this order. Each one takes a minute to rule out.

  1. 1

    Check how your second step is set up

    If security keys are your only second step, add another method such as a phone prompt or an authenticator app in the 2-Step Verification settings. Then reload the app passwords page.

  2. 2

    Check whether the account belongs to an organization

    If you sign in with a company or school address, your admin controls this. They can tell you whether app passwords are allowed for your account, and they may prefer you use OAuth instead.

  3. 3

    Check for Advanced Protection

    If you enrolled in Advanced Protection, app passwords are not available at all. You need a client that supports Sign in with Google, which is Fix 3.

  4. 4

    Test in a clean browser session

    Sign in at myaccount.google.com in a private window with only the affected account. If you are signed into several Google accounts, the page can open for the wrong one.

Do not turn off 2-Step Verification to dodge this

Dropping 2-Step Verification removes the check that protects the whole account, just to keep one old client working. If the app password route is closed, move the client to OAuth instead.

Fix 3: Should I use OAuth instead of an app password?#

Yes, when the client supports it. Google's own guidance is to use Sign in with Google to connect apps, and to fall back on app passwords only when the app does not offer it. With OAuth, the client never sees your Google password and you can revoke its access from your account without changing anything else.

In practice, remove the Gmail account from the client and add it again. Pick the Google or Gmail option rather than a generic SMTP or IMAP setup, and a Google sign-in window opens in your browser. Approve the permissions and the client stores a token, not your password.

Scripts, printers and older CRMs often cannot do this. For those, an app password from Fix 1 is the practical answer, as long as your account allows one. If the same client later fails at the receiving end instead, the related error is Gmail's IMAP message asking you to log in via your web browser, and the cause is the same one.

How do I tell which cause I have?#

Start with one question: did this setup ever work? If it worked and then stopped right after you changed your Google password, the app password was revoked and Fix 1 solves it.

If it never worked, check whether the app passwords page opens. If it does, you were simply using the wrong password, so Fix 1 again. If it does not, you are in Fix 2 territory, and the table above tells you which of the three account reasons applies.

If you are not sure that 2-Step Verification is even on, check. Without it, you would see a different error, usually 535 5.7.8 for a rejected username and password (Google's list prints it as 535 5.7.80 as of October 2026). That one has its own causes and its own fix.

What you seeMost likely causeGo to
Worked before, broke after a password changeApp password revokedFix 1
Never worked, app passwords page opens normallyNormal password used instead of an app passwordFix 1
App passwords page missing or unavailableSecurity-key-only 2SV, organization account, or Advanced ProtectionFix 2
Client shows a Sign in with Google optionBetter route availableFix 3
Error mentions logging in via your web browserRelated Gmail sign-in block, often fixed by OAuthFix 3

How do I stop 534 5.7.9 coming back?#

Name each app password after the client or device that uses it. When you lose a laptop or retire a printer, you can open the app passwords page and remove that one entry. Once revoked, that app cannot get into your account again.

Remember that changing your Google password revokes every app password you have made. After a password change, expect each old-style client to fail with this same error until you issue new ones. A short list of which clients use app passwords saves an afternoon of guessing.

Where you can, move clients to OAuth. A token can be revoked per app, no password is stored on the client, and nothing breaks when you rotate your password.

Treat an app password like a password

An app password gives full mail access to whoever holds it, and it bypasses your second step. Do not paste it into chat threads or tickets. If it leaks, remove it from the app passwords page and generate a new one.

Where does AI Emaily fit?#

The reason this error keeps appearing is that generic SMTP and IMAP setups hand your Google password, or a long-lived app password, to every client you connect. AI Emaily's Gmail connection uses Google sign-in rather than asking you to paste a password into SMTP settings, so the 2-Step Verification refusal does not come up in the normal setup. We build AI Emaily, and it also runs approve-before-send on drafts, so the agent does not send anything on its own until you allow it. It does not fix scripts or printers that still use raw SMTP; those need Fix 1. If you are weighing a client that sidesteps this, you can start at the AI Emaily homepage, see plans on the pricing page, or read the Gmail connection doc linked below. The trial is 7 days, with a card required.

Frequently asked

Nafiul Hasan

Written by

Nafiul Hasan

Nafiul Hasan is an entrepreneur and AI automation system builder with 10+ years of experience turning messy, manual workflows into reliable automated systems. He designs and ships AI enterprise solutions end-to-end — the agent logic, the data plumbing, and the product people actually use — and founded AI Emaily to give busy professionals their attention back. He writes here from the builder's seat: what works, what breaks, and how to put AI to work without giving up control.

EntrepreneurAI Automation System BuilderAI EnthusiastBuilds AI Enterprise Solutions10+ years experience
More from Nafiul
Ready when you are

Stop pasting passwords into mail settings

Try AI Emaily free for 7 days (card required, $0 if you cancel before day 7). Connect Gmail with Google sign-in, review every draft before it sends, and see plans at /pricing.

  • 7-day free trial
  • Cancel anytime
  • Every provider