If you’re seeing SMTP Error 535: Authentication Failed, your email client cannot log into the outgoing mail server.
This guide will help you:
- Identify the exact cause
- Correct your authentication settings
- Secure your mailbox
- Send email successfully again
Nothing in this process will affect your website, hosting, or existing mail data.
By the end of this guide, you’ll confidently resolve SMTP 535 errors without contacting support.

- What SMTP Error 535 Means
- Why This Happens
- Who This Applies To
- Step-by-Step Fix for SMTP Error 535 – Authentication Failed
- Quick Fixes for Common SMTP 535 Variations
- Advanced (Optional) Fixes (For Technical Users)
- Before You Move On
- If This Didn’t Work
- Common Mistakes to Avoid
- Empowering Insight
- Next Recommended Steps
- FAQs
- Additional Resources
What SMTP Error 535 Means
SMTP 535 means the mail server rejected the login credentials used to send email.
In simple terms:
Your email app tried to log in, but the server said: “These credentials are incorrect or not allowed.”
Why This Happens
Common causes include:
- Incorrect password
- Using the mailbox name instead of the full email address
- Password recently changed, but not updated on all devices
- SMTP authentication disabled
- SSL/TLS encryption disabled
- Account temporarily restricted due to repeated failures
- Unsupported authentication method
Who This Applies To
This error may occur if you:
- Use Outlook, Apple Mail, Thunderbird, Gmail app, or mobile mail apps
- Recently changed your email password
- Are setting up a new device
- See “535 Authentication Failed” in bounce messages
Step-by-Step Fix for SMTP Error 535 – Authentication Failed
Follow these steps in order.
1: Confirm the Full Error Message
Open the bounce message or email app error details.
Ensure it specifically references:
535 Authentication failed
535 Incorrect authentication data
535 5.7.8 Username and Password not accepted
If it shows a different SMTP code, refer to our SMTP Error Codes guide.
2: Verify Your Username
Your username must be your full email address.
- Correct: [email protected]
- Incorrect: name
Update this in:
- Email App → Account Settings → Outgoing Server (SMTP)
3: Check Your Password
- Re-enter the password carefully
- Avoid copy/paste errors
- Check Caps Lock
If unsure, reset the email password in your hosting control panel and update it on all devices.
4: Enable SMTP Authentication
In your outgoing mail settings:
- Authentication must be enabled
- Choose “Use same credentials as incoming mail server”
If authentication is disabled, the server will reject the connection.
5: Confirm SSL/TLS and Port Settings
Use secure SMTP settings:
| Setting | Value |
| Encryption | SSL/TLS |
| Port | 465 |
| Alternative Port | 587 (STARTTLS) |
If encryption is disabled, authentication may fail.
6: Restart the Email Application
After saving changes:
- Send a test email
- Close the app completely
- Reopen it
Quick Fixes for Common SMTP 535 Variations
SMTP 535 errors are authentication failures. They occur when the mail server cannot verify your login credentials while sending.
1. 535 Authentication Failed
What It Means:
The username or password used for SMTP login is incorrect.
How to Fix It:
- Re-enter your password carefully
- Ensure you are using your full email address as the username
- Reset the mailbox password in your hosting control panel if unsure
- Update the password on all connected devices
Why It Happens:
Incorrect password, outdated saved credentials, or typing errors.
2. 535 5.7.8 Username and Password Not Accepted
What It Means:
The server rejected the login attempt due to invalid credentials or authentication settings.
How to Fix It:
- Confirm SMTP authentication is enabled
- Verify port 465 (SSL) or 587 (TLS) is being used
- Check that encryption is enabled
- Reset the mailbox password and retry
Why It Happens:
Authentication is disabled in the email app, the wrong port, or the incorrect encryption settings.
3. 535 Incorrect Authentication Data
What It Means:
The login information sent to the server is malformed or incomplete.
How to Fix It:
- Ensure username is the full email address
- Remove extra spaces before or after the username
- Re-save the account settings
- Restart the email application
Why It Happens:
Incorrect username format or corrupted account configuration.
4. 535 Too Many Authentication Failures
What It Means:
The mailbox has been temporarily locked after multiple failed login attempts.
How to Fix It:
- Wait 15–30 minutes before retrying
- Reset the mailbox password
- Update credentials on all devices (phone, laptop, tablet)
- Restart your router if an IP-based lockout is suspected
Why It Happens:
Repeated incorrect password attempts from one or multiple devices.
5. 535 Authentication Credentials Invalid (Third-Party Apps)
What It Means:
An application (Outlook, Thunderbird, phone mail app, website plugin) is using outdated or incorrect SMTP credentials.
How to Fix It:
- Update stored credentials in the application
- Remove and re-add the email account
- Confirm the correct outgoing mail server hostname
- Test sending after updating
Why It Happens:
The password was changed in the hosting panel, but not updated in the email client.
Advanced (Optional) Fixes (For Technical Users)
Administrators, Developers or Technical Users can diagnose SMTP authentication failures, SASL configuration issues, and credential validation errors.
1. Check Mail Server Logs
SMTP 535 errors are logged during the authentication phase.
Exim (cPanel/WHM)
grep "535" /var/log/exim_mainlog
tail -f /var/log/exim_mainlog
Look for entries such as:
authentication failed
535 Incorrect authentication data
535 5.7.8 Username and Password not accepted
Postfix
grep "sasl" /var/log/maillog
grep "authentication failed" /var/log/maillog
tail -f /var/log/maillog
Goal:
Confirm whether the failure is due to invalid credentials, disabled authentication, or SASL misconfiguration.
2. Verify SASL Authentication is Enabled
SMTP 535 often occurs when SASL authentication is disabled or misconfigured.
Postfix – Check Main Configuration
cat /etc/postfix/main.cf | grep smtpd_sasl_auth_enable
Ensure this shows:
- smtpd_sasl_auth_enable = yes
Also verify:
- smtpd_sasl_security_options
- smtpd_recipient_restrictions
Restart Postfix after changes:
systemctl restart postfix
Exim – Confirm Authentication Drivers
Review the authentication section:
nano /etc/exim.conf
Ensure authenticators are enabled (e.g., plain, login).
Restart Exim if adjustments are made:
systemctl restart exim
3. Test SMTP Authentication Manually
Use Telnet or OpenSSL to test authentication.
Test STARTTLS (Port 587)
openssl s_client -starttls smtp -connect mail.example.com:587
Then manually issue:
- EHLO yourdomain.com
- AUTH LOGIN
Enter the base64-encoded username and password.
When the server responds with:
535 Authentication failed
Credentials or authentication configs are incorrect.
Test with Swaks
swaks --to [email protected] \
--from [email protected] \
--server mail.yourdomain.com \
--auth LOGIN \
--auth-user [email protected] \
--auth-password 'password'
This provides clear authentication success/failure output.
4. Verify Mailbox Credentials at System Level
If using virtual mail users, confirm the mailbox exists:
For cPanel:
Check via WHM → Email Accounts
For Postfix + Dovecot Setups:
cat /etc/dovecot/users
If password hashes are used, confirm they match the expected authentication method.
Reset the mailbox password and retest if needed.
5. Check for Account Lockouts or Rate Limits
Multiple failed login attempts can trigger temporary locks.
Check logs for:
- Too many login attempts
- Authentication temporarily blocked
If present:
- Reset password
- Wait 15 to 30 minutes
- Restart mail services if necessary
6. Confirm Correct Ports and Encryption
Authentication failures can occur if SSL/TLS is mismatched.
Verify:
- Port 465 → SSL
- Port 587 → STARTTLS
- Encryption is enabled in the mail client
Test listening ports:
netstat -tlnp | grep :465
netstat -tlnp | grep :587
If ports are closed, check firewall rules.
7. Check Firewall or Security Modules
Security systems (CSF, Fail2Ban, ModSecurity) may block repeated attempts.
For CSF:
csf -g <client-ip>
Unblock if necessary:
csf -dr <client-ip>
Review Fail2Ban:
fail2ban-client status
Before You Move On
Ask yourself:
- Did you update the password on every device?
- Are you using the full email address as a username?
- Is authentication enabled?
Most 535 errors are resolved by correcting one of these three items.
If This Didn’t Work
If the error continues:
- Check if your hosting account is active
- Ensure the mailbox is not suspended
- Confirm you are not exceeding sending limits
- Remove and re-add the account in your email app
- Test sending via Webmail
If Webmail works but your app doesn’t → the issue is local to the device.
If Webmail also fails → contact Support.
Common Mistakes to Avoid
- Changing the password but not updating mobile devices
- Disabling SSL because “it worked before”
- Using old saved credentials
- Mixing POP and IMAP settings
- Leaving SMTP authentication unchecked
Empowering Insight

If Webmail works, your server is working.
When Webmail succeeds, and your app fails, the issue is almost always a local configuration setting, and not a hosting problem.
Next Recommended Steps
- Reset the Email Password
- Verify SMTP Settings
- Review Sending Limits
- Secure All Connected Devices
FAQs
Q. Why did this suddenly start happening?
Most commonly:
- Password change
- New device setup
- Security update enforcing SSL
Q. Can repeated SMTP error 535 bounce backs lock my account?
Yes, excessive failed attempts can trigger temporary restrictions.
Additional Resources
SMTP Error Codes
SPF/DKIM Setup Guide
Email Sending Limits Guide
Updating Your Email Password
Troubleshooting Outlook Errors
Email Bounce Back Guide
Need Additional Support?
We’re Here to Help:
Understanding SMTP Error 535 and how to fix this doesn’t have to feel technical with this easy-to-reference guide. Stuck? Check out our Scope of Support, and then contact our Support Team for further clarity and guidance (https://1grid.co.za/contact-us/). We’re ready to see how we can help!