emailengine-app 2.87.2 → 2.89.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/.ncurc.js +24 -44
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +37 -0
- package/ENVIRONMENT.md +26 -23
- package/LICENSE_EMAILENGINE.txt +20 -12
- package/app.json +3 -3
- package/bin/emailengine.js +7 -11
- package/data/google-crawlers.json +1 -1
- package/data/public_suffix_list.dat +155 -16
- package/lib/account.js +69 -49
- package/lib/admin-password.js +85 -0
- package/lib/api-routes/license-routes.js +9 -0
- package/lib/api-token-auth.js +21 -5
- package/lib/calendar-event.js +15 -3
- package/lib/consts.js +5 -0
- package/lib/db.js +1 -0
- package/lib/email-client/base-client.js +36 -15
- package/lib/email-client/gmail-client.js +20 -6
- package/lib/email-client/imap/connection-errors.js +30 -1
- package/lib/email-client/imap/session-expiry.js +83 -0
- package/lib/email-client/imap-client.js +12 -2
- package/lib/email-client/smtp-pool-manager.js +66 -8
- package/lib/export.js +147 -22
- package/lib/graph-notifications.js +60 -0
- package/lib/imap-proxy-auth.js +52 -18
- package/lib/imapproxy/imap-core/lib/commands/id.js +4 -2
- package/lib/imapproxy/imap-core/lib/imap-command.js +44 -4
- package/lib/imapproxy/imap-server.js +10 -1
- package/lib/imapproxy/proxy-handoff.js +100 -5
- package/lib/license-subscription.js +244 -0
- package/lib/node-version.js +99 -12
- package/lib/oauth/gmail.js +18 -0
- package/lib/oauth/outlook-identity.js +54 -12
- package/lib/prepared-password.js +38 -0
- package/lib/queue-browser/index.js +6 -6
- package/lib/queue-job-actions.js +59 -4
- package/lib/read-env-value.js +46 -21
- package/lib/redis-url.js +23 -0
- package/lib/response-stream.js +69 -1
- package/lib/revocation-events.js +79 -0
- package/lib/schemas.js +18 -2
- package/lib/settings.js +50 -24
- package/lib/sso.js +23 -0
- package/lib/submit-penalty.js +24 -0
- package/lib/submit-processor.js +10 -2
- package/lib/tokens.js +6 -0
- package/lib/tools.js +90 -18
- package/lib/ui-routes/admin-config-routes.js +3 -276
- package/lib/ui-routes/auth-routes.js +13 -64
- package/lib/ui-routes/dashboard-routes.js +4 -0
- package/lib/ui-routes/license-routes.js +326 -0
- package/lib/web-safe-html.js +74 -1
- package/lib/webhook-delivery.js +21 -20
- package/lib/webhook-penalty.js +18 -17
- package/lib/webhooks.js +18 -0
- package/list-generate.js +56 -19
- package/package.json +28 -31
- package/sbom.json +373 -964
- package/scan.js +2 -0
- package/server.js +273 -100
- package/static/css/flyonui.css +2 -2
- package/static/js/ui.js +11 -4
- package/static/licenses.html +1108 -504
- package/translations/messages.pot +18 -18
- package/views/config/license.hbs +43 -16
- package/views/dashboard.hbs +9 -0
- package/views/partials/side_menu.hbs +1 -1
- package/views/upgrade.hbs +25 -0
- package/workers/api.js +108 -107
- package/workers/imap.js +4 -6
- package/lib/net-tos-guard.js +0 -42
package/.ncurc.js
CHANGED
|
@@ -2,33 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
upgrade: true,
|
|
5
|
-
// Node
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
// do not lift this. Treat "needs Node >20" as a permanent reject.
|
|
5
|
+
// The Node.js floor is lib/node-version.js: server.js refuses to start below MIN_NODE (22.19.0, what
|
|
6
|
+
// undici 8 needs) and engines.node declares the range the bundled jsdom does. Until 2026-11 the floor
|
|
7
|
+
// was Node 20, held there by the DigitalOcean one-click images (they upgrade EmailEngine but not the
|
|
8
|
+
// Node.js under it), and several entries below existed only for that; they were lifted with the
|
|
9
|
+
// floor. A package that needs a Node.js newer than MIN_NODE still needs the floor raised first.
|
|
11
10
|
//
|
|
12
11
|
// Packages capped inside their current major: the next major is ESM-only (this codebase is
|
|
13
12
|
// CommonJS and is bundled into a binary with pkg), needs a Node newer than the floor above, or
|
|
14
13
|
// is a major we are deliberately soaking. Using 'minor' instead of a blanket reject so these
|
|
15
14
|
// still receive security/patch updates within the safe major instead of being frozen at one
|
|
16
|
-
// exact version.
|
|
17
|
-
// below is reconsidered.
|
|
15
|
+
// exact version. Re-check whenever an entry below is reconsidered.
|
|
18
16
|
//
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
// if the floor ever moves (see "Pure JavaScript only" in CLAUDE.md).
|
|
17
|
+
// "ESM-only" is pkg's constraint, not Node's: the binary bundles a CommonJS module graph and cannot
|
|
18
|
+
// load ES modules whatever Node version runs it, so an ESM-only runtime dependency stays out
|
|
19
|
+
// regardless of the floor (see "Pure JavaScript only" in CLAUDE.md).
|
|
23
20
|
//
|
|
24
21
|
// `pino` is capped harder than the rest, at 'patch', because the break arrived in a MINOR and a
|
|
25
22
|
// major cap would not have stopped it. See its entry below.
|
|
26
23
|
target: name =>
|
|
27
24
|
['pino', '@playwright/test'].includes(name)
|
|
28
25
|
? 'patch'
|
|
29
|
-
: ['gettext-parser', '
|
|
26
|
+
: ['gettext-parser', 'marked', '@sentry/node-core', 'he', 'iconv-lite'].includes(name)
|
|
30
27
|
? 'minor'
|
|
31
|
-
: 'latest'
|
|
28
|
+
: 'latest'
|
|
32
29
|
// pino - held on 10.3.x. 10.4.0 took PR #2294, which makes lib/caller.js prefer
|
|
33
30
|
// util.getCallSites() over the Error.prepareStackTrace dance. Inside a pkg
|
|
34
31
|
// binary that API aborts the PROCESS, not the call: V8 fails the CHECK in
|
|
@@ -48,31 +45,21 @@ module.exports = {
|
|
|
48
45
|
// Same spec passes in 3.8 s on 1.63.0; nothing in the 1.64 release notes covers
|
|
49
46
|
// it. Lift once a 1.64.x or later passes that spec unchanged.
|
|
50
47
|
// gettext-parser - 8.x is ESM-only
|
|
51
|
-
//
|
|
52
|
-
//
|
|
53
|
-
// from the CommonJS rule); the Node requirement does, since the tooling has to
|
|
54
|
-
// run on the Node 20 floor too.
|
|
55
|
-
// undici - 8.x requires Node >=22.19 and crashes at require() on Node 20. Permanent while the
|
|
56
|
-
// Node 20 floor above stands. lib/net-tos-guard.js covers a 7.x crash 8.x fixed
|
|
57
|
-
// itself (unguarded setTypeOfService); remove it with the upgrade.
|
|
58
|
-
// marked - 16.x dropped the CommonJS build (ESM-only, needs require(esm)/Node >=20.19); 15.x is the
|
|
59
|
-
// last require()-compatible line. 15.0.12 verified on Node 20-24 and in a yao/pkg node24 build.
|
|
48
|
+
// marked - 16.x dropped the CommonJS build (ESM-only, needs require(esm)); 15.x is the last
|
|
49
|
+
// require()-compatible line, verified in a yao/pkg node24 build.
|
|
60
50
|
// Permanent: an ESM-only release cannot be bundled by pkg, whatever the Node floor.
|
|
61
|
-
// iconv-lite - 1.0 (alpha since 2026-10)
|
|
62
|
-
//
|
|
63
|
-
//
|
|
64
|
-
// he - 2.x is ESM-only (exports only src/he.mjs)
|
|
65
|
-
// ERR_REQUIRE_ESM on Node 20 before 20.19. 1.2.0 is the last CommonJS release. mailparser,
|
|
51
|
+
// iconv-lite - 1.0 (alpha since 2026-10) moves to ES modules, relying on require(esm). Held on 0.x;
|
|
52
|
+
// libmime, imapflow and mailparser carry the same cap. The ES module move keeps it out of
|
|
53
|
+
// the pkg bundle.
|
|
54
|
+
// he - 2.x is ESM-only (exports only src/he.mjs). 1.2.0 is the last CommonJS release. mailparser,
|
|
66
55
|
// which reaches EmailEngine through the same require, rejects 2.x for the same reason.
|
|
67
|
-
// Permanent for the same pkg reason as marked
|
|
68
|
-
// @sentry/node-core - held on the 10.x line for the
|
|
69
|
-
// `light` entry) was held there: @sentry/node 11.x
|
|
70
|
-
//
|
|
71
|
-
//
|
|
72
|
-
// @sentry/
|
|
73
|
-
//
|
|
74
|
-
// node-core line is versioned in step with @sentry/node, so lift this only once an 11.x
|
|
75
|
-
// of node-core exists and has been checked against both points.
|
|
56
|
+
// Permanent for the same pkg reason as marked.
|
|
57
|
+
// @sentry/node-core - held on the 10.x line for the reason @sentry/node (which it replaced, through its
|
|
58
|
+
// `light` entry) was held there: @sentry/node 11.x depends on @sentry/bundler-plugins,
|
|
59
|
+
// which pulls the 16 MB Sentry CLI (package `sentry`, licensed FSL-1.1-Apache-2.0, not an
|
|
60
|
+
// OSI license) into the runtime tree and the pkg bundle. The node-core line is versioned in
|
|
61
|
+
// step with @sentry/node, so lift this only once an 11.x of node-core exists and has been
|
|
62
|
+
// checked against that.
|
|
76
63
|
//
|
|
77
64
|
// ical.js was capped at 1.x here as "2.x is ESM-only", which was never true: every 2.x ships a CommonJS
|
|
78
65
|
// build behind exports.require. Moved to 2.x on 2026-09-28; it is also what resolves a DTSTART against
|
|
@@ -91,11 +78,4 @@ module.exports = {
|
|
|
91
78
|
// (the OpenAPI document is generated by lib/openapi/ now), so joi may move majors again. A major
|
|
92
79
|
// bump still needs a look at the generated document: test/openapi-golden-test.js fails if joi's
|
|
93
80
|
// describe() output changes shape.
|
|
94
|
-
reject: [
|
|
95
|
-
// Not a direct dependency, so nothing here moves it: the "overrides" entry in package.json
|
|
96
|
-
// lifts cheerio from the 1.0.0 that juice 11 (via @postalsys/email-text-tools) pins exactly,
|
|
97
|
-
// which drags in a second copy of undici (6.x) next to ours. cheerio 1.2.0 shares our undici
|
|
98
|
-
// 7 and keeps a CommonJS build; juice 12 would fix this itself but is ESM-only and needs
|
|
99
|
-
// Node 22. Re-check the override when juice or email-text-tools changes its cheerio range.
|
|
100
|
-
]
|
|
101
81
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.89.0](https://github.com/postalsys/emailengine/compare/v2.88.0...v2.89.0) (2026-11-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* check a newly registered subscription key soon instead of on the replaced key's schedule ([07e0512](https://github.com/postalsys/emailengine/commit/07e05120483178684c98a604f6549ebdcfa0d895))
|
|
9
|
+
* stop the IMAP workers retaining every web-safe HTML message, require Node.js 22.19 ([8b0bc06](https://github.com/postalsys/emailengine/commit/8b0bc064e2485b7b30a6ec1d2f4e1a9b42767125))
|
|
10
|
+
* update dependencies ([1e08d01](https://github.com/postalsys/emailengine/commit/1e08d01cca2d381ef7ce9f4702c0d3c0cdcf59c5))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Miscellaneous Chores
|
|
14
|
+
|
|
15
|
+
* release 2.89.0 ([ac15c96](https://github.com/postalsys/emailengine/commit/ac15c9699c3a1e59de2389bad8b8daa4a77873d6))
|
|
16
|
+
|
|
17
|
+
## [2.88.0](https://github.com/postalsys/emailengine/compare/v2.87.2...v2.88.0) (2026-11-10)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* monthly-plan licenses, and pause instead of removing a lapsed subscription license ([9250815](https://github.com/postalsys/emailengine/commit/92508150ec250fd4d307665ac3cd4dabdbf2aed2))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* accept only provider-verified identities when pinning an OAuth2 account setup ([1e9b6c1](https://github.com/postalsys/emailengine/commit/1e9b6c1ef2360446227b7bee9cd5c328cd573b56))
|
|
28
|
+
* close admin sign-in gaps around passkeys, SSO and the password check ([a4c4409](https://github.com/postalsys/emailengine/commit/a4c44090532e423d7cef3e5ee9492e466a67c102))
|
|
29
|
+
* do not retry an SMTP delivery that ran into the deadline, and report final failures as final ([48d0983](https://github.com/postalsys/emailengine/commit/48d098362043e5aa080a42addcbec450eee64075))
|
|
30
|
+
* e2e overlay flakes, and a confirmation OK that could read as declined ([b3559b3](https://github.com/postalsys/emailengine/commit/b3559b3187e484c781b37c1ce484d7a19095685c))
|
|
31
|
+
* end change streams on revocation, remove exports with their account, refuse queue metadata as a job ([53e7948](https://github.com/postalsys/emailengine/commit/53e7948da6b5cbee161a611ebe444696e020a7a3))
|
|
32
|
+
* end IMAP proxy sessions on revocation and stop NIL arguments from crashing the proxy ([6e2756e](https://github.com/postalsys/emailengine/commit/6e2756e963780fe285affed519c48f3e79a0d787))
|
|
33
|
+
* find an account's exports through an index instead of a keyspace scan ([2ab5ba1](https://github.com/postalsys/emailengine/commit/2ab5ba17bf347deff0467b8d7fc597906bf4a31b))
|
|
34
|
+
* keep one account's mail, webhooks and senders from monopolising the shared workers ([381c4fd](https://github.com/postalsys/emailengine/commit/381c4fd03e700b6bfb9be6222b3e5421e90e8720))
|
|
35
|
+
* record a confirmation's OK click before the dialog reports closing ([c754c9f](https://github.com/postalsys/emailengine/commit/c754c9fa0207941c601991d3d3ca26098f0b45d1))
|
|
36
|
+
* refuse to start when a _FILE secret can not be read and stop disabling TLS checks on Heroku ([71d4191](https://github.com/postalsys/emailengine/commit/71d419116758e40e98d0f94c7c9f398ea2ce536f))
|
|
37
|
+
* replace Microsoft 365 IMAP sessions before their access token expires ([500e4d2](https://github.com/postalsys/emailengine/commit/500e4d2b7714337c9bf35b6c3447035c0280dba0))
|
|
38
|
+
* update dependencies ([5997ced](https://github.com/postalsys/emailengine/commit/5997cedd1fefd00d4951d0a3d76879d0341e02af))
|
|
39
|
+
|
|
3
40
|
## [2.87.2](https://github.com/postalsys/emailengine/compare/v2.87.1...v2.87.2) (2026-11-05)
|
|
4
41
|
|
|
5
42
|
|
package/ENVIRONMENT.md
CHANGED
|
@@ -5,7 +5,9 @@ configuration file key (see `config/default.toml`); the environment variable win
|
|
|
5
5
|
|
|
6
6
|
Any variable can also be read from a file: set `<NAME>_FILE` to the path of a file holding the
|
|
7
7
|
value (the Docker and Kubernetes secrets convention). Surrounding whitespace in the file is
|
|
8
|
-
trimmed, and a variable set directly wins over its `_FILE` form.
|
|
8
|
+
trimmed, and a variable set directly wins over its `_FILE` form. A `_FILE` path that can not be
|
|
9
|
+
read stops EmailEngine at startup with the variable and the path named, rather than running as if
|
|
10
|
+
the value were not set.
|
|
9
11
|
|
|
10
12
|
Durations take a number with a unit (`30s`, `10m`, `1h`, `7d`) or plain milliseconds unless the
|
|
11
13
|
entry says otherwise. Sizes take a number with a unit (`5MB`, `1GB`) or plain bytes.
|
|
@@ -14,28 +16,29 @@ entry says otherwise. Sizes take a number with a unit (`5MB`, `1GB`) or plain by
|
|
|
14
16
|
|
|
15
17
|
## Core
|
|
16
18
|
|
|
17
|
-
| Variable
|
|
18
|
-
|
|
|
19
|
-
| `EENGINE_REDIS`
|
|
20
|
-
| `
|
|
21
|
-
| `
|
|
22
|
-
| `
|
|
23
|
-
| `
|
|
24
|
-
| `
|
|
25
|
-
| `
|
|
26
|
-
| `
|
|
27
|
-
| `
|
|
28
|
-
| `
|
|
29
|
-
| `
|
|
30
|
-
| `
|
|
31
|
-
| `
|
|
32
|
-
| `
|
|
33
|
-
| `
|
|
34
|
-
| `
|
|
35
|
-
| `
|
|
36
|
-
| `
|
|
37
|
-
| `
|
|
38
|
-
| `
|
|
19
|
+
| Variable | Default | Description |
|
|
20
|
+
| --------------------------------------- | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
21
|
+
| `EENGINE_REDIS` | `redis://127.0.0.1:6379/8` | Redis connection URI. `REDIS_URL` is read when this is unset. |
|
|
22
|
+
| `EENGINE_REDIS_TLS_REJECT_UNAUTHORIZED` | `true` | Set to `false` to accept a Redis server certificate no CA signed, for managed services such as the Heroku Redis add-on. Applies to a `rediss://` connection only; every other connection is still verified. |
|
|
23
|
+
| `EENGINE_REDIS_PREFIX` | none | Prefix for every Redis key, so several instances can share one database. |
|
|
24
|
+
| `EENGINE_SECRET` | none | Encryption secret for stored credentials. Changing it makes stored credentials unreadable; use `emailengine encrypt` to rotate. |
|
|
25
|
+
| `EENGINE_PORT` | `3000` | API and admin UI port. `PORT` is read when this is unset. |
|
|
26
|
+
| `EENGINE_HOST` | `127.0.0.1` | API and admin UI bind address. |
|
|
27
|
+
| `EENGINE_TIMEOUT` | `10s` | How long an API request waits for a worker to answer (duration). |
|
|
28
|
+
| `EENGINE_LOG_LEVEL` | `trace` | Logging level. |
|
|
29
|
+
| `EENGINE_LOG_RAW` | `false` | Log raw IMAP and SMTP protocol traffic. Credentials are masked either way. |
|
|
30
|
+
| `EENGINE_SETTINGS` | none | JSON object of settings, re-applied on every start. A value saved in the admin UI for one of its keys reverts at the next restart. |
|
|
31
|
+
| `EENGINE_PREPARED_TOKEN` | none | A base64url msgpack-encoded API token to provision at start. |
|
|
32
|
+
| `EENGINE_PREPARED_PASSWORD` | none | A base64url PBKDF2 admin password hash to apply at start. Writing a different hash ends every admin session. |
|
|
33
|
+
| `EENGINE_PREPARED_LICENSE` | none | A license key to apply at start. |
|
|
34
|
+
| `EENGINE_REQUIRE_API_AUTH` | none | Initial value for whether API requests need an access token (`true`/`false`), used when the setting has never been saved. |
|
|
35
|
+
| `EENGINE_ENABLE_OAUTH_TOKENS_API` | none | Initial value for the setting that allows the OAuth2 access token API, used when it has never been saved. |
|
|
36
|
+
| `EENGINE_CONNECTION_SETUP_DELAY` | `0` | Pause between two account assignments while accounts are handed to workers, to spread the connection load at start (duration). |
|
|
37
|
+
| `EENGINE_UPDATE_CHECK_DISABLED` | `false` | Stop checking for new EmailEngine releases. |
|
|
38
|
+
| `EENGINE_BEACON_DISABLED` | `false` | Opt out of the anonymized feature-usage diagnostics sent with license validation. License validation itself is unaffected. |
|
|
39
|
+
| `EENGINE_DISABLE_SETUP_WARNINGS` | `false` | Hide the setup warning banners in the admin UI. |
|
|
40
|
+
| `EENGINE_DOCEAN` | none | Set by the DigitalOcean one-click image; adjusts the dashboard and diagnostics. Not for manual use. |
|
|
41
|
+
| `EENGINE_INSTALL_SCRIPT` | none | Set by the install script; adjusts the dashboard and diagnostics. Not for manual use. |
|
|
39
42
|
|
|
40
43
|
## Workers and queues
|
|
41
44
|
|
package/LICENSE_EMAILENGINE.txt
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# EMAILENGINE LICENSE AGREEMENT
|
|
2
2
|
|
|
3
|
-
> Version 2.1
|
|
3
|
+
> Version 3.0, published 10 November 2026, in effect from 10 December 2026. Until that date version 2.1 (17 October 2023) applies to customers who accepted it.
|
|
4
|
+
>
|
|
5
|
+
> What changed in 3.0: the Software is licensed for business use; Section 4 describes the online license check and monthly-plan keys; Section 7 replaces the 30 days after a subscription expired with the rules of the Terms of Service (no extra time after a cancellation, 7 or 28 days after a failed renewal, and the Software pauses instead of discarding the key); a shared key can be revoked at once; liability is capped at the fees paid in the last 12 months; Section 11 states that the email the Software handles never reaches Postal Systems OÜ.
|
|
4
6
|
|
|
5
7
|
**PLEASE CAREFULLY READ THIS EMAILENGINE LICENSE AGREEMENT ("AGREEMENT"). THIS AGREEMENT CONSTITUTES A LEGALLY BINDING AGREEMENT BETWEEN YOU AND POSTAL SYSTEMS OÜ AND GOVERNS YOUR USE OF THE SOFTWARE (DEFINED BELOW). IF YOU DO NOT AGREE WITH THIS AGREEMENT, YOU MAY NOT USE THE SOFTWARE. IF YOU ARE USING THE SOFTWARE ON BEHALF OF A LEGAL ENTITY, YOU REPRESENT AND WARRANT THAT YOU HAVE AUTHORITY TO AGREE TO THIS AGREEMENT ON BEHALF OF SUCH ENTITY. IF YOU DO NOT HAVE SUCH AUTHORITY, DO NOT USE THE SOFTWARE IN ANY MANNER.**
|
|
6
8
|
|
|
@@ -11,26 +13,29 @@ This Agreement is entered into by and between Postal Systems OÜ and you, or the
|
|
|
11
13
|
* 1.1. "Postal Systems OÜ" refers to the entity providing the EmailEngine software.
|
|
12
14
|
* 1.2. "Software" refers to the EmailEngine application, including all its versions, updates, modifications, accompanying documentation, and related materials.
|
|
13
15
|
* 1.3. "You" or "User" refers to the individual or entity installing, accessing, or using the Software.
|
|
14
|
-
* 1.4. "License Key" refers to the unique code provided by Postal Systems OÜ
|
|
16
|
+
* 1.4. "License Key" refers to the unique code provided by Postal Systems OÜ which activates the full features of the Software beyond the trial period: for an active subscription, for a lifetime plan, or as a trial license.
|
|
15
17
|
* 1.5. "Instance" refers to a copy of EmailEngine run on a local machine or on a server. A single instance runs on a single machine but can utilize multiple CPU cores without limitations.
|
|
18
|
+
* 1.6. "Subscription" refers to a paid subscription purchased at https://postalsys.com under the Postal Systems Terms of Service (https://postalsys.com/tos), billed monthly or yearly.
|
|
16
19
|
|
|
17
20
|
**2. GRANT OF LICENSE**
|
|
18
21
|
|
|
19
|
-
* 2.1. Postal Systems OÜ grants You a revocable, non-exclusive, non-transferable, limited license to download, install, and use the Software for a 14-day
|
|
22
|
+
* 2.1. Postal Systems OÜ grants You a revocable, non-exclusive, non-transferable, limited license to download, install, and use the Software for evaluation, including with a 14-day trial license.
|
|
20
23
|
* 2.2. Upon purchase of a subscription from https://postalsys.com, You are entitled to generate and use License Keys for the Software. The paid subscription covers all versions of EmailEngine and all updates and modifications.
|
|
21
|
-
* 2.3.
|
|
22
|
-
* 2.4.
|
|
24
|
+
* 2.3. Without a valid License Key the core functionality of the Software does not operate: accounts do not sync and no email is processed.
|
|
25
|
+
* 2.4. The Software is licensed for business and professional use. By using it You confirm that You are not acting as a consumer.
|
|
23
26
|
|
|
24
27
|
**3. TRIAL PERIOD**
|
|
25
28
|
|
|
26
|
-
* 3.1. The Software can
|
|
27
|
-
* 3.2.
|
|
29
|
+
* 3.1. The Software can request a free trial license that enables all its features for 14 days. Trial licenses are available for recent releases of the Software and are limited per network address.
|
|
30
|
+
* 3.2. When the trial license expires, the Software requires a License Key to operate.
|
|
28
31
|
* 3.3. Postal Systems OÜ reserves the right to offer extensions or variations of the trial period on a case-by-case basis.
|
|
29
32
|
|
|
30
33
|
**4. LICENSE KEYS**
|
|
31
34
|
|
|
32
35
|
* 4.1. License Keys can be generated by users or organizations that have an active subscription from Postal Systems OÜ. These License Keys can be reused within the purchasing organization without limitations.
|
|
33
36
|
* 4.2. Distribution or sharing of License Keys to third parties, not associated with the purchasing user's organization, is strictly prohibited.
|
|
37
|
+
* 4.3. License Keys of a Subscription are checked online. The Software contacts postalsys.com about once a day, more often while a payment is overdue, and at startup for keys of a monthly plan. It sends the License Key, the Software version, an identifier of the installation and, unless switched off with the `EENGINE_BEACON_DISABLED` setting, a summary of which features are in use. No email content, addresses or credentials are sent. The Software keeps working when postalsys.com cannot be reached.
|
|
38
|
+
* 4.4. License Keys of a monthly plan require a recent release of the Software; older releases cannot load them. License Keys created under a yearly plan stop working when the Subscription moves to monthly billing.
|
|
34
39
|
|
|
35
40
|
**5. USE OF SOFTWARE AND COMPONENTS**
|
|
36
41
|
|
|
@@ -47,19 +52,21 @@ This Agreement is entered into by and between Postal Systems OÜ and you, or the
|
|
|
47
52
|
|
|
48
53
|
**7. EXPIRATION OF LICENSE KEYS**
|
|
49
54
|
|
|
50
|
-
* 7.1. License Keys are
|
|
51
|
-
* 7.2.
|
|
55
|
+
* 7.1. License Keys of a Subscription are valid while the Subscription is paid. After a cancellation they stop working at the end of the period that was paid for, with no further grace period.
|
|
56
|
+
* 7.2. If a renewal payment fails, License Keys keep working for 7 days after the renewal date on a monthly plan and for 28 days on a yearly plan.
|
|
57
|
+
* 7.3. When that time has passed, the Software pauses: it stops processing email and answering its API, but keeps the License Key, the accounts and the data, and resumes when the Subscription is in good standing again (checked automatically within an hour, or at once from the License page).
|
|
58
|
+
* 7.4. Releases of the Software published before this version follow the rules of the version of this Agreement they were published with.
|
|
52
59
|
|
|
53
60
|
**8. TERMINATION**
|
|
54
61
|
|
|
55
62
|
* 8.1. Postal Systems OÜ reserves the right to terminate your license to use the Software if you violate any terms of this EULA.
|
|
56
|
-
* 8.2. In the event of a termination, you will be provided with a written notice, sent to the email address used during your subscription to the EmailEngine, outlining the reasons for the termination.
|
|
63
|
+
* 8.2. In the event of a termination, you will be provided with a written notice, sent to the email address used during your subscription to the EmailEngine, outlining the reasons for the termination. A License Key that has been shared outside Your organization, leaked or misused may be revoked immediately, with the notice following.
|
|
57
64
|
* 8.3. Upon termination, all rights granted to you under this EULA will cease, and you must promptly cease all use of the Software.
|
|
58
65
|
|
|
59
66
|
**9. LIMITATION OF LIABILITY**
|
|
60
67
|
|
|
61
68
|
* 9.1. Postal Systems OÜ shall not be responsible for any indirect damages, losses, or expenses that may arise from your use or misuse of the Software.
|
|
62
|
-
* 9.2. Postal Systems OÜ’s liability for direct damages arising from or related to your use of the Software shall be limited to
|
|
69
|
+
* 9.2. Postal Systems OÜ’s total liability for direct damages arising from or related to your use of the Software shall be limited to the fees You paid to Postal Systems OÜ in the 12 months before the event giving rise to the claim. Nothing in this Agreement limits liability that cannot be limited by law.
|
|
63
70
|
|
|
64
71
|
**10. GOVERNING LAW & JURISDICTION**
|
|
65
72
|
|
|
@@ -68,7 +75,8 @@ This Agreement is entered into by and between Postal Systems OÜ and you, or the
|
|
|
68
75
|
|
|
69
76
|
**11. DATA PROTECTION & PRIVACY**
|
|
70
77
|
|
|
71
|
-
* 11.1.
|
|
78
|
+
* 11.1. The Software is self-hosted: it runs on systems You operate, and the mailboxes, messages and credentials it handles never reach Postal Systems OÜ. For that data You are the controller, and Postal Systems OÜ is not Your processor.
|
|
79
|
+
* 11.2. Postal Systems OÜ receives only what the license check in Section 4.3 sends. How it handles that data is described in its Privacy Policy at https://postalsys.com/privacy.
|
|
72
80
|
|
|
73
81
|
**12. ACCEPTANCE**
|
|
74
82
|
|
package/app.json
CHANGED
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"value": "0.0.0.0",
|
|
32
32
|
"required": true
|
|
33
33
|
},
|
|
34
|
-
"
|
|
35
|
-
"description": "
|
|
36
|
-
"value": "
|
|
34
|
+
"EENGINE_REDIS_TLS_REJECT_UNAUTHORIZED": {
|
|
35
|
+
"description": "The Heroku Redis add-on presents a self-signed certificate, so certificate validation is turned off for the Redis connection only. Every other connection is still verified.",
|
|
36
|
+
"value": "false",
|
|
37
37
|
"required": true
|
|
38
38
|
}
|
|
39
39
|
}
|
package/bin/emailengine.js
CHANGED
|
@@ -22,6 +22,7 @@ const pathlib = require('path');
|
|
|
22
22
|
const settings = require('../lib/settings');
|
|
23
23
|
const { checkLicense } = require('../lib/tools');
|
|
24
24
|
const pbkdf2 = require('../lib/pbkdf2-phc');
|
|
25
|
+
const { setAdminPassword } = require('../lib/admin-password');
|
|
25
26
|
const { generateWebhookTable } = require('../lib/consts');
|
|
26
27
|
const { Account } = require('../lib/account');
|
|
27
28
|
const getSecret = require('../lib/get-secret');
|
|
@@ -390,20 +391,15 @@ function runPassword() {
|
|
|
390
391
|
let updatePassword = async () => {
|
|
391
392
|
let passwordHash = await pbkdf2.hash(password);
|
|
392
393
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
await settings.set('authData', authData);
|
|
394
|
+
// Stores the hash, ends every session and removes the passkeys
|
|
395
|
+
await setAdminPassword(passwordHash, {
|
|
396
|
+
settings,
|
|
397
|
+
passkeys: require('../lib/passkeys'),
|
|
398
|
+
logger: { info() {}, error: entry => console.error(entry.msg, entry.err ? entry.err.message : '') }
|
|
399
|
+
});
|
|
401
400
|
await settings.set('totpEnabled', false);
|
|
402
401
|
await settings.set('totpSeed', false);
|
|
403
402
|
|
|
404
|
-
let passkeys = require('../lib/passkeys');
|
|
405
|
-
await passkeys.deleteAllCredentials(authData.user);
|
|
406
|
-
|
|
407
403
|
return { password, passwordHash };
|
|
408
404
|
};
|
|
409
405
|
|