Deliverability

454-4.7.0 Too many login attempts: XOAUTH2 on Google Workspace

The error 454-4.7.0 Too many login attempts means Google is rate-limiting SMTP logins from your account or server. Stop the queue, wait, then resend slowly over fewer, reused connections. For bulk mail to a large list, use a sender built for it, not a Workspace mailbox.

Sohail HussainSohail Hussain9 min read

Short answer

  • Stop your app's mail queue now, wait a few hours, then resume in small batches that reuse one SMTP connection instead of logging in for every message.
  • The error is temporary and is about sign-in frequency, not wrong credentials. For Mautic, use OAuth, an app password or Google's SMTP relay service, and send big lists through a bulk email service.

You are seeing this after a mass send through a Google Workspace mailbox:

Authenticator XOAUTH2 returned Expected response code 250 but got code "454", with message "454-4.7.0 Too many login attempts, please try again later.

One XenForo admin reported it after switching to Workspace OAuth and mailing about 1,600 users. A Mautic user on that project's forum reported a related problem: they could not send through Workspace at all and got "password denied", and the docs did not explain why.

What the error means

Google lists 454 4.7.0 Too many login attempts, please try again later in its Gmail SMTP error reference. Reading the parts:

  • 454 is a temporary (4xx) failure. The account is not permanently blocked, and retrying later is expected.
  • 4.7.0 is the enhanced status code for a security or policy condition. Here it means a rate rule, not bad credentials.
  • The hyphen after 454 marks a multi-line SMTP reply; the text after it is the human-readable part.
  • "Expected response code 250" is your mail library (this wording is typical of PHP mailers) saying it wanted success and got a 454.

Google's own reference page words the same error slightly differently in different places ("login" versus "sign-in"), so match on 454 and 4.7.0, not the exact phrasing. A valid OAuth token does not exempt you; a good token presented too often can still trip it.

Why it happens

The causes below are most common first. Google does not publish the exact threshold for login attempts, so I can't give you a number; treat these as the usual patterns, not documented triggers.

CauseSymptom in your logFix
New login per messageConnect, AUTH XOAUTH2, send, QUIT repeated for every emailReuse one connection; smaller batches
Retry loop after failed authAuth errors every minute before the 454Stop retries; reauthorize OAuth
Several apps on one mailboxErrors appear when a CRM, helpdesk and website all sendOne sending mailbox per system
Sending volume over limitsLater errors about quota or daily limitsUse SMTP relay or an ESP

Fix 1: stop the queue and wait

  1. Pause the cron job, queue worker or campaign that is sending. Every retry is another sign-in and can extend the block.
  2. Wait several hours. Nothing in Google's reference gives a fixed unblock time, so I'd treat 2 to 4 hours as a reasonable first wait and a full day as the outer bound before escalating.
  3. Send one test message. If it succeeds, move on to Fix 2. If it fails with an authentication error rather than a 454, go to Fix 3.

Fix 2: send fewer logins, not just fewer emails

  1. Open your app's mail queue settings and look for "emails per run", "batch size" or a delay between messages. Lower the batch size and add a pause.
  2. If your app can keep one SMTP connection open for several messages, turn that on. This is the single biggest change for forum and CMS software.
  3. Check your log after the first batch. You want one sign-in followed by many sends, not one sign-in per send.
  4. Raise volume slowly. Google's sender guidelines advise that you reduce sending volume if messages start bouncing or deferring, then increase slowly again.

Do not retry in a loop

Failed sign-ins count as attempts too. A queue that retries every minute after a 454 can keep the block alive for as long as it runs.

Fix 3: repair the OAuth connection

If the token has expired, the refresh token was revoked or the scope is wrong, your app fails to authenticate and retries. This is the second most likely trigger.

  1. Reauthorize the Workspace account inside your app (XenForo, Mautic or whatever sends).
  2. In Google Cloud, confirm the OAuth client still exists and the Gmail scope is granted.
  3. If the consent screen is in testing status, refresh tokens can expire quickly. Move it to production or reauthorize regularly.
  4. Test with a single message before releasing the queue.

Fix 4: stop sharing one mailbox between apps

A website, a CRM, a helpdesk and a phone all signed in as one Workspace user each authenticate against that same account. Google states that SMTP sending limits are per user and shared across all clients accessing the account. Give each system its own mailbox, or move the noisiest one to SMTP relay.

Mautic: "password denied" on Google Workspace

People on the Mautic forum report this when entering a normal Workspace password in the SMTP settings. Google typically replies with a 535-5.7.8 Username and Password not accepted style message. Three routes work, depending on how your admin has set up the domain.

  1. App password. Turn on 2-Step Verification for the user, create an app password in the Google Account security settings, and paste it into Mautic's SMTP password field. Use the full email address as the username. Admins can disable app passwords, so if the option is missing, ask them.
  2. OAuth (XOAUTH2). Use a mailer transport that supports Google OAuth, if your Mautic version offers one. Support differs by release, so check your version's docs. Google confirms that all three servers support authentication and authorization using OAuth 2.0.
  3. SMTP relay service. In Google Admin, search for "SMTP relay service" and set up a relay rule. You register your server's public IP address (or require SMTP authentication), then point Mautic at smtp-relay.gmail.com. Google lists ports 25, 465 or 587 for that host. Details are in Google's guide to routing outgoing SMTP relay messages through Google: Route outgoing SMTP relay messages through Google.

Whichever you pick, the rule from earlier still applies: do not let Mautic log in once per contact.

Is it the 454 or a sending limit?

They are separate. Hitting a quota produces different codes, such as 550 5.4.5 Daily user sending limit exceeded, which Google documents in the same error reference. Even after the 454 clears, a 1,600-person send may hit the cap next. Limits as of November 2026, from Google's help pages:

RouteLimitSource note
smtp.gmail.com with a paid Workspace account2,000 messages per day; 500 for trial or personal accountsGoogle for Developers
Gmail per-user recipients10,000 total recipients per day; 3,000 uniqueWorkspace sending limits page
smtp-relay.gmail.com10,000 messages per user per 24 hoursSMTP relay page
Recipients per SMTP transaction on relay100SMTP relay page

Google adds that sending limits can change without notice, so check the current pages: Gmail sending limits in Google Workspace. When a limit is hit, users can't send new messages for up to 24 hours.

Sending to a large list

Workspace is built for people writing email, not campaign blasts. Google's sender guidelines tell Workspace senders who send large volumes to review its Spam and abuse policy in Gmail. A flagged mailbox can disrupt your staff's normal email, so I'd skip this approach for anything bigger than a small announcement.

Better options:

  • A dedicated email service provider or bulk SMTP service, authenticated with SPF and DKIM on your own domain. See transactional vs marketing emails for which stream belongs where.
  • Smaller scheduled batches; email throttling and rate limits covers how receivers react to bursts.
  • A separate sending subdomain, so a problem never touches your main mailboxes.

Where Mailneo fits

Mailneo helps with the pacing part only, not the Google-side error. It connects Gmail and Google Workspace by OAuth, or any SMTP provider, and lets you set minutes per lead, sending hours and days, and per-mailbox daily caps across a rotation, so sends are spread out instead of bursting. See email account setup. It cannot lift a Google block, change Google's limits or fix another app's connection settings. For a large newsletter, you can connect a bulk provider such as Amazon SES or SendGrid as the sending account.

Checklist before you try again

  • Queue and cron jobs are stopped, and several hours have passed.
  • OAuth is reauthorized, or the app password is valid.
  • The app reuses one SMTP connection for multiple messages.
  • Batch size is small, with a pause between batches.
  • Only one system sends as this mailbox.
  • The send fits the daily limits in the table above.

If nothing works

If the 454 persists for more than a day with all sending stopped, ask your Workspace admin to open a support case with Google. Include the exact error text, UTC timestamps, the sending server's IP address, the authentication method (OAuth or app password), and what you already tried. The admin can also check email logs in the Admin console for the affected user.

Subject: SMTP 454 4.7.0 Too many login attempts for {user}@{your-domain}

Since {UTC timestamp} our app gets: 454-4.7.0 Too many login attempts, please try again later.
Auth method: XOAUTH2 (OAuth) to smtp.gmail.com, port 587.
Sending server IP: {ip}
We stopped all sending at {UTC timestamp} and the error continues after {hours} hours.
Steps taken: reauthorized OAuth, reduced batch size, one SMTP connection reused.
Please confirm whether this account is temporarily rate limited and when it will clear.

Common questions

How long does the 454 4.7.0 block last?

Google does not publish a duration. Reports usually describe it clearing within hours once sending stops, but if it lasts beyond a day, escalate through your admin.

Will switching from OAuth to an app password fix it?

Not by itself. The error is about how often you sign in, so the same behavior will trigger it with either method. Reusing connections and slowing down is what fixes it.

Is the 454 the same as hitting the daily limit?

No. Daily quota problems return other codes, such as 550 5.4.5. A 454 is about sign-in rate and is temporary.

Can I use smtp-relay.gmail.com with Mautic?

Yes, if your admin sets up the relay rule and your server's IP is registered. Mind the 100-recipient-per-transaction limit and the 10,000 messages per user per day cap.

deliverabilityxenforomauticgmailerror-codes
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

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

Related Articles

Deliverability

421-4.7.0 Gmail Has Detected This Message Is Suspicious: Fix

The 421-4.7.0 "suspicious due to the nature of the content and/or the links" error means Gmail's content filter rejected your message after DATA, not an authentication check. Remove click tracking or move it to your own domain, drop URL shorteners, check link reputation, then retest with a plain message.

Sohail Hussain|10 min read
Deliverability

421 4.7.0 Temporary System Problem. Try again later (10)

`421 4.7.0 Temporary System Problem. Try again later (10).` is a temporary Gmail deferral, not a permanent rejection. Google's server asked your sender to retry later. Slow your send rate, let your mail server retry, and check authentication and reputation if the deferrals last more than a day or two.

Sohail Hussain|9 min read
Deliverability

421-4.7.0 Try again later, closing connection (EHLO): fix

The error "421-4.7.0 Try again later, closing connection. (EHLO)" means Google's SMTP server is temporarily refusing your session, usually because of connection volume, a low-reputation IP, or a weak relay setup. Slow down, reuse one connection, queue with retries, authenticate, and send a real EHLO hostname.

Sohail Hussain|11 min read
Deliverability

421 4.7.28 Gmail Unusual Rate of Unsolicited Mail: Fixes

The 421 4.7.28 error is a temporary Gmail deferral, not a block. Gmail is rate limiting a domain, DKIM domain or IP range it sees sending too much unwanted mail. Retries usually deliver, but you should fix authentication, unsubscribe headers, sending pace and shared infrastructure to stop it recurring.

Sohail Hussain|9 min read

Ready to supercharge your email marketing?

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

Get Started Free