Add SMTP server and configs

This commit is contained in:
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'
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:
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
public $default = array(
'transport' => 'Mail',
'charset' => 'utf-8',
'headers' => array('Precedence' => 'bulk'),
//'additionalParameters' => '-f you@localhost'
'transport' => 'Smtp',
'from' => array('misp-dev@admin.test' => 'Misp DEV'),
'host' => 'mail',
'port' => 25,
'timeout' => 30,
// 'username' => 'user',
// 'password' => 'secret',
'client' => null,
'log' => false,
//'charset' => 'utf-8',
//'headerCharset' => 'utf-8',
);
public $smtp = array(
'transport' => 'Smtp',
'from' => array('site@localhost' => 'My Site'),
'host' => 'localhost',
'from' => array('misp-dev@admin.test' => 'Misp DEV'),
'host' => 'mail',
'port' => 25,
'timeout' => 30,
'username' => 'user',
'password' => 'secret',
// 'username' => 'user',
// 'password' => 'secret',
'client' => null,
'log' => false,
//'charset' => 'utf-8',
@ -66,7 +73,7 @@ class EmailConfig {
);
public $fast = array(
'from' => 'you@localhost',
'from' => 'misp-dev@admin.test',
'sender' => null,
'to' => null,
'cc' => null,
@ -85,11 +92,11 @@ class EmailConfig {
'attachments' => null,
'emailFormat' => null,
'transport' => 'Smtp',
'host' => 'localhost',
'host' => 'mail',
'port' => 25,
'timeout' => 30,
'username' => 'user',
'password' => 'secret',
// 'username' => 'user',
// 'password' => 'secret',
'client' => null,
'log' => true,
//'charset' => 'utf-8',