Background:
I was trying to debug an email that was supose to have a CC aswell. Turns out mailhog wont let you view the cc:ed email.
Long story short, use mailpit instead. :/
Docker images
You can view available Docker images on https://hub.docker.com/r/axllent/mailpit.
A basic example of running Mailpit within Docker:
docker run -d \
--restart unless-stopped \
--name=mailpit \
-p 8025:8025 \
-p 1025:1025 \
axllent/mailpit
You need to ensure you map the correct ports (default Web UI on 8025 and SMTP on 1025).
Setting Mailpit options
View all runtime options (flags & environment variables). Environment variables can be set using the -e flag when starting your docker container, for instance:
docker run -d \
--name=mailpit \
--restart unless-stopped \
-v /path/to/mailpit-data:/data \
-e MP_DATA_FILE=/data/mailpit.db \
-e MP_UI_AUTH_FILE=/data/authfile \
-e TZ=Europe/London \
-p 8025:8025 \
-p 1025:1025 \
axllent/mailpit
Docker compose example
version: '2.4'
services:
mailpit:
image: axllent/mailpit
container_name: mailpit
restart: always
volumes:
- ./data:/data
ports:
- 8025:8025
- 1025:1025
environment:
MP_MAX_MESSAGES: 5000
MP_DATA_FILE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
Background:
I was trying to debug an email that was supose to have a CC aswell. Turns out mailhog wont let you view the cc:ed email.
Long story short, use mailpit instead. :/
Docker images
You can view available Docker images on https://hub.docker.com/r/axllent/mailpit.
A basic example of running Mailpit within Docker:
You need to ensure you map the correct ports (default Web UI on 8025 and SMTP on 1025).
Setting Mailpit options
View all runtime options (flags & environment variables). Environment variables can be set using the
-eflag when starting your docker container, for instance:Docker compose example