Local email testing, done right

Catch every email before it ever leaves your app.

MailMock is a lightweight SMTP server that intercepts outgoing mail so you can test, preview and debug — without touching a real inbox.

Public demo online 🐳 Docker-ready 🔓 No auth required
Features

Everything you need to test email

A complete mock mailbox for developers — capture, inspect, analyze and stress-test your outgoing messages.

Intercept Emails

Accept mail on a plain SMTP port and capture it — nothing is ever delivered to real recipients.

Mail Analysis New

Every message is scored for spam (0–100), checked for spoofing and scanned for viruses — with optional ClamAV & Rspamd.

Full-text Search

Instantly find messages by subject, sender, recipient or body content with live filtering.

Safe HTML Preview

Render the original email in a sandboxed iframe — scripts disabled and remote resources blocked, so untrusted mail can't run code.

Live Updates

New mail appears instantly over WebSocket — a toast pops up and the inbox refreshes automatically.

Download Attachments

View and download every attachment to verify your email content end to end.

REST API + Swagger

Read, search, mark read/unread, download and delete messages via a JSON API, with interactive Swagger UI docs.

Chaos Mode

Inject random SMTP errors to test how your app handles an unreliable mail server — toggle it at runtime.

Flexible Storage

Run zero-setup in-memory storage, or switch to MongoDB for persistence across restarts — capped by a configurable limit.

Changelog

What's New

Recent improvements shipped to MailMock.

Mail Analysis: Spam, Spoofing & Virus New
Jul 2026

Every captured message now gets a spam score (0–100), a spoofing verdict from header heuristics, and a virus check on attachments — visible in the new Analysis tab and the REST API.

Real ClamAV & Rspamd Engines
Jun 2026

Optionally back the analysis with real ClamAV virus scanning and Rspamd spam scoring; MailMock falls back to the built-in analyzers when they're unavailable.

Live Inbox over WebSocket
Jun 2026

New messages now stream to the UI over WebSocket, with a toast notification and automatic list refresh — no manual reload.

Chaos Mode New
May 2025

MailMock can now simulate random SMTP errors so you can test edge cases and failure handling.

Message Limit with Auto Cleanup
May 2025

Set a configurable message limit — when it's reached, the oldest messages are removed automatically to keep your workspace clean and fast.

New Dark Mode Support
April 2025

Added full dark mode support for email previews across all devices.

Faster Email Rendering
March 2025

Major speed improvements in email iframe loading and rendering.

Live Demo

Try it right now

Point any SMTP client at our public server and watch your message land in the inbox instantly.

Public demo server

Send an email with your favorite SMTP client — no signup needed.

Host / IP57.128.219.181
SMTP Port1125
AuthorizationNot required
Message retention1 hour
Open the live inbox
Documentation

Docs & guides

Quick start, sending & viewing mail, the REST API, mail analysis, configuration and self-hosting — all in one place.

Open the docs
Get Started

Start testing emails today

Spin up your local email testing environment in a single command.

$ docker pull justmediapl/mailmock