File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ trap term_proc SIGTERM
18
18
[ -z " $BASE_URL " ] && export BASE_URL=" https://localhost"
19
19
[ -z " $DISABLE_IPV6 " ] && export DISABLE_IPV6=false
20
20
[ -z " $DISABLE_SSL_REDIRECT " ] && export DISABLE_SSL_REDIRECT=false
21
+ [ -z " $SMTP_FQDN " ] && export SMTP_FQDN=mail
21
22
22
23
init_mysql (){
23
24
# Test when MySQL is ready....
@@ -93,7 +94,7 @@ class EmailConfig {
93
94
public \$ default = array(
94
95
'transport' => 'Smtp',
95
96
'from' => array('[email protected] ' => 'Misp DEV'),
96
- 'host' => 'mail ',
97
+ 'host' => '$SMTP_FQDN ',
97
98
'port' => 25,
98
99
'timeout' => 30,
99
100
'client' => null,
@@ -102,7 +103,7 @@ class EmailConfig {
102
103
public \$ smtp = array(
103
104
'transport' => 'Smtp',
104
105
'from' => array('[email protected] ' => 'Misp DEV'),
105
- 'host' => 'mail ',
106
+ 'host' => '$SMTP_FQDN ',
106
107
'port' => 25,
107
108
'timeout' => 30,
108
109
'client' => null,
@@ -128,7 +129,7 @@ class EmailConfig {
128
129
'attachments' => null,
129
130
'emailFormat' => null,
130
131
'transport' => 'Smtp',
131
- 'host' => 'mail ',
132
+ 'host' => '$SMTP_FQDN ',
132
133
'port' => 25,
133
134
'timeout' => 30,
134
135
'client' => null,
Original file line number Diff line number Diff line change @@ -158,6 +158,8 @@ services:
158
158
- " MYSQL_DATABASE=${MYSQL_DATABASE:-misp}"
159
159
# Debug setting
160
160
- " DEBUG=${DEBUG}"
161
+ # SMTP setting
162
+ - " SMTP_FQDN=${SMTP_FQDN}"
161
163
162
164
misp-modules :
163
165
image : ghcr.io/misp/misp-docker/misp-modules:latest
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ BASE_URL=
44
44
# store settings in db except those that must stay in config.php. true/false, defaults to false
45
45
ENABLE_DB_SETTINGS =
46
46
47
+ # Defines what mail system to use defaults to 'mail' which is provided in docker-compose.yml
48
+ SMTP_FQDN = mail
49
+
47
50
# optional and used by the mail sub-system
48
51
SMARTHOST_ADDRESS =
49
52
SMARTHOST_PORT =
You can’t perform that action at this time.
0 commit comments