Refs #642 Make email catch-all configurable

This commit is contained in:
cytopia 2020-01-04 17:03:42 +01:00
parent 266c5b84a3
commit 6fa7a84bd3
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
3 changed files with 50 additions and 1 deletions

View File

@ -135,7 +135,7 @@ services:
##
## Mail-catching
##
- ENABLE_MAIL=2
- ENABLE_MAIL=${PHP_MAIL_CATCH_ALL:-2}
##
## Enable 127.0.0.1 Port-forwarding

View File

@ -1164,6 +1164,36 @@ Example:
# Disable Xdebug, Imagick and Swoole
PHP_MODULES_DISABLE=xdebug,imagick,swoole
PHP_MAIL_CATCH_ALL
^^^^^^^^^^^^^^^^^^
Postfix settings for email catch-all.
When set to ``0`` postfix will be disabled and not started.
When set to ``1`` postfix is normally started and made available. However you still need
to configure it to your needs yourself. For that you can use the autostart scripts
and define a couple of ``postconf -e name=value`` commands.
When set to ``2`` (email catch-all) postfix is started, but no mail will leave the Devilbox. It is automatically
internally routed the the devilbox mail account and you can see each sent mail
in the bundled intranet: https://localhost/mail.php
+-------------------------+--------------------------------------+---------------------------------------------------+
| Name | Allowed values | Default value |
+=========================+======================================+===================================================+
| ``PHP_MAIL_CATCH_ALL`` | ``0``, ``1``, ``2`` | ``2`` |
+-------------------------+--------------------------------------+---------------------------------------------------+
Example:
.. code-block:: bash
:caption: .env
:emphasize-lines: 2
# Enable Postfix without email catch-all
PHP_MAIL_CATCH_ALL=1
Custom variables
^^^^^^^^^^^^^^^^

View File

@ -471,6 +471,25 @@ PHP_MODULES_ENABLE=
PHP_MODULES_DISABLE=oci8,PDO_OCI,pdo_sqlsrv,sqlsrv,rdkafka,swoole
###
### Postfix settings for email catch-all
###
### When set to '1' postfix is normally started and made available. However you still need
### to configure it to your needs yourself. For that you can use the autostart scripts
### and define a couple of 'postconf -e name=value' commands.
###
### When set to '2' (email catch-all), no mail will leave the Devilbox. It is automatically
### internally routed the the devilbox mail account and you can see each sent mail
### in the bundled intranet: https://localhost/mail.php
###
### Values:
### 0: Disable postfix (do not start it)
### 1: Enable/Start postfix
### 2: Enable/Start postfix and enable email catch-all
###
PHP_MAIL_CATCH_ALL=2
###
### Configure everything else about PHP in
### * cfg/php-ini-X.X/*.ini