inboxer 0.4.5 → 0.4.7
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 +10 -6
- package/package.json +1 -1
- package/skills/inboxer/SKILL.md +9 -6
- package/src/ui/static/style.css +5 -3
- package/src/ui/views.ts +3 -1
package/README.md
CHANGED
|
@@ -195,13 +195,17 @@ Two domains are involved, and they are configured separately:
|
|
|
195
195
|
|
|
196
196
|
The app's host name does not have to match the addresses. A name like `inboxer.` avoids confusion with mail-server hosts such as `mail.`. The steps below use these two examples.
|
|
197
197
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
198
|
+
0. **Sign up at Resend and add the domain.** Create an account at [resend.com](https://resend.com). In *Domains*, add `example.com` and enable receiving for it. Resend then lists the four DNS records below with the exact values for your account. Copy each value from there: keys and regions differ per domain, and the ones below are examples.
|
|
199
|
+
1. **TXT — DKIM.** Name `resend._domainkey`, value the public key Resend shows (`p=MIGfMA0GCSq…`). It signs outgoing mail.
|
|
200
|
+
2. **MX and TXT — `send`.** The `send` subdomain handles bounces and SPF for outgoing mail. MX `send` → `feedback-smtp.us-east-1.amazonses.com`, priority `10`. TXT `send` → `v=spf1 include:amazonses.com ~all`.
|
|
201
|
+
3. **TXT — DMARC.** Name `_dmarc`, value `v=DMARC1; p=none; rua=mailto:dmarc@example.com`. Tighten the policy once reports look clean. Resend does not require this record, but mailbox providers increasingly do.
|
|
202
|
+
4. **MX — receiving.** Name `@` (the domain itself), value `inbound-smtp.us-east-1.amazonaws.com`, priority `10`. From then on every address of the domain is delivered to Resend and no longer to your previous mail host or forwarding rules; mail to addresses you did not configure lands in Inboxer's `catchall` mailbox. To keep the root domain on another host, put Inboxer's addresses on a subdomain such as `help.example.com` and add this MX there.
|
|
203
|
+
|
|
204
|
+
Wait until Resend shows the domain as verified. That usually takes minutes, sometimes hours while DNS propagates.
|
|
202
205
|
5. **Create an API key.** In *API Keys*, create a key with full access: Inboxer reads received and sent emails, not just sends. Put it in `provider.apiKey`.
|
|
203
|
-
6. **
|
|
204
|
-
7. **
|
|
206
|
+
6. **Deploy Inboxer.** Point `inboxer.example.com` at your server, serve it over HTTPS (roster-server issues certificates on its own; otherwise use your reverse proxy), and set `publicUrl` to that URL. The webhook and login links depend on it.
|
|
207
|
+
7. **Create the webhook.** In *Webhooks*, add an endpoint at `https://inboxer.example.com/webhooks/resend` with the `email.received`, `email.sent`, `email.delivered`, `email.bounced`, `email.failed` and `email.suppressed` events. Copy its signing secret into `provider.webhookSecret`.
|
|
208
|
+
8. **Restart and test.** Restart Inboxer so it loads the secrets. Send an email from an outside account to `support@example.com`. Within seconds it should appear in the UI's Inbox and in `list_threads`. Resend's webhook page shows each delivery and Inboxer's response; a `401` means the signing secret is wrong.
|
|
205
209
|
|
|
206
210
|
Inbound webhooks carry no body, so Inboxer fetches each message from the receiving API. The webhook answers `500` when processing fails, so Resend retries; processing is idempotent by Resend id.
|
|
207
211
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inboxer",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"description": "A self-hosted mail layer for agents: persists every inbound and outbound email, exposes an MCP server, and ships a minimal UI to review drafts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
package/skills/inboxer/SKILL.md
CHANGED
|
@@ -55,12 +55,15 @@ For roster-server, return `inboxer.handler` from the `SiteFactory` and register
|
|
|
55
55
|
|
|
56
56
|
Keep two domains apart: the app runs on its own host, e.g. `inboxer.example.com` (`A`/`AAAA` + HTTPS, the `publicUrl`), while the addresses live on the mail domain, e.g. `support@example.com` (`MX` to Resend + SPF, DKIM, DMARC).
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
0. Sign up at Resend, add the domain in *Domains* and enable receiving. Resend lists the four records below with the account's exact values; copy them from there, since keys and regions vary. The values here are examples.
|
|
59
|
+
1. TXT — DKIM: `resend._domainkey` → the public key Resend shows (`p=MIGfMA0GCSq…`).
|
|
60
|
+
2. MX and TXT — `send` (bounces and SPF): MX `send` → `feedback-smtp.us-east-1.amazonses.com`, priority `10`; TXT `send` → `v=spf1 include:amazonses.com ~all`.
|
|
61
|
+
3. TXT — DMARC: `_dmarc` → `v=DMARC1; p=none; rua=mailto:dmarc@example.com`.
|
|
62
|
+
4. MX — receiving: `@` → `inbound-smtp.us-east-1.amazonaws.com`, priority `10`. This moves the whole domain's mail to Resend; unknown addresses land in `catchall`. To keep the root elsewhere, put the addresses and this MX on a subdomain. Wait until Resend shows the domain verified.
|
|
63
|
+
5. Create a full-access API key (Inboxer reads emails, not only sends) → `provider.apiKey`.
|
|
64
|
+
6. Deploy Inboxer over HTTPS at `publicUrl`.
|
|
65
|
+
7. Create a webhook at `<publicUrl>/webhooks/resend` for `email.received`, `email.sent`, `email.delivered`, `email.bounced`, `email.failed`, `email.suppressed` → its signing secret is `provider.webhookSecret`.
|
|
66
|
+
8. Restart and send a test email from outside. A webhook `401` means a wrong signing secret.
|
|
64
67
|
|
|
65
68
|
Missed webhooks are recovered by the periodic sync.
|
|
66
69
|
|
package/src/ui/static/style.css
CHANGED
|
@@ -38,7 +38,7 @@ h1 { font-size: 2rem; line-height: 1.1; letter-spacing: -0.04em; font-weight: 70
|
|
|
38
38
|
.sidebar { display: none; }
|
|
39
39
|
body.app { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
|
|
40
40
|
body.app.full { padding-bottom: 0; }
|
|
41
|
-
.page { max-width: 760px;
|
|
41
|
+
.page { max-width: 760px; padding: 24px 16px 32px; }
|
|
42
42
|
|
|
43
43
|
.tabbar {
|
|
44
44
|
position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
|
|
@@ -201,8 +201,9 @@ button.thread-title:hover { background: var(--soft); border: none; }
|
|
|
201
201
|
}
|
|
202
202
|
.composer textarea:focus { border-color: var(--focus); }
|
|
203
203
|
.composer .send { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
|
|
204
|
-
.reply-all { flex-basis: 100%; display: flex; align-items: center; gap: 8px; padding: 2px
|
|
205
|
-
|
|
204
|
+
.reply-all { flex-basis: 100%; display: flex; align-items: center; gap: 8px; padding: 2px 0; font-family: var(--mono); font-size: .72rem; color: var(--muted); cursor: pointer; }
|
|
205
|
+
/* Centered over the + button below it, which is 44px wide. */
|
|
206
|
+
.reply-all input { width: 16px; height: 16px; margin: 0 0 0 14px; flex: none; accent-color: var(--accent); }
|
|
206
207
|
|
|
207
208
|
/* Context: a side panel on a wide screen, a bottom sheet on a phone */
|
|
208
209
|
.context-panel { display: none; background: var(--bg); }
|
|
@@ -395,6 +396,7 @@ textarea {
|
|
|
395
396
|
.setting label { font-weight: 500; }
|
|
396
397
|
.row.device:hover { background: none; }
|
|
397
398
|
.row.device .avatar { color: var(--muted); }
|
|
399
|
+
.row.device form { display: contents; }
|
|
398
400
|
.row.device .danger { align-self: center; padding: 0; height: auto; border: none; background: none; }
|
|
399
401
|
.row.device .danger:hover { text-decoration: underline; }
|
|
400
402
|
.setting .danger, .setting .danger:hover { padding: 0; height: auto; border: none; background: none; }
|
package/src/ui/views.ts
CHANGED
|
@@ -512,7 +512,9 @@ export function devicesPage(sessions: Session[], currentId: string): View {
|
|
|
512
512
|
<span class="row-by">${S.signedIn} ${formatDate(s.created_at)} · ${S.createdBy} ${s.created_by}</span>
|
|
513
513
|
</span>
|
|
514
514
|
</span>
|
|
515
|
-
${
|
|
515
|
+
${s.id === currentId
|
|
516
|
+
? h`<form method="post" action="/logout"><button class="danger">${S.logout}</button></form>`
|
|
517
|
+
: h`<button class="danger" hx-post="/devices/${s.id}/revoke" hx-target="#session-${s.id}" hx-swap="delete">${S.revoke}</button>`}
|
|
516
518
|
</div>`)) : h`<p class="empty">${S.devicesEmpty}</p>`}
|
|
517
519
|
</section>`;
|
|
518
520
|
}
|