# E∘nvelope

> Self-hosted, open-source email archive that auto-fetches via IMAP, POP, Exchange and JMAP, with search, import/export, REST API, MFA and a PWA webapp.

- **Category:** [Email](https://selfhost.directory/email)
- **Licence:** agpl-3.0
- **Source model:** Open source
- **Latest version:** 0.7.1
- **Author:** David Aderbauer
- **Platforms:** Docker, Kubernetes, Podman
- **Ports:** 443 (HTTPS web UI inside the container; the minimal compose maps it to host port 1122 (1122:443))
- **Requires:** PostgreSQL (optional), MySQL (optional)
- **Tags:** Email, Search, IMAP, Archiving, Jmap, Exchange, Pwa, OIDC, Django, Prometheus, Pop

## Docker images

- [`dacid99/eonvelope`](https://hub.docker.com/r/dacid99/eonvelope)

## What is E∘nvelope?

Eonvelope is an open-source archive that keeps copies of your email over the very long term. It continuously pulls messages from mail accounts over IMAP, POP, Microsoft Exchange or JMAP, and stores each message together with its attachments and correspondents as separate, searchable records, recognizing related messages as conversation threads. Archived mail can be imported from or exported to various formats, and individual messages can be restored back into your live mailbox. The Bootstrap-based web interface works well on phones, is installable as a PWA, and is protected by multi-factor authentication plus optional OIDC single sign-on; a complete REST API also drives alternative frontends. Connectors push attachments to Paperless-ngx or Immich and contact data to Nextcloud, while Searxng can query the archive through the API and Prometheus/Grafana can consume its metrics. Operators run it as a container with docker compose or Podman next to MariaDB (PostgreSQL and SQLite are also options), and a slim mode trims resource use on weak hardware; it ships with a self-signed certificate and should sit behind a reverse proxy. Full documentation lives on ReadTheDocs. In the 0.x series breaking changes are still possible, and the project itself advises not to rely on it as your only archival method for critical email.

## Should you self-host E∘nvelope?

E∘nvelope scores **56/100** on selfhost.directory ([how scoring works](https://selfhost.directory/scoring)) and ranks **#45 of 109** in [Email](https://selfhost.directory/email).

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is agpl-3.0-licensed.

Its closest alternative on selfhost.directory is [Listmonk](https://selfhost.directory/project/listmonk) (80/100, 24 424 stars). It scores higher overall, so compare the two before you pick. [See E∘nvelope vs Listmonk side by side.](https://selfhost.directory/compare/envelope-vs-listmonk)

## Features

- Automatic Email Fetching
- Bundled SSL certificate
- Health endpoint
- IMAP, POP, Exchange and JMAP support
- Import / Export
- Internationalization
- Multi-user accounts
- Prometheus Metrics
- REST API
- Restore emails to mailbox
- Search and filtering
- Slim Mode
- Spam exclusion
- Thread detection
- Two-factor authentication

## How to install E∘nvelope

### Install E∘nvelope with Docker

Requirements: docker

Environment variables:

```
DATABASE, DATABASE_USER, DATABASE_PASSWORD, DJANGO_SUPERUSER_PASSWORD, SECRET_KEY, ALLOWED_HOSTS
```

```yaml
services:
  db: # this service name must not be changed!
    image: mariadb:latest
    container_name: eonvelope-db
    volumes:
      - eonvelope-db-data:/var/lib/mysql
    environment:
      MARIADB_DATABASE: email_archive_django # must match web:DATABASE_NAME
      MARIADB_USER: user # must match web:DATABASE_USER
      MARIADB_PASSWORD: passwd # must match web:DATABASE_PASSWORD
      MARIADB_ROOT_PASSWORD: example
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
      start_period: 20s
      start_interval: 5s
      interval: 1m
      timeout: 5s
      retries: 3

  web:
    image: dacid99/eonvelope:latest
    container_name: eonvelope-web
    volumes:
      - eonvelope-archive:/mnt/archive
      - eonvelope-logs:/var/log/eonvelope
    ports:
      - 1122:443
    environment:
      DATABASE: email_archive_django # must match db:MARIADB_DATABASE
      DATABASE_USER: user # must match db:MARIADB_USER
      DATABASE_PASSWORD: passwd # must match db:MARIADB_PASSWORD
      DJANGO_SUPERUSER_PASSWORD: rootqwertz123
      SECRET_KEY: 'PLEASE_REPLACE_ME_WITH_THE_OUTPUT_OF_A_STRONG_RANDOM_GENERATOR!'
      ALLOWED_HOSTS: localhost,eonvelope.mydomain.tld # all allowed host URLs separated by ,
    restart: unless-stopped
    depends_on:
      db:
        condition: service_healthy

volumes:
  eonvelope-db-data:
  eonvelope-archive:
  eonvelope-logs:
```

Note: Use docker compose with the minimal compose file or an equivalent docker run command.

## FAQ

### How can I contribute to this project?

Contributions are welcome: check out the quickstart and code-style guidelines in the developers section of the docs to get started.

### Parts of the user interface are not accessible on my device, what can I do?

Report it via an issue using the missing-accessibility template, since the project aims to keep barriers minimal.

### My language is missing in the translations, can I help to add it?

Yes — translations happen on Hosted Weblate; if your language is missing there too, file an issue using the missing-language template.

### I have found a problem with the application, what should I do?

First check whether the problem is specific to your setup; if not, file an issue in one of the online repositories. Security-related problems should be reported to a developer privately.

### If I delete an account in Eonvelope, does that delete the account on the mailserver too?

No, only the data in the Eonvelope database is deleted; the app never destroys data on your mail server.

### Do I need a license to use this application?

No. It is AGPLv3-licensed, so everyone can use it freely; the only obligation arises if you modify and publish the source, which must then stay under the same license.

### Do I need special hard- or software to run Eonvelope?

No special hardware is needed: anything that can run containers works, including modern Linux, Windows, MacOS and FreeBSD.

## E∘nvelope alternatives

- [mail-archiver](https://selfhost.directory/project/mail-archiver): Mail-Archiver is a web application for archiving, searching, and exporting emails from multiple accounts. Featuring folder sync, attachment support, mailbox migration  and a dashboard. (compare: https://selfhost.directory/compare/envelope-vs-mail-archiver)
- [Bichon](https://selfhost.directory/project/bichon): Self-hosted, open-source email archiver written in Rust that pulls mail over IMAP or OAuth2, indexes it for full-text search, and serves a WebUI and REST API. (compare: https://selfhost.directory/compare/bichon-vs-envelope)
- [Piler](https://selfhost.directory/project/piler): Self-hosted open-source email archiving for compliance, search, and storage reduction. Built-in SMTP, deduplication, encryption, LDAP/SSO auth. (compare: https://selfhost.directory/compare/envelope-vs-piler)
- [plMail](https://selfhost.directory/project/pl-mail): Self-hosted, open-source mail client unifying IMAP, Gmail, and Outlook with calendar, file integrations, and optional AI features. (compare: https://selfhost.directory/compare/envelope-vs-pl-mail)
- [MailFlow](https://selfhost.directory/project/mailflow): A self-hosted webmail app that merges multiple email accounts into one inbox with real-time sync, AI features, and offline-capable PWA. (compare: https://selfhost.directory/compare/envelope-vs-mailflow)
- [mailez](https://selfhost.directory/project/mailez): A self-hosted email platform with SMTP, IMAP, POP3, CardDAV, CalDAV, a React webmail client, and admin console — all deployed via a single Docker Compose command. (compare: https://selfhost.directory/compare/envelope-vs-mailez)
- [Bulwark Webmail](https://selfhost.directory/project/bulwark-webmail): Open-source, self-hosted JMAP mail client for Stalwart: threaded inbox, calendar, address books and files, with SSO, 2FA, PWA push and a static Lite build. (compare: https://selfhost.directory/compare/bulwark-webmail-vs-envelope)
- [EmailEngine](https://selfhost.directory/project/emailengine): Headless email client (compare: https://selfhost.directory/compare/emailengine-vs-envelope)

## More in Email

- [Eonvelope](https://selfhost.directory/project/eonvelope): Open-source self-hosted email archive supporting IMAP, POP, Exchange, and JMAP with integrations for Paperless-ngx, Immich, Nextcloud, and Searxng.
- [erine.email](https://selfhost.directory/project/erine-email): Self-hosted, open-source anti-spam system deployed with Puppet: each contact gets a unique email alias forwarded to your real inbox, disableable per sender.
- [Exim](https://selfhost.directory/project/exim): Exim is a message transfer agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the Internet. It is freely available under the terms of the GNU General Public License.
- [forsaken-mail](https://selfhost.directory/project/forsaken-mail): Forsaken-Mail is a self-hosted, open-source disposable email service for receiving mail at temporary addresses on your own domain with a web UI and built-in SMTP server.
- [Forward Email](https://selfhost.directory/project/forward-email): Forward Email is a self-hosted, open-source email service with forwarding, encrypted mailboxes, SMTP/IMAP/POP3, CalDAV/CardDAV, and webhooks.
- [FreeScout](https://selfhost.directory/project/freescout): A self-hosted, open-source help desk & shared mailbox — Zendesk / Help Scout alternative on PHP & MySQL, with unlimited agents and tickets.
- [gmail-cleaner](https://selfhost.directory/project/gmail-cleaner): Open-source Gmail inbox cleaner you self-host with Docker or Python: bulk unsubscribe, delete by sender, archive, label, using your own Google OAuth credentials.
- [goeland](https://selfhost.directory/project/goeland): Goeland is a self-hosted, open-source tool that turns RSS, Atom, and JSON feeds into beautiful HTML email digests with full-text extraction and composable filters.
- [Gray Duck Mail](https://selfhost.directory/project/gray-duck-mail): Gray Duck Mail is a self-hosted, open-source email discussion list manager in Docker that connects to external mail servers via POP3/SMTP for small to medium groups.
- [groupoffice](https://selfhost.directory/project/groupoffice): Self-hosted open-source groupware and CRM with email, calendar, contacts, files, docs, video calls, projects, invoicing. Syncs via ActiveSync, CalDAV, CardDAV.
- [Haraka](https://selfhost.directory/project/haraka): A self-hosted, open-source Node.js SMTP server with a JavaScript plugin system: filtering MTA or submission host with DKIM signing, DNSBL checks and virus scanning.
- [HQBase](https://selfhost.directory/project/hqbase): HQBase is a self-hosted, open-source shared email workspace for teams running on Cloudflare Workers, D1, and R2 with full data control.

## Links

- [Homepage](https://gitlab.com/dacid99/eonvelope)
- [Website](https://dacid99.gitlab.io/eonvelope)
- [Documentation (ReadTheDocs)](https://eonvelope.readthedocs.io/latest/)
- [GitHub mirror](https://github.com/Dacid99/Eonvelope)

---
Source: https://selfhost.directory/project/envelope