billionmail

billionmail is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 103 tokens per session (3,253 once invoked), scanned A, original, MIT.

A self-hosted email platform for newsletters, marketing campaigns, and automatic service emails. Self-hosted means you run it on your own server instead of relying on a hosted provider.

In plain words
What is it for?
It helps run SMTP email delivery, create campaigns and templates, send transactional emails through an API or webhook, and review opens, clicks, bounces, and unsubscribes.
Why use it?
It brings sending, subscriber management, unsubscribe handling, bounce handling, and delivery statistics into one system you operate.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps run SMTP email delivery, create campaigns and templates, send transactional emails through an API or webhook, and review opens, clicks, bounces, and unsubscribes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/billionmail
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add znlgis/opengis-skills --skill billionmail
Clone the repo
git clone --depth 1 https://github.com/znlgis/opengis-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for billionmail

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/billionmail/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/billionmail)
Your own site
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/billionmail"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/billionmail/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for billionmail

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/billionmail"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/billionmail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,253 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.03253
Opus 5.5 $0.00041 $0.01301
Sonnet 5.5 $0.00021 $0.00651
Haiku 4.5 $0.00010 $0.00325

Measured today against content hash 38c3981e897c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

billionmail scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

> 端点与字段以你部署的版本为准(各版本路径有调整):先用 `curl -s http://your-server/api/` 或控制台的「API / 文档」入口确认实际路径,再照下面形态调用。
others/billionmail/SKILL.md · 333 lines

How it starts

The opening of the file, as written. The whole thing — 333 lines — stays where its author put it; the contents beside it link to each section on GitHub.

项目地址: https://github.com/Billionmail/BillionMail

官网: https://www.billionmail.com/

官方文档: https://docs.billionmail.com/

许可证: AGPL-3.0(社区版)

包管理器: Docker Compose(docker compose up -d)/ 一键脚本 bash install.sh(最新 v4.9,截至 2026-10)

版本: v4.9(2025-12-11)

概述

BillionMail 主要能力:

  • 多域名邮件服务器(Postfix + Dovecot)
  • 批量营销发送:分批限速、退订链接、SPF/DKIM/DMARC
  • 模板编辑器:拖拽 + 富文本 + 变量
  • 订阅者管理:分组、标签、导入/导出、退订列表
  • 触发邮件:API / Webhook 触发事务邮件
  • 送达率分析:点击/打开/退信/退订统计
  • WebMail:自带网页邮箱
  • 多用户 / 多租户

BillionMail 由宝塔面板团队(aaPanel)出品,强调开箱即用、面板化运维。


安装部署

Docker Compose(推荐)

git clone https://github.com/Billionmail/BillionMail
cd BillionMail
cp env_init .env
# 编辑 .env:DOMAIN、DB 密码、MX/SMTP 配置等
docker compose up -d

一键脚本

cd /opt && git clone https://github.com/Billionmail/BillionMail && cd BillionMail && bash install.sh

端口要求

端口 服务
25 / 587 / 465 SMTP
143 / 993 IMAP
110 / 995 POP3(可选)
80 / 443 Web 控制台 + WebMail

多数云厂商默认封锁 25/587 端口,需提交工单解封;建议使用海外 VPS 或专用邮件 IP。


DNS 配置

为发件域 mail.example.com 配置:

类型 主机 值
A mail <服务器 IP>
MX @ mail.example.com
TXT @ v=spf1 mx ip4:<IP> ~all
TXT default._domainkey v=DKIM1;k=rsa;p=...(管理后台生成)
TXT _dmarc v=DMARC1;p=quarantine;rua=mailto:...
PTR mail.example.com(联系机房设置反向解析)

控制台

访问 https://your-server/:

  • 域名管理:添加发件域、生成 DKIM
  • 邮箱账户:创建邮箱、配额、SMTP/IMAP 密码
  • 订阅者:分组、字段、批量导入 CSV
  • 模板:邮件模板(HTML + 变量)
  • 任务:发送任务(即时 / 计划)
  • 统计:到达率、打开、点击、退订、退信
  • 设置:SMTP/反垃圾/限速/IP 池

创建发送任务

  1. 设置「发件人」「主题」
  2. 选择模板或新建(变量:{{name}}、{{unsubscribe_url}})
  3. 选择订阅者分组(可定向标签)
  4. 限速(每分钟 N 封 / 每小时 N 封)
  5. 开始或计划发送

发送过程中实时显示成功/失败/退信。


API(事务邮件)

端点与字段以你部署的版本为准(各版本路径有调整):先用 curl -s http://your-server/api/ 或控制台的「API / 文档」入口确认实际路径,再照下面形态调用。

curl -X POST https://your-server/api/v1/mail/send \
  -H 'Authorization: Bearer <API_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{
    "from": "[email protected]",
    "to":   ["[email protected]"],
    "subject": "欢迎注册",
    "template_id": 12,
    "variables": { "name": "张三" }
  }'

Read the full file on GitHub · 333 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +14 lines · +59 tokens per session 38c3981e897c
  2. 12d ago Changed 7487fde04df8
  3. 13d ago Changed aec12a629419
  4. 1mo ago Changed 43551937d90b
  5. 1mo ago Changed scan C → A c7d34d3140f3
  6. 1mo ago Changed c587cde46c6e
  7. 1mo ago First seen · 319 lines · 44 tokens per session scan C 207e6ab29c31

Subscribe to this mod's changes

billionmail is a skill published in the GitHub repository znlgis/opengis-skills (75 stars, last pushed today), licensed MIT. It adds 103 tokens to every session and 3,253 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.