Enable outbound SMTP (ports 587 / 465) for our service
imranshaikh369
FREEOP

2 months ago

Our service can't make outbound SMTP connections and we'd like to get outbound SMTP egress enabled.

Outbound connections from our service to our email provider's SMTP server (smtp.maildoso.com) time out on both port 587 (STARTTLS) and 465 (SSL) — every attempt returns "Connection timeout." The same host and ports are reachable and authenticate fine from other networks (our office/laptops), and outbound HTTPS (:443, e.g. Gmail's API) works from the service. So this is specific to outbound SMTP egress from Railway, not our code or provider.

Solved

5 Replies

Railway
BOT

2 months ago

Outbound SMTP (ports 25, 465, 587) is only available on the Pro plan and above. Free, Trial, and Hobby plans have SMTP disabled to prevent spam and abuse. For sending emails on Hobby, you can use a transactional email service with an HTTPS API (e.g. Resend, SendGrid, Mailgun, Postmark). More details are in our outbound networking docs.


Status changed to Awaiting User Response Railway • 2 months ago


Railway

Outbound SMTP (ports 25, 465, 587) is only available on the Pro plan and above. Free, Trial, and Hobby plans have SMTP disabled to prevent spam and abuse. For sending emails on Hobby, you can use a transactional email service with an HTTPS API (e.g. [Resend](https://resend.com/features/email-api), SendGrid, Mailgun, Postmark). More details are in our [outbound networking docs](https://docs.railway.com/networking/outbound-networking).

imranshaikh369
FREEOP

2 months ago

If i upgrade it to pro plan will this work?


Status changed to Awaiting Railway Response Railway • 2 months ago


Railway
BOT

2 months ago

Yes, upgrading to Pro will enable outbound SMTP. Please redeploy your application after upgrading so the new configuration takes effect, and refer to Debugging SMTP issues for additional troubleshooting steps if needed.


Status changed to Awaiting User Response Railway • 2 months ago


Railway

Yes, upgrading to Pro will enable outbound SMTP. Please redeploy your application after upgrading so the new configuration takes effect, and refer to [Debugging SMTP issues](https://docs.railway.com/reference/outbound-networking#debugging-smtp-issues) for additional troubleshooting steps if needed.

imranshaikh369
FREEOP

2 months ago

are you sure? upgrading will work?


Status changed to Awaiting Railway Response Railway • 2 months ago


Railway
BOT

2 months ago

Yes, outbound SMTP on ports 465 and 587 is a documented Pro plan feature. Your connection timeouts are the expected behavior on Hobby since those ports are blocked. Once you upgrade and redeploy, connections to smtp.maildoso.com will go through.


Status changed to Awaiting User Response Railway • 2 months ago


Railway
BOT

2 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway • 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...