MailFlow is a self-hosted webmail client that connects multiple IMAP and SMTP accounts into one interface. You run it on your own server and read mail in the browser.
Overview
MailFlow brings several email accounts into a single web interface so you can read and send mail without switching between provider webmail sites. It connects to Gmail, iCloud, Outlook, Fastmail, and custom IMAP servers, routing outbound mail through the correct SMTP account per message.
The client merges inboxes into one chronological view, groups messages into conversation threads, and supports rich-text composition with attachments. It can sort incoming mail into tabs such as Primary, Newsletters, Social, Notifications, and Other, and offers inbox rules, snooze, full-text search across accounts, and folder sync with IMAP.
Administrators deploy MailFlow with Docker Compose using pre-built images, with HTTPS on configurable ports and optional Let's Encrypt. The instance supports user management with invite-only registration, TOTP two-factor authentication, SSO via OpenID Connect, and optional AI-assisted summaries and drafts through an OpenAI-compatible API.
Desktop apps for Windows, macOS, and Linux ship alongside an Android app, and the web UI can be installed as a PWA with push notifications. The project positions itself as self-hosted webmail comparable to Roundcube and Snappymail, with themes, layouts, CardDAV contacts, Todoist integration, and an optional Getting Things Done workflow backed by IMAP folders.
Key features
- Unified inbox across IMAP accounts
- Conversation threading and rich compose
- Automatic inbox categorization tabs
- Docker Compose deployment
- TOTP and OIDC single sign-on
- Full-text search across accounts
- Inbox rules and snooze
- PWA with push notifications
Use cases
- Self-hosted personal unified email
- Team webmail on your own server
- Managing multiple IMAP providers in one UI
- Privacy-focused mail without third-party clouds
- Homelab email client deployment