535 5.7.8: Authentication Credentials Invalid
The 535 5.7.8 SMTP error means your username or password for SMTP authentication is wrong. Learn how to fix this email sending error.
Published · Last verified · Maintained by TamingDNS
535
5.7.8
Authentication Credentials Invalid
Very Common
🔢 Enhanced Status Code Breakdown: 5.7.8
| Component | Value | Meaning |
|---|---|---|
| Class | 5 | Permanent failure (Hard bounce) |
| Subject | 7 | Security or policy |
| Detail | 8 | Authentication Credentials Invalid |
Per RFC 3463 Enhanced Mail System Status Codes. Class (X) = severity, Subject (Y) = category, Detail (Z) = specific condition.
💬 What This Error Means
The server didn't recognize your 'keys.' When your email software tried to log in to send your message, the server rejected the username or password. This is a setup problem on your end, not a problem with the person you're trying to email.
Common Causes
- A simple typo in your SMTP password
- You recently changed your password but haven't updated it in your mail app
- You need a special "App Password" (common with Gmail and Microsoft) that you haven't set up yet
- Your account has Two-Factor Authentication (2FA) enabled, which requires a different login method for apps
- Your username format is wrong (some servers need just "user", others need "[email protected]")
How to Fix This
- Double-check your username and password in your email settings
- If you use Gmail or Outlook with 2FA, generate and use an "App Password" instead of your regular one
- If you recently reset your password, make sure to update it in every app you use to send mail
- Contact your IT support or email provider to confirm your exact SMTP login settings
📚 Official Documentation
Gmail requires an App Password for SMTP auth if 2-Step Verification is enabled. Standard passwords will return 535 5.7.8.
📖 Google Workspace / Gmail documentation → Browse all Google Workspace / Gmail error codes →Microsoft 365 may require Modern Authentication (OAuth 2.0) for SMTP. If Basic Auth is disabled, configure your client for OAuth.
📖 Microsoft 365 / Outlook documentation → Browse all Microsoft 365 / Outlook error codes →📋 Real-World Example Messages
These are real bounce message formats you might receive. Paste yours into the Bounce Decoder for instant analysis.
535 5.7.8 Username and Password not accepted 535 5.7.8 Error: authentication failed: Invalid credentials
🔗 Related Error Codes
🔧 Related Diagnostic Tools
These tools can help you diagnose and fix this type of bounce:
🔧 This Bounce Is Related to Email Authentication
Fixing this type of bounce requires correctly configured SPF, DKIM, and DMARC records. Our free Domain Checker analyses all three in one scan and tells you exactly what to fix.
Run a Free Domain Authentication Check →Got a bounce message to decode?
Paste your full NDR email, SMTP error line, or mail log fragment to get an instant plain-English diagnosis.
Open the Bounce Decoder →