mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-03-01 18:35:09 +08:00
Fix missing addrview error
ZoneMTA wildduck plugin uses wildduck's user handler for address resolution. A missing field in the projections map caused envelop from addresses in outgoing messages that matched a wildcard address of the user to be rejected by ZoneMTA wildduck plugin because of the error thrown in the user handler of wildduck.
This commit is contained in:
parent
4c1cd4210a
commit
b4f8b63abc
1 changed files with 3 additions and 0 deletions
|
@ -132,6 +132,9 @@ class UserHandler {
|
|||
return false;
|
||||
}
|
||||
|
||||
// Add addrview to projection as we will need it down further for
|
||||
// matching the right wildcard partial address.
|
||||
projection['addrview'] = true;
|
||||
let partialWildcards = tools.getWildcardAddresses(username, domain);
|
||||
|
||||
let query = {
|
||||
|
|
Loading…
Reference in a new issue