Mailpit is a developer SMTP server that intercepts every email your application sends and displays them in a clean web UI instead of delivering them. It replaces the abandoned MailHog (unpatched stored XSS since 2020) with full-text search, TLS support, spam scoring, HTML compatibility checks, mobile preview, a REST API for CI integration, and a POP3 interface — all in a single Go binary under 50 MB RAM. Deploy it on the same VPS as your web application, point your SMTP config to localhost:1025, and every email lands in the Mailpit inbox in real time.
Run your web application and Mailpit on the same VPS. Configure your SMTP settings to host localhost, port 1025. Every password reset, notification or invoice email appears instantly in the Mailpit inbox — no risk of sending to real users.
Query the REST API from your test suite to verify that the correct email was sent, that the subject matches, that attachments are present, and that the right recipient received the message — without a real SMTP relay.
Use the spam scoring and HTML compatibility report to detect missing headers, broken HTML and CSS properties that will be stripped by Gmail or Outlook — before the email reaches a single real inbox.
Guide optimized for ServOrbit Cloud VPS.
Open your ServOrbit control panel, go to Marketplace → Development → Mailpit, and click Deploy. Docker pulls the axllent/mailpit image and starts the server. The web UI is ready in under 10 seconds.
In your web application's environment or config file, set the SMTP host to 127.0.0.1 and the port to 1025. No authentication, no TLS required. If your app runs on the same VPS, every sent email will be intercepted by Mailpit.
Browse to the domain attached to your Mailpit instance (or SSH-tunnel port 8025). You will see the inbox list: click any message to inspect its HTML rendering, plain-text version, raw source, headers and spam score.
Call GET /api/v1/messages to list intercepted emails. Filter by recipient, subject or date. Assert the exact content your application sent — no mock, no stub, the real email over real SMTP.
Open any HTML email and click the Compatibility tab. Mailpit highlights CSS properties that are unsupported or partially supported in Gmail, Outlook, Apple Mail and other major clients, so you can fix them before going live.
Maintaining a project that uses Mailpit? This button lets your readers deploy it on a VPS in one click, without reading Docker documentation.
[](https://servorbit.com/vps-cloud?template=mailpit&utm_source=deploy-badge&utm_medium=referral&utm_campaign=mailpit)<a href="https://servorbit.com/vps-cloud?template=mailpit&utm_source=deploy-badge&utm_medium=referral&utm_campaign=mailpit"><img src="https://servorbit.com/brand/deploy/button.svg" alt="Deploy Mailpit on ServOrbit" height="40"></a>The button points to a VPS order with the template preselected. The image is served from servorbit.com — nothing to host on your side.
Browse our help center and FAQ, or reach our team — callback, WhatsApp or email. Support in French, English and Arabic.