---
title: "Deploy useSend"
description: "Open Source email platform. Sendgrid, Resend alternative"
category: "Other"
url: https://railway.com/deploy/usesend
---

# Deploy useSend

Open Source email platform. Sendgrid, Resend alternative

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

- **Creator:** useSend
- **Category:** Other
- **Total deploys:** 154
- **Verified:** Yes

## Template content

### Storage https://res.cloudinary.com/h5kvzw/image/upload/v1706062979/MINIO_Bird_vbtpet.png

- **Image:** minio/minio:latest
- **Start command:** `/bin/sh -c "exec minio server --address [::]:$MINIO_PRIVATE_PORT $RAILWAY_VOLUME_MOUNT_PATH"`
- **Health check:** /minio/health/ready
- **Public domain:** Yes

### Server https://usesend.com/logo-squircle.png

- **Image:** usesend/usesend
- **Health check:** /
- **Public domain:** Yes

### MinIO Bucket Creator https://res.cloudinary.com/h5kvzw/image/upload/v1706062979/MINIO_Bird_vbtpet.png

- **Image:** minio/mc:RELEASE.2025-04-16T18-13-26Z
- **Start command:** `/bin/sh -c  "sleep 10 &&   /usr/bin/mc alias set minio ${MINIO_ENDPOINT} ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD} &&   /usr/bin/mc mb --ignore-existing minio/${MINIO_BUCKET} &&   /usr/bin/mc anonymous set download minio/${MINIO_BUCKET}  &&   /usr/bin/mc admin accesskey create minio/ --access-key ${MINIO_ACCESS_KEY} --secret-key ${MINIO_SECRET_KEY} || true &&  exit 0 "`

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

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

### Redis https://devicons.railway.app/i/redis.svg

- **Image:** railwayapp/redis:7.4

### Console https://res.cloudinary.com/h5kvzw/image/upload/v1706062979/MINIO_Bird_vbtpet.png

- **Source:** railwayapp-templates/minio-console
- **Start command:** `/bin/sh -c "exec console server --host 0.0.0.0 --port $PORT"`
- **Health check:** /login
- **Public domain:** Yes

## Documentation

## Prerequisites

- A [Github](https://github.com) account
- An [AWS](https://aws.amazon.com) account

If you have any questions join [#self-host](https://discord.gg/gbsvjb9MqV) on discord.

## Step 1: Environment variables

Unsend depends on AWS ses to send emails and SNS to receive email status. Along with that it also depends on Postgres as a database and Redis for queue. Copy the `.env.selfhost.example` file to `.env` and fill in the values.

### AWS credentials
  tl;dr: Login to your AWS console and create a new user with programmatic access. Attach the `AmazonSNSFullAccess` and `AmazonSESFullAccess` policies to the user. Then create a new access key for the user.

Add the following environment variables.

    ```env
    AWS_ACCESS_KEY_ID=
    AWS_SECRET_ACCESS_KEY=
    ```

  Follow this for detailed steps: [Create AWS
  credentials](https://docs.usesend.com/get-started/create-aws-credentials)

### Github app credentials for login
  Usend uses github authentication for login.

Use this link to [create an github app](https://docs.github.com/en/apps/creating-github-apps/about-creating-github-apps/about-creating-github-apps)

Callback URL : `https:////auth/callback/github`


Add the following environment variables.

```env
GITHUB_ID=""
GITHUB_SECRET=""
```

### Next auth url and secret
  Url is the app url you're going to use/

Add the following environment variables.

```env
  NEXTAUTH_SECRET=""
```


## Step 3: Setting up a region

In order to send emails, you need to select an region in aws. Use a region where your users are located / where unsend is hosted. If you're confused just use `us-east-1`.

You can check available regions [here](https://docs.aws.amazon.com/general/latest/gr/ses.html)

Once you logged in to useSend, it will prompt you add ses configuration


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — [Jul'26] 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/usesend
