#Google Workspace Email SMTP

21 messages · Page 1 of 1 (latest)

noble bobcat
#

When I am using my personal Gmail username and password for SMTP configuration and sending emails from my Railway deployed Go Server, it works perfectly, but when I am using my Google Workspace Email for the same purpose, it fails, I have been stuck at this for about 3 days now, I have checked all the available resources on Google Workspace side, I am not using Gmail Relay, the password being used is an App Password with Less Secure Apps turned ON.

I want to understand if there any restrictions on Railway's side ? If somebody has already implemented this, can you please guide me !

soft grotto
dire hawk
soft grotto
#

That uses an HTTPS API to send emails so that will work perfectly!

dire hawk
#

@soft grotto connection seems to be timing out when trying to send emails from railway but not when running locally. Any idea what could be causing this?

soft grotto
#

Please provide error logs.

dire hawk
#

data:
{ }
code:
"ETIMEDOUT"
command:
"CONN"
level:
"error"
timestamp:
"2025-08-27T14:41:05.280Z"```
soft grotto
#

I'm going to need more information. What is the host and port that the connection is timing out with?

dire hawk
soft grotto
#

Please provide the host and port that the connection is timing out with.

dire hawk
#

I'm not sure what you mean. The package doesn't require a host and port providing.

Is there a range of IP addresses I might need to permit in Brevo to allow requests from Railway?

soft grotto
#

Does Brevo have a whitelist?

dire hawk
#

ive just deactivated ip blocking and its still timing out. Let me have a look in the CMS for any other reasons

quick remnantBOT
#

New reply sent from Help Station thread:

I'm facing similar situation, have an account from google workspace and app password, sending emails using nodemailer, suddenly I stop being able to do this, any recommended alternative to this? Why was blocked?

You're seeing this because this thread has been automatically linked to the Help Station thread.

quick remnantBOT
quick remnantBOT
quick remnantBOT
#

New reply sent from Help Station thread:

Subject: Nodemailer Connection Timeout on Railway
Hi Railway team,
My app is trying to send emails using Nodemailer with Gmail SMTP.
It works on
localhost
, but in production on Railway I get ETIMEDOUT errors when connecting to
smtp.gmail.com:465
or 587.
Can you confirm if outbound SMTP ports are blocked on Railway?
If so, is there any way to allow SMTP connections for my project,
or must I switch to a provider like SendGrid / Postmark?

You're seeing this because this thread has been automatically linked to the Help Station thread.

quick remnantBOT
#

New reply sent from Help Station thread:

so what is the propose solution to it. I had to use email service on my app

You're seeing this because this thread has been automatically linked to the Help Station thread.