mirror of https://github.com/MISP/misp-docker
Add SMTP server and configs
parent
5a28107595
commit
bc6c21e4a7
|
@ -1,5 +1,10 @@
|
||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
|
# This is capible to relay via gmail, Amazon SES, or generic relays
|
||||||
|
# See: https://hub.docker.com/r/namshi/smtp
|
||||||
|
mail:
|
||||||
|
image: namshi/smtp
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:5.0.6
|
image: redis:5.0.6
|
||||||
|
|
||||||
|
|
|
@ -45,20 +45,27 @@ class EmailConfig {
|
||||||
|
|
||||||
// to set the return-path header, simply uncomment the line below and change you@localhost to the desired e-mail address
|
// to set the return-path header, simply uncomment the line below and change you@localhost to the desired e-mail address
|
||||||
public $default = array(
|
public $default = array(
|
||||||
'transport' => 'Mail',
|
'transport' => 'Smtp',
|
||||||
'charset' => 'utf-8',
|
'from' => array('misp-dev@admin.test' => 'Misp DEV'),
|
||||||
'headers' => array('Precedence' => 'bulk'),
|
'host' => 'mail',
|
||||||
//'additionalParameters' => '-f you@localhost'
|
'port' => 25,
|
||||||
|
'timeout' => 30,
|
||||||
|
// 'username' => 'user',
|
||||||
|
// 'password' => 'secret',
|
||||||
|
'client' => null,
|
||||||
|
'log' => false,
|
||||||
|
//'charset' => 'utf-8',
|
||||||
|
//'headerCharset' => 'utf-8',
|
||||||
);
|
);
|
||||||
|
|
||||||
public $smtp = array(
|
public $smtp = array(
|
||||||
'transport' => 'Smtp',
|
'transport' => 'Smtp',
|
||||||
'from' => array('site@localhost' => 'My Site'),
|
'from' => array('misp-dev@admin.test' => 'Misp DEV'),
|
||||||
'host' => 'localhost',
|
'host' => 'mail',
|
||||||
'port' => 25,
|
'port' => 25,
|
||||||
'timeout' => 30,
|
'timeout' => 30,
|
||||||
'username' => 'user',
|
// 'username' => 'user',
|
||||||
'password' => 'secret',
|
// 'password' => 'secret',
|
||||||
'client' => null,
|
'client' => null,
|
||||||
'log' => false,
|
'log' => false,
|
||||||
//'charset' => 'utf-8',
|
//'charset' => 'utf-8',
|
||||||
|
@ -66,7 +73,7 @@ class EmailConfig {
|
||||||
);
|
);
|
||||||
|
|
||||||
public $fast = array(
|
public $fast = array(
|
||||||
'from' => 'you@localhost',
|
'from' => 'misp-dev@admin.test',
|
||||||
'sender' => null,
|
'sender' => null,
|
||||||
'to' => null,
|
'to' => null,
|
||||||
'cc' => null,
|
'cc' => null,
|
||||||
|
@ -85,11 +92,11 @@ class EmailConfig {
|
||||||
'attachments' => null,
|
'attachments' => null,
|
||||||
'emailFormat' => null,
|
'emailFormat' => null,
|
||||||
'transport' => 'Smtp',
|
'transport' => 'Smtp',
|
||||||
'host' => 'localhost',
|
'host' => 'mail',
|
||||||
'port' => 25,
|
'port' => 25,
|
||||||
'timeout' => 30,
|
'timeout' => 30,
|
||||||
'username' => 'user',
|
// 'username' => 'user',
|
||||||
'password' => 'secret',
|
// 'password' => 'secret',
|
||||||
'client' => null,
|
'client' => null,
|
||||||
'log' => true,
|
'log' => true,
|
||||||
//'charset' => 'utf-8',
|
//'charset' => 'utf-8',
|
||||||
|
|
Loading…
Reference in New Issue