Deploy Now

Stars

2,214

Forks

93

Watchers

18

Developer links

Mail-Archiver

Across personal mailboxes and business domains alike, Mail-Archiver captures, indexes, and preserves every incoming and outgoing email from multiple IMAP and Microsoft 365 accounts in a tamper-resistant archive. Connect standard IMAP servers, Microsoft 365 business tenants via Microsoft Graph, or personal Outlook and Hotmail accounts using OAuth2 device code flow without creating custom cloud app registrations. Scheduled background synchronization mirrors complete folder hierarchies automatically, while bulk tenant onboarding lets administrators import every active mailbox from a Microsoft 365 organization through a single configuration screen. When an important contract, invoice, or correspondence thread goes missing, the advanced search interface filters archived messages by sender, recipient, subject, date range, folder, and body text with instant HTML preview and direct attachment downloads. Users can import legacy MBox files or zipped EML archives, export selected messages or entire accounts, and run direct mailbox-to-mailbox migrations that copy folder trees between providers. Granular retention rules optionally purge aged messages from upstream mail servers to free quota while keeping local archive copies locked against manual deletion for compliance auditing. Multi-user access controls, OpenID Connect single sign-on, detailed activity audit logs, a scoped read-only REST API, and a Model Context Protocol endpoint allow both teams and AI assistants to query historical mail safely. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. GPL-3.0 licensed.

Mail-Archiver
Mail-Archiver
Mail-Archiver
Mail-Archiver
Mail-Archiver

Benefits

  • Multi-Provider Email Synchronization and Archiving
  • Synchronize and archive messages automatically from standard IMAP servers, Microsoft 365 business tenants via Graph API, and personal Outlook mailboxes while preserving original folder structures and file attachments.
  • Tamper-Resistant Compliance and Retention Controls
  • Enforce per-account server retention policies that reclaim upstream mailbox storage after a set period while locking local archived messages against manual deletion and recording every search or export in audit logs.
  • Seamless Mailbox Migration and Bulk Import
  • Import existing MBox and zipped EML archives, bulk-onboard entire Microsoft 365 domains from one form, and migrate complete folder hierarchies directly between different email providers without external scripts.
  • Scoped REST API and MCP Integration
  • Query archived correspondence programmatically through scoped read-only REST API keys or connect AI assistants via the built-in Streamable HTTP Model Context Protocol endpoint without exposing mailbox credentials.

Features

  • Scheduled Multi-Account Sync
  • Runs background synchronization workers for IMAP, Microsoft Graph M365, and OAuth2 Microsoft personal accounts with configurable sync intervals and encrypted credential storage in PostgreSQL.
  • Full-Text Archive Search
  • Filters archived emails across multiple accounts by keyword, sender, recipient, folder, date range, and attachment presence with inline message rendering and attachment extraction.
  • MBox and EML Export
  • Imports and exports individual messages, filtered search results, or entire mailboxes as standard MBox files or folder-structured ZIP archives of EML messages.
  • Cross-Mailbox Migration Engine
  • Copies emails and nested folder hierarchies directly from source accounts to destination mailboxes to simplify domain transitions and server consolidations.
  • OpenID Connect Multi-User Auth
  • Supports local accounts and OpenID Connect single sign-on with per-user mailbox permission assignments and comprehensive access logging for logins, searches, and exports.
  • Built-In MCP Server Endpoint
  • Exposes read-only archive tools including search_emails, get_email, list_accounts, list_folders, and get_attachment over a Streamable HTTP Model Context Protocol endpoint at /mcp.

Apps Similar to Mail-Archiver