Commit 71cbb577 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

Merge branch 'MLAB-522-fix' into 'testing'

Mlab 522 fix

See merge request !92
parents b964d60e 6d7dd19f
Pipeline #4344 passed with stage
in 11 seconds
......@@ -28,6 +28,7 @@ module.exports = {
host: 'mailhost', // hostname
secureConnection: false, // TLS requires secureConnection to be false
port: 587, // port for secure SMTP
TLS: true, // sets requireTLS
authUser: 'mailuser',
authPass: 'mailpass',
tlsCiphers: 'SSLv3',
......@@ -66,6 +67,7 @@ module.exports = {
host: 'mailhost', // hostname
secureConnection: false, // TLS requires secureConnection to be false
port: 587, // port for secure SMTP
TLS: true, // sets requireTLS
authUser: 'mailuser',
authPass: 'mailpass',
tlsCiphers: 'SSLv3',
......@@ -75,4 +77,4 @@ module.exports = {
token_readWriteProjects: 'token-goes-here'
}
}
}
\ No newline at end of file
}
const nodemailer = require('nodemailer')
const nodemailer = require('nodemailer');
const nodemailerNTLMAuth = require('nodemailer-ntlm-auth');
var env = process.env.NODE_ENV || 'testing';
const config = require('./config')[env]
......@@ -7,9 +9,18 @@ var smtpTransport = nodemailer.createTransport({
host: config.mailer.host,
secure: config.mailer.secureConnection,
port: config.mailer.port,
requireTLS: config.mailer.TLS,
auth: {
type: 'custom',
method: 'NTLM',
user: config.mailer.authUser,
pass: config.mailer.authPass
pass: config.mailer.authPass,
options: {
domain: 'ad'
}
},
customAuth:{
NTLM: nodemailerNTLMAuth
}
});
......@@ -25,4 +36,4 @@ var mailer = {
options: mailOptions
}
module.exports = mailer
\ No newline at end of file
module.exports = mailer
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment