Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions docs/extra-services.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,29 @@ The currently supported packages are:
>
> We recommend that you use the `composer require` command inside the container
> in development mode so that recipes can be applied correctly.

## Using Another Email Catcher

The `symfony/mailer` recipe installs Mailpit.
Any other SMTP catcher works in the same place.
To use [Mailtrap Local](https://github.com/mailtrap/mailtrap-local) instead,
replace the `mailer` service in `compose.override.yaml`:

```yaml
mailer:
image: mailtrap/mailtrap-local
ports:
- "3535"
- "3550"
```

Mailtrap Local needs no environment variables.
The recipe sets `MAILER_DSN=null://null`, so change that line in `.env`:

```dotenv
MAILER_DSN=smtp://mailer:3535
```

Port 3550 serves both the web interface and the JSON API.
Neither port is published on a fixed host port.
Run `docker compose port mailer 3550` to get the web interface address.