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 when it is running on the 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.