20 days ago
Hello,
I have a project running on Railway that needs to send emails using an external SMTP server (smtp.hostinger.com
, ports 465/587).
Until last week everything was working fine, but starting a few days ago all connections fail with:
[Errno 101] Network is unreachable
I confirmed that the same code works perfectly from my local machine, so the issue only happens inside Railway.
Could you please confirm if Railway has recently blocked outbound SMTP traffic (ports 25/465/587)?
If so, is this a permanent policy change?
And, in that case, what is the recommended way to send transactional emails from Railway?
Thank you in advance for your help.
Best regards,
Claudio
48 Replies
20 days 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!
20 days ago
Hello,
Outbound SMTP connections are blocked on Railway to prevent abuse and protect our IP reputation.
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 • 20 days ago
20 days ago
You guys could've at least given us a heads up so we could've migrated before blocking them altogether, the emails were working just fine until today and broke one of my applications.
Status changed to Awaiting Railway Response Railway • 20 days ago
20 days ago
Same happened to us! It would be great to receive a notification a few days or hours before applying the block so we could migrate to APIs. We're currently using Amazon SES but via SMTP, we'll switch to api but got a few complaints due to the downtime of the emails not being sent...
20 days ago
Our sincerest apologies. We did not foresee a great impact here, given we thought we had been blocking outbound SMTP all along, but going forward, we will make sure to publicly announce firewall additions that have potential user impact.
Status changed to Awaiting User Response Railway • 20 days ago
Status changed to Awaiting Railway Response Railway • 20 days ago
20 days ago
It's not cool that you didn't warn us. All my apps are broken. This is where I draw the line with Railway.
19 days ago
Same. That was handled really unprofessionally. I wasted almost a day now trying to figure out why it suddenly stopped working until I found this post. At least put it somewhere public like the changelog/discord so people dont waste hours digging through search results and their codebase. This really should have been announced in advance so people can transition to alternatives.
19 days ago
Hi!
One app broke here.
Wtf dudes, You can't do it...I lose 5 clients today...
19 days ago
Hi guys,
Same for me. I've tried almost a day trying to figure out what's happening and now I see this post and it was really unprofessionally...
19 days ago
Hi guys,
Same here, i took almost all day trying to figure out why it just stopped working. Not cool, i had many problems with my users today.
19 days ago
Same for me. i can not understand how a team can be this unprofesional, the whole morning debuggind to find out you guys block it with no warning! Render here i go!
19 days ago
Just spent hours debugging this on production... do we have a fix for this? Or can this block be lifted until we have time to work out a solution to this? No emails are going out for my many customers, which breaks their businesses.
I can't implement several different APIs for many different customers at a moment's notice. Can you please reverse this ASAP so we have some breathing space to un-break our customers?
19 days ago
I just canceled my suscription here! congrats team hope you lose more clients like we did!
19 days ago
I am using Django - if anyone else uses it and is affected by this outage, then I can really recommend the django-anymail package. It is a drop-in replacement for the standard Django mail provider, and transparently supports all the common ESPs, and can handle multiple mail accounts on different ESPs. It was literally a few line fix on the server.
I'm pulling a late night moving all my customers over to APIs: SMTP was ideal, because it was a universal interface for all customers, but better to be able to give an ETA for the fix.
19 days ago
same with me, piling onto this thread so that your team knows to hopefully at least send out an email or something ahead of time. I was fully unaware. This will be a pain to fix..
19 days ago
same with me, it broke an app, I am using Resend with SMTP and got errors from blocking sending mails
19 days ago
Hi. Apologies here. There was a misunderstanding internally where we'd had the SMTP port (25) blocked forever
We noticed an issue where a small subset of hosts didn't have this block, so a ticket was created. During this, the engineer added ports 465, 587, and 2525 to exhaustively block SMTP (instead of just the original 25).
Given this change in behavior, we 100% should have announced it. But wires got crossed internally on that ticket, because we were "already blocking SMTP"
We've rolled back the change, and as of right now, we've unblocked SMTP for all Pro and Enterprise customers. For those who struggled through this in the thread prior, I've issued each of you a credit of a months bill or the cost of a month of Pro (whichever is larger)
We can look into potentially expanding this to other plans in the future. To give a bit more color, we get a LOT of abuse across hundreds of thousands of users per month, and we take your email deliverability seriously (which includes protecting our IPs)
19 days ago
Same here, spend the whole day with that. We are currently Hobby plan, if we upgrade to Pro, it will work inmediately? I need to redeploy? please advise.
danikonex
Same here, spend the whole day with that. We are currently Hobby plan, if we upgrade to Pro, it will work inmediately? I need to redeploy? please advise.
19 days ago
Yeah, thats what i did and it solved it. once upgraded to pro you need to redeploy your services tho
jake
Hi. Apologies here. There was a misunderstanding internally where we'd had the SMTP port (25) blocked foreverWe noticed an issue where a small subset of hosts didn't have this block, so a ticket was created. During this, the engineer added ports 465, 587, and 2525 to exhaustively block SMTP (instead of just the original 25).Given this change in behavior, we 100% should have announced it. But wires got crossed internally on that ticket, because we were "already blocking SMTP"We've rolled back the change, and as of right now, we've unblocked SMTP for all Pro and Enterprise customers. For those who struggled through this in the thread prior, I've issued each of you a credit of a months bill or the cost of a month of Pro (whichever is larger)We can look into potentially expanding this to other plans in the future. To give a bit more color, we get a LOT of abuse across hundreds of thousands of users per month, and we take your email deliverability seriously (which includes protecting our IPs)
19 days ago
Does this mean smtp will be available for pro users indefinitely? If so I am willing to upgrade, but just curious.
casselv
Yeah, thats what i did and it solved it. once upgraded to pro you need to redeploy your services tho
18 days ago
Did you need to wait any specific time? I upgrade to PRO and redeploy one of the services failing but still seeing the same results. Before someone ask about it... I was than desperate that I built a connectivity page hehe
Attachments
danikonex
Did you need to wait any specific time? I upgrade to PRO and redeploy one of the services failing but still seeing the same results. Before someone ask about it... I was than desperate that I built a connectivity page hehe
18 days ago
Worked straight away for me after redeploy
casselv
Worked straight away for me after redeploy
18 days ago
For me took around 15 minutes, but now is working. Thanks casselv!
18 days ago
No prior notifications, alerts, messages, emails, we arn't any genious to guess this will happen. You should atleast give us some time before taking this step.
I can't just upgrade to pro, we all have some limitations,you should understand this.
soumyakantid5
No prior notifications, alerts, messages, emails, we arn't any genious to guess this will happen. You should atleast give us some time before taking this step.I can't just upgrade to pro, we all have some limitations,you should understand this.
18 days ago
exactly...
18 days ago
We will switch to Render after this incident. Our system relies on outbound emails. Our current system is not rolled out in production yet but in stage - would this have happend in production the company would go down in flames. (B2C with very very angry C)
18 days ago
We have plans to sign on a big contract with Railway, but although I love the UX of this service, it's shaking our confidence that a PaaS would close critical ports on production services with no notice, leaving us wondering what was going on and scrambling for a whole day + night to fix it.
We really, really need an assurance that this sort of thing will not happen again in the future when our business is potentially much bigger, with too many customers to apologise to personally.
18 days ago
We need do something now? redeploy our project? I saw the messages but it doesn't for me, I can't send messages for now...thanks
18 days ago
I was really excited to try/host my app on Railway until now I found this forum for this specific issue everyone is facing. I thought my app had the issue and wasted hours for nothing. The team making changes without notifications seems pretty unprofessional. I am thinking about other alternatives. Any suggestions?
awale88
I was really excited to try/host my app on Railway until now I found this forum for this specific issue everyone is facing. I thought my app had the issue and wasted hours for nothing. The team making changes without notifications seems pretty unprofessional. I am thinking about other alternatives. Any suggestions?
18 days ago
Railway is good, yes, this was a fail (a big fail) but in 8 months, 0 problems
adriansantamari
Railway is good, yes, this was a fail (a big fail) but in 8 months, 0 problems
18 days ago
I will have to re-think. Thanks anyways
18 days ago
I thinks this is one ways to reduce Hobby customers, like me
Because we required SMTP with google to kept the cost too cheap with our customer, but Railway block that
This make us denied by our customers
18 days ago
This took down my production app, too!
18 days ago
On this page it says I should still be able to do SMTP because I'm on pro plan, but it stopped working. https://docs.railway.com/reference/outbound-networking
Help!
natalyarockets
On this page it says I should still be able to do SMTP because I'm on pro plan, but it stopped working. https://docs.railway.com/reference/outbound-networkingHelp!
18 days ago
Hey, have you tried redeploying your service?
uxuz
Hey, have you tried redeploying your service?
18 days ago
Yes still fails!
uxuz
Hey, have you tried redeploying your service?
18 days ago
Yes still fails!
18 days ago
To everyone in this thread, SMTP is now only available on pro plan and above to prevent spam and abuse as per the newly updated docs. Furthermore it still recommended to use email services that have an HTTPS API, even if you have SMTP available. A list of email service examples can also be found in the docs.
natalyarockets
Yes still fails!
18 days ago
Please open your own dedicated thread so that you can provide more context without flooding the inbox of other users in this thread.
uxuz
Please open your own dedicated thread so that you can provide more context without flooding the inbox of other users in this thread.
18 days ago
OK. Could have said that less rudely for something you broke.
natalyarockets
OK. Could have said that less rudely for something you broke.
18 days ago
I didn't mean to sound rude, although in retrospective I can see that it may sound like that, sorry for that.
jake
Hi. Apologies here. There was a misunderstanding internally where we'd had the SMTP port (25) blocked foreverWe noticed an issue where a small subset of hosts didn't have this block, so a ticket was created. During this, the engineer added ports 465, 587, and 2525 to exhaustively block SMTP (instead of just the original 25).Given this change in behavior, we 100% should have announced it. But wires got crossed internally on that ticket, because we were "already blocking SMTP"We've rolled back the change, and as of right now, we've unblocked SMTP for all Pro and Enterprise customers. For those who struggled through this in the thread prior, I've issued each of you a credit of a months bill or the cost of a month of Pro (whichever is larger)We can look into potentially expanding this to other plans in the future. To give a bit more color, we get a LOT of abuse across hundreds of thousands of users per month, and we take your email deliverability seriously (which includes protecting our IPs)
18 days ago
This is still an issue for us. what do we do?
16 days ago
I am facing the same issue. I tried using Gmail, Mailgun, and SendGrid, but SMTP is blocked. I need to rewrite my email code again using HTTP requests. Please, Railway, revert it back.
brody
Hello,Outbound SMTP connections are blocked on Railway to prevent abuse and protect our IP reputation.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-networkingBest regards,The Railway Team
16 days ago
Please restore access it, I have three long-term clients and an application that has been deployed for over a year, which is now not working. Kindly restore or provide instructions on how to unblock it.
devavikalabs
Please restore access it, I have three long-term clients and an application that has been deployed for over a year, which is now not working. Kindly restore or provide instructions on how to unblock it.
16 days ago
Hey, please kindly read the message I have sent previously in this thread below.
To everyone in this thread, SMTP is now only available on pro plan and above to prevent spam and abuse as per the newly updated docs. Furthermore it still recommended to use email services that have an HTTPS API, even if you have SMTP available. A list of email service examples can also be found in the docs.