Opens in a new tab

SMTP 535: authentication credentials invalid — what it means

535 means the login to the mail server failed: the user name or password is wrong, the token has expired — or the account no longer accepts password logins at all, as Google Accounts have not since 14 March 2025.

Code535
MeaningAuthentication credentials invalid
KindPermanent failure — the sender gives up
Sent in reply toAUTH
What the sender doesAsks for new credentials; nothing is sent meanwhile
Defined inRFC 4954, section 6

Paste your bounce

Paste the line with the code — or the whole bounce: we explain each code in it, say whether the sender will try again, and link the service’s own page where it has one. It is read in your browser; nothing is sent.

What causes it

  • A wrong or changed password.
  • Plain password logins switched off by the provider — Google since March 2025; Microsoft 365 turning it off by default from the end of December 2026.
  • An expired OAuth token.

What to do

  • Check the user name and password.
  • For Google: use OAuth, or an app password for devices that cannot do OAuth.
  • For Microsoft 365: move the app to OAuth, or to a sending method that does not need SMTP AUTH.

What each provider means by it

WhoWhat they say
GmailAnswers 535 “Username and Password not accepted”. Since 14 March 2025, SMTP, IMAP and POP no longer accept plain passwords for Google Accounts: OAuth or app passwords only.
Microsoft 365535 5.7.142 and 5.7.143 for OAuth tokens about to expire or expired. Password (Basic) SMTP AUTH stays available through 2026, is off by default for existing tenants from the end of December 2026, and is then refused with 550 5.7.30.
PostfixAs a sending client, defers mail by default when a server answers AUTH with 535, rather than bouncing it.

Related: 5.7.8, 534, 530.

Sources

Checked on 27 September 2026 against these official sources:

See every bounce before your customers do

Add your domain and send us a test message: we show what a receiving server saw — authentication, reverse DNS, blocklists, TLS — and monitor the servers you send from for blocklistings every day. Free for your first domain.

Create a free account