mirror of
https://github.com/cytopia/devilbox.git
synced 2025-04-08 03:24:15 +00:00
Refs #642 Make email catch-all configurable
This commit is contained in:
parent
266c5b84a3
commit
6fa7a84bd3
@ -135,7 +135,7 @@ services:
|
||||
##
|
||||
## Mail-catching
|
||||
##
|
||||
- ENABLE_MAIL=2
|
||||
- ENABLE_MAIL=${PHP_MAIL_CATCH_ALL:-2}
|
||||
|
||||
##
|
||||
## Enable 127.0.0.1 Port-forwarding
|
||||
|
@ -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
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
|
19
env-example
19
env-example
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user