trudesk icon indicating copy to clipboard operation
trudesk copied to clipboard

Mailer not working with plain text authentication SMTP

Open federicogalland opened this issue 4 years ago • 2 comments

Is this a BUG REPORT or FEATURE REQUEST?:

  • [x ] BUG
  • [ ] FEATURE

What happened:

I enter the credentials to an account hosted in my mail server and I get a "Connection Failed" notification. Postfix on my mail server does log the connection the following way:

Aug 30 13:18:25 mailserver postfix/smtpd[7083]: connect from unknown[xxx.xxx.xxx.xxx]
Aug 30 13:18:28 mailserver postfix/smtpd[7083]: warning: unknown[xxx.xxx.xxx.xxx]: SASL PLAIN authentication failed:
Aug 30 13:18:28 mailserver postfix/smtpd[7083]: lost connection after AUTH from unknown[xxx.xxx.xxx.xxx]
Aug 30 13:18:28 mailserver postfix/smtpd[7083]: disconnect from unknown[xxx.xxx.xxx.xxx] ehlo=2 starttls=1 auth=0/1 commands=3/4

This happens both with the "SSLv3" switch on and off.

What did you expect to happen:

I expect the mailer to allow either plain text or starttls authentication

How to reproduce it (as minimally and precisely as possible):

Set up the mailer against a plain text authenticated smtp

Anything else we need to know?:

...

Environment:

  • Trudesk Version: docker/latest (v1.1.8-ai16)
  • OS (e.g. from /etc/os-release): docker container on debian buster
  • Node.JS Version: v12.22.1
  • MongoDB Version: 3.6
  • Is this hosted on cloud.trudesk.io: nope

federicogalland avatar Aug 30 '21 16:08 federicogalland

The nodemailer config would need to be updated to support this. I'm working on a way to edit the configuration for nodemailer directly in the UI.

polonel avatar Aug 31 '21 00:08 polonel

Thanks for your response! Can you point me to the file I need to edit?

federicogalland avatar Aug 31 '21 21:08 federicogalland