Bichon: a self-hosted Rust IMAP archiver with full-text search, and everything it refuses to do
Bichon – A lightweight, high-performance Rust email archiver with WebUI
At a glance
- What is it?
- Bichon downloads mail from IMAP accounts into an embedded store, indexes it for search, and serves a REST API with a WebUI. It is an archiver under AGPL-3.0, not an email client, and its first login uses a known default password.
- Who is it for?
- Bichon is a good fit for someone who wants a self-hosted, searchable, deduplicated archive of several IMAP accounts with per-user permissions. It is the wrong tool if you need to send or reply to mail, and before exposing it you must replace the default admin password and choose a BICHON_ENCRYPT_PASSWORD you can keep.
- Can I use it commercially?
- Yes, with strict conditions. AGPL-3.0 is a network copyleft licence: if people use a modified version over a network, for example as a hosted service, you must offer them its source code under the same licence.
- Is it still maintained?
- Yes. The repository received new commits within the last day.
- What is it written in?
- Mainly Rust, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- rustmailer/bichon2,107 ★ · +161
| Repository | 2026-09-11 | 2026-11-25 |
|---|---|---|
| rustmailer/bichon | 1.9k | 2.1k |
161 Stars in the last 75 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
It is an archiver, so it never sends, composes, forwards or replies
The project states this plainly: Bichon is an archiver, not an email client. It does not send, compose, forward or reply to email. Its optional embedded SMTP server exists to receive messages only.
The practical result is that Bichon sits beside your mail client rather than replacing it. You keep reading and answering mail in whatever app you use today, and Bichon holds a long-term copy that you can search across all accounts at once. The stated purposes are long-term preservation, unified cross-account search and programmatic access to archived mail through the REST API.
The SMTP side is worth understanding. It can receive mail at the gateway level with STARTTLS or TLS, and it accepts AUTH PLAIN or LOGIN where the credential is an API token. That makes it a delivery target for an application or a forwarding rule, not a relay you can send through. If your goal is outbound mail, nothing in Bichon covers it.
The first login uses admin@bichon, and the encrypt password is yours to keep
The recommended install is Docker. The command below pulls the image, creates a data directory and starts the container on port 15630:
# Pull the image
docker pull rustmailer/bichon:latest
# Create data directory
mkdir -p ./bichon-data
# Run container
docker run -d \
--name bichon \
-p 15630:15630 \
-v $(pwd)/bichon-data:/data \
--user 1000:1000 \
-e BICHON_ROOT_DIR=/data \
-e BICHON_ENCRYPT_PASSWORD=your-secure-password-here \
rustmailer/bichon:latestThen open http://localhost:15630. The default login is the username admin with the password admin@bichon, and the project says to change it immediately under Settings, then Profile. Anyone who can reach the port before you do can sign in as an administrator.
Two values deserve care. BICHON_ENCRYPT_PASSWORD must be replaced with a real secret, and because it is passed at start-up, losing track of it is a risk for stored credentials. The other is --user 1000:1000: the mounted bichon-data directory has to be writable by that user, or the process cannot write its data.
Docker Compose keeps the same four settings in a file you can version
The same deployment as a Compose file looks like this:
services:
bichon:
image: rustmailer/bichon:latest
container_name: bichon
ports:
- "15630:15630"
volumes:
- ./bichon-data:/data
user: "1000:1000"
environment:
BICHON_ROOT_DIR: /data
BICHON_ENCRYPT_PASSWORD: your-secure-password-here
BICHON_LOG_LEVEL: infoThe port mapping, the data volume, the user and BICHON_ROOT_DIR carry over unchanged from the docker run form. The Compose file adds BICHON_LOG_LEVEL set to info.
One thing to avoid is committing this file with a real encrypt password in it. Because the placeholder sits directly in the environment block, a copy pasted into a repository will leak whatever you substitute. Binary installation and building from source are also offered, with the binary distributed on the project's Releases page.
Mail goes into three embedded stores and identical content is kept once
Storage is layered. Tantivy handles full-text indexing with Zstd compression. A component called bichon-blob stores compressed blobs, also with Zstd. A third piece, memdb, holds relational metadata. All three are embedded, so no external database or search server is needed.
Content deduplication is done with BLAKE3 hashing. Identical email bodies and attachments are stored once, and moving a message between folders updates metadata only. If the same newsletter or the same attachment arrives in many mailboxes, the archive pays for the bytes a single time.
Index-side duplicate detection is asynchronous, which the project says reduces write latency during high-throughput ingestion. The consequence is a trade you should know about: ingestion stays fast, but duplicate detection in the search index is not instantaneous. The repository is a Cargo workspace with separate crates for memdb, core, blob, server, cli, admin and smtp, and its version is 2.3.0.
IMAP download is incremental, and a UIDVALIDITY change triggers a cache rebuild
Accounts download concurrently. Authentication supports password methods (PLAIN and LOGIN) and OAuth 2.0 through SASL XOAUTH2, with automatic token refresh and PKCE. Connections can use SSL/TLS, STARTTLS or plain, with an option to accept self-signed certificates.
After the first full download, Bichon fetches by UID delta, so only new messages are pulled. When a server's UIDVALIDITY changes, which signals that its UIDs can no longer be trusted, Bichon detects it and rebuilds the cache automatically.
You can narrow what is fetched by date range, a mailbox folder limit or specific folder names. Each account can route through its own SOCKS5 proxy profile. Schedules are cron expressions per account, so you can archive nightly only or during business hours only. Auto-configuration discovers IMAP settings from an email domain, which saves looking up server names for common providers. Bulk restore can push emails back to their original IMAP accounts.
Search is stated as optimized for European languages
Full-text search covers subject, body, sender, recipients and attachment properties. Filters narrow by date range, size range, attachment presence, file type, content category and facet-based tag combinations. Threads are reconstructed across folders, and a separate attachment view filters by sender, type and size.
The qualifier in the feature list is that search is optimized for European languages. If your archive is mostly in another script, run a search on a sample of your real mail before committing to a full import, since that is the only way to learn how well the tokenization suits your text.
Tags are faceted. You can add, remove or overwrite tags on messages and attachments, and counts update in real time as you filter by combinations. A contacts view assembles a deduplicated address book from senders and recipients across every account the viewer is authorized to see. The dashboard shows volume trends, top senders, storage breakdown and per-account activity, scoped to what the user may access.
Five built-in roles and 22 permissions decide who sees which account
Multi-user access is built around role-based control. Five roles ship: Admin, Manager, Member, AccountManager and AccountViewer. You can define custom roles from 22 granular permissions. Access can also be granted per account, with a scoped role, and permissions are enforced at the API layer.
For a shared archive, such as one used by a family or a small team, this means an AccountViewer can read one mailbox without seeing others, and the dashboard and contacts views shrink to match. Programmatic clients use API tokens, which can be created, listed and revoked and are meant to be long-lived.
Interactive API documentation is served at /api-docs through Swagger UI, ReDoc and Scalar, and every endpoint has request and response schemas under OpenAPI 3.0. Admin tooling includes a password reset for locked-out administrators and a non-destructive migration from v0.3.7 and v1.x to v2.x.
Importing old mail needs the CLI, and remote images are blocked by default
Existing mail can be brought in without IMAP. Through the CLI you can import EML directories, MBOX files (including Gmail variants), Thunderbird profiles and Outlook PST files. The WebUI can import EML files directly. Going the other way, bichon-cli exports account data as MBOX.
So a PST or a Thunderbird profile means a command line step, not a button in the browser. Plan for that if the person doing the migration only uses the WebUI.
When you read archived messages, external images and tracking pixels are blocked by default. You can allow remote content one message at a time from the WebUI, so opening an old newsletter does not ping a sender's server unless you choose to.
On cadence, releases 2.1.1, 2.2.0 and 2.3.0 were published on 7, 20 and 31 October 2026, and the latest push was on 2 November 2026. The licence is AGPL-3.0, which matters if you plan to modify it and offer it as a hosted service.
Editorial conclusion
Bichon is a good fit for someone who wants a self-hosted, searchable, deduplicated archive of several IMAP accounts with per-user permissions. It is the wrong tool if you need to send or reply to mail, and before exposing it you must replace the default admin password and choose a BICHON_ENCRYPT_PASSWORD you can keep.
Frequently asked questions
what is bichon
In this repository, Bichon is a self-hosted email archiving server written in Rust. It downloads mail from IMAP accounts, builds a full-text search index, and serves a REST API with an embedded WebUI.
Can Bichon send or reply to email?
No. Bichon is an archiver, not an email client, so it does not send, compose, forward or reply. Its optional SMTP server is for receiving emails only.
What is the default Bichon login?
The default login is username admin with password admin@bichon, and it should be changed immediately under Settings, then Profile. The Docker setup also needs BICHON_ENCRYPT_PASSWORD set.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/rustmailer-bichon)Star history chart for your README
[](https://hysenlabs.com/projects/rustmailer-bichon)Was this useful?