[{"data":1,"prerenderedAt":177},["ShallowReactive",2],{"seo-verification":3,"blog-self-host-bichon-vps-email-archiving-ma-en":6,"promo-bar-likely":176},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"key":7,"data":8},"blog-self-host-bichon-vps-email-archiving-ma-en",{"id":9,"slug":10,"slugs":11,"title":15,"excerpt":16,"readTime":17,"views":18,"isPinned":19,"noindex":19,"publishedAt":20,"updatedAt":21,"category":22,"categories":27,"featuredImage":29,"bgImage":30,"posterImage":31,"relatedSolution":32,"intro":35,"keyPoints":36,"sections":37,"ctaTitle":119,"ctaBody":120,"ctaButton":121,"ctaUrl":122,"relatedPosts":123},598,"self-host-bichon-vps-email-archiving",{"fr":12,"en":10,"ar":13,"es":14},"self-host-bichon-vps","استضافة-bichon-على-vps-أرشفة-البريد","autoalojar-bichon-vps-archivo-de-correo","Bichon on a VPS: archive and search your IMAP email","Install Bichon on a VPS: an open-source email archiver that copies your IMAP mailboxes, imports PST and MBOX files and finds everything in full text.",6,0,false,"2026-12-02T00:00:00+00:00","2026-12-03T00:37:52+00:00",{"id":23,"name":24,"slug":25,"color":26,"icon":25},11,"Business Email","emails","bg-cyan-500\u002F10 text-cyan-400",[28],{"id":23,"name":24,"slug":25,"color":26,"icon":25},"\u002Fblog\u002Fcovers\u002Fself-host-bichon-vps-cover.webp","\u002Fblog\u002Fcovers\u002Fbg.svg","\u002Fblog\u002Fcovers\u002Fself-host-bichon-vps-poster.svg",{"categorySlug":33,"appSlug":34},"collaboration-productivity","bichon","A mailbox is not an archive. It fills up to its quota, gets emptied to make room, disappears when an employee leaves or when you switch providers — and with it go years of exchanges with your customers. Bichon is an open-source email archiving server (AGPL-3.0 licensed), written in Rust: it connects to your IMAP mailboxes, copies every message into an archive that belongs to you and indexes it in full text. This guide installs it on a VPS with Docker Compose, publishes it over HTTPS behind nginx, then connects a first mailbox.",[],[38,42,52,84,87,100,104,107,110,113,116],{"type":39,"title":40,"body":41},"h2","Why archive your email outside the mailbox","A mail server is built to send and receive, not to keep. Shared hosting caps mailbox size, users delete to make room, and a closed account takes all its content with it. The day you need a quote accepted three years ago, or a supplier's reply in a dispute, the original mailbox is often gone.\n\nArchiving means copying every message as it arrives to storage independent of the mailbox, then making it searchable. Bichon does exactly that: it reads your mailboxes over IMAP, keeps a copy of every message even when the original is deleted, and indexes senders, subjects, bodies and attachment names.",{"type":43,"title":44,"items":45},"ul","What Bichon brings",[46,47,48,49,50,51],"**Continuous IMAP archiving** — multiple accounts, password or OAuth2 login (Gmail, Microsoft 365), incremental sync and per-account schedules.","**Full-text search** — sender, recipients, subject, body and attachment names, with filters by account, folder and period.","**Import what you already have** — EML files, MBOX (including the Gmail export), Thunderbird profiles and Outlook PST files.","**Export and restore** — MBOX export, restoring messages to the original IMAP server.","**Users and roles** — multiple users, roles per archived account, TOTP two-factor authentication and API tokens.","**Self-contained** — one Rust binary with its built-in index: no database or Elasticsearch to install alongside.",{"type":53,"title":54,"headers":55,"rows":59},"comparison","Three ways to keep old email",[5,56,57,58],"Bichon","Leave it in the mailbox","PST or MBOX exports",[60,65,70,75,79],[61,62,63,64],"Survives mailbox deletion","Yes","No","Yes, up to the last export",[66,67,68,69],"Updates","Continuous, automatic","—","Manual, one-off",[71,72,73,74],"Search","Full text, across all mailboxes","Mailbox by mailbox","File by file, in a mail client",[76,77,78,77],"Provider quota","Freed","Reached sooner or later",[80,81,82,83],"Access for several people","Users and roles","Shared credentials","Copying files",{"type":39,"title":85,"body":86},"Prerequisites","An Ubuntu 24.04 VPS with **1 GB of RAM** is enough to start; it is the **disk** you need to size: count the current size of the mailboxes to archive, plus the index and a year of growth. You need Docker with the Compose plugin, nginx with an HTTPS certificate, and a name — for example `mail-archive.example.com` — since the interface and administrator login will go over the Internet.",{"type":88,"title":89,"steps":90},"steps","Install Bichon with Docker Compose",[91,94,97],{"title":92,"body":93},"Prepare the directory and the encryption key","`BICHON_ENCRYPT_PASSWORD` encrypts the IMAP passwords and OAuth2 tokens Bichon stores. Generate it once and keep it: without it, accounts already configured can no longer reconnect.\n```bash\nmkdir -p \u002Fopt\u002Fbichon && cd \u002Fopt\u002Fbichon\necho \"ENCRYPT_PASSWORD=$(openssl rand -hex 24)\" > .env\nchmod 600 .env\n```",{"title":95,"body":96},"Write the docker-compose.yml","The port is only published on the loopback interface: only nginx can reach it. `BICHON_TRUSTED_PROXIES` accepts the `X-Forwarded-For` header from the Docker network, so that logs and login rate limiting see the visitors' real address.\n```yaml\nservices:\n  bichon:\n    image: rustmailer\u002Fbichon:2.4.6\n    restart: unless-stopped\n    ports:\n      - \"127.0.0.1:15630:15630\"\n    environment:\n      BICHON_ROOT_DIR: \u002Fdata\n      BICHON_ENCRYPT_PASSWORD: ${ENCRYPT_PASSWORD}\n      BICHON_PUBLIC_URL: https:\u002F\u002Fmail-archive.example.com\n      BICHON_TRUSTED_PROXIES: 172.16.0.0\u002F12\n    volumes:\n      - bichon-data:\u002Fdata\n\nvolumes:\n  bichon-data: {}\n```",{"title":98,"body":99},"Start and check","The image ships its own health check: wait for the `healthy` state, then query the status route, which returns the version and uptime.\n```bash\ndocker compose up -d\ndocker compose ps\ncurl -s http:\u002F\u002F127.0.0.1:15630\u002Fapi\u002Fstatus\n```",{"type":101,"title":102,"body":103},"tip","Change the factory password before opening the address","On first start, Bichon creates the `admin` user with the password `admin@bichon`. That password opens no session: it forces you to choose a new one. But **whoever uses it first chooses the administrator password** — if the address is public before you have done it, someone else can do it for you. Log in and change it **before** publishing the vhost, for example through an SSH tunnel (`ssh -L 15630:127.0.0.1:15630 root@your-vps`), then enable two-factor authentication.",{"type":39,"title":105,"body":106},"Publish Bichon over HTTPS behind nginx","Bichon does not handle TLS itself: nginx does and forwards requests to it. The maximum upload size is raised for PST or MBOX imports through the interface, and the read timeout extended for long operations.\n```nginx\nserver {\n    listen 443 ssl;\n    server_name mail-archive.example.com;\n    # ssl_certificate + ssl_certificate_key (Let's Encrypt)\n    client_max_body_size 2g;\n\n    location \u002F {\n        proxy_pass http:\u002F\u002F127.0.0.1:15630;\n        proxy_set_header Host $host;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n        proxy_read_timeout 600s;\n    }\n}\n```\n\nReload nginx (`nginx -t && systemctl reload nginx`), then open `https:\u002F\u002Fmail-archive.example.com`. `BICHON_PUBLIC_URL` must carry the same address: it is the one Bichon gives Google and Microsoft as the redirect address for OAuth2 sign-ins.",{"type":39,"title":108,"body":109},"Archive a first IMAP mailbox","In **Accounts**, add a mailbox: IMAP server, port 993 with TLS, username and password. For an address hosted on cPanel, these are the full email address and its password, with the server `mail.your-domain.com`. Gmail and Microsoft 365 preferably connect through OAuth2, after registering the application with Google or Microsoft.\n\nThen choose the folders to archive — at least the inbox and sent items — and the sync frequency. The first pass copies the whole history, which can take hours on a mailbox of several gigabytes; the next ones only fetch new messages. Search works as soon as the first messages have arrived.",{"type":39,"title":111,"body":112},"Import your old PST, MBOX or EML exports","Mailboxes that no longer exist often left an export behind: an Outlook PST file, an MBOX from Google Takeout, a Thunderbird profile folder or EML files. Bichon imports them from the interface and stores them in the same archive as the synced mailboxes: a single search then covers old and new. For very large files, the `bichon-cli` command-line tool avoids going through the browser.\n\nThe other way round, Bichon exports to MBOX and can restore messages to the original IMAP server: useful after an accidental deletion, or to push history back into a new mailbox after a provider switch.",{"type":39,"title":114,"body":115},"Backup and security","The whole archive lives in the `\u002Fdata` volume: messages, search index and configuration. Back it up regularly, with the container stopped to get a consistent copy.\n```bash\ncd \u002Fopt\u002Fbichon\ndocker compose stop bichon\ndocker run --rm -v bichon_bichon-data:\u002Fdata -v \u002Froot\u002Fbackups:\u002Fbackup ubuntu \\\n  tar czf \u002Fbackup\u002Fbichon-$(date +%F).tar.gz -C \u002Fdata .\ndocker compose start bichon\n```\n\nThe `BICHON_ENCRYPT_PASSWORD` key only protects stored credentials, not messages: the archive itself is not encrypted by Bichon. Its protection therefore relies on access to the VPS, two-factor authentication on the application's accounts and backups that are themselves encrypted. Give each employee their own account, with a role limited to the mailboxes that concern them.",{"type":39,"title":117,"body":118},"Bichon in one click on ServOrbit","On a ServOrbit VPS, the Marketplace does all of the above for you: official container, port on the loopback interface, encryption key generated, factory password replaced **at install time** with a random password shown in your client area, nginx reverse proxy over HTTPS. You choose the address — a subdomain of one of your domains, or the VPS's free subdomain — and all that is left is adding your mailboxes. For scanned documents and attachments to file, pair it with Paperless-ngx.","Your email archived, on your own VPS","A ServOrbit Ubuntu 24.04 VPS with 1 GB of RAM is enough to start Bichon. One-click install from the Marketplace, HTTPS on your domain or on the VPS's free subdomain, administrator password generated and IMAP credential encryption key created for you.","Install Bichon","\u002Fapplications\u002Fcollaboration-productivity\u002Fbichon",[124,141,159],{"id":125,"slug":126,"slugs":127,"title":131,"excerpt":132,"readTime":23,"views":18,"isPinned":19,"noindex":19,"publishedAt":133,"updatedAt":134,"category":135,"categories":136,"featuredImage":138,"bgImage":30,"posterImage":139,"relatedSolution":140},537,"migrate-client-mailboxes-new-provider-without-loss",{"fr":128,"en":126,"ar":129,"es":130},"migrer-boites-email-client-nouveau-fournisseur-sans-perte","نقل-صناديق-البريد-للعميل-الى-مزود-جديد-دون-فقدان","migrar-buzones-correo-cliente-nuevo-proveedor-sin-perdidas","Migrate a client's mailboxes without losing a message","Agency runbook to move a client's mailboxes to a new provider: inventory, TTL, two-pass imapsync, MX cutover and count-based verification.","2026-10-30T00:00:00+00:00","2026-11-09T20:55:18+00:00",{"id":23,"name":24,"slug":25,"color":26,"icon":25},[137],{"id":23,"name":24,"slug":25,"color":26,"icon":25},"\u002Fblog\u002Fcovers\u002Fmigrer-boites-email-client-nouveau-fournisseur-sans-perte-cover.webp","\u002Fblog\u002Fcovers\u002Fmigrer-boites-email-client-nouveau-fournisseur-sans-perte-poster.svg",null,{"id":142,"slug":143,"slugs":144,"title":148,"excerpt":149,"readTime":150,"views":151,"isPinned":19,"noindex":19,"publishedAt":152,"updatedAt":153,"category":154,"categories":155,"featuredImage":157,"bgImage":30,"posterImage":158,"relatedSolution":140},298,"hosting-stalwart-mail-server-on-a-vps-complete-guide",{"fr":145,"en":143,"ar":146,"es":147},"heberger-stalwart-vps","استضافة-stalwart-mail-server-على-vps-دليل-شامل","alojar-stalwart-mail-server-en-un-vps-guia-completa","Hosting Stalwart Mail Server on a VPS: Complete Guide","Install Stalwart Mail Server on a VPS: a single Go binary for SMTP, IMAP, JMAP and native multi-tenancy to manage multiple client domains without Docker.",7,5,"2026-08-24T00:00:00+00:00","2026-10-20T23:18:05+00:00",{"id":23,"name":24,"slug":25,"color":26,"icon":25},[156],{"id":23,"name":24,"slug":25,"color":26,"icon":25},"\u002Fblog\u002Fcovers\u002Fheberger-stalwart-vps-cover.webp","\u002Fblog\u002Fcovers\u002Fheberger-stalwart-vps-poster.svg",{"id":160,"slug":161,"slugs":162,"title":166,"excerpt":167,"readTime":168,"views":18,"isPinned":19,"noindex":19,"publishedAt":169,"updatedAt":170,"category":171,"categories":172,"featuredImage":174,"bgImage":30,"posterImage":175,"relatedSolution":140},215,"migrating-professional-email-leaving-gmail-and-microsoft-365",{"fr":163,"en":161,"ar":164,"es":165},"migrer-email-pro-quitter-gmail-microsoft-365","الانتقال-من-gmail-وmicrosoft-365-نقل-بريدك-المهني","migrar-correo-profesional-dejar-gmail-microsoft-365","Migrating professional email: leaving Gmail and Microsoft 365","Microsoft 365 raised prices in 2026 and EWS shuts down in October. Here's how to migrate your business email without interruption.",4,"2026-08-03T00:00:00+00:00","2026-11-20T14:17:08+00:00",{"id":23,"name":24,"slug":25,"color":26,"icon":25},[173],{"id":23,"name":24,"slug":25,"color":26,"icon":25},"\u002Fblog\u002Fcovers\u002Fmigrer-email-pro-quitter-gmail-microsoft-365-cover.webp","\u002Fblog\u002Fcovers\u002Fmigrer-email-pro-quitter-gmail-microsoft-365-poster.svg",true,1796258725894]