Add SMTP server and configs

pull/1/head
Jason Kendall 2020-02-12 11:01:14 -05:00
parent 5a28107595
commit bc6c21e4a7
2 changed files with 24 additions and 12 deletions

View File

@ -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

View File

@ -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',