
Mailbox
io.github.psyb0t由 GitHub 帳號 psyb0t 發布v0.8.0更新於 Oct 30, 2026
Scoped IMAP/SMTP access over HTTP and MCP: read, organize, draft, reply and send mail.
發布方自己的服務:mailbox.bot
概覽
自架的 IMAP/SMTP 郵件閘道,提供 MCP 端點,讓助理在受限權杖下讀取、整理、草擬、回覆與寄送郵件。
- 可以做什麼
- 讀取郵件:統一收件匣、結構化搜尋、原始原始碼、郵件標頭、附件與討論串
- 整理信箱:已讀標記、標籤、搬移、建立信箱以及移至垃圾桶
- 草擬與寄送:已設定的身分、簽名、回覆、IMAP 草稿與寄件備份
- 分析郵件:SPF/DKIM/DMARC 判定、標頭不一致、隱藏文字與欺騙性連結,可依需求回傳淨化後的 HTML
- 維運控制:依權杖的作用域與信箱允許清單、稽核紀錄、共用寄送上限與簽章 webhook
- 適用情境
- 適合希望助理直接操作自有 IMAP/SMTP 帳號中真實信箱,同時把寄送與刪除限制在明確的權杖作用域、演練模式與速率限制之後。適用於自架情境:郵件本文留在郵件伺服器上,本機只保存運作狀態。
- 執行需求
- 以本機 Docker 容器執行(映像 psyb0t/mailbox),在同一連接埠提供 HTTP 與 MCP 端點。需要 config.yaml 設定 IMAP/SMTP 帳號與身分,以及存放帳號密碼和 bearer 權杖的 .env;README 建議將兩個檔案權限設為 chmod 600。掛載 /var/lib/mailboxd 磁碟區以保留狀態。清單本身未宣告任何憑證。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mailbox,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mailbox
[CI] [version] [license] [Docker Pulls]
Read, organize, draft and send mail across multiple IMAP/SMTP accounts through one HTTP API and an MCP endpoint at /mcp, on the same port. Each bearer token controls which operations and mailboxes a client can access.
For agent access, configure tokens with explicit permissions:
- Scoped tokens. A token that holds
read,draftandorganizecannot send or delete, and does not even see those tools. - Deletion defaults to Trash. Deleting moves a message to Trash. Permanent erasure needs the
deletescope and only works from the Trash folder. The service never issues a folder-wideEXPUNGE. - Drafts in two steps. An agent can prepare a reply; a human (or a token with
send) sends it. - Send guard. Hourly rate limit, dry-run mode, and a sender address authorized by your configured exact identities or opt-in domain patterns.
- Message analysis. Inspect SPF/DKIM/DMARC verdicts, header mismatches, hidden text and deceptive links. Verdicts are trusted only when the receiving server matches your configuration. Request sanitized HTML when needed.
- Audit log. Every write, and every refused write, is recorded (never message bodies).
Mail bodies and drafts stay on IMAP. A shared SQLite database stores audit records, send counters, checkpoints, draft send claims and webhook delivery metadata. API requests close their mail-server connections after use; the watcher keeps an IMAP connection open for notifications.
The service uses Python's imaplib and smtplib, FastAPI, the official MCP Python SDK and nh3 for HTML sanitizing. Dependency updates enforce a seven-day release-age cutoff through uv's exclude-newer setting.
Contents
- Quick start
- Configuration
- HTTP API, MCP, safety and webhooks
- Agent integrations
- Architecture and development
- Operations, backups and migration
Quick start
- Copy
config.example.yamltoconfig.yamland.env.exampleto.env. Configure your accounts and replace every placeholder in.envwith its password or a fresh token fromopenssl rand -hex 32. Restrict both files withchmod 600. - Start the container. The named volume preserves operational state across restarts:
- Check health and list mail:
Docker Compose
The checked-in docker-compose.yml publishes on 127.0.0.1:${PORT:-8000}, mounts ./config.yaml (or $MAILBOXD_CONFIG) read-only and creates the mailboxd-state volume:
The optional webhook watcher is a second service in the same file, off by default: docker compose --profile watch up -d.
Capabilities
Mount /var/lib/mailboxd for persistent operational state. HTTP workers and the optional watcher share one SQLite database on a local filesystem. Read the migration notes before replacing a stateless deployment.
Development
All project tools run inside the development image. Tests use socket-level IMAP/SMTP fixtures, a local HTTP receiver, real SQLite files and a production-container smoke test. See development for details.
License
WTFPL. See LICENSE and third-party components.
來源:README.md,提交 33a2eb1
工具
0版本歷史
8- v0.8.0最新Oct 29, 2026
- v0.7.0Oct 23, 2026
- v0.6.2Oct 21, 2026
- v0.6.1Oct 19, 2026
- v0.6.0Oct 19, 2026
- v0.5.1Oct 13, 2026
- v0.4.16Oct 10, 2026
- v0.4.15Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Mailbox 整合

mailbox.bot
bot.mailbox官方發布者
託管的 mailbox.bot 伺服器,讓助理列印並寄送實體信件、明信片與批次郵件,並讀取寄到美國 PMB 地址的掃描來信。

PO6 Mailbox
com.po6官方發布者
PO6 Mailbox 透過私有別名與專屬信箱儲存空間,讓 AI 助理安全存取電子郵件,使用受 OAuth 保護的遠端端點。

a2a-mailbox
由 GitHub 帳號 RegretSSS 發布
以本機檔案信箱運作的跨 CLI agent 通訊服務,讓 Claude Code、Codex、Pi、ZCode 等終端 agent 互傳訊息並互相喚醒。

SuperMailbox
由 GitHub 帳號 hardtab 發布
SuperMailbox 是遠端 MCP 伺服器,讓助理搜尋已連結的電子郵件、讀取與管理郵件、撰寫並寄送郵件,以及管理新郵件規則。

agent-mailbox — Mailbox and Wake System for AI Agent Teams
由 GitHub 帳號 polaris-smart 發布
一套本機信箱與喚醒系統,讓多個 AI 智慧體工作階段透過 MCP 共用同一個專案:指派任務、明確接受、讀取固定版本文檔並提交結果。