Deliverability

534-5.7.9 Application-Specific Password Required: Gmail SMTP Fix

The Gmail error 534-5.7.9 means Google refused your normal account password over SMTP or IMAP. Turn on 2-Step Verification, create a 16-character app password in your Google Account, and enter it as the SMTP and IMAP password in your outreach tool. Workspace admins may need to allow it first.

Sohail HussainSohail Hussain9 min read

Short answer

  • Google rejected your regular account password because the app signed in with a username and password only. Use "Sign in with Google" (OAuth) if the tool offers it.
  • If it doesn't, turn on 2-Step Verification, create an app password, and paste that 16-character code as the SMTP and IMAP password.
  • No App passwords page? Check for a security-key-only setup, Advanced Protection, or a Workspace admin restriction.

You added a Gmail mailbox to an outreach or email tool over SMTP/IMAP and the connection test failed with this:

Invalid Login: 534-5.7.9 Application-Specific Password Required

Google is telling you it will not accept your normal password from this app. The fix is either to connect with a Google sign-in button, or to create an app password and use that in the password field.

Why it happens

534 is an SMTP authentication failure reply, and 5.7.9 is the enhanced status code Google attaches when a password alone isn't enough. The message comes from Google's servers, so it is a sign-in rejection before any email is accepted. Your recipients, DNS and message content are not involved.

The causes, most common first:

  1. The tool signs in with your account password. Google says Gmail no longer supports third-party apps or devices that require you to share your Google username and password. Google recommends looking for the option to "Sign in with Google" instead.
  2. The tool has no Google sign-in, so you need an app password. Google's help page says that an app password is a 16-digit passcode that gives a less secure app or device permission to access your Google Account. They only work on accounts with 2-Step Verification turned on.
  3. Basic authentication has been switched off. For Workspace, Google's admin documentation says access to less secure apps was scheduled to be turned off for all Google Accounts on March 14, 2025, and IMAP, SMTP and POP stop working with legacy passwords. Older advice to enable "Less secure app access" no longer applies.
  4. An old or wrong credential. You pasted the account password again, an app password that was revoked, or one with stray spaces.

Google's own help page also says app passwords aren't recommended and are unnecessary in most cases. Treat them as the fallback, not the first choice.

Fix 1: Connect with "Sign in with Google" if the tool offers it

  1. Remove the failed SMTP/IMAP connection from the tool.
  2. Add the mailbox again and look for a Sign in with Google or Connect with Google option rather than a manual SMTP form.
  3. Approve the permissions on Google's consent screen.

This route uses OAuth, so no app password is involved and nothing breaks when the password changes. On Workspace, an admin may need to allow the app first (see the table below).

Fix 2: Create and use an app password

  1. Sign in to the Google account you want to connect and open your Google Account settings.
  2. Open Security and turn on 2-Step Verification if it isn't already on. Google states that you need 2-Step Verification on your Google Account to create an app password.
  3. Search your account settings for "App passwords". Google moves this page around, so searching is more reliable than a fixed click path.
  4. Enter a name you will recognize, such as the tool's name, and create the password.
  5. Copy the 16-character code. Google notes that every app password can only be checked once, so save it now. If you lose it, generate a new one.
  6. In your tool, open the SMTP/IMAP form for that mailbox. Use the full email address as the username and the app password as the password, for both SMTP and IMAP. Remove the spaces if the tool complains.
  7. Run the tool's connection test.

Typical Gmail server settings for a manual connection:

ProtocolHostPortSecurity
SMTPsmtp.gmail.com587STARTTLS
SMTPsmtp.gmail.com465SSL/TLS
IMAPimap.gmail.com993SSL/TLS

Google's Workspace instructions for older clients list the same hosts, with IMAP on port 993 with SSL and SMTP on port 587 with TLS.

Do not reuse the account password

Pasting your normal Google password into the form is the most common reason the same 534-5.7.9 error comes back. The field needs the 16-character app password, or no password at all if you use Google sign-in.

If you can't find the App passwords page

Google lists the usual reasons. You may not see the option if 2-Step Verification is set up only for security keys, you are logged into a work, school or other organization account, or your account has Advanced Protection.

SituationWhat you seeWhat to do
2-Step Verification is offNo App passwords optionTurn on 2-Step Verification first
Security keys onlyOption missingAdd another second step, such as an authenticator app or phone prompt, then look again
Advanced ProtectionOption missingApps that use app passwords are blocked for these accounts, so use OAuth sign-in or a different mailbox
Workspace accountOption missing or login still rejectedAsk your admin about 2-Step Verification and third-party app access
Workspace IMAP turned offLogin fails even with a valid codeAdmin enables IMAP in the Admin console

On Advanced Protection, Google says that apps that use app passwords are blocked, and enrolling revokes any current app passwords.

For Workspace admins, Google's IMAP setup page says to go to Apps > Google Workspace > Gmail > End User Access in the Admin console to turn IMAP on. Google also documents that Workspace accounts must use OAuth, or use 2-Step Verification with an app password for email clients that don't support OAuth. Read Google's page on the transition from less secure apps to OAuth if you manage the domain.

Personal Gmail and IMAP

Google says that starting in January 2025 the Enable IMAP and Disable IMAP choice is no longer available for personal accounts, because IMAP is always on. Only Workspace admins still control IMAP.

Still failing after the fix

What you seeLikely causeFix
Same 534-5.7.9Account password or an old code pastedCreate a fresh app password and paste it with no spaces
535-5.7.8 Username and Password not acceptedCode revoked or mistyped, or username isn't the full addressRe-create the code and use the full address
SMTP works, IMAP fails (or the reverse)Password entered in only one fieldPut the app password in both fields
Worked yesterday, fails todayPassword changedCreate a new app password
Many clients on one mailboxToo many connectionsClose other clients

On the password case, Google states that it revokes your app passwords when you change your Google Account password, and you must create a new one. On the connection limit, Google's help says you can add Gmail to up to 15 email clients at a time per account, and going over gives a "Too many simultaneous connections" error.

Checklist before you try again

  • 2-Step Verification is on for the Google account.
  • You created a new app password and copied it right away.
  • The username is the full email address.
  • The same code is in both the SMTP and IMAP password fields.
  • Host and port match the table above.
  • On Workspace, your admin has allowed IMAP and the app.

Connecting Gmail in Mailneo

This error comes from Google, so the fix above applies to any outreach tool. For Mailneo specifically, Gmail and Google Workspace mailboxes connect by OAuth, so the Google sign-in route is the supported one for Gmail. Mailneo also accepts custom SMTP/IMAP accounts with IMAP server auto-discovery, and you can test a connection after adding it. We haven't documented an app-password flow for Gmail over SMTP, so follow the email accounts documentation for the current screens. Mailneo can't change your Google settings, lift a Workspace admin restriction or recover a suspended Google account; those happen in your Google Account or Admin console.

Getting connected is only the first step. If you plan to send cold email from the mailbox, keep volume modest and see our email deliverability checklist.

If nothing works

Start with your Workspace admin if the account belongs to an organization. Personal accounts have no direct support queue for this, so use Google's account help pages. Collect the exact error text, the time of the attempt (with timezone), the mailbox address, the host and port, and what you already tried.

Subject: Gmail SMTP/IMAP login fails with 534-5.7.9

Hello,

I cannot connect {your-mailbox}@{your-domain} to a third-party app.
Error: Invalid Login: 534-5.7.9 Application-Specific Password Required
Time of attempt: {date, time, timezone}
Server and port: smtp.gmail.com:587 and imap.gmail.com:993
Already tried: 2-Step Verification on, new app password created, full
address as username, same code in SMTP and IMAP fields.

Please confirm whether third-party app access or IMAP is restricted for
this account, and whether app passwords are allowed.

Thanks,
{your name}

Common questions

Is "Less secure app access" still an option?

No. Google's Workspace admin page says the less secure apps enforcement setting is no longer available in the Admin console. Use OAuth sign-in, or an app password if the tool can't do OAuth.

Are app passwords safe to use?

They are narrower than your main password and you can revoke each one, but Google doesn't recommend them. If you stop using a tool, remove its app password. Google lists the steps to find the app in your list of app passwords and click Remove.

Do I need a separate app password for each tool?

Yes. Google says you need a different app password for each device or app you use with your Google Account. Name each one after the tool so you can revoke it without breaking others.

Will IMAP and POP keep working?

For reading mail, yes. Google's notice about third-party account changes says IMAP and POP remain fully supported for accessing Gmail from other apps. The sign-in method is what changed, not the protocol. See also Google's guide to adding Gmail to another email client and Google's app password help.

deliverabilitysalesblinkerror-codes
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Related Articles

Deliverability

550 5.4.5 Daily user sending quota exceeded: Gmail fix

The error 550 5.4.5 Daily user sending quota exceeded means a Gmail or Google Workspace mailbox hit Google's daily sending limit. Pause that mailbox, wait for the block to clear (Google says up to 24 hours), then resume at a lower volume and spread the rest across more mailboxes.

Sohail Hussain|7 min read
Deliverability

550 5.7.708 Access Denied: Outlook Tenant Error Fix

550 5.7.708 Access Denied means Exchange Online refused a connection because of the IP address it came from. Find that IP in the full bounce, check your tenant for restricted senders, ask Microsoft to delist the IP if it is blocked, then reconnect the mailbox and send a test.

Sohail Hussain|9 min read
Deliverability

Connection Timed Out when connecting a mailbox over SMTP

"Connection Timed Out" means the tool never got an answer from your SMTP server. Switch ports and encryption together (587 with STARTTLS or 465 with SSL/TLS), confirm the hostname, and check for a firewall or host restriction. If the login is the real problem, fix Zoho or Google Workspace authentication.

Sohail Hussain|9 min read
Deliverability

0x800ccc0e: Outlook Unable to Connect to SMTP Server, Fixed

Outlook error 0x800ccc0e means the app could not open a connection to your outgoing (SMTP) server. Usually the port, encryption setting or password is wrong, or antivirus, a firewall or your ISP is blocking it. Set port 587 with STARTTLS, turn on SMTP authentication, and test again.

Sohail Hussain|10 min read

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free