Skip to content

Mailpit

Mailpit captures outgoing email from project containers and provides a web UI for inspection. It runs as a global service (started by system:up).

The Mailpit web interface is accessible at:

Configure your project to send mail through Mailpit’s SMTP server:

SettingValue
SMTP Hostmail (network alias)
SMTP Port1025
AuthenticationNone
EncryptionNone
smtp://mail:1025

When a project’s docker-compose.yml contains a mailpit service, dde automatically injects MAILER_DSN=smtp://mailpit:1025 into the primary service. The variable is only added if it is not already defined in the service environment or in the project’s .env/.env.dev files.

Note: The auto-injected DSN uses mailpit as the hostname (the compose service name), while the global Mailpit service uses the network alias mail. Both resolve to the same container — project:up attaches dde-mailpit to each project’s per-project network with the mail alias, so existing configurations that use smtp://mail:1025 keep working after the project containers were isolated from the shared dde network.

Mailpit runs as a global service (started by system:up). It can also be declared as a project service in .dde/config.yml, but dde prevents starting a second instance of the same service.