SMTP Egress Blocked - Need to whitelist smtp.gmail.com and smtp-relay.gmail.com
cygnuss-lingeries
HOBBYOP

a month ago

Hello Railway Team,

I'm running a Chatwoot instance on Railway (Project: steadfast-harmony, Service: Chatwoot) and experiencing timeout errors when trying to send emails via Gmail SMTP.

Issue:

- IMAP connection to imap.gmail.com:993 works perfectly ✓

- SMTP connection to smtp.gmail.com:587 fails with timeout after 5 seconds ✗

- SMTP connection to smtp-relay.gmail.com:587 also fails with timeout ✗

Error Message:

"Timeout to open TCP connection on to smtp-relay.gmail.com:587 (exceeds 5 seconds)"

Current Network Configuration:

I can see that egress control is enabled with allowed domains, but Gmail SMTP domains are not included.

Request:

Could you please add the following domains to the egress whitelist for my project?

- smtp.gmail.com (port 587 and 465)

- smtp-relay.gmail.com (port 587)

- imap.gmail.com (already working, but to ensure it remains accessible)

Additional Information:

- Service: Chatwoot (chatwoot-production-b5cc.up.railway.app)

- Project ID: steadfast-harmony

- Using App Passwords for authentication (not plain passwords)

- IMAP is working fine, only SMTP egress is blocked

Thank you for your help!

Solved

1 Replies

a month ago

Hello,

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:

https://docs.railway.com/reference/outbound-networking

Best regards,

The Railway Team


Status changed to Awaiting User Response Railway 26 days ago


Railway
BOT

19 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 19 days ago


Loading...