---
title: "Deploy Maildev"
description: "Ephemeral SMTP server for development purposes."
category: "Queues"
url: https://railway.com/deploy/maildev
---

# Deploy Maildev

Ephemeral SMTP server for development purposes.

**[Deploy Maildev on Railway](https://railway.com/template/maildev)**

- **Creator:** Six
- **Category:** Queues
- **Total deploys:** 27

## Template content

### Maildev https://devicons.railway.app/mail

- **Image:** maildev/maildev:3.0.0-rc.1
- **Health check:** /api/healthz
- **Public domain:** Yes

## Documentation

# Deploy and Host Maildev on Railway

Maildev is a simple email testing tool for developers. It allows you to easily capture and view emails sent from your applications during development, without the need for a real SMTP server. With Maildev, you can inspect email content, headers, and attachments in a user-friendly web interface.

## About Hosting Maildev

Hosting Maildev involves deploying the application on a server, configuring the SMTP settings, and ensuring secure access for your development teams. With Railway, you can easily deploy Maildev without worrying about the underlying infrastructure, allowing you to focus on testing your email functionality.

## Common Use Cases

- Capturing and viewing emails sent from a web application
- Testing email templates and content during development
- Debugging email delivery issues without spamming real inboxes

## Dependencies for Maildev Hosting

- Node.js

### Deployment Dependencies

- [Maildev GitHub Repository](https://github.com/maildev/maildev)

### Implementation Details

- Username and password for Web access is in `MAILDEV_WEB_USER` and `MAILDEV_WEB_PASS`
- Send email to `$SMTP_HOST:$SMTP_PORT`
- Only the web interface is exposed by default
  - You can expose the SMTP port if needed by adding a TCP proxy to the `SMTP_PORT` (default is `25`)

## Why Deploy Maildev 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 Maildev 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

- [smoothmq](https://railway.com/deploy/AJv-64) — A drop-in replacement for AWS SQS
- [Kafka UI](https://railway.com/deploy/kafka-ui) — Kafbat UI — Open-source web UI to monitor and manage Apache Kafka clusters
- [Hatchet Lite](https://railway.com/deploy/hatchet-lite) — Hatchet Lite with postgres

Open this page in a browser: https://railway.com/deploy/maildev
