chatwoot icon indicating copy to clipboard operation
chatwoot copied to clipboard

SMTP authentication issue 535 when different smpt port is provided

Open vishnu-narayanan opened this issue 2 years ago • 2 comments

Describe the bug

Chatwoot fails to send an email when the default SMTP port is changed from 587 to 25.

To Reproduce

Steps to reproduce the behavior:

  1. Deploy chatwoot using helm charts
  2. Change the SMTP related variables to the following
SMTP_ADDRESS="xxxxxxxx"
SMTP_PORT="25"
SMTP_USERNAME=""
SMTP_PASSWORD=""
SMTP_AUTHENTICATION= plain
SMTP_ENABLE_STARTTLS_AUTO= true
SMTP_OPENSSL_VERIFY_MODE= none

The username and password are expected to be empty here and should work as this config is working on other applications.

  1. Try to send a password reset email.
  2. See error
Net::SMTPAuthenticationError: 535 5.7.0 authentication failed

Expected behavior

Email should be sent.

Screenshots

n/a

Browser logs

n/a

Server logs

Share the server logs to debug the issue further

Environment

  • Self-hosted
  • Helm Charts version
  • Chatwoot version 2.7.0

Desktop (please complete the following information): n/a

Smartphone (please complete the following information): n/a

Additional context Reported from a self-hosted user.

We were using Chatwoot 2.5.0 earlier and the error from sidekiq used to different. After updating to 2.7, we have the 535 Authentication error from SMTP.

Previous error in v2.5.0 image(1)

vishnu-narayanan avatar Aug 10 '22 07:08 vishnu-narayanan

@aswindevps Could you please take a look? cc: @pranavrajs

vishnu-narayanan avatar Aug 10 '22 07:08 vishnu-narayanan

@dragma Could you try to update the deployment by removing SMTP_USERNAME, SMTP_PASSWORD and SMTP_AUTHENTICATION variables and see if that helps?

ref: https://calvin.my/posts/rails-smtp-setting-without-authentication

cc: @pranavrajs

vishnu-narayanan avatar Aug 10 '22 08:08 vishnu-narayanan

@vishnu-narayanan You were right ! It seems to be working just fine. Thank you very much for your help ! I think we can close this issue.

dragma avatar Aug 10 '22 09:08 dragma

@dragma Great! Closing this.

pranavrajs avatar Aug 10 '22 09:08 pranavrajs

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Sep 09 '22 16:09 github-actions[bot]