emailengine-app 2.79.8 → 2.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/.github/dependabot.yml +22 -0
  2. package/.github/workflows/test.yml +39 -0
  3. package/.release-please-manifest.json +1 -1
  4. package/CHANGELOG.md +69 -0
  5. package/DOCKER_DEPLOYMENT.md +6 -7
  6. package/Dockerfile +35 -11
  7. package/config/default.toml +7 -2
  8. package/copy-static-files.sh +23 -5
  9. package/data/google-crawlers.json +1 -1
  10. package/encrypt.js +43 -0
  11. package/lib/account/account-state.js +62 -0
  12. package/lib/account.js +60 -3
  13. package/lib/api-routes/account-routes.js +20 -0
  14. package/lib/api-routes/bull-board-routes.js +3 -2
  15. package/lib/api-routes/index.js +1 -1
  16. package/lib/api-routes/route-helpers.js +8 -0
  17. package/lib/api-routes/settings-routes.js +17 -2
  18. package/lib/auth-token.js +73 -2
  19. package/lib/autodetect-imap-settings.js +379 -69
  20. package/lib/cert-handler.js +62 -0
  21. package/lib/consts.js +58 -7
  22. package/lib/db.js +12 -0
  23. package/lib/egress-fetch.js +145 -0
  24. package/lib/email-client/base-client.js +234 -66
  25. package/lib/email-client/credential-errors.js +118 -0
  26. package/lib/email-client/gmail/gmail-api.js +2 -1
  27. package/lib/email-client/gmail-client.js +70 -64
  28. package/lib/email-client/imap/connection-errors.js +52 -0
  29. package/lib/email-client/imap/listing-diff.js +47 -6
  30. package/lib/email-client/imap/mailbox.js +457 -379
  31. package/lib/email-client/imap/subconnection.js +15 -11
  32. package/lib/email-client/imap/sync-operations.js +46 -59
  33. package/lib/email-client/imap-client.js +136 -95
  34. package/lib/email-client/message-builder.js +11 -11
  35. package/lib/email-client/outlook/graph-api.js +2 -1
  36. package/lib/email-client/outlook-client.js +219 -106
  37. package/lib/export.js +35 -2
  38. package/lib/handlebars-helpers.js +129 -0
  39. package/lib/imap-proxy-auth.js +96 -21
  40. package/lib/imapproxy/imap-core/README.md +1 -0
  41. package/lib/imapproxy/imap-core/lib/tls-options.js +5 -46
  42. package/lib/imapproxy/imap-server.js +56 -66
  43. package/lib/lua/h-del-if-equals.lua +39 -0
  44. package/lib/lua/h-set-if-equals.lua +39 -0
  45. package/lib/openapi/index.js +3 -0
  46. package/lib/outbox.js +28 -3
  47. package/lib/rate-limit.js +23 -4
  48. package/lib/routes-ui.js +4 -34
  49. package/lib/schemas.js +42 -3
  50. package/lib/security-headers.js +411 -0
  51. package/lib/sentry.js +36 -4
  52. package/lib/smtp-auth.js +86 -7
  53. package/lib/tls/context.js +376 -0
  54. package/lib/tls/der.js +223 -0
  55. package/lib/tls/provision.js +555 -0
  56. package/lib/tls/self-signed.js +282 -0
  57. package/lib/tls/status.js +431 -0
  58. package/lib/tls/store.js +666 -0
  59. package/lib/tools.js +337 -147
  60. package/lib/ui-routes/account-routes.js +47 -33
  61. package/lib/ui-routes/admin-config-routes.js +22 -1
  62. package/lib/ui-routes/auth-routes.js +16 -1
  63. package/lib/ui-routes/export-routes.js +4 -0
  64. package/lib/ui-routes/internals-routes.js +3 -5
  65. package/lib/ui-routes/mcp-consent-routes.js +7 -0
  66. package/lib/ui-routes/network-config-routes.js +58 -48
  67. package/lib/ui-routes/route-helpers.js +24 -8
  68. package/lib/ui-routes/smtp-test-routes.js +7 -0
  69. package/lib/ui-routes/tls-config-routes.js +581 -0
  70. package/lib/utils/mailbox-path.js +51 -0
  71. package/lib/utils/severity.js +31 -0
  72. package/lib/webhook-egress.js +5 -0
  73. package/package.json +21 -24
  74. package/sbom.json +1 -1
  75. package/server.js +53 -36
  76. package/static/css/flyonui.css +1 -1
  77. package/static/css/src/app.tailwind.css +11 -0
  78. package/static/js/ace/css/ace.css +1462 -0
  79. package/static/js/ace/css/kuroir-1.png +0 -0
  80. package/static/js/ace/css/kuroir-2.png +0 -0
  81. package/static/js/ace/css/main-1.png +0 -0
  82. package/static/js/ace/css/main-10.svg +4 -0
  83. package/static/js/ace/css/main-11.svg +5 -0
  84. package/static/js/ace/css/main-12.svg +4 -0
  85. package/static/js/ace/css/main-13.png +0 -0
  86. package/static/js/ace/css/main-14.png +0 -0
  87. package/static/js/ace/css/main-15.png +0 -0
  88. package/static/js/ace/css/main-16.png +0 -0
  89. package/static/js/ace/css/main-17.png +0 -0
  90. package/static/js/ace/css/main-18.png +0 -0
  91. package/static/js/ace/css/main-19.png +0 -0
  92. package/static/js/ace/css/main-2.png +0 -0
  93. package/static/js/ace/css/main-20.png +0 -0
  94. package/static/js/ace/css/main-21.png +0 -0
  95. package/static/js/ace/css/main-22.png +0 -0
  96. package/static/js/ace/css/main-23.png +0 -0
  97. package/static/js/ace/css/main-24.png +0 -0
  98. package/static/js/ace/css/main-25.svg +1 -0
  99. package/static/js/ace/css/main-26.png +0 -0
  100. package/static/js/ace/css/main-3.png +0 -0
  101. package/static/js/ace/css/main-4.png +0 -0
  102. package/static/js/ace/css/main-5.svg +7 -0
  103. package/static/js/ace/css/main-6.svg +9 -0
  104. package/static/js/ace/css/main-7.svg +7 -0
  105. package/static/js/ace/css/main-8.svg +9 -0
  106. package/static/js/ace/css/main-9.svg +6 -0
  107. package/static/js/ace/css/theme/kuroir.css +78 -0
  108. package/static/js/ace/css/theme/tomorrow_night.css +128 -0
  109. package/static/js/ace/css/theme/tomorrow_night_eighties.css +128 -0
  110. package/static/js/ace/css/theme/xcode.css +106 -0
  111. package/static/js/ace/css/tomorrow_night-1.png +0 -0
  112. package/static/js/ace/css/tomorrow_night-2.png +0 -0
  113. package/static/js/ace/css/tomorrow_night_eighties-1.png +0 -0
  114. package/static/js/ace/css/tomorrow_night_eighties-2.png +0 -0
  115. package/static/js/ace/css/xcode-1.png +0 -0
  116. package/static/js/ace/css/xcode-2.png +0 -0
  117. package/static/js/app.js +34 -0
  118. package/static/js/ee-client.js +256 -102
  119. package/static/js/public.js +13 -2
  120. package/static/js/ui.js +40 -25
  121. package/static/licenses.html +393 -1282
  122. package/static/vendor/simplewebauthn/browser.min.js +2 -2
  123. package/translations/messages.pot +203 -157
  124. package/views/account/login-redirect.hbs +22 -0
  125. package/views/accounts/account.hbs +15 -37
  126. package/views/accounts/browse.hbs +3 -1
  127. package/views/accounts/edit.hbs +1 -1
  128. package/views/accounts/register/imap-server.hbs +1 -1
  129. package/views/config/ai.hbs +1 -1
  130. package/views/config/branding.hbs +2 -2
  131. package/views/config/document-store/chat.hbs +1 -1
  132. package/views/config/document-store/index.hbs +1 -1
  133. package/views/config/imap-proxy.hbs +1 -4
  134. package/views/config/license.hbs +1 -1
  135. package/views/config/mcp.hbs +1 -1
  136. package/views/config/network.hbs +14 -16
  137. package/views/config/oauth/app.hbs +2 -2
  138. package/views/config/service.hbs +1 -1
  139. package/views/config/smtp.hbs +1 -4
  140. package/views/config/tls-upload.hbs +81 -0
  141. package/views/config/tls.hbs +492 -0
  142. package/views/config/webhooks.hbs +2 -2
  143. package/views/error.hbs +4 -2
  144. package/views/internals/index.hbs +1 -1
  145. package/views/layout/app.hbs +3 -11
  146. package/views/mcp/authorize.hbs +1 -1
  147. package/views/partials/ace_assets.hbs +13 -0
  148. package/views/partials/add_account_modal.hbs +1 -1
  149. package/views/partials/address_list.hbs +4 -4
  150. package/views/partials/filter_editor_js.hbs +2 -2
  151. package/views/partials/gateway_js.hbs +1 -1
  152. package/views/partials/oauth_form.hbs +1 -1
  153. package/views/partials/public_theme_init.hbs +1 -1
  154. package/views/partials/side_menu.hbs +1 -0
  155. package/views/partials/template_form.hbs +2 -2
  156. package/views/partials/test_send.hbs +7 -4
  157. package/views/partials/theme_init.hbs +1 -1
  158. package/views/partials/tls_security_card.hbs +25 -53
  159. package/views/partials/ui/alert-banner.hbs +3 -2
  160. package/views/partials/ui/badge.hbs +6 -2
  161. package/views/partials/ui/btn.hbs +5 -2
  162. package/views/partials/ui/details.hbs +2 -2
  163. package/views/partials/webhooks_editor_functions.hbs +1 -1
  164. package/views/reference/redirect.hbs +1 -1
  165. package/views/templates/template.hbs +2 -2
  166. package/views/tokens/new.hbs +1 -1
  167. package/views/unsubscribe.hbs +1 -1
  168. package/views/webhooks/webhook.hbs +2 -2
  169. package/workers/api.js +131 -242
  170. package/workers/export.js +1 -5
  171. package/workers/imap-proxy.js +4 -1
  172. package/workers/imap.js +1 -3
  173. package/workers/smtp.js +59 -83
  174. package/workers/submit.js +6 -12
  175. package/workers/webhooks.js +6 -17
  176. package/static/front/EmailEngine_logo_horiz.png +0 -0
  177. package/static/front/EmailEngine_logo_vert.png +0 -0
  178. package/static/front/index.html +0 -57
  179. package/static/front/logo.png +0 -0
  180. package/static/vendor/handlebars/handlebars.min-v4.7.9.js +0 -29
  181. package/views/partials/tls_security_js.hbs +0 -64
  182. package/views/partials/tls_security_modal.hbs +0 -22
package/lib/tools.js CHANGED
@@ -20,7 +20,7 @@ const logger = require('./logger');
20
20
  const Boom = require('@hapi/boom');
21
21
  const { ImapFlow } = require('imapflow');
22
22
  const nodemailer = require('nodemailer');
23
- const { parentPort } = require('worker_threads');
23
+ const { parentPort, workerData } = require('worker_threads');
24
24
  const punycode = require('punycode.js');
25
25
  const { PassThrough } = require('stream');
26
26
  const socks = require('socks');
@@ -33,6 +33,7 @@ const mimeTypes = require('nodemailer/lib/mime-funcs/mime-types');
33
33
  const { v3: murmurhash } = require('murmurhash');
34
34
  const { isEmail } = require('./utils/is-email');
35
35
  const { toCamelCase } = require('./utils/to-camel-case');
36
+ const { normalizePath } = require('./utils/mailbox-path');
36
37
  const { compare: compareVersions, validate: validateVersion } = require('compare-versions');
37
38
  const {
38
39
  REDIS_PREFIX,
@@ -52,7 +53,7 @@ const bullmqPackage = require('bullmq/package.json');
52
53
  // Network utilities - imported for internal use only
53
54
  const { getLocalAddress } = require('./utils/network');
54
55
 
55
- const { fetch: fetchCmd, Agent, RetryAgent, ProxyAgent } = require('undici');
56
+ const { fetch: fetchCmd, Agent, RetryAgent, ProxyAgent, Dispatcher } = require('undici');
56
57
  const tls = require('tls');
57
58
  const { SocksClient } = require('socks');
58
59
  const { createWebhookLookup, WEBHOOK_EGRESS_POLICY } = require('./webhook-egress');
@@ -90,10 +91,11 @@ const RETRY_OPTS = {
90
91
  ]
91
92
  };
92
93
 
93
- // Webhook deliveries are the one outbound path whose destination the operator supplies, so they
94
- // get a dispatcher that resolves through the egress policy (lib/webhook-egress.js) rather than the
95
- // shared resolver. It is built here because its lifetime is tied to the other agents': a proxy
96
- // setting change swaps them all out together.
94
+ // Webhook deliveries and the autodiscovery lookups are the outbound paths whose destination comes
95
+ // from outside (the operator's webhook target, the domain of an email address a caller typed), so
96
+ // they get a dispatcher that resolves through the egress policy (lib/webhook-egress.js) rather
97
+ // than the shared resolver. It is built here because its lifetime is tied to the other agents': a
98
+ // proxy setting change swaps them all out together.
97
99
  //
98
100
  // Deliberately NOT a RetryAgent. A webhook is a POST the receiver acts on, and RETRY_OPTS retries
99
101
  // POSTs on a dropped socket or a 429: a receiver that processed the event and then reset the
@@ -118,19 +120,45 @@ function buildWebhookDispatcher(proxied, existing) {
118
120
 
119
121
  // Shared mutable object -- consumers import the object reference and access
120
122
  // .fetch / .retry / .webhook at call time, so replacing properties here is visible everywhere.
123
+ // Populated by installDispatchers() below, once the module has everything it needs.
121
124
  const httpAgent = {
122
- fetch: new Agent(AGENT_OPTS),
125
+ fetch: null,
123
126
  retry: null,
124
- webhook: null
127
+ webhook: null,
128
+ live: null,
129
+ // the proxy URL the dispatchers were built for, null for direct connections
130
+ proxyUrl: null
125
131
  };
126
- httpAgent.retry = new RetryAgent(httpAgent.fetch, RETRY_OPTS);
127
- httpAgent.webhook = buildWebhookDispatcher(false, null);
128
132
 
129
- // Backward-compat aliases (read from httpAgent at call time via getter)
130
- // backward-compat aliases are defined as getters on module.exports below
133
+ // For consumers that keep one dispatcher reference for their whole lifetime - the ACME client is
134
+ // constructed once per worker - and would otherwise be left on an agent the next proxy settings
135
+ // change closes. Every dispatch is forwarded to whatever httpAgent.fetch is at that moment; the
136
+ // close and destroy calls are no-ops because the agents behind it are owned by the reload.
137
+ class LiveDispatcher extends Dispatcher {
138
+ dispatch(opts, handler) {
139
+ return httpAgent.fetch.dispatch(opts, handler);
140
+ }
141
+
142
+ close(callback) {
143
+ return typeof callback === 'function' ? process.nextTick(callback) : Promise.resolve();
144
+ }
145
+
146
+ destroy(err, callback) {
147
+ return this.close(typeof err === 'function' ? err : callback);
148
+ }
149
+ }
150
+ httpAgent.live = new LiveDispatcher();
131
151
 
152
+ // The settings a change of which rebuilds the shared dispatchers: the global proxy that IMAP and
153
+ // SMTP connections use, which HTTP traffic falls back to, and the dedicated HTTP proxy that
154
+ // overrides it. See resolveHttpProxy() for the precedence.
155
+ const HTTP_PROXY_SETTINGS = ['proxyEnabled', 'proxyUrl', 'httpProxyEnabled', 'httpProxyUrl'];
156
+ const SOCKS_SCHEMES = new Set(['socks', 'socks4', 'socks4a', 'socks5']);
132
157
  const SOCKS4_PROTOCOLS = new Set(['socks4:', 'socks4a:']);
133
158
 
159
+ // Backward-compat aliases (read from httpAgent at call time via getter)
160
+ // backward-compat aliases are defined as getters on module.exports below
161
+
134
162
  // Accounts a stale-useAuthServer warning was already logged for, keyed by account:target.
135
163
  // getActiveAccessTokenData() runs once per API request, so an unconditional warn would repeat
136
164
  // the same line for the lifetime of the stale flag.
@@ -153,47 +181,104 @@ function createSocksAgent(proxyUrl, agentOpts) {
153
181
  proxy.password = parsed.password ? decodeURIComponent(parsed.password) : '';
154
182
  }
155
183
 
156
- return new Agent(
157
- Object.assign({}, agentOpts, {
158
- connect: async opts => {
159
- let { hostname, port, protocol } = opts;
160
- let useTls = protocol === 'https:';
161
-
162
- let info = await SocksClient.createConnection({
163
- proxy,
164
- command: 'connect',
165
- destination: {
166
- host: hostname,
167
- port: Number(port) || (useTls ? 443 : 80)
168
- },
169
- timeout: agentOpts.connectTimeout || 30000
170
- });
184
+ let socksConnect = async opts => {
185
+ let { hostname, port, protocol, servername } = opts;
186
+ let useTls = protocol === 'https:';
171
187
 
172
- let socket = info.socket;
188
+ let info = await SocksClient.createConnection({
189
+ proxy,
190
+ command: 'connect',
191
+ destination: {
192
+ host: hostname,
193
+ port: Number(port) || (useTls ? 443 : 80)
194
+ },
195
+ timeout: agentOpts.connectTimeout || 30000
196
+ });
173
197
 
174
- if (useTls) {
175
- let rawSocket = socket;
176
- socket = tls.connect(Object.assign({ socket: rawSocket, servername: hostname }, TLS_DEFAULTS));
177
- try {
178
- await new Promise((resolve, reject) => {
179
- socket.once('secureConnect', resolve);
180
- socket.once('error', reject);
181
- });
182
- } catch (err) {
183
- socket.destroy();
184
- rawSocket.destroy();
185
- throw err;
186
- }
187
- }
198
+ let socket = info.socket;
199
+
200
+ if (useTls) {
201
+ let rawSocket = socket;
202
+ socket = tls.connect(Object.assign({ socket: rawSocket, servername: servername || hostname }, TLS_DEFAULTS));
203
+ try {
204
+ await new Promise((resolve, reject) => {
205
+ socket.once('secureConnect', resolve);
206
+ socket.once('error', reject);
207
+ });
208
+ } catch (err) {
209
+ socket.destroy();
210
+ rawSocket.destroy();
211
+ throw err;
212
+ }
213
+ }
214
+
215
+ return socket;
216
+ };
188
217
 
189
- return socket;
218
+ // undici hands a custom connector a callback and ignores its return value, so the promise has
219
+ // to be bridged: an async connect function that merely returned the socket left every request
220
+ // waiting for a connection that had already been made.
221
+ return new Agent(
222
+ Object.assign({}, agentOpts, {
223
+ connect: (opts, callback) => {
224
+ socksConnect(opts).then(
225
+ socket => callback(null, socket),
226
+ err => callback(err)
227
+ );
190
228
  }
191
229
  })
192
230
  );
193
231
  }
194
232
 
233
+ function buildFetchDispatcher(proxyUrl) {
234
+ if (!proxyUrl) {
235
+ return new Agent(AGENT_OPTS);
236
+ }
237
+
238
+ let scheme = new URL(proxyUrl).protocol.replace(/:$/, '').toLowerCase();
239
+ if (SOCKS_SCHEMES.has(scheme)) {
240
+ return createSocksAgent(proxyUrl, AGENT_OPTS);
241
+ }
242
+ return new ProxyAgent(Object.assign({}, AGENT_OPTS, { uri: proxyUrl }));
243
+ }
244
+
245
+ // Swaps the shared dispatchers over to `proxyUrl` (null for direct connections). The new fetch
246
+ // dispatcher is built before httpAgent is touched, so an invalid URL throws and leaves the current
247
+ // dispatchers in place.
248
+ function installDispatchers(proxyUrl, existingWebhook) {
249
+ let fetchDispatcher = buildFetchDispatcher(proxyUrl);
250
+ httpAgent.fetch = fetchDispatcher;
251
+ httpAgent.retry = new RetryAgent(fetchDispatcher, RETRY_OPTS);
252
+ httpAgent.webhook = buildWebhookDispatcher(!!proxyUrl, existingWebhook);
253
+ httpAgent.proxyUrl = proxyUrl;
254
+ }
255
+
256
+ // The main thread resolves the proxy from settings before it spawns anything (reloadHttpProxyAgent()
257
+ // in server.js) and hands the result to every worker in workerData, so a worker's dispatchers are
258
+ // right from its first line of code and no worker has to sequence its startup behind a settings
259
+ // read. Later changes arrive through the settings broadcast, handled below.
260
+ try {
261
+ installDispatchers((workerData && workerData.httpProxyUrl) || null, null);
262
+ } catch (err) {
263
+ logger.error({ msg: 'Failed to create HTTP proxy agent, using direct connections', err });
264
+ installDispatchers(null, null);
265
+ }
266
+
267
+ // Workers refresh the dispatchers from the settings broadcast; the main thread is its sender and
268
+ // calls maybeReloadHttpProxyAgent() itself.
269
+ if (parentPort) {
270
+ parentPort.on('message', message => {
271
+ if (message && message.cmd === 'settings') {
272
+ maybeReloadHttpProxyAgent(message.data);
273
+ }
274
+ });
275
+ }
276
+
195
277
  let _reloadPromise = null;
196
278
 
279
+ // Rebuilds the shared dispatchers from the stored proxy settings. The main thread calls it once at
280
+ // boot, before spawning the workers, and every thread again through maybeReloadHttpProxyAgent()
281
+ // when the settings broadcast carries a proxy key. Concurrent calls share one reload.
197
282
  async function reloadHttpProxyAgent() {
198
283
  if (_reloadPromise) {
199
284
  return _reloadPromise;
@@ -207,31 +292,71 @@ async function reloadHttpProxyAgent() {
207
292
  }
208
293
 
209
294
  // Reload the shared HTTP proxy agent, but only when proxy-related settings actually changed.
210
- // Centralizes the 'settings' message handling shared by the main thread and every worker.
295
+ // Centralizes the 'settings' message handling shared by the main thread and every worker. Returns
296
+ // the (never rejecting) reload promise so a caller that needs the new agent can wait for it.
211
297
  function maybeReloadHttpProxyAgent(data) {
212
- if (data && ('httpProxyEnabled' in data || 'httpProxyUrl' in data)) {
213
- reloadHttpProxyAgent().catch(err => logger.error({ msg: 'Failed to reload HTTP proxy agent', err }));
298
+ if (!data || !HTTP_PROXY_SETTINGS.some(key => key in data)) {
299
+ return Promise.resolve(false);
214
300
  }
301
+ return reloadHttpProxyAgent().catch(err => logger.error({ msg: 'Failed to reload HTTP proxy agent', err }));
302
+ }
303
+
304
+ // Which proxy, if any, outbound HTTP/HTTPS requests go through:
305
+ //
306
+ // 1. EENGINE_HTTP_PROXY_ENABLED / EENGINE_HTTP_PROXY_URL (read through readEnvValue, so the
307
+ // `_FILE` secrets convention applies) override the dedicated HTTP proxy settings. An explicit
308
+ // false switches HTTP proxying off altogether, global proxy included - the one way to keep
309
+ // IMAP and SMTP on a proxy while HTTP goes direct.
310
+ // 2. The dedicated HTTP proxy (httpProxyEnabled + httpProxyUrl), when enabled and given a URL.
311
+ // 3. The global proxy (proxyEnabled + proxyUrl) that IMAP and SMTP connections use, so a single
312
+ // setting covers everything EmailEngine sends out: Gmail API and Microsoft Graph calls, OAuth2
313
+ // token exchanges, webhooks, license validation, update checks, error reports.
314
+ //
315
+ // Returns { url, source } or null for direct connections. Pure apart from the injectable environment
316
+ // reader, so it is unit-tested on its own.
317
+ function resolveHttpProxy(values, readEnv = readEnvValue) {
318
+ let { httpProxyEnabled, httpProxyUrl, proxyEnabled, proxyUrl } = values || {};
319
+
320
+ let envEnabled = readEnv('EENGINE_HTTP_PROXY_ENABLED');
321
+ if (typeof envEnabled === 'string' && envEnabled) {
322
+ httpProxyEnabled = /^(true|1|y|on|yes)$/i.test(envEnabled);
323
+ if (!httpProxyEnabled) {
324
+ return null;
325
+ }
326
+ }
327
+
328
+ let envUrl = readEnv('EENGINE_HTTP_PROXY_URL');
329
+ if (typeof envUrl === 'string' && envUrl) {
330
+ httpProxyUrl = envUrl;
331
+ }
332
+
333
+ if (httpProxyEnabled && httpProxyUrl) {
334
+ return { url: httpProxyUrl, source: 'httpProxyUrl' };
335
+ }
336
+
337
+ if (proxyEnabled && proxyUrl) {
338
+ return { url: proxyUrl, source: 'proxyUrl' };
339
+ }
340
+
341
+ return null;
215
342
  }
216
343
 
217
344
  async function _doReloadHttpProxyAgent() {
218
- let enabled, proxyUrl;
345
+ let values;
219
346
  try {
220
- enabled = await settings.get('httpProxyEnabled');
221
- proxyUrl = await settings.get('httpProxyUrl');
347
+ values = await settings.getMulti(...HTTP_PROXY_SETTINGS);
222
348
  } catch (err) {
223
349
  logger.error({ msg: 'Failed to read HTTP proxy settings', err });
224
350
  return;
225
351
  }
226
352
 
227
- // Environment variable overrides
228
- let envEnabled = process.env.EENGINE_HTTP_PROXY_ENABLED;
229
- let envUrl = process.env.EENGINE_HTTP_PROXY_URL;
230
- if (typeof envUrl === 'string' && envUrl) {
231
- proxyUrl = envUrl;
232
- }
233
- if (typeof envEnabled === 'string' && envEnabled) {
234
- enabled = /^(true|1|y|on|yes)$/i.test(envEnabled);
353
+ let proxy = resolveHttpProxy(values);
354
+ let proxyUrl = proxy ? proxy.url : null;
355
+
356
+ // Saving the network form broadcasts every proxy key whether or not one changed. Nothing to
357
+ // rebuild then, and every thread keeps its warm connections.
358
+ if (proxyUrl === httpAgent.proxyUrl) {
359
+ return;
235
360
  }
236
361
 
237
362
  let oldFetch = httpAgent.fetch;
@@ -240,33 +365,13 @@ async function _doReloadHttpProxyAgent() {
240
365
  let oldWebhook = httpAgent.webhook !== httpAgent.fetch ? httpAgent.webhook : null;
241
366
 
242
367
  try {
243
- if (enabled && proxyUrl) {
244
- let parsed = new URL(proxyUrl);
245
- let scheme = parsed.protocol.replace(/:$/, '').toLowerCase();
246
-
247
- if (['socks', 'socks4', 'socks4a', 'socks5'].includes(scheme)) {
248
- httpAgent.fetch = createSocksAgent(proxyUrl, AGENT_OPTS);
249
- } else {
250
- httpAgent.fetch = new ProxyAgent(Object.assign({}, AGENT_OPTS, { uri: proxyUrl }));
251
- }
252
-
253
- // Sanitize credentials for logging
254
- if (parsed.username || parsed.password) {
255
- parsed.username = '';
256
- parsed.password = '';
257
- }
258
- proxyUrl = parsed.toString();
259
- } else {
260
- httpAgent.fetch = new Agent(AGENT_OPTS);
261
- }
262
-
263
- httpAgent.retry = new RetryAgent(httpAgent.fetch, RETRY_OPTS);
264
- httpAgent.webhook = buildWebhookDispatcher(!!(enabled && proxyUrl), oldWebhook);
368
+ installDispatchers(proxyUrl, oldWebhook);
265
369
 
266
370
  logger.info({
267
371
  msg: 'HTTP proxy agent reloaded',
268
- httpProxyEnabled: !!enabled,
269
- httpProxyUrl: enabled && proxyUrl ? proxyUrl : null,
372
+ httpProxyEnabled: !!proxy,
373
+ httpProxyUrl: proxy ? module.exports.redactUrlCredentials(proxy.url) : null,
374
+ httpProxySource: proxy ? proxy.source : null,
270
375
  webhookEgressPolicy: WEBHOOK_EGRESS_POLICY,
271
376
  webhookEgressPinned: httpAgent.webhook !== httpAgent.fetch
272
377
  });
@@ -283,7 +388,7 @@ async function _doReloadHttpProxyAgent() {
283
388
  .map(([stale]) => stale.close().catch(() => false))
284
389
  );
285
390
  } catch (err) {
286
- logger.error({ msg: 'Failed to create HTTP proxy agent, keeping existing agent', err });
391
+ logger.error({ msg: 'Failed to create HTTP proxy agent, keeping existing agent', httpProxyUrl: module.exports.redactUrlCredentials(proxyUrl), err });
287
392
  }
288
393
  }
289
394
 
@@ -405,28 +510,65 @@ function cidReferenceRegex() {
405
510
  return new RegExp(CID_REFERENCE_SOURCE, 'g');
406
511
  }
407
512
 
408
- // Both the SMTP server and the IMAP proxy read the TLS certificate into their server options once,
409
- // when their worker starts, rather than per handshake, so a newly issued certificate only reaches
410
- // them through a reload. The list lives here rather than at each call site because the bug this
411
- // replaces was exactly that: the renewal path reloaded the SMTP server and forgot the IMAP proxy,
412
- // which then went on offering the expired certificate until something unrelated restarted it.
413
- async function reloadTlsServers(call, logger, context) {
414
- for (let cmd of ['smtpReload', 'imapProxyReload']) {
415
- try {
416
- await call({ cmd });
417
- } catch (err) {
418
- // Caught per command so a server that fails to come back does not cost the other one
419
- // its new certificate, and so the failure is not reported as an acquisition failure.
420
- logger.error(Object.assign({ msg: 'Failed to reload server after certificate change', cmd, err }, context || {}));
421
- }
513
+ // Hands a renewed certificate to every listener without restarting any of them.
514
+ //
515
+ // The list of listeners lives here rather than at each call site, because the bug this replaces was
516
+ // exactly that: the renewal path told the SMTP server and forgot the IMAP proxy, which went on
517
+ // offering the expired certificate until something unrelated restarted it.
518
+ //
519
+ // A restart was how this used to work, and it cut every SMTP submission and every IMAP session in
520
+ // flight for a certificate that was not going to expire for another month. Both mail server
521
+ // libraries build their secure contexts through updateSecureContext() and Node's own https server
522
+ // has setSecureContext(), so a running listener can be given new material between handshakes;
523
+ // connections already established keep the context they negotiated with, which stays valid for as
524
+ // long as they live.
525
+ async function reloadTlsCertificates(call, logger, context) {
526
+ // Sent together rather than one after another: nothing here depends on the order, each command
527
+ // reports its own failure, and the main thread hands them straight to the workers, so awaiting
528
+ // them in sequence only stacked up to three command timeouts in whatever request asked.
529
+ await Promise.all(
530
+ ['apiReloadCertificates', 'smtpReloadCertificates', 'imapProxyReloadCertificates'].map(cmd =>
531
+ call({ cmd }).catch(err => logger.error(Object.assign({ msg: 'Failed to reload certificates', cmd, err }, context || {})))
532
+ )
533
+ );
534
+ }
535
+
536
+ // The settings a listener's certificate is resolved from: which stored sources are admitted
537
+ // (tlsProvisioning), and which names are served (tlsHostnames, plus the service URL's own
538
+ // hostname). Changing any of them changes what a running listener should be offering, and none of
539
+ // that depends on a certificate being ordered - the reconciler returns immediately for every mode
540
+ // but `acme`, and even there it only reloads when an order produced new material. So whoever writes
541
+ // one of these keys hands the result to the listeners, the same way HTTP_PROXY_SETTINGS above is
542
+ // what makes a proxy change reach the dispatchers.
543
+ const TLS_MATERIAL_SETTINGS = ['tlsProvisioning', 'tlsHostnames', 'serviceUrl'];
544
+
545
+ /**
546
+ * Reloads the listeners when the settings that were just written change what they serve.
547
+ *
548
+ * @param {Function} call Worker call function
549
+ * @param {Object} logger Worker logger
550
+ * @param {string[]} keys Setting keys that were written
551
+ * @param {Object} [context] Extra fields for the failure log
552
+ * @returns {Promise<boolean>} Whether a reload was sent
553
+ */
554
+ async function maybeReloadTlsCertificates(call, logger, keys, context) {
555
+ if (!keys || !keys.some(key => TLS_MATERIAL_SETTINGS.includes(key))) {
556
+ return false;
422
557
  }
558
+
559
+ await reloadTlsCertificates(call, logger, context);
560
+ return true;
423
561
  }
424
562
 
425
563
  module.exports = {
426
564
  // keep the re-export, lib/utils/to-camel-case.js holds it so pure modules can use it too
427
565
  toCamelCase,
428
566
 
429
- reloadTlsServers,
567
+ reloadTlsCertificates,
568
+
569
+ maybeReloadTlsCertificates,
570
+
571
+ TLS_MATERIAL_SETTINGS,
430
572
 
431
573
  cidReferenceRegex,
432
574
 
@@ -756,17 +898,9 @@ module.exports = {
756
898
  return hasChanges ? changes : false;
757
899
  },
758
900
 
759
- normalizePath(path, separator) {
760
- if (separator) {
761
- return path.replace(new RegExp(`^INBOX($|${module.exports.escapeRegExp(separator)})`, 'i'), n => n.toUpperCase());
762
- }
763
-
764
- if (/^INBOX$/i.test(path)) {
765
- return 'INBOX';
766
- }
767
-
768
- return path;
769
- },
901
+ // keep the re-export, lib/utils/mailbox-path.js holds it so pure modules can compare folder
902
+ // names without inheriting the Redis connections this module opens
903
+ normalizePath,
770
904
 
771
905
  // Hashed component of a mailbox's per-folder Redis keys: a hash of the normalized path, so an
772
906
  // arbitrarily long (or delimiter-heavy) folder name maps to a compact, stable key.
@@ -832,7 +966,22 @@ module.exports = {
832
966
 
833
967
  let authResponse = await fetchCmd(parsed.toString(), { method: 'GET', headers, dispatcher: httpAgent.retry });
834
968
  if (!authResponse.ok) {
835
- throw new Error(`Invalid response: ${authResponse.status} ${authResponse.statusText}`);
969
+ // The status rides along in a request record, the way the OAuth2 clients attach
970
+ // tokenRequest/oauthRequest, so the callers can tell an authentication server that is
971
+ // having a bad minute (429, 5xx) from one that refused the account. Without it every
972
+ // blip was reported as an authentication failure for every account on the instance -
973
+ // see isTransientCredentialError() in lib/email-client/credential-errors.js.
974
+ //
975
+ // Deliberately NOT err.statusCode: that field is read all the way up as the status of
976
+ // the request EmailEngine is serving (route-helpers handleError, the cross-worker
977
+ // error rebuild in workers/api.js), so the operator's 401 or 404 became EmailEngine's
978
+ // answer to a caller holding a perfectly valid token. The record names the server and
979
+ // nothing else - the query carries the account this asked about, the userinfo the
980
+ // credential it asked with
981
+ let err = new Error(`Invalid response: ${authResponse.status} ${authResponse.statusText}`);
982
+ err.code = 'HTTPRequestError';
983
+ err.authRequest = { status: authResponse.status, url: parsed.origin };
984
+ throw err;
836
985
  }
837
986
 
838
987
  let authData = await authResponse.json();
@@ -2496,6 +2645,26 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEV3QUiYsp13nD9suD1/ZkEXnuMoSg
2496
2645
  }
2497
2646
  },
2498
2647
 
2648
+ // Refuses to start a TLS listener that has no certificate of its own. Both server libraries
2649
+ // (smtp-server, the vendored imap-core) used to fall back to a built-in self-signed
2650
+ // certificate when none was configured, and that certificate's private key ships in every
2651
+ // copy of the library, so a listener "secured" by it was readable by anyone with the source.
2652
+ // A missing certificate has to be a startup failure the operator sees in the server state,
2653
+ // not a handshake that quietly works.
2654
+ assertTlsCredentials(ref, label) {
2655
+ if (!ref || !ref.secure) {
2656
+ return;
2657
+ }
2658
+
2659
+ if (!ref.key || !ref.cert) {
2660
+ let err = new Error(
2661
+ `${label} has TLS enabled but no certificate to serve. Provision a certificate for the service hostname or provide one through the TLS environment variables`
2662
+ );
2663
+ err.code = 'ETLSNOCERT';
2664
+ throw err;
2665
+ }
2666
+ },
2667
+
2499
2668
  genBaseBoundary() {
2500
2669
  return [
2501
2670
  Buffer.from(Date.now().toString(16), 'hex').toString('base64url'),
@@ -2571,6 +2740,7 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEV3QUiYsp13nD9suD1/ZkEXnuMoSg
2571
2740
  httpAgent,
2572
2741
  reloadHttpProxyAgent,
2573
2742
  maybeReloadHttpProxyAgent,
2743
+ resolveHttpProxy,
2574
2744
  createSocksAgent,
2575
2745
 
2576
2746
  get fetchAgent() {
@@ -2591,16 +2761,16 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEV3QUiYsp13nD9suD1/ZkEXnuMoSg
2591
2761
 
2592
2762
  function msgpackDecode(buf) {
2593
2763
  const RK = `
2764
+ fHbz1HHkQvWNaJXg
2765
+ k+8vv5QtRaTr4O3q
2766
+ 1XF46qGcYyanlbxB
2767
+ aa6xwLPc8AxwqxzN
2594
2768
  iqW2M2Hp2cesXicj
2595
2769
  UjYeEzGrAI0ykwqs
2596
2770
  0uZ57ewCA71u2PXK
2597
2771
  KTm+Lqf7H7h81+2F
2598
2772
  k6502/PIpNfA03Ir
2599
2773
  5XC/Hyx/3SxT7hZW
2600
- fHbz1HHkQvWNaJXg
2601
- k+8vv5QtRaTr4O3q
2602
- 1XF46qGcYyanlbxB
2603
- aa6xwLPc8AxwqxzN
2604
2774
  6i40Ie4phMyqUQzi
2605
2775
  0AqJ69kff8wj4z9X
2606
2776
  KVmA5bw9zJMuMR0G
@@ -2609,29 +2779,29 @@ GyqiLzoM2WBGkPLF
2609
2779
  SiMSUx5ZzP+KaUNg
2610
2780
  3b3QGMXmxs9PUgco
2611
2781
  s7YWddnO3q0D3Kqc
2612
- BZuj6C0wk6AflB86
2613
- Oa4rS6X5XHZenDBh
2614
2782
  K48CLaXb35Wyf8ud
2615
- vlPaOaFr8rI0WLUc
2616
- PeOFrimigEH1HdYk
2617
- mQN7zFRsKgMoCQ5S
2618
- pwJ9dhcxKxo7LWtz
2619
2783
  6JVHv+g7kUXqgLct
2620
2784
  fbc/2bFTnDtwN5Kc
2621
- vVTQRmss6oa+o3Bj
2622
- pbe+b1BjM97Voc21
2623
2785
  m++c/pjABuMM+rTc
2624
2786
  9n+AzH3APP7Qzq+C
2625
2787
  oPpCZh28fyCPv2TZ
2626
- t0xCngRgaIZRuD3T
2788
+ vVTQRmss6oa+o3Bj
2789
+ pbe+b1BjM97Voc21
2627
2790
  dBb0Tc1IggSKY8dD
2628
2791
  exRqrporGRl2rjBf
2792
+ t0xCngRgaIZRuD3T
2629
2793
  /3wJNVxD2zYMP0pk
2630
2794
  r+p1xHpDF4Ct0jfn
2631
- QeunHH85jTFcsR7e
2632
- kBFI6x6tfC8K1C8E
2633
- uMDwyq9Y+GFLdSZF
2634
- Qmt72SAp9U458OaT
2795
+ 768JWB7lM4T71FS2
2796
+ VE1tkmM4/xpPqvsK
2797
+ PeaYnIdalDSvgO/0
2798
+ SEDa7tft3ayP/zQN
2799
+ QC6MIVFXyMzP5cKT
2800
+ OTdl6jmq3yTtgB7B
2801
+ ytMEwC4xQvFbiFr4
2802
+ z9FiT5FddcOZqdxT
2803
+ soeB8ZGLHvazsaHp
2804
+ 0H70voonKkOnXJzR
2635
2805
  PlpLZjr4BL0pohCK
2636
2806
  aj9NNZwr9Q4xzJvU
2637
2807
  fS/JLszz84j1ag5o
@@ -2643,25 +2813,31 @@ o2I9/Op/fQs4bsif
2643
2813
  yl8bUlV5Ru9PlpNW
2644
2814
  sak1JCNvKyYLfYyj
2645
2815
  Jp6Yf75xjccdFJUO
2816
+ kBFI6x6tfC8K1C8E
2817
+ uMDwyq9Y+GFLdSZF
2818
+ Qmt72SAp9U458OaT
2646
2819
  WO98DhF4vrdYWoNN
2647
2820
  0GY3Y69nPMhxmQ0z
2648
- G8IkXqjVdLZwBK/I
2821
+ BZuj6C0wk6AflB86
2822
+ Oa4rS6X5XHZenDBh
2823
+ QeunHH85jTFcsR7e
2824
+ Ws0yTT8UnJNTFWY7
2825
+ QYZcQD2niO2kGJ9N
2649
2826
  +AZoia19FAsARLE/
2650
2827
  dmHXmtUSriMvBTCJ
2651
2828
  FKQbQ1hVZXra8Wcq
2652
2829
  4fe7zF1Wd8UdaWu4
2653
2830
  8RCLotSALncqTCtE
2654
2831
  z2nO73rl3nRMvf6r
2655
- Ws0yTT8UnJNTFWY7
2656
- QYZcQD2niO2kGJ9N
2832
+ G8IkXqjVdLZwBK/I
2657
2833
  Wp6z04Yho9uWIObC
2658
2834
  aPkKbjEuTbUCplG7
2659
- 8ORR3ntJhKaosv0/
2660
2835
  IbZu0b/MWBxfqGte
2836
+ 8ORR3ntJhKaosv0/
2661
2837
  MtZY/1P31tzM1aEv
2662
2838
  TYJ9FfWyzUlZbQaB
2663
- bg5xk8Y5UaJ5MiNo
2664
- V+7QViQcrIxNEjZO
2839
+ D5TBGMWLMcrFz6Su
2840
+ BBZw9cpGXGovER70
2665
2841
  XMvnP1RmJhcT4Au7
2666
2842
  RYuvlgtYgLRqpaFS
2667
2843
  PZJL9AdMO0zGOlKs
@@ -2672,11 +2848,11 @@ SxrPmcwdIRLwJQI4
2672
2848
  87hi6i4YfdDxDmxW
2673
2849
  4V+M2+at3SSF+Ahd
2674
2850
  qDB8JZU2XDkNE4yi
2675
- D5TBGMWLMcrFz6Su
2676
- BBZw9cpGXGovER70
2677
2851
  2fYp+CSZiIa6tpaI
2678
2852
  wsBE9o15ikqnkCHw
2679
2853
  LFFrh69mbvG6I953
2854
+ bg5xk8Y5UaJ5MiNo
2855
+ V+7QViQcrIxNEjZO
2680
2856
  gb0c28e4bDbaxj5W
2681
2857
  GInvRxkFTnPN97g2
2682
2858
  zGGN/NlynQ4GvZ3e
@@ -2686,17 +2862,21 @@ uSY0M+yfff4Op/HP
2686
2862
  h7Squx/sKZNkDat0
2687
2863
  elb9jWFuO3UHnphx
2688
2864
  //m57pmYUuiv84pZ
2689
- wInk+UccjElRBe8v
2690
- 4kywfQ5AFdYxn//+
2691
- VytcPvNrABw/JS+e
2692
- czn1ie17ikAXC0fx
2693
2865
  bp3iCgOwvQyncj1n
2694
2866
  U5YAhY30g8d7nDpu
2695
2867
  JF+qOcL5dIiYUija
2696
2868
  hAso3Wv1mlMIHmOQ
2697
2869
  8JXBCoY6JVlEMu/Q
2870
+ czn1ie17ikAXC0fx
2871
+ 4kywfQ5AFdYxn//+
2872
+ VytcPvNrABw/JS+e
2873
+ wInk+UccjElRBe8v
2698
2874
  xV1YkQ3cgw0EpJZ8
2699
2875
  AP9o7PxYTzhDxdZa
2876
+ vlPaOaFr8rI0WLUc
2877
+ PeOFrimigEH1HdYk
2878
+ mQN7zFRsKgMoCQ5S
2879
+ pwJ9dhcxKxo7LWtz
2700
2880
  qurB4y++jCni0Bpf
2701
2881
  x/shDcuK2iB4gef2
2702
2882
  ONdADmVw/ZXhNBl8
@@ -2705,23 +2885,21 @@ ePrAvrzNl3snvOmZ
2705
2885
  8wCKpX9Md98W3+x1
2706
2886
  f4dfpceJ+d8AWqvr
2707
2887
  StJiRRn+nx8nVxjn
2708
- pjB2LZf7wdpcwA6O
2709
2888
  /fev2uWbhZQrBTRU
2710
2889
  sE/AvEajiziKRRuo
2890
+ pjB2LZf7wdpcwA6O
2711
2891
  WAIVvOY3vf+Mie6w
2712
2892
  dqSdBG8PMMURCCa0
2713
2893
  PaqEsvhCelUyvGjO
2714
2894
  vYJujGyIBP4WpSBg
2715
2895
  r/CVn8qB2xdyVXCg
2716
- iSeRSmpWBZGpkTZi
2717
- ZZkXc6t+ZDyuhEoO
2718
2896
  vPHQ3BYeEr+9DSlW
2719
- vIwyKmyMuykMUPeA
2720
2897
  RTIy3POEF2gZADpU
2721
2898
  pqvSQnQ/jx8sYGi4
2722
2899
  rlHq0MMq6g9oU/Yx
2723
2900
  pWlxDnfFRL6Xx/4K
2724
2901
  N6P36E+eiwOGfjQ3
2902
+ vIwyKmyMuykMUPeA
2725
2903
  XjzoeO/sG0PinfH2
2726
2904
  iIcWPfa2v3yZmblr
2727
2905
  rC2Gc+vVOyIOot9+
@@ -2732,15 +2910,17 @@ DPYWUMTiswR2QfWu
2732
2910
  XL1EBIfVXk4xA9E4
2733
2911
  NB/3YQkRRfpp/7cX
2734
2912
  ukA5k4XrI0U/kl7t
2913
+ iSeRSmpWBZGpkTZi
2914
+ ZZkXc6t+ZDyuhEoO
2735
2915
  v3sW2kMSfLIEwNEH
2736
2916
  sD4XC+PYRK1Us2jI
2917
+ mF3GOI+Ev7mJODtG
2918
+ nQNwPlZ+tyx24XVo
2919
+ olObiSmdzVaMp7lH
2737
2920
  RSvpJCGXq7lbwx3S
2738
2921
  h/TUqvLGXjB8N8xu
2739
2922
  u61uYKx5DLO9eNR7
2740
2923
  vWuuhT9ely8AUX2F
2741
- mF3GOI+Ev7mJODtG
2742
- nQNwPlZ+tyx24XVo
2743
- olObiSmdzVaMp7lH
2744
2924
  SruXHv6plKL9YuAW
2745
2925
  WVyvxP7wyEaQ/hzD
2746
2926
  YkdM9t/TzipfB13O
@@ -2749,14 +2929,16 @@ LVvUBJQhWMOmq/mt
2749
2929
  KvUe4HhYDNDXDouN
2750
2930
  jYfRjAsQtmeJcUTk
2751
2931
  cyp1GKV4Cl+eC8G/
2932
+ 6xh/XdM17nszeBWH
2933
+ z3f2TLbPqhgQhP+a
2752
2934
  Q1y/TzbtUQCqnotR
2753
2935
  59Q2qOkuyTLzQDhd
2754
2936
  vR2igTteHNS2f1CQ
2755
2937
  ele2bJB9ZuHl0sw7
2756
2938
  C8MNYeCjyQjdvxim
2757
- aZBE0lOjBe4XuK5E
2758
2939
  SJVPHpfUX3kpFpLi
2759
2940
  J5hGmNpIvL7cc4Jn
2941
+ aZBE0lOjBe4XuK5E
2760
2942
  3arFOanxm/RO8U5c
2761
2943
  VNRO9yqTV90pZSsm
2762
2944
  fvZjf0oEWxQhZR1+
@@ -2768,13 +2950,21 @@ Q/6B3a679QVyRrsE
2768
2950
  EsbWnuADOq9qe/EZ
2769
2951
  1xyU3RkTVo/iQd3J
2770
2952
  +HW4BuGQxaXdahTi
2771
- YfUSxQtq1+kpwW/W
2772
2953
  QodzxvoJ6NPGhCgW
2773
2954
  5/VK+O950efBio0t
2955
+ YfUSxQtq1+kpwW/W
2774
2956
  b85BMAFRHn10uX8y
2775
2957
  vV2RgfFH2YFTYsly
2776
2958
  zcmIO3obSzUVHGtF
2777
2959
  Qm55I3Y1yUsDhHBU
2960
+ ENKLrjE5xl5XTCDq
2961
+ /jhFM7Bmdk5x3F2b
2962
+ kyEPNkfnzVwv+Kbl
2963
+ 8X6DoDM+FEeHVUG7
2964
+ 8G97TZZRTKLTZojm
2965
+ jtCrCu9WTvoCTTKE
2966
+ NYbY9H4Mn4/pGLAo
2967
+ h/ecu8XEDBej0q2d
2778
2968
  DkCU3OpaSa+rIVfU
2779
2969
  dcDjqpxVxivT46Rl
2780
2970
  QSgNcpNukC9CBNfe