Gmail 535 5.7.1: SMTP authentication failed.

Gmail rejected the login attempt because the credentials or authentication method are invalid.

How to fix 535 5.7.1.

Retrying or final
Final
A 5xx reply. The server will not accept this message. Resending it unchanged fails again.
Who is at fault
Sender
Your authentication, reputation, content, or sending pace.
Severity
ErrorAuthentication Failure
Permanent535 5.7.1

Incorrect passwords, disabled Less Secure Apps, or missing OAuth tokens surface as 535 5.7.1 before any mail is accepted.

Next steps

  1. 1Verify the SMTP username and password or refresh the OAuth token.
  2. 2Enable SMTP Authentication for the account inside Google Workspace.
  3. 3Use OAuth 2.0 for programmatic access instead of basic auth where possible.
  4. 4Check that two-factor authentication is not blocking the connection.

More Gmail codes.

Browse all raw Google replies →

More references.

Every SMTP reply code, with real bounces from mailbox providers and spam filters and who needs to act.

Catch bounce problems before your customers do.

Pre-send checks, send pacing, and live delivery reporting in one place. Free for 30 days.