emailengine-app 2.80.0 → 2.81.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 (178) hide show
  1. package/.dockerignore +44 -0
  2. package/.github/docker-smoke-test.sh +16 -0
  3. package/.github/workflows/deploy.yml +4 -0
  4. package/.github/workflows/release.yaml +4 -0
  5. package/.github/workflows/test.yml +2 -0
  6. package/.release-please-manifest.json +1 -1
  7. package/CHANGELOG.md +56 -0
  8. package/Dockerfile +17 -9
  9. package/README.md +6 -0
  10. package/data/google-crawlers.json +1 -1
  11. package/docker-compose.yml +7 -1
  12. package/lib/api-routes/account-routes.js +239 -73
  13. package/lib/api-routes/blocklist-routes.js +24 -0
  14. package/lib/api-routes/delivery-test-routes.js +6 -0
  15. package/lib/api-routes/gateway-routes.js +30 -0
  16. package/lib/api-routes/license-routes.js +10 -0
  17. package/lib/api-routes/mcp-oauth-routes.js +3 -3
  18. package/lib/api-routes/mcp-routes.js +39 -21
  19. package/lib/api-routes/oauth2-app-routes.js +38 -1
  20. package/lib/api-routes/outbox-routes.js +6 -0
  21. package/lib/api-routes/permission-map.js +212 -42
  22. package/lib/api-routes/pubsub-routes.js +8 -0
  23. package/lib/api-routes/route-helpers.js +58 -11
  24. package/lib/api-routes/settings-routes.js +50 -4
  25. package/lib/api-routes/stats-routes.js +6 -0
  26. package/lib/api-routes/template-routes.js +21 -0
  27. package/lib/api-routes/token-routes.js +34 -2
  28. package/lib/api-routes/webhook-route-routes.js +13 -0
  29. package/lib/autodetect-imap-settings.js +4 -4
  30. package/lib/email-client/base-client.js +6 -3
  31. package/lib/email-client/credential-errors.js +4 -0
  32. package/lib/email-client/imap/login-failure.js +52 -0
  33. package/lib/email-client/imap/subconnection.js +2 -1
  34. package/lib/email-client/imap-client.js +3 -6
  35. package/lib/enum-descriptions.js +12 -2
  36. package/lib/imapproxy/imap-server.js +1 -1
  37. package/lib/mcp/oauth.js +46 -8
  38. package/lib/mcp/protocol.js +78 -35
  39. package/lib/mcp/tools.js +53 -17
  40. package/lib/privileged-settings.js +147 -0
  41. package/lib/schemas.js +60 -16
  42. package/lib/sentry.js +13 -2
  43. package/lib/settings.js +13 -0
  44. package/lib/tls/catalog.js +428 -0
  45. package/lib/tls/context.js +87 -161
  46. package/lib/tls/listeners.js +62 -0
  47. package/lib/tls/provision.js +1 -1
  48. package/lib/tls/status.js +128 -79
  49. package/lib/tls/store.js +3 -2
  50. package/lib/token-permission-view.js +253 -102
  51. package/lib/token-permissions.js +176 -26
  52. package/lib/tokens.js +7 -6
  53. package/lib/tools.js +5 -3
  54. package/lib/ui-routes/account-routes.js +195 -61
  55. package/lib/ui-routes/admin-config-routes.js +41 -21
  56. package/lib/ui-routes/admin-entities-routes.js +32 -22
  57. package/lib/ui-routes/mcp-consent-routes.js +72 -31
  58. package/lib/ui-routes/tls-config-routes.js +121 -74
  59. package/package.json +16 -16
  60. package/sbom.json +1 -1
  61. package/server.js +7 -1
  62. package/static/css/flyonui.css +1 -1
  63. package/static/css/public.css +41 -0
  64. package/static/css/src/app.tailwind.css +135 -4
  65. package/static/js/public.js +218 -0
  66. package/static/js/ui.js +89 -36
  67. package/static/licenses.html +55 -37
  68. package/translations/README.md +4 -3
  69. package/translations/de.mo +0 -0
  70. package/translations/de.po +296 -185
  71. package/translations/en.po +220 -128
  72. package/translations/es.mo +0 -0
  73. package/translations/es.po +558 -0
  74. package/translations/et.mo +0 -0
  75. package/translations/et.po +288 -181
  76. package/translations/fr.mo +0 -0
  77. package/translations/fr.po +295 -183
  78. package/translations/it.mo +0 -0
  79. package/translations/it.po +558 -0
  80. package/translations/ja.mo +0 -0
  81. package/translations/ja.po +268 -192
  82. package/translations/locales.json +24 -0
  83. package/translations/messages.pot +179 -127
  84. package/translations/nl.mo +0 -0
  85. package/translations/nl.po +288 -175
  86. package/translations/pl.mo +0 -0
  87. package/translations/pl.po +294 -181
  88. package/translations/sv.mo +0 -0
  89. package/translations/sv.po +555 -0
  90. package/translations/tr.mo +0 -0
  91. package/translations/tr.po +555 -0
  92. package/update-info.sh +12 -6
  93. package/views/account/login-redirect.hbs +6 -5
  94. package/views/account/passkeys.hbs +8 -8
  95. package/views/account/security.hbs +2 -2
  96. package/views/accounts/account.hbs +19 -21
  97. package/views/accounts/browse.hbs +1 -1
  98. package/views/accounts/edit.hbs +15 -15
  99. package/views/accounts/index.hbs +3 -3
  100. package/views/accounts/register/imap-server.hbs +27 -173
  101. package/views/accounts/register/validating.hbs +139 -0
  102. package/views/config/ai.hbs +15 -17
  103. package/views/config/branding.hbs +7 -7
  104. package/views/config/document-store/chat.hbs +9 -8
  105. package/views/config/document-store/index.hbs +14 -15
  106. package/views/config/document-store/mappings/index.hbs +5 -6
  107. package/views/config/document-store/mappings/new.hbs +1 -2
  108. package/views/config/document-store/pre-processing/index.hbs +4 -4
  109. package/views/config/email-processing.hbs +6 -6
  110. package/views/config/imap-proxy.hbs +7 -8
  111. package/views/config/license.hbs +9 -9
  112. package/views/config/logging.hbs +5 -7
  113. package/views/config/mcp.hbs +90 -58
  114. package/views/config/network.hbs +4 -4
  115. package/views/config/oauth/app.hbs +12 -12
  116. package/views/config/oauth/index.hbs +6 -6
  117. package/views/config/oauth/subscriptions.hbs +9 -9
  118. package/views/config/security.hbs +5 -7
  119. package/views/config/service.hbs +11 -10
  120. package/views/config/smtp.hbs +9 -12
  121. package/views/config/tls-upload.hbs +3 -3
  122. package/views/config/tls.hbs +281 -182
  123. package/views/config/webhooks.hbs +12 -15
  124. package/views/dashboard.hbs +9 -8
  125. package/views/gateways/edit.hbs +3 -3
  126. package/views/gateways/gateway.hbs +3 -3
  127. package/views/gateways/index.hbs +6 -6
  128. package/views/gateways/new.hbs +3 -3
  129. package/views/internals/index.hbs +15 -13
  130. package/views/layout/app.hbs +6 -6
  131. package/views/layout/login.hbs +32 -19
  132. package/views/layout/main.hbs +2 -2
  133. package/views/layout/prompt.hbs +15 -18
  134. package/views/layout/public.hbs +1 -1
  135. package/views/mcp/authorize.hbs +47 -45
  136. package/views/partials/accounts_table.hbs +5 -5
  137. package/views/partials/ace_assets.hbs +1 -1
  138. package/views/partials/add_account_modal.hbs +4 -4
  139. package/views/partials/address_list.hbs +4 -4
  140. package/views/partials/filter_editor_js.hbs +2 -2
  141. package/views/partials/gateway_form.hbs +5 -5
  142. package/views/partials/gateway_js.hbs +1 -1
  143. package/views/partials/mcp_access_levels.hbs +16 -9
  144. package/views/partials/mcp_account_limit.hbs +2 -2
  145. package/views/partials/mcp_tool_count.hbs +15 -14
  146. package/views/partials/oauth_config_header.hbs +2 -2
  147. package/views/partials/oauth_form.hbs +37 -42
  148. package/views/partials/public_alerts.hbs +1 -1
  149. package/views/partials/public_test_labels.hbs +15 -0
  150. package/views/partials/public_theme_init.hbs +1 -1
  151. package/views/partials/security_header.hbs +2 -2
  152. package/views/partials/template_form.hbs +4 -4
  153. package/views/partials/theme_init.hbs +1 -1
  154. package/views/partials/tls_security_card.hbs +4 -1
  155. package/views/partials/ui/form-field.hbs +6 -1
  156. package/views/partials/ui/setting-ref.hbs +12 -7
  157. package/views/partials/ui/stat-card.hbs +4 -1
  158. package/views/partials/ui/tabs.hbs +3 -7
  159. package/views/partials/webhook_form.hbs +9 -12
  160. package/views/partials/webhooks_editor_functions.hbs +1 -1
  161. package/views/reference/index.hbs +3 -3
  162. package/views/reference/redirect.hbs +1 -1
  163. package/views/reference/tag.hbs +1 -1
  164. package/views/reference/token.hbs +4 -4
  165. package/views/suppression-lists/index.hbs +8 -6
  166. package/views/suppression-lists/list.hbs +13 -8
  167. package/views/templates/edit.hbs +1 -1
  168. package/views/templates/index.hbs +10 -11
  169. package/views/templates/template.hbs +5 -5
  170. package/views/tokens/index.hbs +17 -17
  171. package/views/tokens/new.hbs +190 -93
  172. package/views/unsubscribe.hbs +1 -1
  173. package/views/webhooks/edit.hbs +1 -1
  174. package/views/webhooks/index.hbs +10 -11
  175. package/views/webhooks/new.hbs +1 -1
  176. package/views/webhooks/webhook.hbs +5 -6
  177. package/workers/api.js +9 -8
  178. package/workers/smtp.js +1 -1
@@ -15,7 +15,7 @@
15
15
  {{#> ui/form-field id="settingsServiceUrl" label="Service URL" error=errors.serviceUrl}}
16
16
  <input type="url" class="input{{#if errors.serviceUrl}} is-invalid{{/if}}" id="settingsServiceUrl"
17
17
  name="serviceUrl" value="{{values.serviceUrl}}" data-lpignore="true" autocomplete="off" />
18
- <span class="helper-text">Base URL where EmailEngine is accessible (without any path).</span>
18
+ <span class="helper-text">URL used to reach this EmailEngine instance, including http:// or https:// and no path.</span>
19
19
  {{/ui/form-field}}
20
20
  </div>
21
21
 
@@ -53,7 +53,7 @@
53
53
  {{/each}}
54
54
  </select>
55
55
  <span class="helper-text">
56
- Default language for UI and API responses.
56
+ Default language for public pages and translated API messages. The admin interface is in English.
57
57
  </span>
58
58
  {{/ui/form-field}}
59
59
 
@@ -95,7 +95,7 @@
95
95
  {{/ui/card}}
96
96
 
97
97
  <div id="queue_settings" class="card bg-base-100 shadow-md mb-6">
98
- <div class="card-header flex items-center justify-between">
98
+ <div class="card-header flex flex-wrap items-center justify-between gap-3">
99
99
  <h6 class="card-title text-primary">Queue Management</h6>
100
100
  {{> ui/btn label="Clear completed jobs" variant="neutral" style="soft" size="sm" id="clean-queues-btn"
101
101
  icon="icon-[tabler--trash] clean-icon"}}
@@ -104,13 +104,14 @@
104
104
  <div class="card-body">
105
105
  <div>
106
106
  {{> ui/setting-ref name="queueKeep"}}
107
- {{#> ui/form-field id="settingsQueueKeep" label="Job History Limit" error=errors.queueKeep}}
107
+ {{#> ui/form-field id="settingsQueueKeep" label="Completed job history limit" error=errors.queueKeep}}
108
108
  <input type="number" min="0" class="input{{#if errors.queueKeep}} is-invalid{{/if}}"
109
109
  id="settingsQueueKeep" name="queueKeep" value="{{values.queueKeep}}" data-lpignore="true"
110
110
  autocomplete="off" />
111
- <span class="helper-text">Number of completed/failed jobs to keep in <a href="/admin/bull-board"
112
- target="_blank" rel="noopener noreferrer" class="link link-animated">Bull Board</a>. Set to 0 to
113
- disable history.</span>
111
+ <span class="helper-text">Maximum completed jobs to retain per queue for up to 24 hours. Set to 0 to remove completed jobs.
112
+ Failed jobs are retained separately, even when this is 0; this value also raises their count limit
113
+ if it exceeds the configured failed-job limit. Review retained jobs on the <a href="/admin/bull-board"
114
+ target="_blank" rel="noopener noreferrer" class="link link-animated">Queues</a> page.</span>
114
115
  {{/ui/form-field}}
115
116
  </div>
116
117
 
@@ -118,12 +119,12 @@
118
119
  </div>
119
120
 
120
121
  <div class="mb-6">
121
- {{> ui/btn label="Save Changes" type="submit" icon="icon-[tabler--settings]"}}
122
+ {{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
122
123
  </div>
123
124
 
124
125
  </form>
125
126
 
126
- <script nonce="{{cspNonce}}">
127
+ <script data-cfasync="false" nonce="{{cspNonce}}">
127
128
  document.addEventListener('DOMContentLoaded', () => {
128
129
 
129
130
  const sendCleanPayload = async () => {
@@ -139,7 +140,7 @@
139
140
  uiButtonBusy(cleanQueuesBtn, true);
140
141
 
141
142
  sendCleanPayload().then(data => {
142
- showToast(data.error ? data.error : (data.success ? 'Cleanup request sent' : 'Failed to send payload'), data.success ? 'check-circle' : 'alert-triangle');
143
+ showToast(data.error ? data.error : (data.success ? 'Cleanup request sent' : 'Could not request queue cleanup. Try again.'), data.success ? 'check-circle' : 'alert-triangle');
143
144
  }).catch(err => {
144
145
  showToast('Request failed\n' + err.message, 'alert-triangle');
145
146
  }).finally(() => uiButtonBusy(cleanQueuesBtn, false));
@@ -2,12 +2,10 @@
2
2
  tooltip through the /admin/changes SSE feed (targets .state-info[data-type]) --}}
3
3
  {{> ui/page-header title="SMTP Server" icon="icon-[tabler--server]" stateLabel=serverState.label stateType="smtp" class="mb-1"}}
4
4
 
5
- <p>Send emails through EmailEngine using SMTP protocol. While the <a
5
+ <p>Let applications submit email through EmailEngine using SMTP. You can also send email with the <a
6
6
  href="/admin/reference/submit#postV1AccountAccountSubmit" target="_blank" rel="noopener noreferrer"
7
- referrerpolicy="no-referrer" class="link link-animated">submission API</a> is recommended for modern
8
- applications, the SMTP
9
- interface supports legacy systems that require traditional email sending.</p>
10
- <p class="mb-6">Configure your SMTP server settings below.</p>
7
+ referrerpolicy="no-referrer" class="link link-animated">submission API</a>.</p>
8
+ <p class="mb-6">Set the address, authentication, and TLS options for the SMTP server.</p>
11
9
 
12
10
  {{> ui/env-managed-alert}}
13
11
 
@@ -20,7 +18,7 @@
20
18
  <h6 class="card-title text-primary">Server Configuration</h6>
21
19
  </div>
22
20
 
23
- <div class="px-6 py-4 border-b border-base-content/10 flex items-start justify-between gap-4">
21
+ <div class="px-6 py-4 border-b border-base-content/10 ee-toggle-row flex items-start justify-between gap-4">
24
22
  {{> ui/checkbox id="smtpServerEnabled" name="smtpServerEnabled" label="Enable SMTP Server"
25
23
  checked=values.smtpServerEnabled error=errors.smtpServerEnabled
26
24
  hint="Start the SMTP server to accept email submissions."}}
@@ -50,8 +48,7 @@
50
48
  class="input basicAutoComplete trigger-example-render{{#if errors.smtpServerHost}} is-invalid{{/if}}"
51
49
  id="smtpServerHost" name="smtpServerHost" value="{{values.smtpServerHost}}" data-lpignore="true"
52
50
  autocomplete="off" />
53
- <span class="helper-text">IP address to bind to. Use "0.0.0.0" or leave empty to accept connections from
54
- anywhere.</span>
51
+ <span class="helper-text">IP address the server listens on. Use "0.0.0.0" or leave blank to listen on all IPv4 interfaces.</span>
55
52
  {{/ui/form-field}}
56
53
  </div>
57
54
 
@@ -103,8 +100,8 @@
103
100
 
104
101
  {{#> ui/details summary="Integration Examples" class="card bg-base-100 shadow-md mb-6"}}
105
102
 
106
- <p><strong>With authentication enabled:</strong> Use the account ID as username and password for SMTP
107
- login.</p>
103
+ <p><strong>With authentication enabled:</strong> Use the account ID as the username. Use an access token with
104
+ SMTP scope or the global password as the password.</p>
108
105
 
109
106
  <p class="mb-4"><strong>With authentication disabled:</strong> Include the <code>X-EE-Account</code> header
110
107
  with the account ID in your messages.</p>
@@ -135,7 +132,7 @@
135
132
  {{/ui/details}}
136
133
 
137
134
  <div class="mb-6">
138
- {{> ui/btn label="Save Changes" type="submit" icon="icon-[tabler--settings]"}}
135
+ {{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
139
136
  </div>
140
137
 
141
138
  </form>
@@ -143,7 +140,7 @@
143
140
 
144
141
  <input type="hidden" id="availableAddresses" value="{{availableAddresses}}">
145
142
 
146
- <script nonce="{{cspNonce}}">
143
+ <script data-cfasync="false" nonce="{{cspNonce}}">
147
144
  document.addEventListener('DOMContentLoaded', () => {
148
145
 
149
146
  let availableAddresses = document.getElementById('availableAddresses').value.split(',').map(e => e.trim()).filter(e => e);
@@ -33,8 +33,8 @@
33
33
  {{> ui/btn label="Choose file" variant="neutral" style="soft" size="sm" icon="icon-[tabler--file-import]"
34
34
  class="file-picker-btn shrink-0" dataName="file-target" dataValue="#uploadCert" id="uploadCertFile"}}
35
35
  </div>
36
- <span class="helper-text">PEM encoded, pasted or dropped onto the field. The server certificate first;
37
- intermediates may follow it here or go in the chain field below.</span>
36
+ <span class="helper-text">Paste or upload PEM content with the server certificate first. Add intermediate certificates here
37
+ or in the Chain field below.</span>
38
38
  {{/ui/form-field}}
39
39
  </div>
40
40
 
@@ -46,7 +46,7 @@
46
46
  {{> ui/btn label="Choose file" variant="neutral" style="soft" size="sm" icon="icon-[tabler--file-import]"
47
47
  class="file-picker-btn shrink-0" dataName="file-target" dataValue="#uploadKey" id="uploadKeyFile"}}
48
48
  </div>
49
- <span class="helper-text">Stored encrypted with the instance secret and never shown again.</span>
49
+ <span class="helper-text">Encrypted at rest when an instance secret (EENGINE_SECRET) is configured. The saved key is never shown again.</span>
50
50
  {{/ui/form-field}}
51
51
  </div>
52
52