Local SMTP server with web UI for development email testing
1.0K
Local SMTP server with web UI for development email testing. Catch all outgoing emails without delivering them.
docker run -p 1025:1025 -p 8025:8025 ogulcanaydogan/mailpit
Then open http://localhost:8025 to view captured emails.
| Variable | Description | Default |
|---|---|---|
MP_SMTP_BIND_ADDR | SMTP listen address | 0.0.0.0:1025 |
MP_UI_BIND_ADDR | Web UI listen address | 0.0.0.0:8025 |
MP_MAX_MESSAGES | Maximum stored messages | 500 |
MP_DATABASE | Database file path | /data/mailpit.db |
MP_SMTP_AUTH_ACCEPT_ANY | Accept any SMTP auth | - |
MP_SMTP_RELAY_HOST | Relay SMTP host | - |
MP_SMTP_RELAY_PORT | Relay SMTP port | - |
services:
app:
image: myapp
environment:
- SMTP_HOST=mailpit
- SMTP_PORT=1025
mailpit:
image: ogulcanaydogan/mailpit
ports:
- "1025:1025"
- "8025:8025"
volumes:
- mailpit-data:/data
volumes:
mailpit-data:
GET /api/v1/info — Server infoGET /api/v1/messages — List messagesGET /api/v1/message/{id} — Get messageDELETE /api/v1/messages — Delete all messagesGET /api/v1/search?query=... — Search messagesMIT
Content type
Image
Digest
sha256:24ee610c6…
Size
15.9 MB
Last updated
7 months ago
docker pull ogulcanaydogan/mailpit