Outbound SMTP (ports 465 and 587) failing with 'Network is unreachable' on sense-ivr service
rcgoyal-vital
HOBBYOP

a month ago

Hello Railway Support team,

This is our first time reaching out to you, so a little context: we run a small, non-commercial voice IVR application (Project SENSE-IVR, for rural Indian healthcare access) hosted on Railway under the service "sense-ivr" (sense-ivr-production.up.railway.app).

We are trying to send an email report (via Gmail SMTP, using an App Password) at the end of each call. Every attempt fails with the same error, on both ports we have tried:

socket.error: [Errno 101] Network is unreachable

We have tested:

  • Port 465 (SMTP_SSL) - fails with this error
  • Port 587 (SMTP with STARTTLS) - also fails with the same error

The credentials themselves are correct (we have verified the Gmail App Password separately), and the code successfully reads our environment variables - the failure happens specifically when attempting to open the outbound network connection to smtp.gmail.com.

Could you please confirm:

  1. Does our current Railway plan/environment restrict or block outbound connections on SMTP ports (465 and/or 587)?
  2. If so, is there a way to enable outbound SMTP access, or is this a hard restriction on our plan?
  3. If SMTP is not supported, do you have a recommended alternative for sending transactional emails from a Railway-hosted app (for example, an HTTP-based email API that would not be affected by this kind of restriction)?

We would appreciate any guidance you can offer. Thank you for your time.

Best regards,

Rakesh Chandra Goyal, rcgoyal@vital-sense.org, rcgoyal@gmail.com

Project SENSE-IVR

Solved

1 Replies

Railway
BOT

a month ago

Outbound SMTP is only available on the Pro plan and above, while Free, Trial, and Hobby plans have SMTP disabled. For sending emails from your application, please use a dedicated email service that provides HTTPS APIs. More information can be found in our documentation: Outbound Networking


Status changed to Awaiting User Response Railway about 1 month ago


Railway
BOT

a month 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 about 1 month ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...