Subject: Connection Timeout with smtp.gmail.com on Port 465
yassakhairy28
FREEOP

3 months ago

Hello Railway Support,

I am experiencing a 'Connection timeout' error when trying to connect to smtp.gmail.com:465 using nodemailer in my Node.js application. The error occurs consistently on Railway, while it works fine locally. The logs show:

- Error: Connection timeout at /app/node_modules/nodemailer/lib/smtp-connection/index.js:899

- ETIMEDOUT

I have tried:

- Increasing connectionTimeout and greetingTimeout

- Using port 465 with secure: true

- Verifying environment variables

Could you please check if there are network restrictions or firewall rules blocking outbound connections to smtp.gmail.com on ports 465 or 587? Any assistance would be appreciated.

Thank you,

Solved

2 Replies

Railway
BOT

3 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!



Status changed to Awaiting User Response Railway 3 months ago


Status changed to Solved ray-chen 3 months ago


Loading...