📧 Mail Archiver Documentation¶
Self-hosted email archiving — archive, search and export mail from any provider. Set it up once, keep every message, and find it again years later.
-
Getting started
Install Mail Archiver with Docker Compose and connect your first mailbox.
-
Find anything
Full-text search across every account, with filters, sorting and bulk actions.
-
Automate it
Read your archive from scripts and AI agents — read-only, scoped API keys.
-
Secure it
Two-factor authentication, SSO, access logging and retention policies.
🛠️ Installation & Maintenance¶
-
Setup and parameters
Every environment variable, Kestrel HTTPS and secrets management.
-
Reverse proxy
Put Mail Archiver behind nginx or Caddy with TLS termination.
-
PostgreSQL upgrade
Move to a new major PostgreSQL version without losing data.
-
Database maintenance
VACUUM, ANALYZE and keeping the archive responsive over time.
-
Backup and restore
Back up the database and restore it — including Proxmox setups.
-
Local test environment
Run a throwaway instance locally before touching production.
📥 Getting Mail In¶
-
Account import
Add many accounts at once from a CSV file.
-
Synchronization
Quick vs. full sync, checkpoints, and what happens when a sync fails.
-
CLI commands
Import existing archives from the command line, and move stored original messages between the database and the filesystem.
-
Web import (EML / MBox)
Upload an MBox file or a ZIP of EML files through the browser.
-
Rate limit handling
Bandwidth tracking, and how paused syncs resume on their own.
🔍 Working with the Archive¶
-
Mail search
Query syntax, filters, sorting, paging and bulk actions.
-
Background jobs
Watch syncs, imports, restores and exports — and cancel them safely.
-
Mailbox migration
Copy mail between mailboxes while preserving the folder structure.
-
Account export (EML / MBox)
Write a whole account back out as a portable EML or MBox archive.
-
Original message storage
Keep the message as received, so DKIM still verifies and exports are byte-exact.
-
Attachment deduplication
How identical attachments are stored once instead of many times.
-
XRechnung invoice preview
Read XRechnung XML attachments as a PDF directly in the archive.
-
Date-windowed offload
Move older mail to another account, window by window.
-
Per-account storage
See how much space each mailbox takes up.
🔐 Administration & Security¶
-
User management
Create users, grant admin rights, assign mailbox permissions and change your own password.
-
Two-factor authentication
TOTP setup, backup codes, and what to do when a device is lost.
-
OIDC / SSO
Sign in through Entra ID, Authelia or another identity provider.
-
Access logging
Who opened, searched, exported or deleted what.
-
Audit data export
Export the audit trail for compliance reviews.
-
Emergency account recovery
Regain access when an account is locked out.
-
Retention policies
Automatic deletion from the mail server or the local archive.
☁️ Provider Guides¶
-
Azure app registration (M365)
Register an app and configure retention for Microsoft 365.
-
M365 tenant mailbox import
Bulk-import every mailbox of a tenant from a single form.
-
Mailcow instances
Select mailboxes centrally and provision dedicated IMAP app passwords.
-
Personal Microsoft accounts
Outlook.com, Hotmail and M365 Family via device code flow.
-
Gmail best practices
App passwords, labels, expunge and Gmail's rate limits.
-
Yahoo mail limitations
What Yahoo's IMAP and export endpoints will not do.
🔌 Programmatic Access¶
🧰 Operations & Development¶
-
Language and localization
Switch the interface language, and how to add a translation.
-
Docker Compose logs
Read container logs and change the log level.
-
Health and metrics
Watch liveness, readiness and archive metrics from Prometheus or another monitoring system.
-
Development versions
Switch to a dev tag to test upcoming changes.