@astralibx/email-account-manager 10.2.0 → 10.3.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/README.md +20 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -114,6 +114,26 @@ Advanced: [Capacity Selection](https://github.com/Hariprakash1997/astralib/blob/
|
|
|
114
114
|
|
|
115
115
|
> **Important:** The warmup system requires calling `advanceDay()` daily via cron job. Without this, accounts stay in warmup indefinitely.
|
|
116
116
|
|
|
117
|
+
### Redis Key Prefix (Required for Multi-Project Deployments)
|
|
118
|
+
|
|
119
|
+
> **WARNING:** If multiple projects share the same Redis server, you MUST set a unique `keyPrefix` per project. Without this, BullMQ queues will collide — Project A's worker could process Project B's emails.
|
|
120
|
+
|
|
121
|
+
```typescript
|
|
122
|
+
const eam = createEmailAccountManager({
|
|
123
|
+
redis: {
|
|
124
|
+
connection: redis,
|
|
125
|
+
keyPrefix: 'myproject-eam:', // REQUIRED if sharing Redis
|
|
126
|
+
},
|
|
127
|
+
// ...
|
|
128
|
+
});
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
| Default | Risk |
|
|
132
|
+
|---------|------|
|
|
133
|
+
| `'eam:'` | Two projects using defaults share the same `eam:email-send` and `eam:email-approved` queues |
|
|
134
|
+
|
|
135
|
+
**Always set a unique prefix** like `projectname-eam:` or `projectname:`.
|
|
136
|
+
|
|
117
137
|
## Security Notes
|
|
118
138
|
|
|
119
139
|
**Credential storage**: SMTP and IMAP passwords (`smtp.pass`, `imap.pass`) are stored as plaintext in MongoDB. You should encrypt these values at the application layer before passing them to this library, and decrypt them after retrieval. A built-in encryption layer is planned for a future version.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astralibx/email-account-manager",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.0",
|
|
4
4
|
"description": "Reusable email account management with Gmail + SES support, BullMQ queues, health tracking, warmup, and optional approval workflow",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|