emailengine-app 2.73.0 → 2.74.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 (42) hide show
  1. package/.github/docker-smoke-test.sh +45 -0
  2. package/.github/workflows/deploy.yml +22 -0
  3. package/.github/workflows/e2e.yml +1 -2
  4. package/.github/workflows/release.yaml +19 -0
  5. package/.github/workflows/test.yml +31 -0
  6. package/CHANGELOG.md +52 -0
  7. package/Dockerfile +14 -5
  8. package/README.md +55 -25
  9. package/config/e2e.toml +2 -2
  10. package/data/google-crawlers.json +1 -1
  11. package/lib/account.js +14 -6
  12. package/lib/api-routes/account-routes.js +4 -1
  13. package/lib/api-routes/token-routes.js +13 -0
  14. package/lib/consts.js +15 -25
  15. package/lib/delivery-error.js +34 -11
  16. package/lib/email-client/gmail-client.js +1 -1
  17. package/lib/email-client/imap/mailbox.js +96 -1
  18. package/lib/email-client/imap-client.js +101 -28
  19. package/lib/email-client/outlook-client.js +1 -1
  20. package/lib/es.js +0 -27
  21. package/lib/license-beacon.js +1 -5
  22. package/lib/schemas.js +12 -0
  23. package/lib/settings.js +13 -0
  24. package/lib/tokens.js +15 -0
  25. package/lib/ui-routes/account-routes.js +65 -5
  26. package/lib/ui-routes/admin-entities-routes.js +13 -0
  27. package/lib/worker-rpc-error.js +54 -0
  28. package/package.json +6 -6
  29. package/sbom.json +1 -1
  30. package/server.js +3 -19
  31. package/setup-production.sh +7 -2
  32. package/static/licenses.html +12 -12
  33. package/translations/messages.pot +36 -36
  34. package/views/accounts/edit.hbs +6 -0
  35. package/workers/api.js +5 -14
  36. package/workers/imap.js +3 -16
  37. package/workers/submit.js +3 -18
  38. package/.env.development +0 -49
  39. package/.env.example +0 -82
  40. package/.env.production +0 -87
  41. package/.eslintignore +0 -1
  42. package/Dockerfile-legacy +0 -18
package/.env.production DELETED
@@ -1,87 +0,0 @@
1
- # EmailEngine Production Environment Configuration
2
- # Copy this file to .env and configure with your actual values
3
-
4
- # ===========================================
5
- # REQUIRED SECURITY SETTINGS
6
- # ===========================================
7
-
8
- # Encryption secret for EmailEngine (generate with: openssl rand -hex 32)
9
- EENGINE_SECRET=CHANGE_ME_USE_STRONG_SECRET_HERE
10
-
11
- # Redis password (generate with: openssl rand -base64 32)
12
- REDIS_PASSWORD=CHANGE_ME_USE_STRONG_PASSWORD_HERE
13
-
14
- # Redis connection with authentication
15
- EENGINE_REDIS=redis://:${REDIS_PASSWORD}@redis:6379/2
16
-
17
- # ===========================================
18
- # EMAILENGINE CONFIGURATION
19
- # ===========================================
20
-
21
- # Log level (error, warn, info, debug)
22
- EENGINE_LOG_LEVEL=info
23
-
24
- # Number of worker processes (should match CPU cores, min 4, max 24)
25
- EENGINE_WORKERS=8
26
-
27
- # EmailEngine settings (configure SMTP password)
28
- EENGINE_SETTINGS={"smtpServerEnabled": true, "smtpServerPort": 2525, "smtpServerHost": "0.0.0.0", "smtpServerAuthEnabled": true, "smtpServerPassword": "CHANGE_ME_SMTP_PASSWORD"}
29
-
30
- # ===========================================
31
- # SERVICE EXPOSURE (PRODUCTION)
32
- # ===========================================
33
-
34
- # Bind only to localhost for production (use reverse proxy for external access)
35
- EMAILENGINE_API_BIND=127.0.0.1
36
- EMAILENGINE_SMTP_BIND=127.0.0.1
37
- EMAILENGINE_IMAP_BIND=127.0.0.1
38
-
39
- # Port configuration (optional, defaults shown)
40
- # EMAILENGINE_API_PORT=3000
41
- # EMAILENGINE_SMTP_PORT=2525
42
- # EMAILENGINE_IMAP_PORT=9993
43
-
44
- # ===========================================
45
- # REDIS CONFIGURATION
46
- # ===========================================
47
-
48
- # Redis is used as a database, not a cache
49
- # No memory limit is set - Redis will use available system memory
50
- # Monitor usage with: docker-compose exec redis redis-cli INFO memory
51
- # Eviction policy is set to 'noeviction' to prevent data loss
52
-
53
- # ===========================================
54
- # LOGGING CONFIGURATION
55
- # ===========================================
56
-
57
- # Log levels
58
- REDIS_LOG_LEVEL=notice
59
-
60
- # Log rotation
61
- LOG_MAX_SIZE=100m
62
- LOG_MAX_FILE=10
63
- LOG_COMPRESS=true
64
-
65
- # ===========================================
66
- # HEALTH CHECKS
67
- # ===========================================
68
-
69
- # Use strict health checks for production
70
- REDIS_HEALTHCHECK=service_healthy
71
-
72
- # Health check configuration
73
- HEALTHCHECK_INTERVAL=30s
74
- HEALTHCHECK_TIMEOUT=10s
75
- HEALTHCHECK_RETRIES=3
76
- HEALTHCHECK_START_PERIOD=40s
77
-
78
- # ===========================================
79
- # OTHER SETTINGS
80
- # ===========================================
81
-
82
- # Restart policy
83
- RESTART_POLICY=unless-stopped
84
-
85
- # Docker image versions (optional, latest by default)
86
- # EMAILENGINE_VERSION=latest
87
- # REDIS_VERSION=7-alpine
package/.eslintignore DELETED
@@ -1 +0,0 @@
1
- # placeholder
package/Dockerfile-legacy DELETED
@@ -1,18 +0,0 @@
1
- FROM node:18-alpine
2
-
3
- ENV EE_DOCKER_LEGACY=true
4
-
5
- RUN apk add --no-cache dumb-init
6
-
7
- WORKDIR /emailengine
8
- COPY . .
9
-
10
- RUN npm install --omit=dev
11
- RUN npm run prepare-docker
12
- RUN chmod +x ./update-info.sh
13
- RUN ./update-info.sh
14
-
15
- ENV EENGINE_HOST=0.0.0.0
16
-
17
- ENTRYPOINT ["/usr/bin/dumb-init", "--"]
18
- CMD ["node", "/emailengine/server.js"]