From 5b28654196dbdb8f8a09acc6c6d81e4c42a81459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20J=C3=B8rgensen?= Date: Fri, 6 Oct 2023 11:12:21 +0200 Subject: [PATCH] Add documentation on the mail setup Remove todo list. --- README.md | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index cce592b..c16ca85 100644 --- a/README.md +++ b/README.md @@ -231,16 +231,26 @@ logged in. ## Mail -@todo - -## TODO - -- [x] Make sure @dependabot can keep the various PHP versions up to date -- [ ] Documentation on how to use -- [ ] Documentation on the philosophie behind the images -- [ ] Documentation on how to migrate from [old Reload images](https://github.com/reload/docker-drupal-php7-fpm) -- [x] Find better way to determine document root -- [x] Drupal specific configuration (I know how I want this done) -- [x] Blackfire integration -- [x] Xdebug integration -- [x] Run goss test on GitHub CI +The image has [`mstmp`](https://marlam.de/msmtp/) installed. `msmtp` +is an SMTP client. + +For simple development setups we recommend combining it with +[Mailpit](https://github.com/axllent/mailpit): + +```yaml + php: + image: ghcr.io/reload/php-fpm:8.2 + environment: + SMTPSERVER: mail + mail: + image: axllent/mailpit + ports: + - '25' + - '80' + environment: + MP_SMTP_BIND_ADDR: '0.0.0.0:25' + MP_UI_BIND_ADDR: '0.0.0.0:80' +``` + +For more advanced usages you can add a system wide configuration file +for msmtp at `/etc/msmtprc` in the php-fpm image.