Skip to main content

How to Troubleshoot an “Authentication Failed” SMTP Error

An "Authentication Failed" error occurs when an email server rejects the credentials provided by an application or mail client during the SMTP (Simple Mail Transfer Protocol) process. This issue typically prevents your website or application from...

An "Authentication Failed" error occurs when an email server rejects the credentials provided by an application or mail client during the SMTP (Simple Mail Transfer Protocol) process. This issue typically prevents your website or application from sending automated emails, such as contact form submissions or password resets.

Before you begin

You will need:

  • Access to the application or website's configuration settings.

  • The correct SMTP credentials (username, password, and server address).

  • Access to the email account's management interface to verify account status.

Check your SMTP credentials

Most "Authentication Failed" errors are caused by incorrect login information provided to the sending application.

  1. Verify the SMTP Server address. Ensure it matches the address provided by Hostek for your specific email service.

  2. Verify the Username. This is typically the full email address (e.g., [email protected]).

  3. Verify the Password. Ensure there are no extra spaces and that the password matches the one currently set for the email account.

  4. Verify the Port and Encryption Method. Common combinations include:

    • Port 465 with SSL

    • Port 587 with TLS (or STARTTLS)

Verify account status and restrictions

If the credentials are correct but the error persists, the account may be restricted by security policies.

  1. Check the Account Status. Ensure the email account is active and not suspended due to inactivity or security violations.

  2. Check for IP Blocking. If your website's server IP address has attempted to log in with the wrong password too many times, the mail server may temporarily block that IP.

  3. Verify Authentication Methods. Some servers require specific authentication types. Ensure your application is set to use "Login" or "Plain" authentication if required by your specific mail provider.

Test the connection with a manual tool

To determine if the issue is with your application's configuration or the mail server itself, attempt to send an email using a dedicated testing tool.

  1. Use a tool such as Telnet or Netcat to connect to the SMTP server.

  2. Manually enter the SMTP commands to log in.

  3. If the manual connection succeeds, the issue lies within your application's configuration.

  4. If the manual connection fails with an "Authentication Failed" message, the issue is with the credentials or the account status.

If the error persists after verifying credentials

If you have confirmed that the username, password, and port are correct, but the application still reports an authentication failure:

  1. Reset the email account password. Change the password in your email management console and update the application with the new password.

  2. Check for "Less Secure Apps" settings. If using a legacy service, ensure that the account allows less secure applications to connect.

  3. Verify the "From" address. Some servers will reject authentication if the "From" address in your application does not match the username used to authenticate.

Contact Hostek support

If you have verified your credentials and the account is active, but you still receive an "Authentication Failed" error, contact Hostek support. Provide the following information to help us investigate:

  • The specific error message received by your application.

  • The email address used as the SMTP username.

  • The IP address of the server attempting to send the email.

  • The SMTP server and port being used.

Did this answer your question?