mail-archiver
Self-hosted email archiving system with automatic sync, advanced search, export to mbox/EML, multi-user support, and configurable retention policies.
Smart Download
Visit Project Homepage
No installer available yet — head to the source repository
Self-hosted email archiving with sync, search, export, multi-user, and retention policies.
Core Features
- Automatic sync from multiple IMAP or M365 accounts
- Advanced search with filters (sender, subject, date, attachments)
- Export to mbox or ZIP (EML) with batch selection
- Multi-user system with granular account permissions
- Retention policies: separate settings for server deletion and local archive
What It Can't Do
- •The app does not provide HTTPS; use a reverse proxy (e.g., Nginx) for secure access. 2. Change the default admin password immediately after first login. 3. Use a strong database password, not the example 'masterkey'. 4. Set TimeZone__DisplayTimeZoneId correctly to avoid time display issues. 5. Regularly backup the PostgreSQL database for large archives.
Use Cases
- Enterprise compliance archiving for regulatory requirements
- Personal email backup from multiple accounts to a central server
- Mail migration: import/export between old and new systems
Detailed Introduction
Mail-Archiver is a comprehensive, self-hosted email archiving solution designed for individuals and organizations. It automatically syncs emails from multiple accounts via IMAP or Microsoft Graph API (M365), stores them in a PostgreSQL database, and provides a powerful web interface for searching, previewing, exporting, and managing archived messages. Key features include scheduled synchronization, attachment storage, advanced search with filters, mbox/EML export, multi-user access control with granular permissions, OIDC authentication integration, and configurable retention policies (both server-side and local archive). The application is built on ASP.NET Core 10 and can be easily deployed using Docker Compose. It is ideal for compliance, backup, or personal email management.
Troubleshooting & FAQ (2)
TroubleshootingWhy does Russian text appear as HTML entities (e.g., П) on the Jobs page?
This bug was fixed in Mail-Archiver version 2604.2. For Docker installations, update by pulling the latest image and restarting the container: docker compose pull && docker compose up -d. Verify the version after update. If the problem persists, ensure your browser cache is cleared or try an incognito window.
TroubleshootingWhy does MailArchiver Docker container fail with 'libgssapi_krb5.so.2' error on Synology NAS?
This error occurs in versions after 2512.1 because the Docker image is missing the Kerberos library libgssapi_krb5.so.2. To work around it, you can override the entrypoint to install the package at startup. For Debian/Ubuntu-based images, add to your docker-compose.yml: command: sh -c "apt update && apt install -y libgssapi-krb5-2 && exec mailarchiver". For Alpine-based images, use: command: sh -c "apk add --no-cache krb5-libs && exec mailarchiver". Alternatively, build a custom Dockerfile that adds RUN apt install -y libgssapi-krb5-2 (or its Alpine equivalent). The official fix is tracked in GitHub issue #366; consider subscribing for updates.
Tags
Getting Started
Download installer
Click the button above to download the installer for your system
Install the software
Double-click the downloaded installer and follow the prompts
Step 1: Install Docker and Docker Compose on your machine
Step 2: Create a docker-compose.yml file with database connection and admin credentials (see README)
Step 3: Run 'docker compose up -d' to start containers
- Step 1: Install Docker and Docker Compose on your machine
- Step 2: Create a docker-compose.yml file with database connection and admin credentials (see README)
- Step 3: Run 'docker compose up -d' to start containers
Checksum not available
This project has not published a SHA-256 checksum on its GitHub Release page
SHA256 Checksum
No checksum available
Download directly from GitHub Releases and verify file integrity yourself
All SHA-256 checksums on this platform are extracted from the project's official GitHub Release page, without any modification. You can independently verify them on the GitHub Releases page.
Open Source Transparency
View GitHub SourceUninstall Info
Stop containers with 'docker compose down', then delete the postgres-data and data-protection-keys folders to completely remove all data.
No Extra Dependencies
Ready to use after download. No additional runtime required.
Having issues? Check the FAQ below
2 FAQs
Similar Projects
Huginn
Huginn lets you build agents that automate online tasks. Events propagate through a directed graph. Monitor web, Twitter, email, and more.
RSSHub
RSSHub is the world's largest open-source RSS network. It generates RSS feeds from virtually any website, with over 5,000 instances and a thriving community. Perfect for aggregating social media, news, blogs, and more.
Puter
An open-source internet computer that lets you access all your files, apps, and games from anywhere, with self-hosting for full control.