---
title: "Deploy Mailpit"
description: "Lightweight SMTP server & email testing tool with web UI"
category: "Other"
url: https://railway.com/deploy/mailpit-1
---

# Deploy Mailpit

Lightweight SMTP server & email testing tool with web UI

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

- **Creator:** Hosmel Quintana's Projects
- **Category:** Other
- **Total deploys:** 38

## Template content

### Mailpit https://mailpit.axllent.org/favicons/apple-touch-icon.png

- **Image:** axllent/mailpit
- **Public domain:** Yes

## Documentation

# Deploy and Host Mailpit on Railway

Mailpit is a lightweight email testing tool for development. It provides an SMTP server that captures outgoing messages and a simple web UI for viewing them. Use it to preview email content without sending anything to real inboxes.

## About Hosting Mailpit

Mailpit runs a small SMTP server and message viewer that fits well into development and staging workflows. Your application sends mail to Mailpit instead of a real provider, and messages appear instantly in the UI. Railway handles the deployment, networking, and storage so you can run Mailpit without maintaining infrastructure. This setup makes it easy to test notifications, templates, and email behavior across your app.

## Common Use Cases

- Previewing email templates during development  
- Capturing and reviewing outbound messages  
- Testing email functionality in staging environments  

## Dependencies for Mailpit Hosting

- Persistent storage for message data  
- SMTP configuration pointing your app to Mailpit  

### Deployment Dependencies

- Mailpit Documentation: https://mailpit.axllent.org

## Why Deploy Mailpit 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 Mailpit 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/mailpit-1
