This commit is contained in:
Andris Reinman 2017-12-27 13:59:51 +02:00
parent 9662b85041
commit 9928f58097
3 changed files with 18 additions and 13 deletions

View file

@ -67,19 +67,22 @@ class Maildropper {
break;
case 'relay':
(Array.isArray(options.to) ? options.to : [].concat(options.to || [])).forEach(to => {
let relayData = target.value;
if (typeof relayData === 'string') {
relayData = tools.getRelayData(relayData);
}
deliveries.push({
to,
mx: relayData.mx,
mxPort: relayData.mxPort,
mxAuth: relayData.mxAuth,
mxSecure: relayData.mxSecure
[]
.concat(options.to || [])
.concat(target.recipient || [])
.forEach(to => {
let relayData = target.value;
if (typeof relayData === 'string') {
relayData = tools.getRelayData(relayData);
}
deliveries.push({
to,
mx: relayData.mx,
mxPort: relayData.mxPort,
mxAuth: relayData.mxAuth,
mxSecure: relayData.mxSecure
});
});
});
break;
case 'http':

View file

@ -1,6 +1,6 @@
{
"name": "wildduck",
"version": "1.0.97",
"version": "1.0.98",
"description": "IMAP server built with Node.js and MongoDB",
"main": "server.js",
"scripts": {

View file

@ -327,6 +327,8 @@ npm install --unsafe-perm --production
chown -R deploy:deploy /var/opt/zone-mta.git
chown -R deploy:deploy /opt/zone-mta
# DKIM key must be readable to wildduck process
chown wildduck:wildduck /opt/zone-mta/keys/wildduck.email-dkim.pem
echo '[Unit]
Description=Zone Mail Transport Agent