Agent Mail Gateway

•
14
•

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.

주요 기능

01Inbound security protections including prompt injection detection, ClamAV virus scanning, and dangerous attachment filtering
02Complete calendar invitation support to create, update, cancel, and respond to meeting invites
03Automated bidirectional formatting converting incoming HTML to Markdown and outgoing Markdown to HTML
0412 GitHub stars
05Credential isolation giving each AI agent its own API key without exposing raw IMAP/SMTP passwords
06Multi-tier pre-send review enforcing sanity rules, optional LLM checks, and custom plain-language policies

사용 사례

01Handling meeting scheduling and calendar coordination seamlessly across Gmail, Outlook, and Apple Calendar
02Equipping AI customer support or executive assistants with secure, autonomous email management capabilities
03Preventing autonomous agents from falling prey to prompt injection attacks embedded in incoming emails and attachments