chatwoot
chatwoot copied to clipboard
SMTP authentication issue 535 when different smpt port is provided
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:
- Deploy chatwoot using helm charts
- 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.
- Try to send a password reset email.
- 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
@aswindevps Could you please take a look? cc: @pranavrajs
@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 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 Great! Closing this.
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.