mimux
Health Uyari
- License รขโฌโ License: AGPL-3.0
- Description รขโฌโ Repository has a description
- Active repo รขโฌโ Last push 0 days ago
- Low visibility รขโฌโ Only 6 GitHub stars
Code Gecti
- Code scan รขโฌโ Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions รขโฌโ No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
๐ง One inbox. Every interface. mimux connects to the mailboxes you already have and serves them out however the job needs: a fast, keyboard-driven web app for you โ free, forever โ and a REST API, MCP server, CLI and webhooks for your scripts, pipelines and AI agents. All of it on your hardware, none of it through a SaaS.
mimux

A fast, keyboard-driven email client you run yourself. Point it at the mailboxes
you already have, and read, search, triage and send from one unified inbox in the
browser or as an installed app on your phone. Your mail, your credentials and
your machine โ no account to create, no third party in the middle.
One docker compose up. One SQLite file holds everything. Under the hood it is a
single Go binary serving htmx + Alpine.js + Tailwind, talking IMAP and SMTP.
Features
- Unified inbox across every configured account, plus a per-account view
- IMAP IDLE sync in the background, with polling fallback
- Conversation threading, unread counts, and a full folder tree
(inbox/sent/drafts/archive/spam/trash) per account - Compose, reply, reply-all, and forward over SMTP โ plain text, rich text
or Markdown โ with attachment reminders that exclude recognizable quoted
reply text, visible sending feedback, local draft autosave, undo-send and
scheduled send; forwards start with the original attachments selected for
review - Search โ instant local full-text search plus on-demand deep IMAP
server search, streamed back over SSE as results arrive - Filters โ a rule engine (conditions โ actions: move, label, forward,
mark read, star, delete, notify) that runs on incoming mail - AI compose/reply, message and thread summaries, and translate, all
optional and bring-your-own-key (OpenRouter, Google Translate) - OAuth2 login for Gmail and Zoho, alongside plain password/app-password auth
- Keyboard-first โ a customizable shortcut map for navigating and triaging
mail without leaving the home row (see below) - Installable PWA with an offline fallback to your last-synced inbox
- Notifications for new mail when mimux isn't open โ Web Push straight from
your server, or a POST to an ntfy topic (see below)
mimux pro โ the automation layer
Everything above is free, forever. If something other than a human needs to
drive mimux, that is mimux pro: a REST API
(self-documented at /api/v1/openapi.json, rendered at
docs.mimux.dev), an MCP server at /api/mcp so
agents can search, read, triage and draft (never send without a second,
explicit step), a mimux mail CLI over the same API for shells, scripts and
agents with no MCP client, and signed webhooks with retries and a delivery
log. Machine
access authenticates with scoped API tokens from Settings โ API โmimux mail login <url> gets one without pasting anything, by opening your
browser to approve it. A pro build runs 14 days without a key, and mail itself
never stops working, licensed or not. Keys at
account.mimux.dev.
Agent skill
Coding agents that support Agent Skills
can drive mimux mail directly โ install it with:
npx skills add mattmezza/mimux --skill mimux-cli
See skills/mimux-cli/SKILL.md.
Screenshots
(placeholder โ drop PNGs/GIFs of the unified inbox, reading pane, and
compose here before publishing)
Quick start
docker compose up
Or install the binary โ one command, checksum-verified, Linux and macOS on both
architectures:
curl -fsSL https://mimux.dev/install.sh | bash # the free client
curl -fsSL https://mimux.dev/install.sh | bash -s -- pro # + the automation layer
Either way it needs zero configuration to boot. Open http://localhost:8083 โ the first
visit walks you through creating your admin account, then add your email
accounts and API keys from Settings โ Accounts / Integrations. Everything is
stored in the SQLite DB; the only knobs outside it are the bootstrap env vars
below.
Development
make setup # air, golangci-lint, npm deps
make css # tailwind watcher (separate terminal)
make dev # hot-reloading server
make help # everything else
Keyboard shortcuts
These are the defaults. Change any action in Settings โ Keybindings; open
Keyboard Help (default: ?) in the app to see the current map.
| Key | Action | Key | Action |
|---|---|---|---|
j / k |
Next / previous message | R / A / F |
Reply / reply all / forward |
o / Enter |
Open selected message | c |
Compose |
Esc |
Back / close pane, dialog, or search | / |
Focus search |
r / u |
Mark read / unread | Tab (in search) |
Cycle search scope |
s |
Star / unstar selected | Esc (in search) |
Clear search, back to inbox |
e |
Archive | d / # |
Delete |
! |
Mark as spam | ? |
Toggle this shortcut list |
g i |
Go to inbox | g s |
Go to starred |
g d |
Go to drafts | g t |
Go to sent |
0 |
Unified inbox | 1โ9 |
Nth account's inbox |
Architecture
A single Go binary (cmd/mimux) serves everything: chi handlers renderhtml/template pages and htmx fragments (internal/server), a backgroundinternal/mail manager owns one IMAP connection per account (IDLE + poll
sync, SMTP send, body sanitization), and internal/store persists
messages/folders/filters/sessions to SQLite. The browser side stays
dependency-light โ htmx for server-driven updates, Alpine.js for small local
UI state (menus, forms), Tailwind for styling โ so there's no JS build step
beyond the CSS pipeline. internal/filter, internal/search, internal/ai,
and internal/translate are self-contained feature packages mounted as
sub-routers.
pro/ is the separately licensed automation layer. Every file in it carries//go:build pro, so the default build excludes it from the build graph
entirely โ make build produces a binary with none of it linked in, andmake verify-free proves that from the dependency graph rather than asking you
to trust it.
It binds to the client through internal/ext โ one struct, ext.Deps, handing
it the mail manager, the store and the config โ and is not allowed to importinternal/server at all (make verify-boundary). That rule is the reason there
is no speculative "mail engine" interface: anything pro/ needs that currently
lives as a private method on *server.Server has to move down intointernal/mail or internal/store, where the HTML handler calls the same code.
Shared operations end up in the domain layer because a real caller needed them
there, not because someone guessed in advance what an API would want.
Configuration
There is no config file. Bootstrap settings โ the ones that can't live in
the DB โ come from environment variables, each with a working default, so a
fresh install with zero env vars boots and runs. Everything else (accounts,
credentials, sync cadence, translate/AI keys, preferences) is edited in the
Settings GUI and stored in the SQLite DB.
| Env var | Default | Description |
|---|---|---|
MIMUX_DB |
./data/mimux.db |
SQLite database path (created if absent) |
MIMUX_HOST |
0.0.0.0 |
Bind address |
MIMUX_PORT |
8083 |
Bind port |
MIMUX_BASE_URL |
http://localhost:<port> |
Public URL โ used for OAuth redirects and email links; https:// enables Secure cookies |
MIMUX_SECRET |
(auto) | Session/CSRF signing secret. When unset it is generated once and persisted to a secret file next to the DB, so it stays stable across restarts |
MIMUX_AI_BASE_URL |
(OpenRouter) | Any OpenAI-compatible chat-completions endpoint โ another provider, or a local runner (http://llama:8080/v1). Given a base, /chat/completions is appended. With this set the OpenRouter key becomes optional |
Accounts (name, email, provider preset, password or OAuth2 credentials, custom
IMAP/SMTP hosts, aliases), the sync cadence and message cap, and the Google
Translate / OpenRouter keys are all managed under Settings โ Accounts and
Settings โ Integrations. Use Settings โ Accounts โ Backup & restore to
export/import a portable JSON copy of all of it (it contains your passwords and
keys in plain text โ keep it safe).
OAuth setup (Gmail, Zoho)
For accounts using OAuth2 (choose OAuth2 in the account editor):
- Create an OAuth client in the provider console:
- Gmail โ Google Cloud Console โ
APIs & Services โ Credentials โ Create OAuth client ID โ Web
application. Enable the Gmail API for the project. Requested scope:https://mail.google.com/. - Zoho โ Zoho API Console โ Add
Client โ Server-based Application. Scopes:ZohoMail.accounts.READ ZohoMail.messages.ALL. mimux uses the.com
region endpoints (adjustinternal/mail/oauth.gofor other regions).
- Gmail โ Google Cloud Console โ
- Set the authorized redirect URI to
<MIMUX_BASE_URL>/oauth/callback
(e.g.https://mail.example.com/oauth/callback). It must matchMIMUX_BASE_URLexactly. - In Settings โ Accounts, add the account with auth OAuth2 and paste
the client ID / client secret; save it. - The account shows Connect (in the sidebar and the Accounts list) until
authorized โ click it to grant consent. Tokens are stored in the DB and
refreshed automatically; the sync worker (re)starts on callback.
Notifications
Off until you turn them on, in Settings โ Notifications. Pick when first:
- Off (default) โ nothing is ever sent and no permission is ever requested.
- Only what my filter rules say โ a rule with the Notify me action
fires one. Set those up under Filters. - Every new message in an inbox.
Either way mimux only notifies about new mail arriving in an inbox: never your
own sent mail, never the backlog downloaded on a first sync, never a message
that was already read elsewhere, and never anything older than a day.
Then pick how โ the two transports are independent and can both be on:
Web Push (Settings โ Notifications โ Enable on this device) delivers from
your own server, with the sender and subject encrypted end-to-end to that
browser. Nothing to configure: the VAPID key pair is generated on first use and
stored in the database. Requirements:
- HTTPS with a real certificate. Browsers refuse both service workers and
push on an insecure origin, sohttp://<lan-ip>:8083will not work. - iPhone/iPad: install the web app first. Safari only allows push for a web
app added to the Home Screen (iOS 16.4+) โ Share โ Add to Home Screen, open
mimux from that icon, and enable notifications there. It cannot work in a normal
Safari tab, in any browser on iOS. - The browser asks for permission once. If it's refused, the button can't
ask again โ reset Notifications for the site in the browser's own settings.
Each browser/device subscribes separately and is listed with a Remove button.
Signing out drops that device's subscription. A subscription the push service
reports as gone (404/410) is deleted automatically.
ntfy needs no permission, no HTTPS and no installed app: put a topic URL
(https://ntfy.sh/<something-long-and-unguessable>, or your own ntfy server) in
the box, install the ntfy app, and subscribe to the same topic. This is the
fallback when Web Push isn't available. Anyone who knows the topic name can read
the notifications, so self-host ntfy if the sender and subject are sensitive.
Privacy: Web Push payloads are encrypted end-to-end โ the push service
(Apple/Google/Mozilla) relays ciphertext it cannot read. It does still see that
your device received a push, and when: metadata, not content. ntfy sees the
sender and subject in the clear unless you run it yourself.
Important notes
- Run behind HTTPS in production. Cookies are only marked
SecurewhenMIMUX_BASE_URLstarts withhttps://โ put mimux behind a reverse proxy
(Caddy, nginx, Traefik) and setMIMUX_BASE_URLto the public URL. OAuth
callbacks also depend on it matching the redirect URI exactly. - All state lives in one SQLite file (
MIMUX_DB,/data/mimux.dbin Docker),
next to an auto-generatedsecretfile. Back the directory up and you've
backed up everything: accounts, credentials, message cache, sessions,
filters, saved searches, OAuth tokens, API keys. (Prefer the in-app
Backup & restore export for a portable, human-readable copy.) - Accounts are managed in the GUI (Settings โ Accounts). Add/edit/remove
takes effect immediately โ no restart. Removing an account also deletes its
downloaded folders/messages from the app; re-adding an account with the same
name reattaches any mail still on the server on the next sync. - Single-user by design. One admin user, created by the first-run wizard.
Don't expose it to the internet without HTTPS and a strong password. - Privacy defaults: remote images and all external resources in emails are
blocked until you click Load external content (or allow a sender
permanently). No CDNs, no analytics, no tracking โ everything is bundled in
the binary. - Gmail: use OAuth2 (recommended) or an app password with
auth = "password". Gmail label display and thelabel:filter action are currently
dormant โ the upstream go-imap v2 library can't fetchX-GM-LABELS/X-GM-THRID
yet; threading falls back to the standard JWZ algorithm, which works well. - Drafts follow you. A saved draft (and an autosaved one, if you turn
autosave on) is written to the SQLite DB first and then appended to the
account's IMAP Drafts folder, so it turns up on your phone โ attachments
included. A draft written in another client is editable here too: Edit adopts
it, and your first save replaces the copy it came from. - Known limitations (v0.20): offline mode is read-only (the service worker
falls back to the last-synced inbox, and actions need the server); Gmail
labels are dormant (see the Gmail note above). - Translate / AI are off until you add keys (Settings โ Integrations:
Google Translate, OpenRouter). Both fail gracefully when unset.
Free and paid
The mail client is free, AGPL-3.0, and complete โ forever. Everything above
this line and everything in the feature list: multi-account unified inbox, sync,
threading, search, compose, filters, calendar, keyboard shortcuts, PWA, push.
Nothing in it is held back, time-limited, or behind a licence key, and nothing
will be moved out of it later.
The paid layer is automation only โ a REST API, an MCP server for AI agents,
a CLI over that same API, and webhooks. The rule is simple: if a human drives
mimux, that is free; if something else drives it, that is the paid part. AI
compose is human-driven, so it stays free.
Running pro
The pro layer ships as a separate image and separate binaries, because the free
ones do not contain it at all โ pro/ is excluded from that build graph by a
build tag, not disabled at runtime (make verify-free proves it on every CI
run). Swap the image and add your key:
services:
mimux:
image: ghcr.io/mattmezza/mimux:pro # or :v0.21-pro to stay on one minor
environment:
- MIMUX_LICENCE_KEY=mimuxlic1.... # from account.mimux.dev
Binaries are attached to each release as mimux-pro-<os>-<arch>. A pro build
runs 14 days without a key, and mail itself never stops working whether the
key is present, expired or absent โ only the API, MCP and webhook endpoints
answer 402. mimux licence status prints exactly where you stand. Buy or
re-send a key at account.mimux.dev.
Contributing and support
Issues yes, pull requests usually no โ bug reports, questions and suggestions are
the most useful thing you can send. Support is GitHub issues, best effort, from
one person with a day job.
- CONTRIBUTING.md โ how to report a bug (start with
make diagnose), when a PR is worth opening, and what I will probably say no
to. - SECURITY.md โ how to report a vulnerability. Please don't use a
public issue. - CLA.md โ one page, relevant only for the rare accepted PR.
Licence
The mail client โ cmd/, internal/, web/ โ is
AGPL-3.0-only. The pro/ directory, when it lands, is under the
Elastic Licence 2.0.
GitHub shows a single licence badge for the repository and it reads AGPL-3.0,
which does not describe the whole tree. LICENSING.md maps
which directory is under which licence, explains how the two halves combine
legally, and how to verify the split yourself:
make verify-free # proves the free binary links zero ELv2 code
make verify-licence # proves every file's SPDX header is on the right side
mimux is a trademark of Matteo Merola. The licences cover the code, not the
name โ please rename your fork.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi