Email delivery
Choose the SMTP provider for each generated project. ZITADEL generates account verification and password recovery messages. Application modules send their own messages through the Go Sender interface. The two senders configure their credentials independently and can share a relay.
Local inbox
Run docker compose -f compose.mail.yaml up -d. Mailpit accepts SMTP on
localhost:1025 and shows captured messages at http://localhost:8025. A process
on the same Compose network can use mailpit:1025. A remote ZITADEL instance
needs a relay reachable from its own network.
From a checkout with Go installed, send an application smoke message:
SMTP_HOST=127.0.0.1 SMTP_PORT=1025 SMTP_TLS=off SMTP_FROM=starter@example.test \
go run ./backend/cmd/mail-check -to developer@example.testConfigure a project relay
For application mail, set SMTP_HOST, SMTP_PORT, SMTP_FROM and SMTP_TLS. Use starttls for submission with STARTTLS or implicit for TLS from connection start. Supply SMTP_USERNAME and SMTP_PASSWORD through secret configuration when the relay requires authentication.
In the ZITADEL instance settings, open Email Providers, add an SMTP provider, enter the relay host and port, sender address and TLS/authentication settings, test the configuration and activate it. For local testing use Mailpit with TLS and authentication disabled on the private development network. Configure the sending domain and its DNS records with the chosen provider.
Acceptance
With a disposable user, complete registration, open the verification message in the inbox, and verify the address. Request a password reset, complete it with the received link or code, and sign in using the new password. Before release, repeat on a configured development tenant with the intended relay and a designated test mailbox. Record the outcome without copying verification codes, passwords or reset links into the repository.
Run sh tools/integration/check-mail.sh to test the application sender.
Run sh tools/identity-mail/check.sh to start an isolated ZITADEL instance,
create a disposable user through its API, and verify the codes delivered to
Mailpit. The second check exercises the identity service directly. To verify
the deployed browser flow, use the registration and recovery steps above.