# Cant get smtp to work on one-click digital ocean install

**URL:** https://forums.rocket.chat/t/cant-get-smtp-to-work-on-one-click-digital-ocean-install/5432
**Category:** Community Support
**Created:** [January 2, 2020, 2:23pm UTC](https://forums.rocket.chat/t/cant-get-smtp-to-work-on-one-click-digital-ocean-install/5432 "2020-01-02T14:23:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ferher](https://avatars.discourse-cdn.com/v4/letter/f/b77776/32.png) [@ferher](https://forums.rocket.chat/u/ferher)
#### Post date: [January 2, 2020, 2:23pm UTC](https://forums.rocket.chat/t/cant-get-smtp-to-work-on-one-click-digital-ocean-install/5432/1 "2020-01-02T14:23:51Z")

</div>

After deploying a one-click RC on digital ocean everything worked like a charm except when trying to set up smtp. My dedicated email uses port: 587 and STARTTLS. I tried all the possibilities in the configuration page on RC and dedicated hours trying to find help online to no avail.

I also, opened the port 587 as I use ufw but I keep receiving the following log. Anyone that could help?

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.\_connectionTimeout.setTimeout (/opt/Rocket.Chat/programs/server/npm/node\_modules/meteor/email/node\_modules/node4mailer/lib/smtp-connection/index.js:249:18) at ontimeout (timers.js:498:11) at tryOnTimeout (timers.js:323:5) at Timer.listOnTimeout (timers.js:290:5) code: ‘ETIMEDOUT’, command: ‘CONN’ }

### Server Setup Information

- Version of Rocket.Chat Server: 2.40
- Operating System: Ubuntu 18.04
- Deployment Method: Digital Ocean once-click
- Number of Running Instances:
- DB Replicaset Oplog:
- NodeJS Version: v8.15.1
- MongoDB Version: 4.0.3

---

<div class="post-metadata">

### Author: ![andrew.morton](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@andrew.morton](https://forums.rocket.chat/u/andrew.morton)
#### Post date: [September 28, 2021, 8:44pm UTC](https://forums.rocket.chat/t/cant-get-smtp-to-work-on-one-click-digital-ocean-install/5432/2 "2021-09-28T20:44:48Z")

</div>

Same here. I have a subdomain for rocket chat configured as an A name on my host pointing to the droplet IP. I created an email account on the domain and using those settings for the smtp/smtps and get the same error. Is there any way to get more debug output from the server?
