emailengine-app 2.84.1 → 2.85.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 (147) hide show
  1. package/.dockerignore +6 -0
  2. package/.ncurc.js +5 -3
  3. package/.prettierignore +5 -1
  4. package/.prettierrc.js +2 -0
  5. package/.release-please-manifest.json +1 -1
  6. package/CHANGELOG.md +61 -0
  7. package/Dockerfile +8 -2
  8. package/README.md +1 -1
  9. package/bin/emailengine.js +444 -403
  10. package/copy-static-files.sh +39 -14
  11. package/data/google-crawlers.json +1 -1
  12. package/data/public_suffix_list.dat +16562 -0
  13. package/docker-compose.yml +1 -1
  14. package/eslint.config.js +81 -99
  15. package/lib/account/own-account-key.js +42 -0
  16. package/lib/account-assignment.js +1 -33
  17. package/lib/account.js +68 -24
  18. package/lib/add-trackers.js +11 -4
  19. package/lib/api-reference/format.js +4 -3
  20. package/lib/api-routes/account-routes.js +244 -26
  21. package/lib/api-routes/blocklist-routes.js +23 -2
  22. package/lib/api-routes/delivery-test-routes.js +26 -3
  23. package/lib/api-routes/export-routes.js +28 -2
  24. package/lib/api-routes/gateway-routes.js +37 -5
  25. package/lib/api-routes/mailbox-routes.js +41 -2
  26. package/lib/api-routes/message-routes.js +104 -4
  27. package/lib/api-routes/mint-bounds.js +11 -0
  28. package/lib/api-routes/oauth2-app-routes.js +48 -15
  29. package/lib/api-routes/outbox-routes.js +45 -11
  30. package/lib/api-routes/permission-map.js +12 -1
  31. package/lib/api-routes/route-helpers.js +125 -3
  32. package/lib/api-routes/settings-routes.js +23 -2
  33. package/lib/api-routes/submit-routes.js +338 -309
  34. package/lib/api-routes/template-routes.js +38 -2
  35. package/lib/api-routes/token-routes.js +142 -96
  36. package/lib/api-routes/webhook-route-routes.js +13 -2
  37. package/lib/auth-token.js +23 -10
  38. package/lib/bounce-detect.js +414 -210
  39. package/lib/consts.js +39 -4
  40. package/lib/create-imap-client.js +41 -2
  41. package/lib/email-client/base-client.js +30 -41
  42. package/lib/email-client/gmail-client.js +30 -18
  43. package/lib/email-client/imap/mailbox.js +13 -23
  44. package/lib/email-client/imap/response-metrics.js +75 -0
  45. package/lib/email-client/imap/subconnection.js +1 -1
  46. package/lib/email-client/imap-client.js +6 -3
  47. package/lib/email-client/message-builder.js +7 -2
  48. package/lib/email-client/notification-handler.js +1 -2
  49. package/lib/email-client/outlook/graph-api.js +17 -2
  50. package/lib/email-client/outlook-client.js +6 -3
  51. package/lib/email-client/smtp-pool-manager.js +6 -0
  52. package/lib/encrypt.js +9 -0
  53. package/lib/export.js +3 -1
  54. package/lib/gateway.js +2 -3
  55. package/lib/get-raw-email.js +4 -2
  56. package/lib/hapi-request-logger.js +107 -0
  57. package/lib/imap-proxy-auth.js +14 -1
  58. package/lib/imapproxy/imap-core/README.md +6 -5
  59. package/lib/imapproxy/imap-core/lib/commands/authenticate-plain.js +1 -0
  60. package/lib/imapproxy/imap-core/lib/commands/login.js +1 -0
  61. package/lib/imapproxy/imap-core/lib/imap-command.js +86 -43
  62. package/lib/imapproxy/imap-core/lib/imap-stream.js +58 -13
  63. package/lib/imapproxy/imap-core/lib/indexer/indexer.js +3 -1
  64. package/lib/mcp/listen.js +10 -1
  65. package/lib/mcp/tools.js +37 -8
  66. package/lib/notify-attachments.js +17 -0
  67. package/lib/oauth/external-account-config.js +3 -1
  68. package/lib/oauth/gmail.js +21 -48
  69. package/lib/oauth/mail-ru.js +5 -38
  70. package/lib/oauth/outlook-mailbox.js +35 -0
  71. package/lib/oauth/outlook.js +26 -44
  72. package/lib/oauth/state.js +24 -0
  73. package/lib/oauth2-apps.js +1 -1
  74. package/lib/pbkdf2-phc.js +19 -2
  75. package/lib/privileged-settings.js +6 -3
  76. package/lib/redis-scan-delete.js +15 -1
  77. package/lib/schemas.js +79 -33
  78. package/lib/settings.js +13 -1
  79. package/lib/smtp-auth.js +23 -0
  80. package/lib/sso.js +1 -1
  81. package/lib/swagger-options.js +1 -1
  82. package/lib/thread-diagnostics.js +46 -0
  83. package/lib/timezones.js +109 -0
  84. package/lib/token-permission-view.js +3 -3
  85. package/lib/tools.js +285 -66
  86. package/lib/totp.js +2 -5
  87. package/lib/translations.js +1 -2
  88. package/lib/ui-routes/account-routes.js +491 -491
  89. package/lib/ui-routes/account-setup.js +99 -0
  90. package/lib/ui-routes/admin-config-routes.js +98 -48
  91. package/lib/ui-routes/admin-entities-routes.js +113 -31
  92. package/lib/ui-routes/auth-routes.js +137 -62
  93. package/lib/ui-routes/connection-security-form.js +74 -0
  94. package/lib/ui-routes/form-lists.js +46 -0
  95. package/lib/ui-routes/internals-routes.js +5 -0
  96. package/lib/ui-routes/mcp-consent-routes.js +5 -1
  97. package/lib/ui-routes/oauth-config-routes.js +133 -100
  98. package/lib/ui-routes/route-helpers.js +19 -3
  99. package/lib/ui-routes/sign-in-helpers.js +59 -0
  100. package/lib/ui-routes/tls-config-routes.js +58 -15
  101. package/lib/ui-routes/unsubscribe-routes.js +6 -3
  102. package/lib/utils/back-off.js +82 -0
  103. package/lib/utils/map-concurrent.js +36 -0
  104. package/lib/utils/murmurhash3.js +66 -0
  105. package/lib/utils/network.js +28 -0
  106. package/lib/utils/provider-id.js +27 -0
  107. package/lib/utils/public-suffix.js +122 -0
  108. package/lib/utils/random-id.js +26 -0
  109. package/lib/utils/require-tls.js +33 -0
  110. package/lib/utils/version.js +74 -0
  111. package/lib/web-safe-html.js +5 -6
  112. package/lib/webhook-penalty.js +75 -0
  113. package/lib/webhook-routing.js +49 -2
  114. package/lib/webhooks.js +41 -6
  115. package/package.json +37 -39
  116. package/sbom.json +7980 -1
  117. package/server.js +659 -455
  118. package/static/js/ace/ace.js +1 -1
  119. package/static/js/ace/mode-handlebars.js +1 -1
  120. package/static/js/ace/mode-html.js +1 -1
  121. package/static/js/ace/mode-javascript.js +1 -1
  122. package/static/js/ace/mode-markdown.js +1 -1
  123. package/static/js/ace/worker-html.js +1 -1
  124. package/static/js/ace/worker-javascript.js +1 -1
  125. package/static/js/ace/worker-json.js +1 -1
  126. package/static/js/ee-client.js +5 -0
  127. package/static/licenses.html +191 -1016
  128. package/translations/messages.pot +70 -71
  129. package/views/account/security.hbs +10 -0
  130. package/views/accounts/account.hbs +11 -11
  131. package/views/accounts/edit.hbs +6 -2
  132. package/views/config/ai.hbs +1 -1
  133. package/views/config/security.hbs +2 -2
  134. package/views/config/service.hbs +3 -0
  135. package/views/internals/index.hbs +8 -0
  136. package/views/partials/gateway_form.hbs +3 -1
  137. package/views/partials/webhook_form.hbs +1 -1
  138. package/views/suppression-lists/index.hbs +1 -1
  139. package/workers/api.js +780 -585
  140. package/workers/export.js +1 -1
  141. package/workers/submit.js +1 -1
  142. package/workers/webhooks.js +54 -34
  143. package/config/test.toml +0 -46
  144. package/install.sh +0 -428
  145. package/setup-production.sh +0 -215
  146. package/systemd/emailengine.service +0 -97
  147. package/systemd/nginx-proxy.conf +0 -77
package/.dockerignore CHANGED
@@ -26,6 +26,12 @@ scripts
26
26
  systemd
27
27
  manual-test
28
28
 
29
+ # Development and test configuration: config/test.toml carries a prepared API token and binds
30
+ # the API to every interface, and config/development* is the developer's own. The image runs
31
+ # with the production configuration
32
+ config/development*
33
+ config/test.toml
34
+
29
35
  # Local environment, secrets and editor state. keylog.txt is a TLS key log (npm run dev writes one);
30
36
  # it is gitignored, but nothing else would keep it out of the context and the layer cache.
31
37
  .env*
package/.ncurc.js CHANGED
@@ -1,3 +1,5 @@
1
+ 'use strict';
2
+
1
3
  module.exports = {
2
4
  upgrade: true,
3
5
  // Node 20 is a hard runtime floor, not a preference. The DigitalOcean one-click images run
@@ -17,7 +19,7 @@ module.exports = {
17
19
  target: name =>
18
20
  ['pino', '@playwright/test'].includes(name)
19
21
  ? 'patch'
20
- : ['nanoid', 'gettext-parser', 'xgettext-template', 'chai', 'undici', 'marked', '@sentry/node-core', 'he'].includes(name)
22
+ : ['gettext-parser', 'xgettext-template', 'undici', 'marked', '@sentry/node-core', 'he', 'iconv-lite'].includes(name)
21
23
  ? 'minor'
22
24
  : 'latest',
23
25
  // pino - held on 10.3.x. 10.4.0 took PR #2294, which makes lib/caller.js prefer
@@ -38,15 +40,15 @@ module.exports = {
38
40
  // times out with "Received: undefined" while the page snapshot shows the button).
39
41
  // Same spec passes in 3.8 s on 1.63.0; nothing in the 1.64 release notes covers
40
42
  // it. Lift once a 1.64.x or later passes that spec unchanged.
41
- // nanoid - 4.x dropped the CommonJS require export (ESM-only)
42
43
  // gettext-parser - 8.x is ESM-only
43
44
  // xgettext-template - 6.x is ESM-only (translation build tool)
44
- // chai - 5.x is ESM-only (only used by the vendored imap-core tests)
45
45
  // undici - 8.x requires Node >=22.19 and crashes at require() on Node 20. Permanent while the
46
46
  // Node 20 floor above stands.
47
47
  // marked - 16.x dropped the CommonJS build (ESM-only, needs require(esm)/Node >=20.19); 15.x is the
48
48
  // last require()-compatible line. 15.0.12 verified on Node 20-24 and in a yao/pkg node24 build.
49
49
  // Permanent while the Node 20 floor above stands.
50
+ // iconv-lite - 1.0 (alpha since 2026-10) requires Node >=22 and moves to ES modules, relying on
51
+ // require(esm). Held on 0.x; libmime, imapflow and mailparser carry the same cap.
50
52
  // he - 2.x is ESM-only (exports only src/he.mjs) and requires Node >=22; require('he') throws
51
53
  // ERR_REQUIRE_ESM on Node 20 before 20.19. 1.2.0 is the last CommonJS release. mailparser,
52
54
  // which reaches EmailEngine through the same require, rejects 2.x for the same reason.
package/.prettierignore CHANGED
@@ -5,6 +5,7 @@ node_modules/
5
5
  ee-dist/
6
6
  dist/
7
7
  build/
8
+ coverage/
8
9
 
9
10
  # Static assets and vendor files
10
11
  static/
@@ -41,4 +42,7 @@ Thumbs.db
41
42
  *.swo
42
43
 
43
44
  # Documentation
44
- docs/
45
+ docs/
46
+
47
+ # Generated by release-please
48
+ CHANGELOG.md
package/.prettierrc.js CHANGED
@@ -1,3 +1,5 @@
1
+ 'use strict';
2
+
1
3
  module.exports = {
2
4
  printWidth: 160,
3
5
  tabWidth: 4,
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "2.84.1"
2
+ ".": "2.85.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,66 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.85.0](https://github.com/postalsys/emailengine/compare/v2.84.2...v2.85.0) (2026-10-20)
4
+
5
+
6
+ ### Features
7
+
8
+ * add an API endpoint to resume an account switched off after authentication failures ([6914729](https://github.com/postalsys/emailengine/commit/69147294647ba61dda1554aa67a0f402fa1ab3d9))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * accept cpus for the webhook, submit and export worker counts ([dc19eae](https://github.com/postalsys/emailengine/commit/dc19eaeaf8a6ee364d987b2683daa5e8a2ff4607))
14
+ * add resume_account to the MCP tools ([2c61fb2](https://github.com/postalsys/emailengine/commit/2c61fb2ffb180558b52eab13146f67abb92734c8))
15
+ * bump imapflow to 2.5.6 and bullmq to 6.3.17 ([5d9dccd](https://github.com/postalsys/emailengine/commit/5d9dccdba899d8e28929f47924feba91b8563cdb))
16
+ * bump imapflow to 2.5.8, gettext to 4.2.0, joi-messages to 1.4.0 and templates to 2.1.0 ([8891e9f](https://github.com/postalsys/emailengine/commit/8891e9f67ffa5fd87f1ad6e8954bdbab3314655d))
17
+ * bump imapflow to 2.5.9, bullmq to 6.3.19 and email-ai-tools to 2.3.1 ([a9ad209](https://github.com/postalsys/emailengine/commit/a9ad20985a0565d37999b8567298650e5c3ccf1a))
18
+ * bump ioredfour to 2.0.0, certs to 2.0.0 and pubface to 1.2.0 ([ec5ae18](https://github.com/postalsys/emailengine/commit/ec5ae18afb371a38f92b1c94c0f652b8a02feede))
19
+ * bump libmime to 5.5.2, gettext to 4.1.2, wild-config to 1.7.10 and bounce-classifier to 3.0.2 ([40482cd](https://github.com/postalsys/emailengine/commit/40482cd9558295f10512f29fcb2a7f28ac314f27))
20
+ * bump templates to 2.1.1, which formats dates without moment ([63bb897](https://github.com/postalsys/emailengine/commit/63bb89709b7130cd340113fc78000dca9ccb2b1c))
21
+ * cap the V8 young generation in the Docker image and the binaries ([7864aa5](https://github.com/postalsys/emailengine/commit/7864aa5a725b93edb60aa365b35a607605e51af0))
22
+ * complete the OAuth2 account setup the way the hosted form does ([1a33ecc](https://github.com/postalsys/emailengine/commit/1a33ecc987001e3205a251f8161c89acda76e045))
23
+ * decide webhook queueing before formatting the payload ([1b96844](https://github.com/postalsys/emailengine/commit/1b9684485a8c8541b80fc432bab7008a216c1985))
24
+ * drop psl and timezones-list for the source data and Intl ([55d9c7b](https://github.com/postalsys/emailengine/commit/55d9c7b8216c9afd2080bfe406165aa1cf8bb7e3))
25
+ * expose drafts, bulk message operations and more as MCP tools ([68ef849](https://github.com/postalsys/emailengine/commit/68ef8495b39858b14ada898e613218beaf34cae4))
26
+ * expose mailbox create, rename and delete as MCP tools ([faece57](https://github.com/postalsys/emailengine/commit/faece57b4525aa02ad5b799b629216252ec60077))
27
+ * log a resumed account once, with the reason it was re-enabled ([d752ed3](https://github.com/postalsys/emailengine/commit/d752ed3d9e1299eb13c3110afc9163ee1ef080a8))
28
+ * point the documentation links at the pages' current addresses ([7ce2ca8](https://github.com/postalsys/emailengine/commit/7ce2ca8bf6deb9f4c2df7b0f28ce24cc229eacb9))
29
+ * read .mo catalogs with @postalsys/gettext and bump owned packages ([5cf93a9](https://github.com/postalsys/emailengine/commit/5cf93a90f56c00f640a5c9340a83413bef398a6f))
30
+ * replace five small dependencies with in-house modules ([93da438](https://github.com/postalsys/emailengine/commit/93da43887c733fe09ea2d722eef4bfb40b3d4b21))
31
+ * report the event loop delay of every thread ([2b001fc](https://github.com/postalsys/emailengine/commit/2b001fcf5e1d352a0baeab3f9e2e7846d1db8382))
32
+ * stop downloading inline images for messageNew when nothing uses them ([7d63a88](https://github.com/postalsys/emailengine/commit/7d63a881259540c51fabd66fc05c43a49e542b9b))
33
+ * stop queueing webhook events that no delivery would send ([5a4921c](https://github.com/postalsys/emailengine/commit/5a4921c06a527ec5911eef78fed1019a07fedc5c))
34
+ * use a placeholder for the OAuth2 client secret example ([cd96134](https://github.com/postalsys/emailengine/commit/cd96134fdbd2a396d66f25f0261cf5dbe2166204))
35
+
36
+ ## [2.84.2](https://github.com/postalsys/emailengine/compare/v2.84.1...v2.84.2) (2026-10-18)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * bound what hostile message content and mail servers can make a worker do ([02daa27](https://github.com/postalsys/emailengine/commit/02daa27df82680dfa59c572258c88a576d74d2ad))
42
+ * bump @postalsys/email-text-tools to 2.4.24 and @postalsys/ee-client to 1.8.2, embed cid: images only in image attributes ([3d40506](https://github.com/postalsys/emailengine/commit/3d405060828e529156b4df954a3f6b8a5d8e25ae))
43
+ * bump @zone-eu/mailsplit to 5.4.24, mailparser to 3.9.41 and imapflow to 2.5.3 ([3266d8d](https://github.com/postalsys/emailengine/commit/3266d8d2518e37b3c40c947a87d258a68e364497))
44
+ * bump @zone-eu/mailsplit to 5.4.25, mailparser to 3.9.42 and imapflow to 2.5.4 ([76415b0](https://github.com/postalsys/emailengine/commit/76415b0dd58ea202a671e198f6fe9cae9d35d6f0))
45
+ * bump libmime to 5.5.1, libqp to 3.0.1, libbase64 to 1.4.1 and nodemailer to 10.1.7 ([a934ba7](https://github.com/postalsys/emailengine/commit/a934ba79964c2b58abae056adcb0a4544f872eb4))
46
+ * bump node from `ebfe2f9` to `44fce69` ([#676](https://github.com/postalsys/emailengine/issues/676)) ([54a6b87](https://github.com/postalsys/emailengine/commit/54a6b87ad04a9dbad0e91ed20bc179dd11235c48))
47
+ * bump nodemailer to 10.1.5, joi to 18.3.0 and the owned packages that pinned the previous releases ([8faa692](https://github.com/postalsys/emailengine/commit/8faa6926c6d025e77ba17eac027e671782d7b527))
48
+ * bump nodemailer to 10.1.6, smtp-server to 3.20.1 and mailparser to 3.9.45 ([bcf583e](https://github.com/postalsys/emailengine/commit/bcf583e94390c90574733e76ec04f7ac78558402))
49
+ * bump the owned dependencies to the releases of the 2026-10-16 security scan ([2cbd569](https://github.com/postalsys/emailengine/commit/2cbd5691cfed2a9103e021b334c62451228504fe))
50
+ * close the paths a bound or narrowed API token could use to reach other accounts ([c87c861](https://github.com/postalsys/emailengine/commit/c87c8612e41e92bc5abf79c8d3e42978b4d91364))
51
+ * derive a separate signing key per purpose from the service secret ([1fa3368](https://github.com/postalsys/emailengine/commit/1fa336891015dab0b184689412fd02d263dcb6c2))
52
+ * document the TLS options in the API reference and keep the admin modules within their size budgets ([9d96a0c](https://github.com/postalsys/emailengine/commit/9d96a0c5d2f5a17f7a2bbc4beff6869f3be919c1))
53
+ * give admin sessions a lifetime, count only failed sign-ins and ask for the password before enabling TOTP ([d08d3ab](https://github.com/postalsys/emailengine/commit/d08d3ab6c0af99652699b9d007a3e8678f97b115))
54
+ * harden the IMAP proxy and the SMTP listener against unauthenticated clients ([34ebdad](https://github.com/postalsys/emailengine/commit/34ebdad6201ba7ba73d3c20e25bf029782e80beb))
55
+ * keep account ids apart in Redis keys and URLs, and bound licenses, mail merges and stored secrets ([c9d3547](https://github.com/postalsys/emailengine/commit/c9d3547ddf06033022eb8833186efeb00b78847a))
56
+ * keep narrowed tokens off the webhook target, bound slow webhook targets and stop secrets leaking through logs and error payloads ([40ce6cb](https://github.com/postalsys/emailengine/commit/40ce6cbac9b77ea47adf0dc62f9146c5df3842f2))
57
+ * keep STARTTLS opportunistic for an IMAP account that opts out of requiring it ([42cac3a](https://github.com/postalsys/emailengine/commit/42cac3ab1a96cf6e0d6d93389dec06e01cdabc4b))
58
+ * penalise only timed-out webhook targets, log hapi's internal request errors and run the integration tier against cleartext mocks ([4578cc6](https://github.com/postalsys/emailengine/commit/4578cc674215a09b3d98cc28640007c883eec62a))
59
+ * save the webhook and OAuth2 app forms when a list field is not sent ([8157671](https://github.com/postalsys/emailengine/commit/81576712c91ead5374631e16d864bfd6a9856ddc))
60
+ * share the helpers the security fixes duplicated and move each rule to where it covers every caller ([b9ba3ec](https://github.com/postalsys/emailengine/commit/b9ba3ecf44599c861741e50b7f3940eaa54a3c56))
61
+ * treat an unreachable network as a transient connection failure ([b0b4dd5](https://github.com/postalsys/emailengine/commit/b0b4dd5cb56658a8d48f62392bb83a369db265d0))
62
+ * trim the line ends of a text body in linear time when rendering it as html ([d5d30cd](https://github.com/postalsys/emailengine/commit/d5d30cd12bc141c7aeb8d4d2f0f254e550519dd4))
63
+
3
64
  ## [2.84.1](https://github.com/postalsys/emailengine/compare/v2.84.0...v2.84.1) (2026-10-15)
4
65
 
5
66
 
package/Dockerfile CHANGED
@@ -11,7 +11,7 @@
11
11
  # here; the runtime stage below copies out only the finished tree, so npm and its dependencies never
12
12
  # reach the published image. npm accounted for 38 of the 59 HIGH/CRITICAL findings in the old image
13
13
  # (a vendored tar, pacote, sigstore, minimatch) and nothing at runtime ever invokes it.
14
- FROM node:24-alpine@sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1 AS builder
14
+ FROM node:24-alpine@sha256:44fce696f38ba8c987c4db89954051000bbd05ffd8d8659ba15ed4a8602e937f AS builder
15
15
 
16
16
  ARG BUILDPLATFORM
17
17
  ARG TARGETPLATFORM
@@ -74,7 +74,7 @@ RUN : "${EE_COMMIT_HASH:?EE_COMMIT_HASH build arg is required, e.g. --build-arg
74
74
  && rm -f update-info.sh
75
75
 
76
76
  # Runtime stage.
77
- FROM node:24-alpine@sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1
77
+ FROM node:24-alpine@sha256:44fce696f38ba8c987c4db89954051000bbd05ffd8d8659ba15ed4a8602e937f
78
78
 
79
79
  # `apk upgrade` patches the Alpine packages that the base image itself lags on - at the time of
80
80
  # writing node:24-alpine still carries an openssl below 3.5.8-r0. dumb-init reaps zombies as PID 1.
@@ -100,6 +100,12 @@ ENV EENGINE_HOST=0.0.0.0
100
100
  ENV EENGINE_API_PROXY=true
101
101
  # The pure JavaScript msgpackr decoder is what the pkg binary uses, so npm and Docker installs decode the same way and no native addon is loaded
102
102
  ENV MSGPACKR_NATIVE_ACCELERATION_DISABLED=true
103
+ # Caps each thread's young generation at the size Node 22 used. Node 24 (V8 13.6) quadrupled the
104
+ # default, and every worker thread grows to it during startup, which raised the startup RSS of an
105
+ # empty instance by about half. The limit applies to each thread separately, not to the process. A
106
+ # NODE_OPTIONS given at run time replaces this one, so keep the flag in it to keep the cap. The pkg
107
+ # binary bakes the same value in package.json, and test/node-heap-options-test.js keeps the two equal.
108
+ ENV NODE_OPTIONS=--max-semi-space-size=16
103
109
 
104
110
  ENTRYPOINT ["/usr/bin/dumb-init", "--"]
105
111
  CMD ["node", "/emailengine/server.js"]
package/README.md CHANGED
@@ -13,7 +13,7 @@ A headless email client application that provides access to IMAP, SMTP, Gmail AP
13
13
 
14
14
  - Sync users' emails with your service and send emails on their behalf.
15
15
  - Integrate your app with a dedicated email account, such as your support email.
16
- - [Monitor INBOX and Junk folders](https://learn.emailengine.app/docs/advanced/inbox-placement-testing) of a test email account to track where sent emails land.
16
+ - [Monitor INBOX and Junk folders](https://learn.emailengine.app/docs/sending/deliverability/inbox-placement-testing) of a test email account to track where sent emails land.
17
17
  - Ideal for lightweight webmail and mobile email apps that prefer to avoid direct IMAP and MIME processing.
18
18
 
19
19
  ## Features