February 1, 2020

How to fix SMTP Error in SuiteCRM: Could Not Authenticate error?

The “SMTP Error: Could Not Authenticate” error in SuiteCRM can occur when the sender’s email client or server can’t provide valid credentials to send an email.

Fixing the “SMTP Error: Could Not Authenticate” error in SuiteCRM involves several steps to ensure that your email settings are configured correctly. Here are the steps you can take to resolve this issue:

  1. Check SMTP Settings:
    • Go to Admin -> Email Settings.
    • Ensure that the SMTP server address, port, and encryption method (SSL/TLS) are correctly entered.
    • Ensure that the SMTP username and password are correct.
  2. Enable Less Secure Apps (Gmail): If you are using Gmail as your SMTP server, you might need to enable access for less secure apps:
    • Log in to your Gmail account.
    • Go to Account Security.
    • Enable Allow less secure apps.
  3. Enable 2-Factor Authentication (Gmail):
    • If you have two-factor authentication enabled for your Gmail account, you will need to create an App Password:
    • Go to Account Security.
    • Under Signing in to Google, select App passwords.
    • Generate an app password and use this password in your SuiteCRM SMTP settings instead of your regular Gmail password.
  4. Check Email Provider Restrictions:
    • Some email providers might have restrictions or specific settings that need to be enabled for SMTP authentication.
    • Contact your email provider or check their documentation for any specific requirements.
  5. Test Connection:
    • Go to Admin -> Email Settings.
    • Click on Test Settings to verify if the connection works.
  6. Check SuiteCRM Logs:
    • Check the SuiteCRM logs for more detailed error messages.
    • Logs can be found in SuiteCRM -> Administration -> System Settings -> View Log.
  7. Verify PHP Mailer Library:
    • SuiteCRM uses the PHPMailer library for sending emails.
    • Ensure that the PHPMailer library is up to date and correctly configured.
  8. Firewall and Network Issues:
    • Ensure that your server’s firewall or network settings are not blocking the SMTP port.
  9. Permissions:
    • Ensure that SuiteCRM has the necessary permissions to access and use the SMTP server.
  10. SuiteCRM Version:
    • Ensure that you are using a supported and updated version of SuiteCRM.

Here is an example of how to set up Gmail SMTP settings in SuiteCRM:

  1. SMTP Mail Server: smtp.gmail.com
  2. SMTP Port: 587 (or 465 for SSL)
  3. Use SMTP Authentication: Yes
  4. SMTP Username: Your Gmail email address
  5. SMTP Password: Your Gmail password (or App Password if 2FA is enabled)
  6. SMTP Encryption: TLS (or SSL if using port 465)

After configuring these settings, try sending a test email to check if the authentication error is resolved.

You may also like