selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Self-host E∘nvelope

0.7.1

Long-term email archive speaking IMAP, POP, Exchange, JMAP

BetaOpen Sourceagpl-3.0
Updated10 months ago
Setup difficultyEasy
MobilePWA
Port
443 (HTTPS web UI inside the container; the minimal compose maps it to host port 1122 (1122:443))
Docker
dacid99/eonvelope
Install with Docker

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) and ranks #45 of 109 in 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 (80/100, 24 414 stars). It scores higher overall, so compare the two before you pick. See E∘nvelope vs Listmonk side by side.

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

docker
Environment variables
DATABASE, DATABASE_USER, DATABASE_PASSWORD, DJANGO_SUPERUSER_PASSWORD, SECRET_KEY, ALLOWED_HOSTS
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:

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

How to configure E∘nvelope

  • SECRET_KEYRandom string, the heart of Django's cryptographic functionality.
  • DATABASEDatabase name for Eonvelope; must match MARIADB_DATABASE of the DB config.
  • DATABASE_USERDatabase username; must match MARIADB_USER of the DB config.
  • DATABASE_PASSWORDDatabase user password; must match MARIADB_PASSWORD of the DB config.
  • DJANGO_SUPERUSER_PASSWORDPassword of the admin user created by default.

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.

More in Email

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…