Node.js Mailer STARTTLS: 454 4.7.0 TLS not available due to local problem

Wappler: 5.2.1
Linux
Docker

I have a Problem with nodemailer Modul

Mailserver Exchange Server

I have modify the mail Setup File with:

“tls”: {
“rejectUnauthorized”: false
}

the same problem.

:frowning:

Is this a new mail server or has it worked before? A search on google gives me that it is some error from Postfix server where the TLS or certificate probably isn’t correctly configured.

Hi Patrick,

This is a News Microsoft Exchange Server. With the old Exchange Server works.

The App Run on docker with node.js

Br Sascha

Since it worked with the old server I don’t think there is a problem with the code. Double check if you’ve set all the options correctly for the mailer. It looks like it does make a connection but then getting an error when trying to upgrade to a secure connection with TLS.

Do you know if your old server also used TLS for its connection? I can only tell it is TLS related, but don’t know if it is with the node server or with the exchange server.

I have requested the configuration from customer admin. It is also funny that he has set TLS on port 25. I’ve tried ignoring TLS in the mailconfig, to no avail. nodemailer has more options than wappler offers, it would be nice if you could send all config in a future version, e.g. ignore TLS etc

Hi Patrick,

i have Information from my Customer-Admin:

The old Emailserver exchange 2016 Server

The new Server Postfix.

He has no encryption enabled. The emails are sent via port 25 without tls without ssl.
With php emails can be sent via the new server. it doesn’t work with nodejs.

BR Sascha

Hi Patrick,

i found the Solution for this Problem:

i change in Your mail.js lib > modules -> mail.js

ich change:

let transport = nodemailer.createTransport({
host: ‘192.168.201.36’,
port: 25,
secure: false,
ignoreTLS: true,
});

ignoreTLS: true < - is the solution

you may be able to add this to the mail setup update as an option

I tried to enter it in the mail.json, but the mail module ignores it