Timed out error for SMTP Emails
muthukumarrajendran26
PROOP

2 months ago

Hi I am getting SMTP Timed out error.

It was working fine before, but after sometime i am getting the below error,

SMTP delivery failed: timed out

$10 Bounty

1 Replies

Railway
BOT

2 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open Railway about 2 months ago


douefranck
FREE

2 months ago

hey, since youre on pro already, railway docs say you need to redeploy your service for smtp to work - the firewall changes only apply after redeploying. if that doesnt fix it, run this command in your railway shell to test ports:

smtp_host="your-smtp-host.com" bash -c 'for port in 25 465 587 2525; do timeout 1 bash -c "</dev/tcp/smtphost/smtp_host/ smtph​ost/port" 2>/dev/null && echo "smtp_host port $port reachable" || echo " smtp_host port $port unreachable" done'

replace "your-smtp-host.com" with your actual smtp server. if ports show unreachable, contact your email provider because they might be blocking railway ips. if ports are reachable but still timing out, share the output. this is straight from their official docs at docs.railway.com/reference/outbound-networking

doue


Loading...