# MailDev SMTP Capture and Email Testing Server

> MailDev is a local SMTP server with a web UI and REST API for capturing application email during development. It lets agents and test workflows inspect messages, attachments, and relay behavior without touching real inboxes.

- Skill: `agentskillexchange/maildev-smtp-capture-and-email-testing-server` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/maildev-smtp-capture-and-email-testing-server`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/maildev-smtp-capture-and-email-testing-server/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/maildev-smtp-capture-and-email-testing-server

---


# MailDev SMTP Capture and Email Testing Server

MailDev is a local SMTP server with a web UI and REST API for capturing application email during development. It lets agents and test workflows inspect messages, attachments, and relay behavior without touching real inboxes.

## Installation

Use the upstream install or setup path that matches your environment:
- $ docker run -p 1080:1080 -p 1025:1025 maildev/maildev
- npm install
- npm run dev
- To lint your code before submitting your PR, run npm run lint.

Requirements and caveats from upstream:
- [![Docker Pulls](https://img.shields.io/docker/pulls/maildev/maildev)](https://hub.docker.com/r/maildev/maildev)
- **MailDev** is a simple way to test your project's generated email during development, with an easy to use web interface that runs on your machine built on top of [Node.js](http://www.nodejs.org).
- ## Docker Run

Basic usage or getting-started notes:
- | Options | Environment variable | Description |
- | -------------------------------- | -------------------------- | ----------------------------------------------------------------------------------------- |
- | -s, --smtp <port> | MAILDEV_SMTP_PORT | SMTP port to catch mail |

- Source: https://github.com/maildev/maildev
- Extracted from upstream docs: https://raw.githubusercontent.com/maildev/maildev/HEAD/README.md

## Documentation

- http://maildev.github.io/maildev/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/maildev-smtp-capture-and-email-testing-server/)

