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:
Rezart Qelibari 2019-10-23 23:20:28 +02:00
parent 4c1cd4210a
commit b4f8b63abc

View file

@ -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 = {