Agent Mail Gateway
Provide secure, isolated email and calendar access for AI agents with strict allowlists, token-efficient Markdown conversion, and automated pre-send review policies.
Agent Mail Gateway is a lightweight, self-hosted service that safely bridges autonomous AI agents to standard IMAP and SMTP mail servers. Operating from a single Docker container, it grants each agent an isolated API key for its designated mailbox without exposing underlying email credentials. The gateway automatically converts incoming HTML emails to token-efficient Markdown, handles attachments, and provides full calendar management for invitations across major calendar platforms. To safeguard agents and recipients alike, it enforces strict inbound and outbound allowlists, inspects incoming messages for prompt injections and malicious attachments via ClamAV, and validates outgoing correspondence against deterministic rules and custom LLM policies before sending.