Question

Setting up Sendgrid with Digitalocean / Rocketchat

Hello, im trying to get emails working in rocketchat which is hosted here but i’ve had no luck, i’ve got emails test via pinigng the api so it is working but in the programme i get no luck, any help or ideas?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
March 20, 2025

Hey Greg,

One thing to note is that the SMTP ports (25, 465, 587) are blocked by default on DigitalOcean Droplets, which can cause issues with apps like Rocket.Chat if they’re trying to send email via SMTP:

https://docs.digitalocean.com/support/why-is-smtp-blocked/

Since you’re using SendGrid, the best option is to use SendGrid’s API instead of SMTP, that avoids port issues entirely. Make sure Rocket.Chat is configured to use SendGrid’s API key and endpoint, not SMTP.

You can also deploy SendGrid easily via the 1-Click App here:

https://marketplace.digitalocean.com/apps/sendgrid

If nothing works, best to reach out to the DigitalOcean support so they can take a closer look:

https://do.co/support

- Bobby

alexdo
Site Moderator
Site Moderator badge
March 21, 2025

Heya, @gregpainter

SMTP is now disabled by default on all new accounts, meaning the SMTP ports will be blocked. To send mail from DigitalOcean, we recommend using SendGrid via the SendGrid Marketplace 1-Click App.

I’ve tried to check rocketchat docs for the email configuration to explore some other ways to deal with the issue but this leads to a 404 page now - https://docs.rocket.chat/docs/email-configuration

Regards

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.