Sign inSign up

MailHog

6.6K

egekocabas/mailhog:1.1.0

By Ege Kocabaş

Updated 5 months ago

Run and manage MailHog SMTP testing server directly in Docker Desktop. Capture emails locally, inspect them via a built-in web UI, and send test emails — no external mail server needed.

A Docker Desktop extension for running MailHog — a lightweight SMTP testing server that captures outgoing emails instead of delivering them. Ideal for local development and testing email flows without a real mail server.

Key Features:

- One-click MailHog container start, stop, and restart
- Optional host port binding for SMTP (default 1025) and Web UI (default 8025)
- Embedded MailHog inbox view
- Built-in test email sender
- Persistent settings across sessions

Architecture:

- Backend (Go): Runs on a Unix socket inside the extension container; manages the MailHog container via the Docker Engine API and handles SMTP test sending
- Frontend (React/TypeScript): Communicates with the backend exclusively through the Docker Desktop extension API
- MailHog container: mailhog/mailhog image, connected to a dedicated Docker bridge network for internal communication

Usage:
- Install the extension
- Configure Web UI and SMTP host ports (set to 0 to skip host binding)
- Click Start — MailHog is ready to capture emails
- Use the Test Email tab to verify your setup
- Point your application's SMTP client to localhost:1025

Note: This extension is not affiliated with the official MailHog project. It is an independent Docker Desktop extension for running MailHog containers locally.

Resources