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.
- package/.dockerignore +44 -0
- package/.github/docker-smoke-test.sh +16 -0
- package/.github/workflows/deploy.yml +4 -0
- package/.github/workflows/release.yaml +4 -0
- package/.github/workflows/test.yml +2 -0
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +56 -0
- package/Dockerfile +17 -9
- package/README.md +6 -0
- package/data/google-crawlers.json +1 -1
- package/docker-compose.yml +7 -1
- package/lib/api-routes/account-routes.js +239 -73
- package/lib/api-routes/blocklist-routes.js +24 -0
- package/lib/api-routes/delivery-test-routes.js +6 -0
- package/lib/api-routes/gateway-routes.js +30 -0
- package/lib/api-routes/license-routes.js +10 -0
- package/lib/api-routes/mcp-oauth-routes.js +3 -3
- package/lib/api-routes/mcp-routes.js +39 -21
- package/lib/api-routes/oauth2-app-routes.js +38 -1
- package/lib/api-routes/outbox-routes.js +6 -0
- package/lib/api-routes/permission-map.js +212 -42
- package/lib/api-routes/pubsub-routes.js +8 -0
- package/lib/api-routes/route-helpers.js +58 -11
- package/lib/api-routes/settings-routes.js +50 -4
- package/lib/api-routes/stats-routes.js +6 -0
- package/lib/api-routes/template-routes.js +21 -0
- package/lib/api-routes/token-routes.js +34 -2
- package/lib/api-routes/webhook-route-routes.js +13 -0
- package/lib/autodetect-imap-settings.js +4 -4
- package/lib/email-client/base-client.js +6 -3
- package/lib/email-client/credential-errors.js +4 -0
- package/lib/email-client/imap/login-failure.js +52 -0
- package/lib/email-client/imap/subconnection.js +2 -1
- package/lib/email-client/imap-client.js +3 -6
- package/lib/enum-descriptions.js +12 -2
- package/lib/imapproxy/imap-server.js +1 -1
- package/lib/mcp/oauth.js +46 -8
- package/lib/mcp/protocol.js +78 -35
- package/lib/mcp/tools.js +53 -17
- package/lib/privileged-settings.js +147 -0
- package/lib/schemas.js +60 -16
- package/lib/sentry.js +13 -2
- package/lib/settings.js +13 -0
- package/lib/tls/catalog.js +428 -0
- package/lib/tls/context.js +87 -161
- package/lib/tls/listeners.js +62 -0
- package/lib/tls/provision.js +1 -1
- package/lib/tls/status.js +128 -79
- package/lib/tls/store.js +3 -2
- package/lib/token-permission-view.js +253 -102
- package/lib/token-permissions.js +176 -26
- package/lib/tokens.js +7 -6
- package/lib/tools.js +5 -3
- package/lib/ui-routes/account-routes.js +195 -61
- package/lib/ui-routes/admin-config-routes.js +41 -21
- package/lib/ui-routes/admin-entities-routes.js +32 -22
- package/lib/ui-routes/mcp-consent-routes.js +72 -31
- package/lib/ui-routes/tls-config-routes.js +121 -74
- package/package.json +16 -16
- package/sbom.json +1 -1
- package/server.js +7 -1
- package/static/css/flyonui.css +1 -1
- package/static/css/public.css +41 -0
- package/static/css/src/app.tailwind.css +135 -4
- package/static/js/public.js +218 -0
- package/static/js/ui.js +89 -36
- package/static/licenses.html +55 -37
- package/translations/README.md +4 -3
- package/translations/de.mo +0 -0
- package/translations/de.po +296 -185
- package/translations/en.po +220 -128
- package/translations/es.mo +0 -0
- package/translations/es.po +558 -0
- package/translations/et.mo +0 -0
- package/translations/et.po +288 -181
- package/translations/fr.mo +0 -0
- package/translations/fr.po +295 -183
- package/translations/it.mo +0 -0
- package/translations/it.po +558 -0
- package/translations/ja.mo +0 -0
- package/translations/ja.po +268 -192
- package/translations/locales.json +24 -0
- package/translations/messages.pot +179 -127
- package/translations/nl.mo +0 -0
- package/translations/nl.po +288 -175
- package/translations/pl.mo +0 -0
- package/translations/pl.po +294 -181
- package/translations/sv.mo +0 -0
- package/translations/sv.po +555 -0
- package/translations/tr.mo +0 -0
- package/translations/tr.po +555 -0
- package/update-info.sh +12 -6
- package/views/account/login-redirect.hbs +6 -5
- package/views/account/passkeys.hbs +8 -8
- package/views/account/security.hbs +2 -2
- package/views/accounts/account.hbs +19 -21
- package/views/accounts/browse.hbs +1 -1
- package/views/accounts/edit.hbs +15 -15
- package/views/accounts/index.hbs +3 -3
- package/views/accounts/register/imap-server.hbs +27 -173
- package/views/accounts/register/validating.hbs +139 -0
- package/views/config/ai.hbs +15 -17
- package/views/config/branding.hbs +7 -7
- package/views/config/document-store/chat.hbs +9 -8
- package/views/config/document-store/index.hbs +14 -15
- package/views/config/document-store/mappings/index.hbs +5 -6
- package/views/config/document-store/mappings/new.hbs +1 -2
- package/views/config/document-store/pre-processing/index.hbs +4 -4
- package/views/config/email-processing.hbs +6 -6
- package/views/config/imap-proxy.hbs +7 -8
- package/views/config/license.hbs +9 -9
- package/views/config/logging.hbs +5 -7
- package/views/config/mcp.hbs +90 -58
- package/views/config/network.hbs +4 -4
- package/views/config/oauth/app.hbs +12 -12
- package/views/config/oauth/index.hbs +6 -6
- package/views/config/oauth/subscriptions.hbs +9 -9
- package/views/config/security.hbs +5 -7
- package/views/config/service.hbs +11 -10
- package/views/config/smtp.hbs +9 -12
- package/views/config/tls-upload.hbs +3 -3
- package/views/config/tls.hbs +281 -182
- package/views/config/webhooks.hbs +12 -15
- package/views/dashboard.hbs +9 -8
- package/views/gateways/edit.hbs +3 -3
- package/views/gateways/gateway.hbs +3 -3
- package/views/gateways/index.hbs +6 -6
- package/views/gateways/new.hbs +3 -3
- package/views/internals/index.hbs +15 -13
- package/views/layout/app.hbs +6 -6
- package/views/layout/login.hbs +32 -19
- package/views/layout/main.hbs +2 -2
- package/views/layout/prompt.hbs +15 -18
- package/views/layout/public.hbs +1 -1
- package/views/mcp/authorize.hbs +47 -45
- package/views/partials/accounts_table.hbs +5 -5
- package/views/partials/ace_assets.hbs +1 -1
- package/views/partials/add_account_modal.hbs +4 -4
- package/views/partials/address_list.hbs +4 -4
- package/views/partials/filter_editor_js.hbs +2 -2
- package/views/partials/gateway_form.hbs +5 -5
- package/views/partials/gateway_js.hbs +1 -1
- package/views/partials/mcp_access_levels.hbs +16 -9
- package/views/partials/mcp_account_limit.hbs +2 -2
- package/views/partials/mcp_tool_count.hbs +15 -14
- package/views/partials/oauth_config_header.hbs +2 -2
- package/views/partials/oauth_form.hbs +37 -42
- package/views/partials/public_alerts.hbs +1 -1
- package/views/partials/public_test_labels.hbs +15 -0
- package/views/partials/public_theme_init.hbs +1 -1
- package/views/partials/security_header.hbs +2 -2
- package/views/partials/template_form.hbs +4 -4
- package/views/partials/theme_init.hbs +1 -1
- package/views/partials/tls_security_card.hbs +4 -1
- package/views/partials/ui/form-field.hbs +6 -1
- package/views/partials/ui/setting-ref.hbs +12 -7
- package/views/partials/ui/stat-card.hbs +4 -1
- package/views/partials/ui/tabs.hbs +3 -7
- package/views/partials/webhook_form.hbs +9 -12
- package/views/partials/webhooks_editor_functions.hbs +1 -1
- package/views/reference/index.hbs +3 -3
- package/views/reference/redirect.hbs +1 -1
- package/views/reference/tag.hbs +1 -1
- package/views/reference/token.hbs +4 -4
- package/views/suppression-lists/index.hbs +8 -6
- package/views/suppression-lists/list.hbs +13 -8
- package/views/templates/edit.hbs +1 -1
- package/views/templates/index.hbs +10 -11
- package/views/templates/template.hbs +5 -5
- package/views/tokens/index.hbs +17 -17
- package/views/tokens/new.hbs +190 -93
- package/views/unsubscribe.hbs +1 -1
- package/views/webhooks/edit.hbs +1 -1
- package/views/webhooks/index.hbs +10 -11
- package/views/webhooks/new.hbs +1 -1
- package/views/webhooks/webhook.hbs +5 -6
- package/workers/api.js +9 -8
- package/workers/smtp.js +1 -1
package/views/config/service.hbs
CHANGED
|
@@ -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">
|
|
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
|
|
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="
|
|
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">
|
|
112
|
-
|
|
113
|
-
|
|
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
|
|
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' : '
|
|
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));
|
package/views/config/smtp.hbs
CHANGED
|
@@ -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>
|
|
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>
|
|
8
|
-
|
|
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
|
|
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
|
|
107
|
-
|
|
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
|
|
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">
|
|
37
|
-
|
|
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">
|
|
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
|
|