5.7.8 means the login to the mail server failed: the user name or password — or the token — was not accepted. It comes with 535.
| Code | 5.7.8 |
| Meaning | Authentication credentials invalid |
| Kind | Permanent failure — the sender gives up |
| Sent in reply to | With 535, at AUTH |
| What the sender does | Asks for new credentials |
| Defined in | RFC 4954 |
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 to do
- Check the credentials; for Google, use OAuth or an app password — plain passwords stopped working on 14 March 2025.
What each provider means by it
| Who | What they say |
|---|---|
| Gmail | Answers a failed login with 535 “Username and Password not accepted”. |
| Microsoft 365 | Password SMTP AUTH is off by default for existing tenants from the end of December 2026, refused with 550 5.7.30. |
Sources
Checked on 27 September 2026 against these official sources:
- Simple Mail Transfer Protocol (SMTP) Enhanced Status Codes Registry — iana.org
- RFC 4954: SMTP Service Extension for Authentication — rfc-editor.org
- Gmail SMTP errors and codes — knowledge.workspace.google.com
- Transition from less secure apps to OAuth — knowledge.workspace.google.com
- Updated Exchange Online SMTP AUTH Basic Authentication Deprecation Timeline — techcommunity.microsoft.com