M

mail-archiver

1.9k stars·System Optimization·SHA-256 checksum verified

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

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.

Tags

email-archivingself-hostedimapm365dotnetdockerpostgresqlmail-management

Getting Started

1

Download installer

Click the button above to download the installer for your system

2

Install the software

Double-click the downloaded installer and follow the prompts

3

Step 1: Install Docker and Docker Compose on your machine

4

Step 2: Create a docker-compose.yml file with database connection and admin credentials (see README)

5

Step 3: Run 'docker compose up -d' to start containers

Install Guide
  1. Step 1: Install Docker and Docker Compose on your machine
  2. Step 2: Create a docker-compose.yml file with database connection and admin credentials (see README)
  3. Step 3: Run 'docker compose up -d' to start containers
File Integrity

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 Source
Environment Guide

Uninstall 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.

Project Info
LicenseMIT
Last Updated2026-10-15 09:32:13
GitHub RepositoryOfficial Website

Having issues? Check the FAQ below

4 FAQs

Similar Projects