Request to enable outbound SMTP/HTTP for email service integration
zahidkhan1100
HOBBYOP

2 months ago

Hi,

I'm running a Laravel application on Railway that needs to send emails via Mailgun. Currently, all outbound connections to email services are being blocked:

  • SMTP connections to smtp.mailgun.org (ports 25, 587, 2525, 465) — timeout
  • HTTP API calls to https://api.eu.mailgun.net — connection refused

Both SMTP and HTTP transports fail with connection timeouts/refused errors.

Current workaround: Using log mailer, which only logs emails locally and doesn't send them.

Request: Can you whitelist outbound connections to Mailgun's SMTP and API endpoints, or provide guidance on how to enable outbound email delivery on Railway?

Service details:

  • Service: house-expenses-backend
  • Framework: Laravel
  • Email provider: Mailgun (EU region)

Thanks, Muhammad Zahid

Solved$10 Bounty

Pinned Solution

SMTP is only available on the Pro plan. Alternatively, you can use a HTTP compatible transactional mail service, such as Resend.

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

1 Replies

Status changed to Open Railway about 2 months ago


SMTP is only available on the Pro plan. Alternatively, you can use a HTTP compatible transactional mail service, such as Resend.

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


Status changed to Solved brody about 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...