---
title: "Deploy useSend"
description: "Open-source email platform on your own Amazon SES (Resend alternative)"
category: "Other"
url: https://railway.com/deploy/usesend-1
---

# Deploy useSend

Open-source email platform on your own Amazon SES (Resend alternative)

**[Deploy useSend on Railway](https://railway.com/template/usesend-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/usesend-1/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### useSend https://cdn.jsdelivr.net/gh/usesend/usesend@v1.10.4/apps/web/public/logo-squircle.png

- **Source:** https://github.com/aalfath/usesend-railway-template
- **Health check:** /api/health
- **Public domain:** Yes

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

## Documentation

# Deploy and Host useSend on Railway

useSend is an open-source email platform and a self-hosted alternative to Resend, SendGrid and Postmark. It sends transactional and marketing email through your own Amazon SES account, with a REST API and SDKs, domain verification, contacts, campaigns, webhooks and delivery analytics in one dashboard.

## About Hosting useSend

useSend is a Next.js app that needs PostgreSQL for its data and Redis for its job queues. This template runs useSend v1.10.4 from a pinned official image, plus Railway Postgres and Redis on private networking with volumes. Database migrations run on every start. Before deploying, create a GitHub OAuth app for login and an AWS IAM user with SES and SNS access, and enter both when Railway asks. The first account to sign in becomes the admin; everyone else joins through a team invite. Then add your sending domain in useSend and publish the DNS records it shows.

## Common Use Cases

* Sending transactional email (sign-up, password reset, receipts) from your apps through the REST API or SDKs
* Running newsletters and marketing campaigns with contact books and unsubscribe handling
* Tracking deliveries, bounces, complaints, opens and clicks across several domains and teams

## Dependencies for useSend Hosting

* PostgreSQL (included, Railway Postgres)
* Redis (included, Railway Redis)
* An AWS account with Amazon SES, and a GitHub OAuth app for login

### Deployment Dependencies

* useSend source and releases: https://github.com/usesend/useSend
* useSend self-hosting guide: https://docs.usesend.com/self-hosting/overview
* Amazon SES setup: https://docs.aws.amazon.com/ses/latest/dg/setting-up.html
* Create a GitHub OAuth app: https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
* Template repo and changelog: https://github.com/aalfath/usesend-railway-template

### Implementation Details

The useSend service builds from `aalfath/usesend-railway-template`, so Railway offers you an update when the template moves to a newer useSend release (see `CHANGELOG.md` before applying). Set the GitHub OAuth app's callback URL to `https://YOUR-DOMAIN/api/auth/callback/github`. If you add a custom domain, change `NEXTAUTH_URL` to match. Optional settings from useSend's `.env.selfhost.example` can be added as variables: Google login (`GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_SECRET`), a fixed admin (`ADMIN_EMAIL`), image uploads in the email editor (`S3_COMPATIBLE_*`, any public S3-compatible bucket) and automatic cleanup of old email content (`EMAIL_CLEANUP_DAYS`). useSend's separate SMTP relay (`apps/smtp-server` upstream) is not part of this template.

## Why Deploy useSend 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 useSend 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) — Self-hosted virtual tabletop for role-playing games (license required)
- [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/usesend-1
