TeaNode · Documentation · Source
TeaNode is a self-hosted agentic mailbox: real addresses at your own domains, and a personal assistant for each person that never leaves your server.
The mail half is a small mail server. It receives mail for all of your domains over SMTP, checks that it is genuine (SPF, DKIM, DMARC, ARC), optionally scans it for viruses and spam, and then either files it in a mailbox here or hands it on — to an inbox you already read, to a webhook, or to another mail server. It also lets you reply and send from those addresses, signed with the domain's key so the mail arrives rather than landing in spam.
A mailbox is read in the dashboard or in any mail program over IMAP. An address that should not have a mailbox forwards instead, and one domain can do both.
The assistant is the other half, and it is off until somebody turns it on. Given a mailbox, it sorts what arrives, drafts in your voice and answers questions about your mail with exactly your permissions; given more, it reaches your contacts, your calendar, your own computer, your own browser tab and the web. Point it at an Ollama or a vLLM on the same machine and nothing about any of it leaves your hardware. Agents is the whole story.
Running mail for a domain usually means either handing it to a provider, or assembling Postfix, Dovecot, OpenDKIM, OpenDMARC, SpamAssassin and a policy daemon and keeping them in agreement. This is one executable and a PostgreSQL database, with the authentication that decides whether your mail is trusted built in rather than bolted on.
The dashboard is compiled into the binary; there is nothing else to deploy. It opens on your mailbox, and the pages that run the server are a mode behind Manage, which shows only what your permissions allow.
On the management side, every message this server has handled, what it decided about each one, and — for mail sent from a template — whether the recipient's mail program fetched the pictures in it. Clicking a row shows the authentication verdicts with the evidence behind them, every delivery attempt and why any of them failed, and the message itself with scripts stripped.
Nothing else. No AWS account. Certificates are obtained automatically over HTTP-01, so there is no DNS API to configure. An S3-compatible object store is optional, and only worth having if you run more than one instance: it is what lets them share the stored messages.
Mailboxes. Every account has one. Folders nest to any depth and can be renamed, moved and pinned; search covers one folder or the whole mailbox, with sender, recipient, subject, date and attachment filters; rules file mail as it arrives, and can be run over mail already filed. There are drafts whose attachments upload once, a signature, contacts kept from whoever you write to, and an out-of-office reply that knows not to answer machines, mailing lists or another mailbox that is also away. A message is stored once however many folders hold it, and kept for as long as one of them does.
IMAP. Port 993, and STARTTLS on 143, so a mail program reads the same mailbox. Each device gets an app password of its own, which signs in to IMAP and sends through the submission port on 587 as any of the mailbox's addresses.
A personal agent, if the operator offers one. Point the server at a model service — OpenAI, Anthropic, Gemini, or an Ollama on the same machine — and each person may turn on an agent of their own. It sorts what arrives, writes drafts in your voice, answers questions about your mail with exactly your permissions, and, under a policy you write, can answer for you. Off until somebody turns it on and blind to every mailbox until granted one; nothing reaches a model while mail is being delivered. Agents says what it needs and what to weigh first.
Subscriptions. Every mailing list a mailbox receives, on a page of its own, with the way out of each read from the headers the sender wrote. Leaving is requested by this server rather than by the browser, so it does not tell the sender which address opened which message at what moment. Muting is the other answer, and often the better one: the list keeps arriving, filed in the Archive and already read. A newsletter whose unsubscribe was stripped in transit is still grouped as a list, and the page says why it cannot offer a way out rather than leaving it looking like the sender withheld one.
Marks. The logo a sending domain publishes for its mail, shown beside the subscription it sends, and only for mail that passed DMARC — a mark is a claim about who sent something, and one on unproven mail helps whoever is pretending to be them. A domain's own mark can be published from here too: upload the file, and the DNS tab says what to publish and what would stop it working, most often a DMARC policy of none.
Authenticates everything. SPF, DKIM, DMARC and ARC on the way in, with the results shown per message. Your outbound mail is DKIM signed, and forwarded mail keeps an ARC chain so it still passes at the far end.
Forwards flexibly. Aliases match the address with a regular expression and deliver into a mailbox, or send the message to an address, an HTTP endpoint, or another mail server. An empty pattern is a catch-all, which receives whatever nothing else matched.
Relays your outbound mail. Per-device SMTP credentials on the submission port, each optionally restricted to one sender address.
People, groups and roles. Permissions decide what each person sees: Administrator, Operator and Member come seeded and all of it is editable, and a group can be tied to a domain so its permissions reach only that far. Single sign-on through an OpenID Connect provider follows a group in your own directory. Every change to a user, group, role, domain, alias, credential or mailbox is in the audit log.
Shows you the mail. The dashboard renders a message as a message: the authentication verdicts, the delivery attempts and why any of them failed, and the body itself with scripts stripped and remote images blocked until you ask for them.
Sends mail you write. Templates with variables and translations, a layout around them, pictures served from your own domain, and a record of whether the recipient's mail program fetched them.
Reports on your domains. Incoming DMARC aggregate reports are parsed and kept, which is how you find out somebody is forging your domain.
Scores spam without a second program. The filter inside the server reads what it already established about a message — the SPF, DKIM, DMARC and ARC results, the sending host's confirmed reverse DNS name, the name it gave in HELO — consults public block lists over DNS, and applies a classifier trained on the mail you mark in the dashboard. An external SpamAssassin daemon is still supported for deployments that want one.
Optional extras, all off by default. ClamAV, GeoIP, an S3 mirror of stored messages, an outbound SOCKS5 proxy for hosts whose address has a poor reputation, and DNS-01 certificates if you need a wildcard.
Every step is a place the dashboard can show you what happened, which is the point of recording it.
Settings live in the database, so several instances share one answer and a change made in the dashboard reaches all of them. Domains, aliases, credentials and accounts are rows, managed one at a time. The environment says only where that database is; everything else is stored.
teanode domain create example.com
teanode alias create example.com --pattern '^you#39; --kind mailbox --mailbox <mailbox id>
teanode alias create example.com --pattern '^hello#39; --kind email --email you@example.net
The command line reaches the whole API, and Configuration documents every setting.
Every document is also plain markdown, listed in /llms.txt.