---
title: "Deploy Groundmail SMTP Relay"
description: "Send SMTP email on any Railway plan, delivered over HTTPS"
category: "Other"
url: https://railway.com/deploy/groundmail-smtp-relay
---

# Deploy Groundmail SMTP Relay

Send SMTP email on any Railway plan, delivered over HTTPS

**[Deploy Groundmail SMTP Relay on Railway](https://railway.com/template/groundmail-smtp-relay)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/groundmail-smtp-relay/manifest.json

- **Creator:** Kurtis Tryber's Projects
- **Category:** Other

## Template content

### smtp-relay https://cdn.jsdelivr.net/gh/Groundmail/railway-smtp-relay@main/assets/icon.svg

- **Source:** Groundmail/railway-smtp-relay

## Documentation

# Deploy and Host Groundmail SMTP Relay on Railway

Groundmail SMTP Relay lets any app on Railway send email over SMTP, on every plan. Railway blocks outbound SMTP on the Free, Trial and Hobby plans, so mail libraries time out. Your app sends SMTP to the relay over Railway's private network, and the relay delivers each message over HTTPS through Groundmail, a transactional email API.

## About Hosting Groundmail SMTP Relay

The relay is a small Node.js service with no database or volume. Deploy it into the same project as your app and paste your Groundmail API key. The template generates the relay's SMTP password for you. Then set your app's SMTP settings to the relay: the host is the relay's private domain (smtp-relay.railway.internal), port 2525, username and password from the relay's variables, and no TLS, since traffic never leaves the private network. The From address must be on a domain you verified in Groundmail. Bcc, attachments, inline images, Reply-To and custom headers are kept, and every message shows up in your Groundmail dashboard with its delivery status.

## Common Use Cases

- Send password resets, sign-up confirmations and receipts from Ghost, n8n, WordPress or Strapi on the Hobby plan
- Keep a Django, Rails, Laravel or Nodemailer app's SMTP settings instead of rewriting its mailer
- Give every service in a project one SMTP endpoint with one set of credentials

## Dependencies for Groundmail SMTP Relay Hosting

- A Groundmail account (free for 3,000 emails a month) with a verified sending domain
- A Groundmail API key

### Deployment Dependencies

- Groundmail: https://groundmail.dev
- Source code and setup examples: https://github.com/Groundmail/railway-smtp-relay

## Why Deploy Groundmail SMTP Relay on Railway?

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 Groundmail SMTP Relay 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/groundmail-smtp-relay
