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; break;
case 'relay': case 'relay':
deliveries.push({ (Array.isArray(options.to) ? options.to : [].concat(options.to || [])).forEach(to => {
to: options.to, deliveries.push({
mx: target.value.mx, to,
mxPort: target.value.mxPort, mx: target.value.mx,
mxAuth: target.value.mxAuth, mxPort: target.value.mxPort,
mxSecure: target.value.mxSecure mxAuth: target.value.mxAuth,
mxSecure: target.value.mxSecure
});
}); });
break; break;
case 'http': case 'http':
deliveries.push({ (Array.isArray(options.to) ? options.to : [].concat(options.to || [])).forEach(to => {
to: options.to, deliveries.push({
http: true, to,
targetUrl: target.value http: true,
targetUrl: target.value
});
}); });
break; break;
} }