a month ago
Hello Railway Support Team,
I am running a Django backend application deployed on Railway (Singapore region) and I am facing an issue with outbound SMTP connectivity.
We are using Gmail SMTP for sending OTP emails.
Configuration:
SMTP Host: smtp.gmail.com
Port: 465 (SSL)
Framework: Django (Python)
Deployment: Railway (Singapore region)
Issue:
When the application tries to send emails from Railway, the SMTP connection fails at the network level before authentication.
Error received:
OSError: [Errno 101] Network is unreachable
What we tested:
HTTPS outbound connectivity works:
https://google.com returns 200 OK
Basic TCP connectivity works:
Connection to 8.8.8.8:53 succeeds
SMTP connection fails only on Railway:
smtp.gmail.com:465 fails with network unreachable error
Same SMTP code works correctly on local environment without any issues.
Conclusion:
The issue appears to be specific to outbound SMTP traffic from Railway to Gmail SMTP servers. Everything else (DNS, HTTPS, TCP) is working normally.
Request:
Could you please confirm:
Whether outbound SMTP connections (port 465/587) are restricted on Railway
If there are any network/firewall policies affecting SMTP traffic in the Singapore region
Any recommended workaround for using Gmail SMTP from Railway
This issue is blocking production OTP email functionality for our application.
Thank you.
1 Replies
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 outbound networking documentation.
Status changed to Awaiting User Response Railway • about 1 month ago
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 • 28 days ago