SMTP not working


Tried every setting in Administration > Email > SMTP but mail is not sent. SMTP configuration works elsewhere, issue is with my Rocketchat install.

Server Setup Information

  • Version of Rocket.Chat Server: 3.15.0
  • Operating System: Ubuntu 20.04
  • Deployment Method: snap
  • NodeJS Version: 12.22.1 - x64
  • MongoDB Version: 3.6.14

Any additional Information

Log after saving SMTP:
Updating process.env.MAIL_URL
Log after sending test mail:
Exception in defer callback: Error: Connection timeout at SMTPConnection._formatError (/snap/rocketchat-server/1478/programs/server/npm/node_modules/meteor/email/node_modules/nodemailer/lib/smtp-connection/index.js:784:19) at SMTPConnection._onError (/snap/rocketchat-server/1478/programs/server/npm/node_modules/meteor/email/node_modules/nodemailer/lib/smtp-connection/index.js:770:20) at Timeout. (/snap/rocketchat-server/1478/programs/server/npm/node_modules/meteor/email/node_modules/nodemailer/lib/smtp-connection/index.js:235:22) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) { code: ‘ETIMEDOUT’, command: ‘CONN’ }

HI! Can you access Rocket.Chat, from the terminal (using bash/shell/sh, etc), and send an email from there using telnet:

If you can’t do that, probably, you have some connectivity issues, or credentials. If you can, then it might be something at your installation or Rocket.Chat itself.