SMTP Configuration (Email)

Hello,
I haven’t been able to configure email (SMTP) in our Rocket Chat Server. I followed all the steps but errors.
We have Google Account.
This is the Log Error:

I20200701-22:19:59.542(0) Updating process.env.MAIL_URL I20200701-22:22:17.418(0) Exception in defer callback: Error: Connection timeout at SMTPConnection._formatError (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/email/node_modules/node4mailer/lib/smtp-connection/index.js:558:19) at SMTPConnection._onError (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/email/node_modules/node4mailer/lib/smtp-connection/index.js:531:20) at Timeout. (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/email/node_modules/node4mailer/lib/smtp-connection/index.js:249:18) at listOnTimeout (internal/timers.js:531:17) at processTimers (internal/timers.js:475:7) { code: ‘ETIMEDOUT’, command: ‘CONN’ }

Server Setup Information

Rocket.Chat

Version 3.4.0
Apps Engine Version 1.15.0
Database Migration 197
Database Migration Date July 1, 2020 12:24 PM
Installed at June 26, 2020 3:57 PM
Uptime 21 hours, 48 minutes, 22 seconds
Deployment ID bCd65Erh7AAtK36ic
PID 14950
Running Instances 1
OpLog Enabled

Runtime Environment

OS Type Linux
OS Platform linux
OS Arch x64
OS Release 4.15.0-108-generic
Node Version v12.14.0
Mongo Version 4.0.19
Mongo Storage Engine mmapv1
OS Uptime 5 days, 19 hours, 59 minutes, 48 seconds
OS Load Average 0.06, 0.03, 0.01
OS Total Memory 3.85 GB
OS Free Memory 531.86 MB
OS CPU Count 2

Build Environment

OS Platform linux
OS Arch x64
OS Release 5.3.0-1028-azure
Node Version v12.16.1
Date June 30, 2020 11:28 AM
1 Like

Maybe if you show your configuration, someone will suggest something

Yeah based on this my guess is invalid host or port. Possibly smtps vs smtp too.

Alternatively the host just can’t speak to it. DNS, networking… or even isp blocking mail?

Have a seperate postfix mail server with open relay to specific servers.

Specific servers (ip), can relay through mail server without authentication.

I’ve added my new fresh RC Server to the list, but don’t even see an attempt by RC Server to communicate.

Any suggestions? Also, what log on RC can I monitor for this?

Protocol -smtp
host -
Port - 587
Ignore TSL --OFF
Pool - - ON

Stupid hosting vendor blocks all smtp. I should have checked this before wasting hours debugging this.