Skip to content
My app on Railway needs to send Gmail OTP emails.
christophergnanasigamani54-tech
OP

3 hours ago

Nodemailer logs ETIMEDOUT with command: CONN when connecting to smtp.gmail.com. Are outbound SMTP connections on ports 587 or 465 blocked for my service? Can they be allowed?

"""

command: 'CONN'

}

Could not send customer verification email: Error: Connection timeout

at timeoutError (/app/node_modules/nodemailer/dist/cjs/smtp-connection/index.js:69:17)

at SMTPConnection._setupConnectionHandlers (/app/node_modules/nodemailer/dist/cjs/smtp-connection/index.js:421:94)

at SMTPConnection._connectToHost (/app/node_modules/nodemailer/dist/cjs/smtp-connection/index.js:409:18)

at /app/node_modules/nodemailer/dist/cjs/smtp-connection/index.js:360:22

at /app/node_modules/nodemailer/dist/cjs/smtp-connection/index.js:388:13

at respond (/app/node_modules/nodemailer/dist/cjs/shared/index.js:196:9)

at onResolved (/app/node_modules/nodemailer/dist/cjs/shared/index.js:250:20)

at /app/node_modules/nodemailer/dist/cjs/shared/index.js:311:13

at QueryReqWrap.callback (/app/node_modules/nodemailer/dist/cjs/shared/index.js:120:16)

at QueryReqWrap.onresolve [as oncomplete] (node:internal/dns/callback_resolver:47:10) {

timeoutType: 'CONNECT_TIMEOUT',

code: 'ETIMEDOUT',

"""

Awaiting User Response

1 Reply

Railway
BOT

3 hours 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:

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


Status changed to Awaiting User Response Railway • about 3 hours ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...