[SOLVED by myself] Smtp email sending

Dear users,

I can send an email by telnet under our company’s smtp email system.
But I couldn’t achieve by meteor’s email packages.

mintx@mintx-pc:~/meteor/quasar01$ telnet mail.xxx.com.tr 25
Trying 10.xxx.xxx.xxx…
Connected to mail.xxx.com.tr.
Escape character is ‘^]’.
220 mail.xxx.com.tr Microsoft ESMTP MAIL Service ready at Thu, 23 Jan 2020 10:30:18 +0300
help
214-This server supports the following commands:
214 HELO EHLO STARTTLS RCPT DATA RSET MAIL QUIT HELP AUTH BDAT
helo
250 mail.xxx.com.tr Hello [10.xx.x.xx]
mail from:xxx@xxx.com.tr
250 2.1.0 Sender OK
rcpt to:xx@xx.xx.com
250 2.1.5 Recipient OK
data
354 Start mail input; end with .
test email
from xxx
to xx.xx
it is a just test

.
250 2.6.0 ab8b1920-7ea9-4622-8039-9d5e8a36f2de@01V.xxx.com.tr [InternalId=1438120] Queued mail for delivery

When I try to send by meteor at the startup:

console.log( ‘Server startup’ );
if (Meteor.isServer) {

// send an email
process.env.MAIL_URL = “smtp://xxx:@mail.xxx.com.tr:25”;
Email.send({
to: “xx.xx@xx.xx.com”,
from: “xx@xx.com.tr”,
subject: “Meteor Email”,
text: “It is a just test email…”
});

It is giving :

I20200123-10:58:58.101(3)? Server startup
W20200123-10:58:58.200(3)? (STDERR) /home/mintx/.meteor/packages/meteor-tool/.1.9.0.buh40j.5dclu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:313
W20200123-10:58:58.201(3)? (STDERR) throw(ex);
W20200123-10:58:58.206(3)? (STDERR) ^
W20200123-10:58:58.207(3)? (STDERR)
W20200123-10:58:58.208(3)? (STDERR) [Error: 140171258288000:error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol:…/deps/openssl/openssl/ssl/statem/statem_lib.c:1929:
W20200123-10:58:58.208(3)? (STDERR) ] {
W20200123-10:58:58.215(3)? (STDERR) library: ‘SSL routines’,
W20200123-10:58:58.216(3)? (STDERR) function: ‘ssl_choose_client_version’,
W20200123-10:58:58.216(3)? (STDERR) reason: ‘unsupported protocol’,
W20200123-10:58:58.217(3)? (STDERR) code: ‘ESOCKET’,
W20200123-10:58:58.218(3)? (STDERR) command: ‘CONN’
W20200123-10:58:58.218(3)? (STDERR) }
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.

So what should I do to send email?

Thanks in advance.


It is solved our smtp server don’t need secure tsl etc.
I changed my environment as:

process.env.MAIL_URL = “smtp://mail.xxx.com.tr/?ignoreTLS=true&secure=false”;