开源AI工作流:SPF/DKIM验证的邮件网关 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
SPF/DKIM验证的邮件网关,支持AI代理的认证邮件网关,HMAC签名验证
开源AI工作流:SPF/DKIM验证的邮件网关 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
SPF/DKIM验证的邮件网关,支持AI代理的认证邮件网关,HMAC签名验证
开源AI工作流:SPF/DKIM验证的邮件网关 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:go install(推荐) go install github.com/Mnexa-AI/e2a@latest # 方式二:从源码编译 git clone https://github.com/Mnexa-AI/e2a cd e2a go build -o e2a . # 方式三:下载预编译二进制 # 访问 Releases 页面下载对应平台二进制文件 # https://github.com/Mnexa-AI/e2a/releases
# 查看帮助 e2a --help # 基本运行 e2a [options] <input> # 详细使用说明请查阅文档 # https://github.com/Mnexa-AI/e2a
# e2a 配置说明 # 查看配置选项 e2a --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export E2A_CONFIG="/path/to/config.yml"
<a href="https://www.producthunt.com/products/e2a-open-source-email-api-for-agents?embed=true&utm_source=badge-featured&utm_medium=badge&utm_campaign=badge-e2a-open-source-email-api-for-agents" target="_blank" rel="noopener noreferrer"><img alt="e2a – open-source email API for agents - Give your AI agents a real, authenticated email address. | Product Hunt" width="250" height="54" src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1145559&theme=light&t=1778615217650"></a>
Authenticated email gateway for AI agents. Receive emails as webhooks or via WebSocket, send emails through an HTTP API, and verify the identity of every sender — humans and other agents alike.
X-E2A-Auth-* headers on every deliverye2a CLI for everyday agent ops<video src="https://github.com/user-attachments/assets/b55a8f18-6470-44e3-a053-97dfb787228c" controls autoplay muted loop width="800"></video>
Three audiences each configure a different surface:
| Audience | What they configure | Where |
|---|---|---|
| **Server operator** — runs the Go backend | DB, signing key, SMTP, OAuth, optional shared domain | config.yaml + E2A_* env |
| **CLI / SDK user** — calls the API from their machine | Just the deployment URL (and login) | E2A_URL + e2a login |
| **Web dashboard deployer** — hosts the Next.js dashboard | Public site URL + branding | NEXT_PUBLIC_* build-time env |
The Go binary runs on any container host; storage is plain Postgres 14+; outbound mail goes through standard SMTP. Most workers coordinate via SELECT … FOR UPDATE SKIP LOCKED, so multi-replica is safe — the two real horizontal-scaling caveats are in-memory WebSocket fan-out and per-process rate limits.
See docs/deployment.md for the full env-var reference, shared-domain DNS setup, and scaling/limitation notes.
Requires Docker.
git clone https://github.com/Mnexa-AI/e2a.git
cd e2a
docker compose up -d
Postgres comes up first (migrations run automatically), then the API server, then the dashboard. Three host ports:
:8080 — HTTP API:2525 — SMTP relay:3000 — Dashboard (Caddy + Next.js, proxies /api/* to the API server)Health check:
```bash curl http://localhost:8080/api/health
Save the key — it's only shown once. Register an agent and confirm it works:
bash KEY=e2a_... curl -X POST http://localhost:8080/api/v1/agents \ -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \ -d '{"slug":"my-bot","agent_mode":"local"}'
curl -H "Authorization: Bearer $KEY" http://localhost:8080/api/v1/agents
To receive real inbound mail, point a domain's MX record at your relay host:
- **A**: `your-domain.com` → server IP
- **MX**: `your-domain.com` → `your-domain.com` (priority 10)
Then register and verify the domain through the API (see [Domains](#domains)). Without DNS, the API still works for testing — but external email won't reach your relay.
> **Upgrades and migrations.** The compose file mounts `migrations/` into Postgres' init directory, which only runs on first start (when the data volume is empty). When you upgrade e2a and pull a new schema migration, you must apply it manually:
> bash > docker compose exec postgres sh -c \ > 'for f in /docker-entrypoint-initdb.d/*.sql; do psql -U e2a -d e2a -f "$f" -v ON_ERROR_STOP=1; done' > ``` > The migration files are idempotent (CREATE TABLE IF NOT EXISTS, ALTER TABLE … ADD COLUMN IF NOT EXISTS) so re-running them is safe.
All endpoints are under /api/v1 unless noted. Auth is Authorization: Bearer <api_key> except for /api/health, /api/v1/info, /api/feedback, and the HITL magic-link routes. Path parameters containing @ (agent emails) must be URL-encoded.
The surface covers domain registration + verification, agent CRUD, inbound/outbound messages, HITL approve/reject (API key or signed magic-link token), GDPR-style export and deletion, and a WebSocket channel for local-mode agents.
See docs/api.md for the full endpoint reference, or web/public/openapi.yaml for the machine-readable spec.
If you want a full MTA, run an MTA — Postfix and Postal are great. e2a isn't trying to replace them at the SMTP transport level (it uses go-smtp for receiving and dial-out for sending). The value is the layer above transport: the auth model, agent abstraction, signed delivery contract, retry policy for webhook failures, HITL approval flow, SDKs and CLI. If you're comfortable operating an MTA and only need email plumbing, e2a may be more than you want. If you want the agent abstraction and signed identity layer prebuilt, that's what this is.
开源AI工作流是一个有用的工具,支持AI代理的认证邮件网关,然而其安全性和可靠性需要进一步验证
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,开源AI工作流:SPF/DKIM验证的邮件网关 在Agent工作流赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | e2a |
| 原始描述 | 开源AI工作流:Authenticated email gateway for AI agents — SPF/DKIM verified inbound, HMAC-sign。⭐139 · Go |
| Topics | workflowemailgo |
| GitHub | https://github.com/Mnexa-AI/e2a |
| License | Apache-2.0 |
| 语言 | Go |
收录时间:2026-05-23 · 更新时间:2026-05-23 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端