SMTP error code

554 5.7.0: too many unauthenticated SMTP commands

554 5.7.0 is a setup error, not a bounce from the recipient. At Google it comes with the text “Too many unauthenticated commands”: the program, printer or script that sends your mail talked to the server without logging in, and the server stopped listening.

Updated October 10, 2026 · 4 min read

Reply code
554 Transaction failed (RFC 5321)
Enhanced code
5.7.0 Other or undefined security status (RFC 3463)
Sent by
Google’s mail servers (Gmail, Google Workspace)
Retry?
Only after the sender logs in or uses another route

Verification would not have caught it

The recipient’s address plays no part here. 554 5.7.0 is about how your app or device connects to the mail server, so only fixing its settings helps.

554 5.7.0 Too many unauthenticated commands: the app sent mail to Google without logging in; the fix is SMTP login on port 587 or 465

What 554 5.7.0 means

A 554 5.7.0 reply means the server ended the transaction for a security reason. The basic code is the broadest permanent failure in RFC 5321: “554 Transaction failed”. The enhanced code is the catch-all of the security class in RFC 3463. X.7.0, “Other or undefined security status”, is for when “something related to security caused the message to be returned, and the problem cannot be well expressed with any of the other provided detail codes.” It “may also be used when the condition cannot be further described because of security policies in force.”

That second sentence matters. RFC 7372 notes that an operator who doesn’t want to reveal its policy “can continue using a generic result code such as 5.7.7, 5.7.1, or even 5.7.0.” So from an unknown server, 554 5.7.0 tells you little beyond “security”. The text after the code is what counts.

554 5.7.0 at Google: “Too many unauthenticated commands”

Google documents this code with a specific text. From Gmail SMTP errors and codes:

554 5.7.0 Too many unauthenticated commands.

The client connected and kept sending SMTP commands without logging in. Google uses the same enhanced code, with other basic codes, for related problems, which helps you tell them apart:

Google replyTextWhat’s wrong
530 5.7.0Authentication required.The client must log in before sending
530 5.7.0Must issue a STARTTLS command first.The client must switch to an encrypted connection first
554 5.7.0Too many unauthenticated commands.The client kept going without logging in
454 4.7.0Too many login attempts, please try again later.Login attempts were throttled (temporary)
550 5.7.0Email relay denied …The SMTP relay service doesn’t know your IP or domain: see 550 5.7.0
552 5.7.0This message was blocked because its content presents a potential security issue.An attachment or the content was blocked

What causes 554 5.7.0

How to fix 554 5.7.0

Pick one of the three ways Google offers for apps and devices (Send email from a printer, scanner, or app):

OptionServer and portLoginWho can receiveLimit
Gmail SMTP serversmtp.gmail.com, 465 (SSL) or 587 (TLS)Full email address plus app passwordAnyone2,000 messages per day
SMTP relay servicesmtp-relay.gmail.com, 25, 465 or 587By the device’s IP address, registered by your adminAnyone10,000 recipients per user per day
Restricted Gmail SMTP serveraspmx.l.google.com, 25NoneOnly Gmail and Google Workspace usersWorkspace limits per user

For most apps, the first option is the quickest fix: turn on SMTP authentication, choose port 587 with TLS (or 465 with SSL), and enter the full address and an app password. Our page on Gmail SMTP settings has the settings in one place.

If the device can’t log in at all, ask your Workspace admin to set up the SMTP relay service for its IP address. The restricted server works without login, but only for internal recipients, and Google says you must add the device’s IP address to the allowlist and include it in your SPF record. The SPF record generator builds that record. For other providers, our SMTP settings list the right server and port.

If you see 554 5.7.0 from another server

Read the text. Without an explanation, ask the server’s admin what failed: the code alone doesn’t say. Compare it with SMTP error 554, the general “transaction failed”, and with the 5.7.1 status code, the specific “delivery not authorized”, which covers relay denials and blocklists.

Would email verification have prevented it?

No. The error happens before your message reaches any recipient, and it has nothing to do with whether the address exists. Once your app sends correctly, the remaining bounces are about addresses and policy, and the list of SMTP error codes shows which ones a verification catches.

Fixed the block? Keep your list clean too

This bounce is about your sending setup, not the address. Bounces from addresses that don’t exist are a separate problem: email verification finds them before you send, without sending anything.

Frequently asked questions

What does 554 5.7.0 mean?

The server refused the session for a security reason. At Google, the text “Too many unauthenticated commands” says the client sent commands without logging in first. Other servers use 5.7.0 for any security problem they don’t describe further, so read the text after the code.

How do I fix “554 5.7.0 Too many unauthenticated commands”?

Turn on SMTP authentication in the app or device that sends: smtp.gmail.com with SSL on port 465 or TLS on port 587, your full email address, and an app password. If the device can’t log in, use Google’s SMTP relay service or the restricted server aspmx.l.google.com.

Why does my printer or scanner get 554 5.7.0?

Some devices are set up to send without logging in, or sign in with only a user name and password. Since May 1, 2025, Google Workspace accounts no longer support less secure apps that sign in with just a user name and password. Use an app password, OAuth, or the SMTP relay service.

Is 554 5.7.0 the same as 554 5.7.1?

No. 554 5.7.1 is the specific policy refusal, often “Relay access denied” or a blocklist. 5.7.0 is the catch-all security code; at Google it means you didn’t authenticate.

Related codes and guides

Email validation API

Validate emails in your app

emailvalidation.io checks syntax, MX records and the mailbox over SMTP, flags disposable, role and free addresses and returns a quality score, in one request.

/v1/info Email validation API Read the documentation

100 free validations every month. No credit card required.

GET https://api.emailvalidation.io/v1/info?email=support@emailvalidation.io

{
  "email": "support@emailvalidation.io",
  "user": "support",
  "tag": "",
  "domain": "emailvalidation.io",
  "format_valid": true,
  "mx_found": true,
  "smtp_check": true,
  "catch_all": null,
  "role": true,
  "disposable": false,
  "free": false,
  "score": 0.64,
  "state": "deliverable",
  "reason": "valid_mailbox",
  "did_you_mean": ""
}

Start using our email validation software today!

Get 100 validations per month for free