mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-28 10:47:45 +08:00
v1.0.98
This commit is contained in:
parent
9662b85041
commit
9928f58097
3 changed files with 18 additions and 13 deletions
|
@ -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':
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue