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.
Files changed (120) 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 +32 -0
  8. package/Dockerfile +17 -9
  9. package/data/google-crawlers.json +1 -1
  10. package/docker-compose.yml +7 -1
  11. package/lib/api-routes/account-routes.js +158 -72
  12. package/lib/api-routes/permission-map.js +6 -1
  13. package/lib/autodetect-imap-settings.js +4 -4
  14. package/lib/sentry.js +13 -2
  15. package/lib/tls/provision.js +1 -1
  16. package/lib/token-permission-view.js +8 -7
  17. package/lib/tools.js +1 -0
  18. package/lib/ui-routes/account-routes.js +195 -61
  19. package/lib/ui-routes/admin-entities-routes.js +9 -9
  20. package/package.json +13 -13
  21. package/sbom.json +1 -1
  22. package/static/css/flyonui.css +1 -1
  23. package/static/css/public.css +41 -0
  24. package/static/css/src/app.tailwind.css +135 -4
  25. package/static/js/public.js +218 -0
  26. package/static/licenses.html +19 -19
  27. package/translations/README.md +4 -3
  28. package/translations/de.mo +0 -0
  29. package/translations/de.po +296 -185
  30. package/translations/en.po +220 -128
  31. package/translations/es.mo +0 -0
  32. package/translations/es.po +558 -0
  33. package/translations/et.mo +0 -0
  34. package/translations/et.po +288 -181
  35. package/translations/fr.mo +0 -0
  36. package/translations/fr.po +295 -183
  37. package/translations/it.mo +0 -0
  38. package/translations/it.po +558 -0
  39. package/translations/ja.mo +0 -0
  40. package/translations/ja.po +268 -192
  41. package/translations/locales.json +24 -0
  42. package/translations/messages.pot +124 -78
  43. package/translations/nl.mo +0 -0
  44. package/translations/nl.po +288 -175
  45. package/translations/pl.mo +0 -0
  46. package/translations/pl.po +294 -181
  47. package/translations/sv.mo +0 -0
  48. package/translations/sv.po +555 -0
  49. package/translations/tr.mo +0 -0
  50. package/translations/tr.po +555 -0
  51. package/update-info.sh +12 -6
  52. package/views/account/login-redirect.hbs +6 -5
  53. package/views/account/passkeys.hbs +6 -6
  54. package/views/account/security.hbs +2 -2
  55. package/views/accounts/account.hbs +17 -19
  56. package/views/accounts/edit.hbs +14 -14
  57. package/views/accounts/index.hbs +3 -3
  58. package/views/accounts/register/imap-server.hbs +26 -172
  59. package/views/accounts/register/validating.hbs +139 -0
  60. package/views/config/ai.hbs +14 -16
  61. package/views/config/branding.hbs +5 -5
  62. package/views/config/document-store/chat.hbs +8 -7
  63. package/views/config/document-store/index.hbs +13 -14
  64. package/views/config/document-store/mappings/index.hbs +5 -6
  65. package/views/config/document-store/mappings/new.hbs +1 -2
  66. package/views/config/document-store/pre-processing/index.hbs +4 -4
  67. package/views/config/email-processing.hbs +6 -6
  68. package/views/config/imap-proxy.hbs +6 -7
  69. package/views/config/license.hbs +8 -8
  70. package/views/config/logging.hbs +5 -7
  71. package/views/config/mcp.hbs +14 -18
  72. package/views/config/network.hbs +3 -3
  73. package/views/config/oauth/app.hbs +10 -10
  74. package/views/config/oauth/index.hbs +6 -6
  75. package/views/config/oauth/subscriptions.hbs +9 -9
  76. package/views/config/security.hbs +5 -7
  77. package/views/config/service.hbs +10 -9
  78. package/views/config/smtp.hbs +8 -11
  79. package/views/config/tls-upload.hbs +3 -3
  80. package/views/config/tls.hbs +33 -35
  81. package/views/config/webhooks.hbs +10 -13
  82. package/views/dashboard.hbs +9 -8
  83. package/views/gateways/edit.hbs +3 -3
  84. package/views/gateways/gateway.hbs +3 -3
  85. package/views/gateways/index.hbs +6 -6
  86. package/views/gateways/new.hbs +3 -3
  87. package/views/internals/index.hbs +14 -12
  88. package/views/layout/login.hbs +27 -14
  89. package/views/layout/prompt.hbs +12 -15
  90. package/views/mcp/authorize.hbs +1 -1
  91. package/views/partials/accounts_table.hbs +5 -5
  92. package/views/partials/add_account_modal.hbs +3 -3
  93. package/views/partials/address_list.hbs +4 -4
  94. package/views/partials/gateway_form.hbs +5 -5
  95. package/views/partials/mcp_account_limit.hbs +2 -2
  96. package/views/partials/oauth_config_header.hbs +2 -2
  97. package/views/partials/oauth_form.hbs +36 -41
  98. package/views/partials/public_alerts.hbs +1 -1
  99. package/views/partials/public_test_labels.hbs +15 -0
  100. package/views/partials/security_header.hbs +2 -2
  101. package/views/partials/template_form.hbs +3 -3
  102. package/views/partials/tls_security_card.hbs +4 -1
  103. package/views/partials/ui/form-field.hbs +6 -1
  104. package/views/partials/ui/setting-ref.hbs +12 -7
  105. package/views/partials/ui/stat-card.hbs +4 -1
  106. package/views/partials/ui/tabs.hbs +3 -7
  107. package/views/partials/webhook_form.hbs +9 -12
  108. package/views/reference/index.hbs +2 -2
  109. package/views/reference/token.hbs +3 -3
  110. package/views/suppression-lists/index.hbs +8 -6
  111. package/views/suppression-lists/list.hbs +13 -8
  112. package/views/templates/edit.hbs +1 -1
  113. package/views/templates/index.hbs +10 -11
  114. package/views/templates/template.hbs +4 -4
  115. package/views/tokens/index.hbs +17 -17
  116. package/views/tokens/new.hbs +18 -22
  117. package/views/webhooks/edit.hbs +1 -1
  118. package/views/webhooks/index.hbs +10 -11
  119. package/views/webhooks/new.hbs +1 -1
  120. package/views/webhooks/webhook.hbs +4 -5
@@ -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 Changes" type="submit" icon="icon-[tabler--settings]"}}
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 value as the
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 Client Email</dt>
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>Secret service key</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 can not be
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 App" action="/admin/config/oauth/delete"
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>Are you sure you want to delete the OAuth2 application "{{app.name}}"? This action cannot be undone.</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:" placeholder="e.g., John Smith"}}
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 identifier (optional):"
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 auto-generate. Existing accounts with this ID will be updated."}}
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
- No messages are lost during the gap because EmailEngine also polls the Gmail API every 10 minutes
113
- and uses the History API to catch up on any missed changes.
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">Disable for development only. Always enable in production for secure API
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 which requests each access token makes, readable at <a
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>. Adds a write to
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 Changes" type="submit" icon="icon-[tabler--settings]"}}
102
+ {{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
105
103
  </div>
106
104
 
107
105
  </form>
@@ -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,7 +119,7 @@
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>
@@ -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>
@@ -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
 
@@ -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">Certificates for the SMTP server, the IMAP proxy, and the admin interface when EmailEngine serves HTTPS
15
- itself. Each listener presents one certificate by default and answers a client that asks for another configured
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 signed by a root nobody trusts, so every client will refuse them. Clear
23
- <code>EENGINE_ACME_DIRECTORY_URL</code> to go back to production.</div>
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 exists, so this listener presents the automatic choice. Save to make that the
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 Changes" type="submit" icon="icon-[tabler--settings]" id="tls-listeners-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 on a phone, where the wrapper scrolls. --}}
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 can not validate
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="Ordered and renewed for every public name. An uploaded certificate
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="Nothing is ordered. Names the upload does not cover get the
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="For an instance the internet can not reach. Clients must pin the
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 Changes" type="submit" icon="icon-[tabler--settings]"}}
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
- Nothing else is needed; the certificate is renewed on its own well before it expires. <em>Check reachability</em>
389
- in a hostname's menu makes exactly that request against this instance's own public name, so a missing DNS record
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