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
Pinned Solution
2 months ago
SMTP is only available on the Pro plan. Alternatively, you can use a HTTP compatible transactional mail service, such as Resend.
1 Replies
Status changed to Open Railway • about 2 months ago
2 months ago
SMTP is only available on the Pro plan. Alternatively, you can use a HTTP compatible transactional mail service, such as Resend.
Status changed to Solved brody • about 2 months ago