Self-host MailCatcher with Levelrail
A development SMTP server that catches every message and shows it in a web inbox. Send mail from services in this project to mailcatcher:1025. Messages are kept in memory only.
- Authorsj26
- LicenceMIT
- Memory128 MiB
- Services1
How to self-host MailCatcher
-
Pull the images
One image is pulled on your server.
Show images
sj26/mailcatcher:v0.10.0
-
Create the app
One service starts in a single Compose app, on ports 1080, 1025.
-
Fill in the secrets
You do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
After the first start
- Set the SMTP host of a service in this project to mailcatcher and port 1025, then read the mail in the web inbox.
MailCatcher requirements
- Memory
- About 128 MiB
- Architectures
- amd64 unknown, arm64 unknown
- Ports
- 1080, 1025
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- MIT, permissive license
- Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then MailCatcher. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the MailCatcher docs page.
Deploy MailCatcher your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy MailCatcher from the CLI
levelrail-cli templates deploy mailcatcher --name my-mailcatcher Deploy MailCatcher with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/mailcatcher/deploy MailCatcher configuration
MailCatcher services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| mailcatcher | sj26/mailcatcher:v0.10.0 | 1080, 1025 | none |
MailCatcher environment variables
The catalog lists no environment variables for this template.
Ports and volumes
- Ports
- 1080, 1025
- Volumes
- none
MailCatcher FAQ
How much memory does MailCatcher need?
The catalog lists about 128 MiB of memory for MailCatcher.
Does MailCatcher run on arm64?
For MailCatcher, arm64 support is not confirmed; amd64 is unknown.
What licence is MailCatcher under?
MailCatcher is licensed under MIT, which is permissive, with few conditions on reuse.
Does MailCatcher need configuration before it starts?
No. The template fills in its own defaults.
Which ports does MailCatcher use?
MailCatcher listens on ports 1080 and 1025 inside the stack.
Can I deploy MailCatcher on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for MailCatcher, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image sj26/mailcatcher:v0.10.0 is what you deploy there.