---
title: "Deploy Resend Railway SMTP Gateway"
description: "Deploy and Host Resend SMTP Gateway with Railway"
category: "Other"
url: https://railway.com/deploy/resend-railway-smtp-gateway
---

# Deploy Resend Railway SMTP Gateway

Deploy and Host Resend SMTP Gateway with Railway

**[Deploy Resend Railway SMTP Gateway on Railway](https://railway.com/template/resend-railway-smtp-gateway)**

- **Creator:** Igor Artasevych's Projects
- **Category:** Other
- **Total deploys:** 40

## Template content

### resend-railway-gateway

- **Source:** igorrius/resend-railway-gateway

## Documentation

# Deploy and Host Resend SMTP Gateway on Railway

Resend Railway SMTP Gateway is a small Go service that accepts SMTP messages and relays them to Resend via the Resend HTTPS API. It provides a lightweight SMTP endpoint that forwards incoming mail to Resend for delivery, with configuration via environment variables and a container-ready setup.

## About Hosting Resend Railway SMTP Gateway

Hosting this gateway on Railway involves building and deploying the Go service as a container or service, providing the required environment variables (notably RESEND_API_KEY), and exposing the service port so Railway routes incoming TCP traffic.

## Common Use Cases

- Relay inbound SMTP from internal systems to Resend for centralized email delivery.
- Provide an SMTP endpoint in ephemeral environments (containers) without maintaining a full MTA.
- Test SMTP integrations locally and deploy the same service to production on Railway.

## Dependencies for Resend Railway SMTP Gateway Hosting

- A Railway account and project to deploy containers/services.
- A Resend API key (RESEND_API_KEY) with sending permissions.

### Deployment Dependencies

- Railway docs: https://docs.railway.app
- Resend API docs: https://resend.com/docs
- Optional SMTP library used in the project: emersion/go-smtp (https://github.com/emersion/go-smtp)

## Why Deploy Resend SMTP Gateway on Railway?

Railway doesn't provide an SMTP gateway for non-PRO accounts. This server solves the problem using Resend Gateway.

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Resend Railway SMTP Gateway on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/resend-railway-smtp-gateway
