Skip to content
Email3 min read

535 Authentication failed (Incorrect authentication data)

535 Incorrect authentication data

Short answer

535 means the outgoing mail server refused your login: the username, password or authentication method is wrong. Use the full email address as the username, re-enter the current password, and match the server, port and encryption to your provider's settings.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Messages that mean the same thing
  2. Causes
  3. How to fix it
  4. Prevention
  5. On ArabyHost

The error comes from the outgoing (SMTP) server at the moment your app logs in to send a message. Receiving can still work, because Outlook and phone apps store separate settings, and often separate passwords, for incoming mail (IMAP or POP3) and outgoing mail.

Messages that mean the same thing

Server Text
cPanel (Exim) 535 Incorrect authentication data
Gmail 535 5.7.8 Username and Password not accepted
Microsoft 365 535 5.7.139 Authentication unsuccessful
Many others 535 5.7.0 Authentication failed

Causes

  • The password was changed, but a phone, PC or plugin still uses the old one.
  • The username is info instead of the full address [email protected].
  • Wrong outgoing server, or a port and encryption mismatch: 465 expects SSL/TLS, 587 expects STARTTLS.
  • “Outgoing server requires authentication” is off, or set to other credentials.
  • Gmail: the normal account password is used instead of an App Password.
  • Microsoft 365: SMTP authentication is disabled for the mailbox or the organisation.
  • A hidden typo from copy and paste, such as a trailing space.

How to fix it

  1. Confirm the password in webmail. If webmail rejects it too, reset it: in cPanel open Email → Email Accounts, click Manage next to the address and set a new password. The password generator gives you a strong one.

  2. Use the full email address as the username, for both incoming and outgoing servers.

  3. Check server, port and encryption. Use 465 with SSL/TLS or 587 with STARTTLS. The values for ArabyHost mail are in the mailbox setup help.

  4. Turn on outgoing authentication (“My outgoing server requires authentication” in Outlook) and choose the same settings as the incoming server.

  5. Remove and re-add the account when an app keeps a cached password. Step by step: Outlook and iPhone and Android.

  6. Websites and scripts: update the password in your WordPress SMTP plugin, .env file or PHPMailer settings, and make sure the username holds the full address.

  7. Test the login from a terminal. This command connects over SSL, logs in and prints the conversation; look for 235 (success) or 535 (refused):

    curl -v --url "smtps://mail.example.com:465" --user "[email protected]"
  8. If every login suddenly fails, your IP may be blocked after too many attempts, a standard defence against brute-force attacks. Fix the password on all devices first, then contact support.

Prevention

  • When you change a mailbox password, update every phone, PC, plugin and script that uses it the same day.
  • Keep SMTP credentials in one place, such as an .env file or the plugin settings, instead of copying them into many files.
  • Give website forms their own mailbox (for example noreply@), so a staff password change doesn’t break them.
  • For Google accounts, keep two-factor authentication on and use App Passwords for mail apps.

On ArabyHost

ArabyHost business email works over IMAP and SMTP with your full address as the username, and the exact server settings are in the setup help linked above. You can reset any mailbox password in cPanel → Email Accounts, opened in one click from the Araby Panel. The servers are protected by Imunify360, so a device that keeps trying an old password may get your IP blocked: correct the password first, then contact our Arabic support team if sending still fails.

FAQ

I can log in to webmail, so why does SMTP return 535?

The app is sending something different from what you type in webmail: an old saved password, a username without the @domain part, or the wrong server. Remove the account from the app and add it again with the full address and the current password.

How do I fix 535 5.7.8 with Gmail SMTP?

Gmail doesn't accept your normal password from third-party apps. Turn on 2-Step Verification for the Google account, create an App Password, and use it in the SMTP settings instead.

Can repeated 535 errors block my IP?

Yes. Many failed logins look like a password-guessing attack, so the server's firewall may block the IP for a while. Correct the password on every device first, then ask your host to check the block.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.