Skip to content

Commit 24ba575

Browse files
authored
fix: ZMSA-64: on API outbound email sends add passwordType: master to envelope object (#978)
1 parent 2b1ae94 commit 24ba575

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

lib/api/messages.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4111,6 +4111,7 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler, setti
41114111
to: envelope.to,
41124112
sendTime,
41134113
origin: options.origin || options.ip,
4114+
passwordType: 'master',
41144115
runPlugins: true,
41154116
mtaRelay: userData.mtaRelay || false
41164117
},

lib/api/submit.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ module.exports = (db, server, messageHandler, userHandler, settingsHandler) => {
470470
to: compiledEnvelope.to,
471471
sendTime,
472472
origin: options.ip,
473+
passwordType: 'master',
473474
runPlugins: true,
474475
mtaRelay: userData.mtaRelay || false
475476
},

lib/maildropper.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ class Maildropper {
105105
envelope.user = options.userEmail;
106106
}
107107

108+
if (options.passwordType) {
109+
envelope.passwordType = options.passwordType;
110+
}
111+
108112
if (options.parentId) {
109113
envelope.parentId = options.parentId;
110114
}

0 commit comments

Comments
 (0)