talira

Mail-Archiver

Self-hosted web app for archiving, searching and exporting email from many accounts

open sourceGPL-3.0-onlyself-hostablefreeMCP

Mail-Archiver is a self-hosted web application that archives email from IMAP accounts, Microsoft 365 (through Microsoft Graph, including a bulk import of a whole tenant's mailboxes) and personal Outlook.com accounts on a schedule, and keeps each message's original bytes so DKIM signatures stay valid. It searches the archive with filters, previews messages and attachments, exports accounts or selected messages as mbox or zipped EML, imports mbox and EML archives, restores messages or whole mailboxes and copies mail between mailboxes with their folders. Retention policies can delete mail from the server after a set time, a deletion lock stops manual deletes, and an access log records what users do. It has several users with per-account permissions, OpenID Connect sign-in, a read-only REST API with scoped keys and an optional MCP endpoint that gives AI agents read-only access to the archive. It runs with Docker Compose on .NET and PostgreSQL, under GPL-3.0.

Problems it solves

  • keep a searchable archive of all my old emails on my own server
  • back up a Microsoft 365 or IMAP mailbox and be able to restore it later
  • move emails from one mailbox to another and keep the folder structure
  • automatically delete old mail from the mail server but keep a copy in an archive

Features

  • scheduled archiving from IMAP, Microsoft 365 and Outlook.com
  • full-text search with filters
  • mbox and EML export and import
  • mailbox restore and migration
  • retention policies and deletion lock
  • multi-user with per-account permissions
  • OpenID Connect sign-in
  • read-only REST API
  • MCP server for AI agents
  • access log

Capabilities

Has an APIplan not known
Has an MCP serverplan not known
Has single sign-onplan not known

Alternatives

The same job

These do what Mail-Archiver does.

  1. Bichon Self-hosted email archiving server
  2. Open Archiver A secure, sovereign, and open-source platform for email archiving

Compare Mail-Archiver with the top 3