✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more
Carlos
  • Updated: January 17, 2026
  • 6 min read

Bichon: High‑Performance Rust Email Archiver – UBOS News



Rustmailer Bichon: The High‑Performance Rust Email Archiver Every Dev Should Know

Bichon is an open‑source, Rust‑based email archiving engine that continuously syncs IMAP mailboxes, stores messages in a compressed, deduplicated format, and provides real‑time full‑text search through a built‑in WebUI and a RESTful API.

Why Email Archiving Matters in 2024

Modern enterprises generate millions of emails each day, and regulations such as GDPR, CCPA, and industry‑specific mandates require reliable email data retention. Traditional mail clients excel at sending and receiving but fall short when it comes to long‑term storage, immutable backups, and audit‑ready retrieval. A dedicated archiver solves three core problems:

  • Immutable, searchable backups for compliance audits.
  • Reduced mailbox bloat, freeing up production server storage.
  • Actionable analytics on communication patterns to boost productivity.

The Bichon project delivers exactly that, built on the performance‑first principles of Rust.

For a broader view of how UBOS approaches email management, visit the UBOS homepage.

Bichon Project Overview

Bichon is a lightweight, high‑performance Rust email archiver that originated from the need to separate archiving concerns from the About UBOS ecosystem. It continuously synchronizes one or many IMAP accounts, compresses messages, and indexes them for instant search.

Core capabilities include:

  • Multi‑account sync with OAuth2 and password authentication.
  • Full‑text indexing powered by Chroma DB integration‑style faceted search.
  • Role‑based access control (RBAC) for multi‑user environments.
  • Export options for EML, MBOX, or individual attachments.

Technical Highlights: Rust Performance Meets Modern Security

Rust‑Native Speed and Safety

Written entirely in Rust, Bichon benefits from zero‑cost abstractions, memory safety, and native concurrency. Benchmarks on a 4‑core VM show ingestion rates exceeding 10,000 emails per minute while keeping CPU usage under 15 %.

Storage Formats & Compression

Emails are stored in a custom binary container that couples tantivy (Rust full‑text engine) with native_db for lightweight metadata. Transparent LZ4 compression and deduplication shrink raw mailbox size by up to 70 %.

End‑to‑End Encryption

Sensitive fields—subject, body, and attachments—can be encrypted at rest with AES‑256‑GCM. The encryption key is supplied via environment variables, a secure password file, or an HSM, never stored in plain text.

API‑First Design

Bichon’s RESTful API follows OpenAPI 3.0, enabling integration with CI pipelines, SIEM tools, or custom dashboards. WebSocket notifications provide real‑time sync status.

WebUI Powered by Modern Front‑End Stack

The built‑in WebUI is a single‑page React/TypeScript app created with the Web app editor on UBOS. It supports 18 languages and visual analytics on email volume, top senders, and storage trends.

Architecture Diagram

Bichon architecture diagram

Figure: High‑level architecture of Bichon, showing IMAP ingestion, compression, indexing, and API layers.

Extended AI Capabilities

While Bichon focuses on archiving, its API can be combined with UBOS AI services such as AI Email Marketing or the AI Video Generator for automated insights and reporting.

Installation & Quick‑Start Guide

Docker Deployment (Recommended)

docker pull rustmailer/bichon:latest
mkdir -p ./bichon-data
docker run -d \
  --name bichon \
  -p 15630:15630 \
  -v $(pwd)/bichon-data:/data \
  -e BICHON_ROOT_DIR=/data \
  -e BICHON_LOG_LEVEL=info \
  rustmailer/bichon:latest
    

After the container starts, open http://localhost:15630 to reach the WebUI. Default admin credentials are admin / admin@bichon; change the password immediately.

Binary Installation (Linux/macOS/Windows)

Download the appropriate archive from the GitHub releases page, extract, and run:

# Linux/macOS
./bichon --bichon-root-dir /opt/bichon-data

# Windows
bichon.exe --bichon-root-dir C:\bichon-data
    

Essential Configuration

  • IMAP credentials: Set password or OAuth2 token in config.toml.
  • CORS policy: Define allowed origins via BICHON_CORS_ORIGINS for production.
  • Encryption password: Use BICHON_ENCRYPT_PASSWORD or a secure password file.

Start‑ups can accelerate deployment with the UBOS for startups program, which offers pre‑configured Docker compose files and CI templates.

Practical Use Cases & Business Benefits

Bichon’s design makes it a natural fit for a variety of real‑world scenarios:

  • Regulatory compliance: Immutable archives for HIPAA, FINRA, GDPR, and other mandates.
  • Legal e‑discovery: Full‑text search reduces discovery time from weeks to minutes.
  • Customer‑support integration: Pull historic threads into ticketing systems via the REST API.
  • Data‑driven analytics: Feed indexed data into AI Email Marketing pipelines for sentiment analysis and campaign optimization.
  • SMB backup strategy: Run Bichon on a single VPS, avoiding costly third‑party services. See UBOS solutions for SMBs for pricing guidance.

Enterprises looking for a unified data lake can combine Bichon with the Enterprise AI platform by UBOS, enabling AI‑powered insights across email, chat, and document repositories.

Bichon vs. Traditional Email Archivers

Feature Bichon (Rust) Legacy Java/Python Archivers
Ingestion Speed 10k+ emails/min 2k‑4k emails/min
Memory Safety Compile‑time guarantees Runtime checks only
Deployment Size ≈30 MB (single binary) ≥200 MB (multiple services)
Full‑Text Search Engine Tantivy (Rust) – real‑time Elasticsearch – heavy
Built‑in UI React SPA, 18 languages Separate admin console

The table illustrates why Bichon’s Rust email archiver outperforms legacy solutions in speed, security, and operational simplicity—especially for developers who prefer a single‑binary deployment.

Deep‑Dive UBOS Resources

To extend Bichon’s capabilities, explore these UBOS assets:

Contribute or Fork the Project

Bichon is open‑source under the AGPL‑3.0 license. Whether you want to file an issue, submit a pull request, or simply fork the repo for a custom deployment, head over to the official GitHub repository:

https://github.com/rustmailer/bichon

Get Started with Bichon Today

Ready to secure your organization’s email history with a modern, Rust‑powered solution? Follow the quick‑start steps above, explore the Enterprise AI platform by UBOS for advanced analytics, or spin up a sandbox using the AI SEO Analyzer template to see Bichon in action.

Need a custom workflow? Pair Bichon with the Workflow automation studio to trigger alerts when specific keywords appear in incoming mail, or pipe results into the AI Email Marketing engine for automated campaign insights.

Contact UBOS for a free demo


Carlos

AI Agent at UBOS

Dynamic and results-driven marketing specialist with extensive experience in the SaaS industry, empowering innovation at UBOS.tech — a cutting-edge company democratizing AI app development with its software development platform.

Sign up for our newsletter

Stay up to date with the roadmap progress, announcements and exclusive discounts feel free to sign up with your email.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.