Only starttls is supported by haraka

In addition, auth_type has to be set to PLAIN (or LOGIN)
This commit is contained in:
Girish Ramakrishnan
2017-06-29 19:44:17 -05:00
parent c07df68558
commit 1c40e51999
4 changed files with 5 additions and 18 deletions

View File

@@ -146,7 +146,6 @@ function setMailRelay(req, res, next) {
if (typeof req.body.provider !== 'string') return next(new HttpError(400, 'provider is required'));
if ('host' in req.body && typeof req.body.host !== 'string') return next(new HttpError(400, 'host must be a string'));
if ('port' in req.body && typeof req.body.port !== 'number') return next(new HttpError(400, 'port must be a string'));
if ('tls' in req.body && typeof req.body.tls !== 'boolean') return next(new HttpError(400, 'tls must be a boolean'));
if ('username' in req.body && typeof req.body.username !== 'string') return next(new HttpError(400, 'username must be a string'));
if ('password' in req.body && typeof req.body.password !== 'string') return next(new HttpError(400, 'password must be a string'));