This commit is contained in:
Andris Reinman 2017-11-13 15:53:38 +02:00
parent ee35078ce4
commit dc2255dbe7

View file

@ -167,19 +167,23 @@ module.exports = (options, callback) => {
});
break;
case 'relay':
deliveries.push({
to: options.to,
mx: target.value.mx,
mxPort: target.value.mxPort,
mxAuth: target.value.mxAuth,
mxSecure: target.value.mxSecure
(Array.isArray(options.to) ? options.to : [].concat(options.to || [])).forEach(to => {
deliveries.push({
to,
mx: target.value.mx,
mxPort: target.value.mxPort,
mxAuth: target.value.mxAuth,
mxSecure: target.value.mxSecure
});
});
break;
case 'http':
deliveries.push({
to: options.to,
http: true,
targetUrl: target.value
(Array.isArray(options.to) ? options.to : [].concat(options.to || [])).forEach(to => {
deliveries.push({
to,
http: true,
targetUrl: target.value
});
});
break;
}