Mail-Archiver

Archive, search, and export emails from multiple accounts with automated synchronization and retention policy management.

Mail-Archiver screenshot 1

Mail-Archiver is an open-source, self-hosted web application designed for the archiving, searching, and exporting of emails from multiple accounts. It operates as a server-based system that synchronizes mail data to a local store, allowing users to maintain long-term records of communications independently of the original mail server. This ensures that email history is preserved even if the original account is deleted or the provider service is changed.

The application is deployed using Docker Compose and utilizes a PostgreSQL database for storage. It provides a responsive web interface with dark mode and supports multi-user environments where administrators can assign account-specific permissions to different users. This setup is typically used for digital preservation, compliance, or migrating legacy mailboxes. Users can manage their archives through a browser, accessing a centralized dashboard that monitors storage and synchronization status.

Key features

  • Automated synchronization from multiple accounts via scheduled tasks
  • Support for IMAP, Microsoft Graph API for M365, and import-only accounts
  • Advanced search with filters and email previews including attachments
  • Export of selected emails or entire accounts as mbox or zipped EML files
  • Configurable retention policies for automatic deletion from mail servers
  • Bulk import of all mailboxes within a Microsoft 365 tenant
  • Multi-user support with detailed access logging for user activities
  • Ability to migrate emails between mailboxes while preserving folder structures

Built with ASP.NET Core 10 MVC and Bootstrap 5, the system uses the MailKit library for IMAP communication. It integrates with OpenID Connect (OIDC) for authentication and employs Chart.js to provide storage monitoring and statistics on a central dashboard. The architecture relies on a background service to handle the continuous synchronization of emails from remote providers to the local PostgreSQL database. To ensure security, the application requires the use of a reverse proxy to provide encrypted HTTPS access, as it does not handle SSL termination internally.

This software serves as a centralized tool for email backup and digital preservation across diverse mail providers, providing a dedicated environment for long-term data retention.

Last Modified
Software TypeWeb App / Server
Platform
Last Activity15 days ago
Repository Age1 year
LicenseGPL-3.0
Open Source Alternative to
Open Source Software.io

Join our newsletter to get shiny new open source software delivered to your inbox. Unsubscribe anytime.