Skip to main content

chainmail

chainmail is email for AI agents. It is one Go binary that lets agents read, send and organize mail over IMAP and SMTP without ever holding a password or token. A long-running daemon owns every credential and every connection to the mail servers. It checks every send against a policy and records nearly every call in an audit log. Agents talk to it through the chainmail CLI or through chainmail mcp, an MCP server. Both are thin clients on a Unix socket.

chainmail is for people who want an AI agent to work with their mail without handing it their accounts. A send to anyone off the allowlist is held as a draft for you to review, so an agent cannot mail a stranger on its own. chainmail runs on any Linux and on macOS. In production the daemon runs as its own system user, so the agent's user cannot read the vault.

Where to go next​