Self-host E∘nvelope
0.7.1Long-term email archive speaking IMAP, POP, Exchange, JMAP
- Port
- 443 (HTTPS web UI inside the container; the minimal compose maps it to host port 1122 (1122:443))
dacid99/eonvelopeWhat 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.
E∘nvelope alternatives
mail-archiverMail-Archiver is a web application for archiving, searching, and exporting emails from multiple accounts. Featuring folder sync, attachment support, mailbox migration and a dashboard.Comparemail-archiver with E∘nvelope
BichonSelf-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.CompareBichon with E∘nvelope
PilerSelf-hosted open-source email archiving for compliance, search, and storage reduction. Built-in SMTP, deduplication, encryption, LDAP/SSO auth.ComparePiler with E∘nvelope
plMailSelf-hosted, open-source mail client unifying IMAP, Gmail, and Outlook with calendar, file integrations, and optional AI features.CompareplMail with E∘nvelope
MailFlowA self-hosted webmail app that merges multiple email accounts into one inbox with real-time sync, AI features, and offline-capable PWA.CompareMailFlow with E∘nvelope
mailezA 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.Comparemailez with E∘nvelope
Bulwark WebmailOpen-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.CompareBulwark Webmail with E∘nvelope
EmailEngineHeadless email clientCompareEmailEngine with E∘nvelope
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
DATABASE, DATABASE_USER, DATABASE_PASSWORD, DJANGO_SUPERUSER_PASSWORD, SECRET_KEY, ALLOWED_HOSTSservices:
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.
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
EonvelopeOpen-source self-hosted email archive supporting IMAP, POP, Exchange, and JMAP with integrations for Paperless-ngx, Immich, Nextcloud, and Searxng.- erine.emailSelf-hosted, open-source anti-spam system deployed with Puppet: each contact gets a unique email alias forwarded to your real inbox, disableable per sender.
- EximExim 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-mailForsaken-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 EmailForward Email is a self-hosted, open-source email service with forwarding, encrypted mailboxes, SMTP/IMAP/POP3, CalDAV/CardDAV, and webhooks.
FreeScoutA self-hosted, open-source help desk & shared mailbox — Zendesk / Help Scout alternative on PHP & MySQL, with unlimited agents and tickets.
gmail-cleanerOpen-source Gmail inbox cleaner you self-host with Docker or Python: bulk unsubscribe, delete by sender, archive, label, using your own Google OAuth credentials.
goelandGoeland 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 MailGray 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.
groupofficeSelf-hosted open-source groupware and CRM with email, calendar, contacts, files, docs, video calls, projects, invoicing. Syncs via ActiveSync, CalDAV, CardDAV.
HarakaA 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.
HQBaseHQBase is a self-hosted, open-source shared email workspace for teams running on Cloudflare Workers, D1, and R2 with full data control.
0 comments