Your private, agentic inbox atHerbMail
Every KBVE account gets an address at herbmail.com. Read and reply in the browser, or hand the same mailbox to your scripts and AI agents through an HTTP API, scoped API keys and signed webhooks.
What it gives you
Features
An address per account
Sign in with the same KBVE account as kbve.com, pick a username once, and [email protected] is live immediately.
Reply-only outbound
You can write to an address only after it has written to you, which keeps the domain off blocklists so replies land.
Built for agents
Scripts and AI agents use the same endpoints as the web client with a scoped API key, and can be told about new mail by signed webhook.
One mailbox, two sites
The mail API answers under /mail on herbmail.com and kbve.com alike; both reach the same mailbox.
The product
How it works
Introduction
HerbMail gives every KBVE account a mailbox at [email protected]. There is no separate signup and no mail client to configure: sign in with GitHub, Discord, Twitch, or an email and password — the same account as kbve.com — choose a username once, and the address is live.
Reading and replying
- Inbox: Mail appears within seconds of arriving, shown as plain text. HTML-only mail is converted; attachments are listed by name.
- Checked senders: Inbound mail is checked with SPF, DKIM and DMARC. A
herbmail.comsender is linked to a profile only when those checks pass. - Replies: A reply goes out from your own address, threaded in the recipient’s client. Plain text, up to 64 KiB, no attachments.
- Reply-only: An address can be written to only after it has written to you. HerbMail does not send first-contact mail.
- Retention: Mail, and sent replies, are kept for 90 days from arrival, then deleted.
For developers and agents
The web client talks to a small HTTP API with your session; scripts and agents call the same endpoints with an API key from your address page, sent as Authorization: Bearer kbve_…. Signed webhooks tell an agent when mail arrives. The guides on herbmail.com cover the endpoints, the refusals (not_a_reply, self, no_username), and a prompt to hand your agent, and the site publishes llms.txt and llms-full.txt.
Under the hood
How it is built
Key facts
| Site | apps/herbmail — Astro/Starlight, served by the herbmail-web axum |
| Mail API | services/mail, shared with kbve.com, over the Stalwart mail server |
| Routing | kube/herbmail — /mail to mail-service, everything else to herbmail-web |
| License | KBVE |
This app
herbmail was the KBVE tree’s herbmail-api: one axum that served the Astro site and answered /mail/*. That made the site and the mail API one release, and gave any other surface that wanted the same mailbox no option but a second copy of the API.
The monorepo split it. The site is HerbMail Web, released from apps/herbmail, and the API is services/mail, once, for every site. The gateway does the split, so the browser stays same-origin and the bearer never crosses an origin.
herbmail-deployment still runs the old ghcr.io/kbve/herbmail image, unrouted, as the rollback — one backendRef away from being the whole site again. Its source did not move into this monorepo. Stalwart’s inbound hook still has to be repointed at mail-service before it can be removed; see kube/herbmail/README.md.
Questions
Frequently asked
What is HerbMail?
HerbMail.com is a private, agentic inbox for every KBVE account. Each KBVE username is an address at herbmail.com; people read and reply in the browser, and their scripts and AI agents use the same mailbox through an HTTP API with scoped keys and signed webhooks.
Can HerbMail send mail to anyone?
No. Outbound mail is reply-only — an address can be written to only after it has written first — and replies are plain text up to 64 KiB with no attachments. Mail is kept for 90 days.
How is HerbMail built and hosted?
The site is an Astro/Starlight build served by a small axum (herbmail-web). The mailbox API is services/mail, shared with kbve.com, over the Stalwart mail server. The gateway sends /mail to that API and everything else to the site. This page's herbmail app is the older axum that once did both; it is no longer routed and stays deployed only as the rollback.
Discuss on the forum
Questions, fixes and notes on this page live in the KBVE forum.