emailengine-app 2.80.1 → 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 +32 -0
- package/Dockerfile +17 -9
- package/data/google-crawlers.json +1 -1
- package/docker-compose.yml +7 -1
- package/lib/api-routes/account-routes.js +158 -72
- package/lib/api-routes/permission-map.js +6 -1
- package/lib/autodetect-imap-settings.js +4 -4
- package/lib/sentry.js +13 -2
- package/lib/tls/provision.js +1 -1
- package/lib/token-permission-view.js +8 -7
- package/lib/tools.js +1 -0
- package/lib/ui-routes/account-routes.js +195 -61
- package/lib/ui-routes/admin-entities-routes.js +9 -9
- package/package.json +13 -13
- package/sbom.json +1 -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/licenses.html +19 -19
- 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 +124 -78
- 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 +6 -6
- package/views/account/security.hbs +2 -2
- package/views/accounts/account.hbs +17 -19
- package/views/accounts/edit.hbs +14 -14
- package/views/accounts/index.hbs +3 -3
- package/views/accounts/register/imap-server.hbs +26 -172
- package/views/accounts/register/validating.hbs +139 -0
- package/views/config/ai.hbs +14 -16
- package/views/config/branding.hbs +5 -5
- package/views/config/document-store/chat.hbs +8 -7
- package/views/config/document-store/index.hbs +13 -14
- 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 +6 -7
- package/views/config/license.hbs +8 -8
- package/views/config/logging.hbs +5 -7
- package/views/config/mcp.hbs +14 -18
- package/views/config/network.hbs +3 -3
- package/views/config/oauth/app.hbs +10 -10
- 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 +10 -9
- package/views/config/smtp.hbs +8 -11
- package/views/config/tls-upload.hbs +3 -3
- package/views/config/tls.hbs +33 -35
- package/views/config/webhooks.hbs +10 -13
- 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 +14 -12
- package/views/layout/login.hbs +27 -14
- package/views/layout/prompt.hbs +12 -15
- package/views/mcp/authorize.hbs +1 -1
- package/views/partials/accounts_table.hbs +5 -5
- package/views/partials/add_account_modal.hbs +3 -3
- package/views/partials/address_list.hbs +4 -4
- package/views/partials/gateway_form.hbs +5 -5
- package/views/partials/mcp_account_limit.hbs +2 -2
- package/views/partials/oauth_config_header.hbs +2 -2
- package/views/partials/oauth_form.hbs +36 -41
- package/views/partials/public_alerts.hbs +1 -1
- package/views/partials/public_test_labels.hbs +15 -0
- package/views/partials/security_header.hbs +2 -2
- package/views/partials/template_form.hbs +3 -3
- 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/reference/index.hbs +2 -2
- package/views/reference/token.hbs +3 -3
- 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 +4 -4
- package/views/tokens/index.hbs +17 -17
- package/views/tokens/new.hbs +18 -22
- 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 +4 -5
package/views/config/network.hbs
CHANGED
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
</div>
|
|
134
134
|
|
|
135
135
|
<div class="card bg-base-100 shadow-md mb-6">
|
|
136
|
-
<div class="card-header flex items-center justify-between">
|
|
136
|
+
<div class="card-header flex flex-wrap items-center justify-between gap-3">
|
|
137
137
|
<h6 class="card-title text-primary">Available IP Addresses</h6>
|
|
138
138
|
{{> ui/btn label="Scan for IPs" id="reload-btn" icon="icon-[tabler--refresh] reload-icon"}}
|
|
139
139
|
</div>
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
become unavailable, EmailEngine falls back to server defaults.
|
|
145
145
|
</div>
|
|
146
146
|
<div class="overflow-x-auto">
|
|
147
|
-
<table class="table">
|
|
147
|
+
<table class="table ee-table-stack">
|
|
148
148
|
<thead>
|
|
149
149
|
<tr>
|
|
150
150
|
<th>
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
</div>
|
|
173
173
|
|
|
174
174
|
<div class="mb-6">
|
|
175
|
-
{{> ui/btn label="Save
|
|
175
|
+
{{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
|
|
176
176
|
</div>
|
|
177
177
|
|
|
178
178
|
</form>
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
<dd>
|
|
77
77
|
{{> ui/copy-field id="appIdValue" value=app.id ariaLabel="ID" small=true join=true
|
|
78
78
|
class="w-full max-w-md" inputClass="bg-base-200 border-0"}}
|
|
79
|
-
<span class="helper-text" id="inputDescriptionHelp">Use this ID
|
|
79
|
+
<span class="helper-text" id="inputDescriptionHelp">Use this ID as the
|
|
80
80
|
<em>"provider"</em> property in the account's OAuth2 options.</span>
|
|
81
81
|
</dd>
|
|
82
82
|
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
{{/if}}
|
|
112
112
|
|
|
113
113
|
{{#if app.serviceClientEmail}}
|
|
114
|
-
<dt>Service
|
|
114
|
+
<dt>Service account email</dt>
|
|
115
115
|
<dd class="font-mono"><small>{{app.serviceClientEmail}}</small></dd>
|
|
116
116
|
{{/if}}
|
|
117
117
|
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
{{/if}}
|
|
122
122
|
|
|
123
123
|
{{#if app.serviceKey}}
|
|
124
|
-
<dt>
|
|
124
|
+
<dt>Private key</dt>
|
|
125
125
|
<dd class="font-mono"><small>*****</small></dd>
|
|
126
126
|
{{/if}}
|
|
127
127
|
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
|
|
208
208
|
{{#if isServiceAccount}}
|
|
209
209
|
{{#> ui/card title="API usage example"}}
|
|
210
|
-
<p class="text-base-content/60 text-sm mb-2">This application uses service credentials, so accounts
|
|
210
|
+
<p class="text-base-content/60 text-sm mb-2">This application uses service credentials, so accounts cannot be
|
|
211
211
|
added through the hosted authentication form. Use the API to register email accounts instead.</p>
|
|
212
212
|
<pre
|
|
213
213
|
class="ee-code-block mb-0 whitespace-pre-wrap break-words"><code>curl -XPOST "{{serviceUrl}}/v1/account" \
|
|
@@ -287,9 +287,9 @@
|
|
|
287
287
|
{{/if}}
|
|
288
288
|
|
|
289
289
|
|
|
290
|
-
{{#> ui/confirm-modal id="deleteModal" title="Delete OAuth2
|
|
290
|
+
{{#> ui/confirm-modal id="deleteModal" title="Delete OAuth2 app" action="/admin/config/oauth/delete"
|
|
291
291
|
fieldName="app" fieldValue=app.id submitLabel="Delete app" submitIcon="icon-[tabler--trash]"}}
|
|
292
|
-
<p>
|
|
292
|
+
<p>Delete the OAuth2 app "{{app.name}}"? Accounts using this app will stop working until reconfigured. This action cannot be undone.</p>
|
|
293
293
|
{{/ui/confirm-modal}}
|
|
294
294
|
|
|
295
295
|
{{#> ui/modal id="verifySetupModal" title="Verify OAuth2 setup" titleId="verifySetupModalLabel" dialogClass="max-w-3xl"}}
|
|
@@ -334,18 +334,18 @@ fieldName="app" fieldValue=app.id submitLabel="Delete app" submitIcon="icon-[tab
|
|
|
334
334
|
screen, so the account is registered directly. The mailbox must be reachable with the
|
|
335
335
|
application's service credentials.</small></p>
|
|
336
336
|
<div>
|
|
337
|
-
{{> ui/form-field id="service-account-name" name="name" label="Full name
|
|
337
|
+
{{> ui/form-field id="service-account-name" name="name" label="Full name" placeholder="e.g., John Smith"}}
|
|
338
338
|
</div>
|
|
339
339
|
<div>
|
|
340
|
-
{{#> ui/form-field id="service-account-email" label="Email address
|
|
340
|
+
{{#> ui/form-field id="service-account-email" label="Email address"}}
|
|
341
341
|
<input type="email" class="input" id="service-account-email" name="email"
|
|
342
342
|
placeholder="e.g., user@example.com" required>
|
|
343
343
|
{{/ui/form-field}}
|
|
344
344
|
</div>
|
|
345
345
|
<div>
|
|
346
|
-
{{> ui/form-field id="service-account-id" name="account" label="Account
|
|
346
|
+
{{> ui/form-field id="service-account-id" name="account" label="Account ID (optional)"
|
|
347
347
|
placeholder="e.g., account_123"
|
|
348
|
-
hint="Leave blank to
|
|
348
|
+
hint="Leave blank to generate an ID. Using an existing ID updates that account."}}
|
|
349
349
|
</div>
|
|
350
350
|
</div>
|
|
351
351
|
<div class="modal-footer">
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
{{#if apps}}
|
|
22
22
|
<div class="card bg-base-100 shadow-md mb-6">
|
|
23
23
|
<div class="overflow-x-auto">
|
|
24
|
-
<table class="table">
|
|
24
|
+
<table class="table ee-table-stack">
|
|
25
25
|
<thead>
|
|
26
26
|
<tr>
|
|
27
27
|
<th>Name</th>
|
|
@@ -49,19 +49,19 @@
|
|
|
49
49
|
{{/if}}
|
|
50
50
|
</td>
|
|
51
51
|
|
|
52
|
-
<td class="relative">
|
|
52
|
+
<td class="relative" data-label="Description">
|
|
53
53
|
{{> ui/row-link href=(concat "/admin/config/oauth/app/" id)}}{{description}}
|
|
54
54
|
</td>
|
|
55
55
|
|
|
56
|
-
<td class="relative">
|
|
56
|
+
<td class="relative" data-label="Type">
|
|
57
57
|
{{> ui/row-link href=(concat "/admin/config/oauth/app/" id)}}{{providerData.comment}}
|
|
58
58
|
</td>
|
|
59
59
|
|
|
60
|
-
<td class="relative">
|
|
60
|
+
<td class="relative" data-label="Base scopes">
|
|
61
61
|
{{> ui/row-link href=(concat "/admin/config/oauth/app/" id)}}{{baseScopesText}}
|
|
62
62
|
</td>
|
|
63
63
|
|
|
64
|
-
<td class="relative">
|
|
64
|
+
<td class="relative" data-label="Status">
|
|
65
65
|
{{> ui/row-link href=(concat "/admin/config/oauth/app/" id)}}
|
|
66
66
|
{{#if enabled}}
|
|
67
67
|
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
{{/if}}
|
|
76
76
|
</td>
|
|
77
77
|
|
|
78
|
-
<td class="relative text-end">
|
|
78
|
+
<td class="ee-stack-actions relative text-end">
|
|
79
79
|
{{> ui/row-actions openHref=(concat "/admin/config/oauth/app/" id) label="OAuth2 app actions"
|
|
80
80
|
deleteModal="#deleteOauthApp" deleteId=id deleteName=name}}
|
|
81
81
|
</td>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
{{#if apps}}
|
|
6
6
|
<div class="card bg-base-100 shadow-md mb-6">
|
|
7
7
|
<div class="overflow-x-auto">
|
|
8
|
-
<table class="table">
|
|
8
|
+
<table class="table ee-table-stack">
|
|
9
9
|
<thead>
|
|
10
10
|
<tr>
|
|
11
11
|
<th>Name</th>
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
{{> ui/entity-id id=id prefix="Provider ID"}}
|
|
28
28
|
</td>
|
|
29
29
|
|
|
30
|
-
<td class="relative">
|
|
30
|
+
<td class="relative" data-label="Project ID">
|
|
31
31
|
{{> ui/row-link href=(concat "/admin/config/oauth/app/" id)}}{{googleProjectId}}
|
|
32
32
|
</td>
|
|
33
33
|
|
|
34
|
-
<td class="relative">
|
|
34
|
+
<td class="relative" data-label="Topic">
|
|
35
35
|
{{> ui/row-link href=(concat "/admin/config/oauth/app/" id)}}
|
|
36
36
|
{{#if pubSubTopic}}
|
|
37
37
|
{{> ui/badge label="Created" variant="success"}}
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
{{/if}}
|
|
41
41
|
</td>
|
|
42
42
|
|
|
43
|
-
<td class="relative">
|
|
43
|
+
<td class="relative" data-label="Subscription">
|
|
44
44
|
{{> ui/row-link href=(concat "/admin/config/oauth/app/" id)}}
|
|
45
45
|
{{#if pubSubSubscription}}
|
|
46
46
|
{{> ui/badge label="Created" variant="success"}}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
{{/if}}
|
|
50
50
|
</td>
|
|
51
51
|
|
|
52
|
-
<td class="relative">
|
|
52
|
+
<td class="relative" data-label="Expiration">
|
|
53
53
|
{{> ui/row-link href=(concat "/admin/config/oauth/app/" id)}}
|
|
54
54
|
{{#if expirationLabel}}
|
|
55
55
|
{{expirationLabel}}
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
{{/if}}
|
|
59
59
|
</td>
|
|
60
60
|
|
|
61
|
-
<td class="relative">
|
|
61
|
+
<td class="relative" data-label="Status">
|
|
62
62
|
{{> ui/row-link href=(concat "/admin/config/oauth/app/" id)}}
|
|
63
63
|
{{!-- relative z-[1] on the tooltip lifts the badge above the
|
|
64
64
|
row-overlay link so the error tooltip stays hoverable --}}
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
{{/if}}
|
|
76
76
|
</td>
|
|
77
77
|
|
|
78
|
-
<td class="relative text-end">
|
|
78
|
+
<td class="ee-stack-actions relative text-end">
|
|
79
79
|
{{> ui/row-actions openHref=(concat "/admin/config/oauth/app/" id) label="OAuth2 app actions"}}
|
|
80
80
|
</td>
|
|
81
81
|
</tr>
|
|
@@ -109,8 +109,8 @@
|
|
|
109
109
|
for a set period. This setting controls that period for both new and existing subscriptions.
|
|
110
110
|
Changes take effect the next time an OAuth app is created, updated, or its subscription is recovered.
|
|
111
111
|
If a subscription does expire, EmailEngine detects this and recreates it automatically.
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
EmailEngine also polls the Gmail API about every 10 minutes and uses the History API to catch up
|
|
113
|
+
on missed changes while notifications are unavailable.
|
|
114
114
|
</div>
|
|
115
115
|
|
|
116
116
|
{{/ui/card}}
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
error=errors.enableTokens}}
|
|
18
18
|
{{> ui/badge label=(when values.enableTokens "enabled" "disabled") variant=(when values.enableTokens "success" "error")}}
|
|
19
19
|
{{/ui/checkbox}}
|
|
20
|
-
<span class="helper-text">
|
|
21
|
-
access. Set <code>EENGINE_REQUIRE_API_AUTH=false</code> at startup to disable by default (not
|
|
20
|
+
<span class="helper-text">Require an access token for API requests. Keep this enabled in production. Set <code>EENGINE_REQUIRE_API_AUTH=false</code> at startup to disable by default (not
|
|
22
21
|
recommended).</span>
|
|
23
22
|
</div>
|
|
24
23
|
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
error=errors.enableOAuthTokensApi}}
|
|
41
40
|
<span class="helper-text">Enable <a href="/admin/reference/account#getV1AccountAccountOauthtoken"
|
|
42
41
|
target="_blank" rel="noopener noreferrer" class="link link-animated">API endpoint</a> to
|
|
43
|
-
retrieve OAuth2 tokens. Set <code>EENGINE_ENABLE_OAUTH_TOKENS_API=true</code> at startup to enable
|
|
42
|
+
retrieve accounts' live OAuth2 access tokens. Set <code>EENGINE_ENABLE_OAUTH_TOKENS_API=true</code> at startup to enable
|
|
44
43
|
by default.</span>
|
|
45
44
|
</div>
|
|
46
45
|
|
|
@@ -51,10 +50,9 @@
|
|
|
51
50
|
checked=values.tokenAuditLog error=errors.tokenAuditLog}}
|
|
52
51
|
{{> ui/badge label=(when values.tokenAuditLog "enabled" "disabled") variant=(when values.tokenAuditLog "success" "neutral")}}
|
|
53
52
|
{{/ui/checkbox}}
|
|
54
|
-
<span class="helper-text">Record
|
|
53
|
+
<span class="helper-text">Record requests made with each access token. Read the entries at <a
|
|
55
54
|
href="/admin/reference/access-tokens#getV1TokensTokenLog" target="_blank"
|
|
56
|
-
rel="noopener noreferrer" class="link link-animated">the token log endpoint</a>.
|
|
57
|
-
every authenticated request, and entries only exist from the point this is switched on.</span>
|
|
55
|
+
rel="noopener noreferrer" class="link link-animated">the token log endpoint</a>. Logging starts when enabled and adds a storage write to each authenticated request.</span>
|
|
58
56
|
</div>
|
|
59
57
|
|
|
60
58
|
{{/ui/card}}
|
|
@@ -101,7 +99,7 @@
|
|
|
101
99
|
{{/ui/card}}
|
|
102
100
|
|
|
103
101
|
<div class="mb-6">
|
|
104
|
-
{{> ui/btn label="Save
|
|
102
|
+
{{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
|
|
105
103
|
</div>
|
|
106
104
|
|
|
107
105
|
</form>
|
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,7 +119,7 @@
|
|
|
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>
|
|
@@ -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>
|
|
@@ -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
|
|
package/views/config/tls.hbs
CHANGED
|
@@ -11,16 +11,14 @@ badgeVariant=pageLabel.type class="mb-1"}}
|
|
|
11
11
|
</div>
|
|
12
12
|
{{/ui/page-header}}
|
|
13
13
|
|
|
14
|
-
<p class="mb-6">
|
|
15
|
-
|
|
16
|
-
name with the certificate for that name. Certificates can be ordered from Let's Encrypt, uploaded, supplied through
|
|
17
|
-
the environment, or generated here as a self-signed fallback so a listener always starts.</p>
|
|
14
|
+
<p class="mb-6">Manage TLS certificates for the SMTP server, IMAP proxy, and HTTPS interface. Use Let's Encrypt, upload a
|
|
15
|
+
certificate, supply one through environment variables, or generate a self-signed certificate.</p>
|
|
18
16
|
|
|
19
17
|
{{#if acme.staging}}
|
|
20
18
|
{{#> ui/alert-banner variant="warning" icon="icon-[tabler--flask]" title="Staging certificate authority"}}
|
|
21
19
|
<div>This instance is pointed at the Let's Encrypt staging directory (<code>{{acme.directoryUrl}}</code>). Certificates
|
|
22
|
-
it issues are
|
|
23
|
-
<code>EENGINE_ACME_DIRECTORY_URL</code>
|
|
20
|
+
it issues are for testing and are not trusted by standard clients. To restore the production defaults, clear
|
|
21
|
+
both <code>EENGINE_ACME_DIRECTORY_URL</code> and <code>EENGINE_ACME_ENVIRONMENT</code>, then restart EmailEngine.</div>
|
|
24
22
|
{{/ui/alert-banner}}
|
|
25
23
|
{{/if}}
|
|
26
24
|
|
|
@@ -40,7 +38,7 @@ badgeVariant=pageLabel.type class="mb-1"}}
|
|
|
40
38
|
no host, and for every name it covers. Other configured names are served their own certificate, from the
|
|
41
39
|
table below.</div>
|
|
42
40
|
<div class="overflow-x-auto">
|
|
43
|
-
<table class="table ee-table-wrap table-fixed min-w-[56rem]">
|
|
41
|
+
<table class="table ee-table-wrap table-fixed md:min-w-[56rem] ee-table-stack">
|
|
44
42
|
<thead>
|
|
45
43
|
<tr>
|
|
46
44
|
<th class="w-52">Listener</th>
|
|
@@ -62,7 +60,7 @@ badgeVariant=pageLabel.type class="mb-1"}}
|
|
|
62
60
|
{{/if}}
|
|
63
61
|
</div>
|
|
64
62
|
</td>
|
|
65
|
-
<td class="align-top">
|
|
63
|
+
<td class="align-top" data-label="Default certificate">
|
|
66
64
|
{{> ui/setting-ref name=this.settingKey class="whitespace-nowrap"}}
|
|
67
65
|
<select id="tlsDefault-{{this.key}}" name="{{this.settingKey}}" class="select max-w-md"
|
|
68
66
|
data-tls-default="{{this.key}}">
|
|
@@ -73,11 +71,10 @@ badgeVariant=pageLabel.type class="mb-1"}}
|
|
|
73
71
|
</select>
|
|
74
72
|
{{#equals this.selection "missing"}}
|
|
75
73
|
<span class="helper-text text-warning">{{this.missingLabel}} (<code>{{this.requested}}</code>)
|
|
76
|
-
no longer
|
|
77
|
-
setting.</span>
|
|
74
|
+
is no longer available. This listener is using the automatic choice. Save changes to keep that selection.</span>
|
|
78
75
|
{{/equals}}
|
|
79
76
|
</td>
|
|
80
|
-
<td class="align-top text-sm">
|
|
77
|
+
<td class="align-top text-sm" data-label="Serving now">
|
|
81
78
|
{{#if this.serving.certificate}}
|
|
82
79
|
<div>Presenting {{this.serving.certificate.label}}{{#if this.serving.certificate.validToIso}}, valid
|
|
83
80
|
until <span class="local-time"
|
|
@@ -105,7 +102,7 @@ badgeVariant=pageLabel.type class="mb-1"}}
|
|
|
105
102
|
</table>
|
|
106
103
|
</div>
|
|
107
104
|
<div class="card-footer border-base-content/10 border-t px-6 py-4">
|
|
108
|
-
{{> ui/btn label="Save
|
|
105
|
+
{{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]" id="tls-listeners-save"}}
|
|
109
106
|
</div>
|
|
110
107
|
</div>
|
|
111
108
|
</form>
|
|
@@ -128,9 +125,10 @@ badgeVariant=pageLabel.type class="mb-1"}}
|
|
|
128
125
|
|
|
129
126
|
{{#if certificates}}
|
|
130
127
|
{{!-- Fixed layout, so the line under a row wraps inside the card instead of widening the table;
|
|
131
|
-
the minimum width keeps the columns readable
|
|
128
|
+
the minimum width keeps the columns readable from md up, where this is still a table.
|
|
129
|
+
Below that ee-table-stack turns each row into a block, so the minimum is not applied. --}}
|
|
132
130
|
<div class="overflow-x-auto">
|
|
133
|
-
<table class="table ee-table-wrap table-fixed min-w-[52rem]">
|
|
131
|
+
<table class="table ee-table-wrap table-fixed md:min-w-[52rem] ee-table-stack">
|
|
134
132
|
<thead>
|
|
135
133
|
<tr>
|
|
136
134
|
<th>Hostname</th>
|
|
@@ -149,11 +147,11 @@ badgeVariant=pageLabel.type class="mb-1"}}
|
|
|
149
147
|
<div class="text-base-content/60 text-xs">Service URL</div>
|
|
150
148
|
{{/if}}
|
|
151
149
|
{{#unless this.acmeEligible}}
|
|
152
|
-
<div class="text-base-content/60 text-xs">Not a public name, so Let's Encrypt
|
|
150
|
+
<div class="text-base-content/60 text-xs">Not a public name, so Let's Encrypt cannot validate
|
|
153
151
|
it</div>
|
|
154
152
|
{{/unless}}
|
|
155
153
|
</td>
|
|
156
|
-
<td>
|
|
154
|
+
<td data-label="Status">
|
|
157
155
|
{{!-- the wrapper keeps the badge on one line: the page script rewrites the
|
|
158
156
|
badge's own class list on a live update --}}
|
|
159
157
|
<div class="whitespace-nowrap">
|
|
@@ -161,7 +159,7 @@ badgeVariant=pageLabel.type class="mb-1"}}
|
|
|
161
159
|
dataName="cert-badge" dataValue=this.hostname}}
|
|
162
160
|
</div>
|
|
163
161
|
</td>
|
|
164
|
-
<td>
|
|
162
|
+
<td data-label="Certificate">
|
|
165
163
|
{{#if this.certificate}}
|
|
166
164
|
<a href="#tls-certificates" class="link link-animated">{{this.certificate.label}}</a>
|
|
167
165
|
{{else}}
|
|
@@ -175,13 +173,15 @@ badgeVariant=pageLabel.type class="mb-1"}}
|
|
|
175
173
|
{{this.label}}</div>
|
|
176
174
|
{{/each}}
|
|
177
175
|
</td>
|
|
178
|
-
<td>
|
|
176
|
+
<td data-label="Expires">
|
|
179
177
|
{{#if this.certificate.validToIso}}
|
|
180
178
|
<div><span class="local-time" data-time="{{this.certificate.validToIso}}">{{this.certificate.validToIso}}</span></div>
|
|
181
179
|
<div class="text-base-content/60 text-xs"><span class="relative-time" data-time="{{this.certificate.validToIso}}"></span></div>
|
|
180
|
+
{{else}}
|
|
181
|
+
<span class="text-base-content/40">-</span>
|
|
182
182
|
{{/if}}
|
|
183
183
|
</td>
|
|
184
|
-
<td class="text-end">
|
|
184
|
+
<td class="ee-stack-actions text-end">
|
|
185
185
|
<div class="flex items-center justify-end gap-1 whitespace-nowrap">
|
|
186
186
|
{{#if this.wanted}}
|
|
187
187
|
{{> ui/btn label="Request" variant="primary" style="soft" size="sm" icon="icon-[tabler--refresh]"
|
|
@@ -242,7 +242,7 @@ badgeVariant=pageLabel.type class="mb-1"}}
|
|
|
242
242
|
size="sm" href="/admin/config/tls/upload" icon="icon-[tabler--upload]" id="tls-upload-link"}}
|
|
243
243
|
</div>
|
|
244
244
|
<div class="overflow-x-auto">
|
|
245
|
-
<table class="table ee-table-wrap table-fixed min-w-[56rem]">
|
|
245
|
+
<table class="table ee-table-wrap table-fixed md:min-w-[56rem] ee-table-stack">
|
|
246
246
|
<thead>
|
|
247
247
|
<tr>
|
|
248
248
|
<th>Certificate</th>
|
|
@@ -273,7 +273,7 @@ badgeVariant=pageLabel.type class="mb-1"}}
|
|
|
273
273
|
{{/if}}
|
|
274
274
|
{{/equals}}
|
|
275
275
|
</td>
|
|
276
|
-
<td>
|
|
276
|
+
<td data-label="Covers">
|
|
277
277
|
{{#if this.certificate}}
|
|
278
278
|
<div class="font-mono text-sm break-words">{{#each this.certificate.altNames}}{{this}}{{#unless @last}},
|
|
279
279
|
{{/unless}}{{/each}}</div>
|
|
@@ -281,18 +281,20 @@ badgeVariant=pageLabel.type class="mb-1"}}
|
|
|
281
281
|
<span class="text-base-content/60">Every configured name, generated on first use</span>
|
|
282
282
|
{{/if}}
|
|
283
283
|
</td>
|
|
284
|
-
<td>
|
|
284
|
+
<td data-label="Status">
|
|
285
285
|
<div class="whitespace-nowrap">
|
|
286
286
|
{{> ui/badge label=this.status.text variant=this.status.type title=this.status.title}}
|
|
287
287
|
</div>
|
|
288
288
|
</td>
|
|
289
|
-
<td>
|
|
289
|
+
<td data-label="Expires">
|
|
290
290
|
{{#if this.certificate.validToIso}}
|
|
291
291
|
<div><span class="local-time" data-time="{{this.certificate.validToIso}}">{{this.certificate.validToIso}}</span></div>
|
|
292
292
|
<div class="text-base-content/60 text-xs"><span class="relative-time" data-time="{{this.certificate.validToIso}}"></span></div>
|
|
293
|
+
{{else}}
|
|
294
|
+
<span class="text-base-content/40">-</span>
|
|
293
295
|
{{/if}}
|
|
294
296
|
</td>
|
|
295
|
-
<td>
|
|
297
|
+
<td data-label="Used by">
|
|
296
298
|
{{#if this.usedBy}}
|
|
297
299
|
<div class="flex flex-wrap gap-1">
|
|
298
300
|
{{#each this.usedBy}}
|
|
@@ -303,7 +305,7 @@ badgeVariant=pageLabel.type class="mb-1"}}
|
|
|
303
305
|
<span class="text-base-content/60 text-sm">No listener presents it by default</span>
|
|
304
306
|
{{/if}}
|
|
305
307
|
</td>
|
|
306
|
-
<td class="text-end">
|
|
308
|
+
<td class="ee-stack-actions text-end">
|
|
307
309
|
<div class="flex items-center justify-end gap-1 whitespace-nowrap">
|
|
308
310
|
{{#> ui/row-actions label="Certificate actions"}}
|
|
309
311
|
{{!-- static first item on purpose: a block that opens with a condition can
|
|
@@ -354,22 +356,19 @@ badgeVariant=pageLabel.type class="mb-1"}}
|
|
|
354
356
|
<div>
|
|
355
357
|
{{> ui/setting-ref name="tlsProvisioning"}}
|
|
356
358
|
{{> ui/radio id="tlsProvisioningAcme" name="tlsProvisioning" value="acme" label="Let's Encrypt (recommended)"
|
|
357
|
-
selected=values.tlsProvisioning hint="
|
|
358
|
-
still wins for the names it covers."}}
|
|
359
|
+
selected=values.tlsProvisioning hint="Automatically request and renew certificates for public hostnames. Uploaded certificates take priority for the names they cover."}}
|
|
359
360
|
</div>
|
|
360
361
|
<div>
|
|
361
362
|
{{> ui/radio id="tlsProvisioningManual" name="tlsProvisioning" value="manual" label="Uploaded certificate only"
|
|
362
|
-
selected=values.tlsProvisioning hint="
|
|
363
|
-
self-signed fallback."}}
|
|
363
|
+
selected=values.tlsProvisioning hint="Use the uploaded certificate. Hostnames it does not cover use the self-signed fallback."}}
|
|
364
364
|
</div>
|
|
365
365
|
<div>
|
|
366
366
|
{{> ui/radio id="tlsProvisioningSelfSigned" name="tlsProvisioning" value="self-signed" label="Self-signed only"
|
|
367
|
-
selected=values.tlsProvisioning hint="
|
|
368
|
-
fingerprint or be told to accept the certificate."}}
|
|
367
|
+
selected=values.tlsProvisioning hint="Use a self-signed certificate. Clients must be configured to trust it, for example by pinning its fingerprint."}}
|
|
369
368
|
</div>
|
|
370
369
|
</div>
|
|
371
370
|
<div class="card-footer border-base-content/10 border-t px-6 py-4">
|
|
372
|
-
{{> ui/btn label="Save
|
|
371
|
+
{{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
|
|
373
372
|
</div>
|
|
374
373
|
</div>
|
|
375
374
|
</form>
|
|
@@ -385,9 +384,8 @@ badgeVariant=pageLabel.type class="mb-1"}}
|
|
|
385
384
|
<p class="mb-2">EmailEngine answers the Let's Encrypt <code>http-01</code> challenge itself, at
|
|
386
385
|
<code>/.well-known/acme-challenge/</code>. For that to work, the hostname has to resolve to this machine and a
|
|
387
386
|
request to <strong>port 80</strong> for that name has to reach EmailEngine, directly or through a reverse proxy.
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
or a port 80 that goes somewhere else is reported right away instead of as an opaque ACME error minutes later.</p>
|
|
387
|
+
EmailEngine renews issued certificates automatically. Use <em>Check reachability</em> in a hostname's menu
|
|
388
|
+
to check DNS and port 80 access before requesting a certificate.</p>
|
|
391
389
|
<p>Certificate authority: <code>{{acme.directoryUrl}}</code> (account <code>{{acme.environment}}</code>).</p>
|
|
392
390
|
{{/ui/details}}
|
|
393
391
|
|