From b4f8b63abc93b0395f6f43f33fff9959d44dc235 Mon Sep 17 00:00:00 2001 From: Rezart Qelibari Date: Wed, 23 Oct 2019 23:20:28 +0200 Subject: [PATCH] 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. --- lib/user-handler.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/user-handler.js b/lib/user-handler.js index e4560a34..23f062ed 100644 --- a/lib/user-handler.js +++ b/lib/user-handler.js @@ -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 = {