Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Improve docs for SMTP local development
Carlos Monastyrski025c15944e53
diff --git a/.env.dev.example b/.env.dev.exampleindex f67488c23e..6241887332 100644--- a/.env.dev.example+++ b/.env.dev.example@@ -24,11 +24,13 @@ REDIS_URL=redis://redis:6379SITE_URL=http://localhost:8080# Mail/SMTP-SMTP_HOST=-SMTP_PORT=-SMTP_FROM_ADDRESS=-SMTP_FROM_NAME=-SMTP_USERNAME=++SMTP_HOST=host.docker.internal+SMTP_PORT=1025+SMTP_NAME=local+SMTP_REQUIRE_TLS=falseSMTP_PASSWORD=# Integrationdiff --git a/docs/contributing/platform/developing.mdx b/docs/contributing/platform/developing.mdxindex bb84d8846b..e4e314db32 100644--- a/docs/contributing/platform/developing.mdx+++ b/docs/contributing/platform/developing.mdx@@ -32,6 +32,25 @@ docker compose -f docker-compose.dev.yml up --build --force-recreateOnce all the services have spun up, browse to http://localhost:8080.+#### Local SMTP with Mailhog++The dev Docker Compose includes [Mailhog](https://github.com/mailhog/MailHog), a local SMTP server that captures all outgoing emails. This is useful for testing email-based flows like user invitations, password resets, and other notifications without sending real emails.++The `.env.dev.example` file already includes the SMTP variables pre-configured for Mailhog — no extra setup is needed.++| Variable | Value |+|---|---|+| `SMTP_HOST` | `host.docker.internal` |+| `SMTP_PORT` | `1025` |+| `SMTP_NAME` | `local` |+| `SMTP_FROM_ADDRESS` | `[email protected]` |+| `SMTP_FROM_NAME` | `Infisical Local` |+| `SMTP_REQUIRE_TLS` | `false` |+| `SMTP_USERNAME` | `[email protected]` |+| `SMTP_PASSWORD` | _(empty)_ |++To view captured emails, open the Mailhog web UI at [http://localhost:8025](http://localhost:8025).+#### Shutdown local server```bash