a month ago
Hello,
We are running a backend service on Railway.
Outbound SMTP connections appear unreachable from the container.
Tests performed from within the running container:
DNS resolution works:
smtp.gmail.com -> resolves successfully
smtp.office365.com -> resolves successfully
TCP connections fail:
socket.create_connection(("smtp.gmail.com", 587))
=> OSError: [Errno 101] Network is unreachable
socket.create_connection(("smtp.office365.com", 587))
=> OSError: [Errno 101] Network is unreachable
Email sending fails before STARTTLS or authentication.
Can you confirm whether outbound SMTP traffic on port 587 is blocked or restricted for this environment?
Thank you.
1 Reply
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:
Status changed to Awaiting User Response Railway • about 1 month ago
24 days 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 • 24 days ago