polonel / trudesk

:coffee: :seedling: Trudesk is an open-source help desk/ticketing solution.
http://trudesk.io
Other
1.32k stars 448 forks source link

Mailer not working with plain text authentication SMTP #435

Open federicogalland opened 3 years ago

federicogalland commented 3 years ago

Is this a BUG REPORT or FEATURE REQUEST?:

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:

polonel commented 3 years ago

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.

federicogalland commented 3 years ago

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