๐ง 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 local import
Import existing archives from the command line.
-
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.
-
Attachment deduplication
How identical attachments are stored once instead of many times.
-
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.
-
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.