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.
| Code | 535 |
| Meaning | Authentication credentials invalid |
| Kind | Permanent failure — the sender gives up |
| Sent in reply to | AUTH |
| What the sender does | Asks for new credentials; nothing is sent meanwhile |
| Defined in | RFC 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
| Who | What they say |
|---|---|
| Gmail | Answers 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 365 | 535 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. |
| Postfix | As a sending client, defers mail by default when a server answers AUTH with 535, rather than bouncing it. |
Sources
Checked on 27 September 2026 against these official sources:
- RFC 4954: SMTP Service Extension for Authentication — rfc-editor.org
- Simple Mail Transfer Protocol (SMTP) Enhanced Status Codes Registry — iana.org
- Gmail SMTP errors and codes — knowledge.workspace.google.com
- Transition from less secure apps to OAuth — knowledge.workspace.google.com
- Email nondelivery reports (NDRs) and SMTP errors in Exchange Online — learn.microsoft.com
- Updated Exchange Online SMTP AUTH Basic Authentication Deprecation Timeline — techcommunity.microsoft.com
- Postfix Configuration Parameters — postfix.org