# The operator path Choosing an installation, getting started, configuring a mailbox at your provider, and administering the deployment. This is one reading path through the MailFathom user guide, every page of it in one file and in the order the guide walks them. `llms.txt` beside this file maps the whole of the documentation, and every link below is relative to the directory that map sits in. # Installing MailFathom MailFathom runs in four shapes, and each has one authoritative guide. This page is the decision: what each shape assumes, what it is good for, and what every shape shares. Follow the linked guide for the commands; the guides do not repeat each other and neither does this page. **A release publishes an image, the chart, the schema script, and the administrative command.** The image is `ghcr.io/fathomise/mailfathom:` and `docker.io/fathomise/mailfathom:` — one manifest list under one digest, so the registry to pull from is whichever your environment already reaches — with `latest` on the newest release's digest in both. The chart is `oci://ghcr.io/fathomise/charts/mailfathom` at the same version. Each release also attaches `mailfathom-schema-.sql` and its checksum, which is the schema step below, and one `mfctl` binary per platform with a checksum file covering all of them — [getting the command](operations/admin-endpoint.md#getting-the-command) is where that one is picked up, including the [install script](operations/admin-endpoint.md#on-linux-with-the-install-script) that does it in one line on Linux. Both packages are public, so pulling one needs no login. **`` is the release you are installing**, and [the releases page](https://github.com/fathomise/MailFathom/releases) is where the current one is named. Pin it rather than tracking `latest`: an immutable tag is what makes a deployment reproducible and an upgrade a decision, which matters here because a new release can require a schema step before it will serve. **There is no binary artifact for the service itself**, so the native shape below is published from a checkout, and so are the Compose deployment and the Quadlet units, whose files live here and are versioned with the code that reads them. `mfctl` is the exception, and it is a client rather than the service: it runs on the machine you administer *from*. Beside the release runs the nightly channel: `ghcr.io/fathomise/mailfathom:nightly` — or `docker.io/fathomise/mailfathom:nightly`, which is the same digest in the other registry — and the `-nightly.-` tag of each night's build, published from `main` when it has moved. **A nightly is not a release and is a poor place to keep data you care about** — its schema can be ahead of any migration, it has no upgrade path in either direction, and it is deleted once thirty newer ones exist. [What a nightly build risks](operations/container-image.md#what-a-nightly-build-risks) states the whole of it before you choose one. ```bash git clone https://github.com/fathomise/MailFathom.git cd MailFathom ``` **To try MailFathom before choosing any of this, `scripts/quick-start-compose.sh` prepares the Compose shape for you** — it asks where the mailbox lives and performs every step [deploying with Docker Compose](operations/deployment-compose.md#trying-it-first-with-one-command) otherwise asks you to type, except recording the user it serves, which stays yours. What it produces is a deployment to evaluate with rather than one to depend on: it serves the machine it runs on over plain HTTP, keeps its credentials in files under the checkout, and backs nothing up. The choice below is the one it does not make for you, and it stays yours to make afterwards. ## Choosing a shape | Shape | Choose it when | Guide | | --- | --- | --- | | **Docker Compose** | You self-host on one machine and want the database, the network boundary, and the secret mounts arranged for you | [Deploying with Docker Compose](operations/deployment-compose.md) | | **Podman Quadlet** | You self-host on one machine, run Podman rootless, and want the container's secrets to be encrypted systemd credentials rather than plaintext files | [Deploying with Podman Quadlet](operations/deployment-quadlet.md) | | **Kubernetes with Helm** | You operate a cluster and bring your own Secret management | [Deploying to Kubernetes](operations/deployment-kubernetes.md) | | **Native process** | You run services under systemd without a container runtime, and want secrets delivered as systemd credentials | [Below](#native-process), then [secret provisioning](operations/secret-provisioning.md#native-systemd-service) | Docker Compose is the recommended first installation. It provisions PostgreSQL for you — `compose.yaml` creates the role, the database, and the `vector` extension on first start — and its defaults publish both ports on loopback, so nothing is reachable from another machine until you decide it should be. The Podman Quadlet is that same stack expressed as systemd units, and it provisions PostgreSQL the same way. What it buys is the one thing no Compose file can reach: a `.container` file is a systemd unit source, so the deployment's secrets are `LoadCredentialEncrypted=` credentials — ciphertext at rest, bound to the machine, decrypted only as the unit starts. What it asks in return is Podman rather than Docker, a rootless user, systemd 258 or later, and a decision about SELinux that its guide states before the first command. The Helm chart provisions one too, as a StatefulSet on a persistent claim, and turns it off for a deployment that has a server of its own. It creates no Secret, deliberately, so it needs an image reference and a Secret carrying the credentials; [what you supply](operations/deployment-kubernetes.md#what-you-supply) covers both, and the trade-off between the deployed database and one you operate, before the install command. The native process is the shape that brings no database at all. **Every shape can serve MailFathom's own client, and none of them does until you say so.** The bundle travels inside the container image, so serving it is a setting rather than anything to install and no shape gains a second process for it: `client.enabled` in the Helm chart, `MAILFATHOM_CLIENT=true` in Compose, or the two adjacent `Environment=` lines in the Quadlet unit. Each needs the client endpoint on beside it, because the page is served on that surface's listeners, and each is refused over a clear-text socket until the deployment states that something in front of it terminates TLS. [Serving the client from the deployment](operations/client-endpoint.md#serving-the-client-from-the-deployment) is the page. **The other way to have the client is to install it**, which no shape here decides: every release attaches the desktop client as a `.deb` and an `.rpm` for Linux and an NSIS installer for Windows, and it reaches a deployment over the network like any other client. [The desktop client](operations/desktop-client.md) is what each installer does, what none of them does, and how a download is verified — nothing published there is signed. What every shape *does* serve, page or no page, is the client **surface** under `/api/client`, which is an endpoint of its own and is what both heads call. Signing in to it needs a credential no shape provisions on its own: there is no self-service and no default, so a username and password are written over [the administrative endpoint](operations/admin-endpoint.md#user-credentials) or they do not exist. **One shape runs more than one instance, and it asks for one more thing when you do.** Compose, the Quadlet units, and the native process are a single host each. The Helm chart takes a replica count, and above one the client's live updates need a signal backplane — Valkey the chart deploys beside MailFathom, or a RESP endpoint you already operate, Redis, Garnet, Valkey, or a managed equivalent being equally good because the protocol is the whole of what MailFathom asks for — because the replica that noticed a change is routinely not the one holding the client's connection. The chart refuses to render the combination that would otherwise install, start, and serve every request while telling its clients nothing. [Signals between replicas](operations/deployment-kubernetes.md#signals-between-replicas) is the page, and [running more than one replica](operations/deployment-kubernetes.md#running-more-than-one-replica) is what that number gives, what it does not, and what your load balancer owes a client's connection. Compose and the Quadlet units offer the same server as an opt-in of their own, where on one host it does nothing — a profile in one, a unit you either copy or do not in the other — so a deployment that expects to move to the chart can provision it before it needs one. [The signal backplane](operations/deployment-compose.md#the-signal-backplane) and [its Quadlet unit](operations/deployment-quadlet.md#the-signal-backplane) are those two pages. ## What every shape needs - **Linux.** It is the only platform this project officially supports, and everything below assumes it: the image is built for `linux/amd64` and `linux/arm64`, the native shape is a systemd service with systemd credentials, and TLS goes through the system OpenSSL. **MailFathom may well run on Windows — it is ordinary .NET — but expect problems and a setup of your own**: credential provisioning, TLS parameters, and file-permission expectations all differ there, nothing in this repository is verified against it, and a defect that reproduces only on Windows is not one this project can act on today. - **PostgreSQL with the `vector` extension.** The synchronized mail, its indexes, and — unless you choose otherwise — the raw message content all live there. The Compose deployment, the Quadlet units, and the Helm chart bring their own (`pgvector/pgvector`, PostgreSQL 18); a native process expects yours, and the chart uses yours when you ask it to. - **An S3-compatible bucket, only if you want the message payloads out of the database.** It is off, and a deployment that never mentions it is the ordinary one. What it changes is where the raw MIME of each message is written; the metadata, the indexes, the embeddings, and every job still run through PostgreSQL either way. MailFathom's own process runs no object store, and the endpoint needs an `https` address and a credential of its own — an access key identifier and its secret, both provisioned as [secret references](operations/secret-provisioning.md) like every other credential. The endpoint can be one you rent, one you already run, or one the deployment starts beside MailFathom: each of the three shapes can run a single-node store for you, and the Kubernetes one can run a pool of them, off unless you ask. Its bucket exists before the first start either way; nothing here creates one. [Choosing where message content lives](#choosing-where-message-content-lives) is the rest of it. - **An IMAP account to synchronize** and its password or app password, provisioned as a [secret reference](operations/secret-provisioning.md) rather than written into configuration. The account itself is not configuration either: it is a record the deployment holds and assigns to a user, which is the bullet below. - **The administrative endpoint, and `mfctl` to reach it.** No configuration source declares a mailbox: a fresh deployment serves no user and reads nothing, in every shape here, until `mfctl user add` records the person it serves and `mfctl account add` creates a mailbox assigned to them. That makes the endpoint part of an installation rather than an extra: [the administrative endpoint](operations/admin-endpoint.md) is what to enable and how the credential it takes is provisioned, and [getting the command](operations/admin-endpoint.md#getting-the-command) is where `mfctl` comes from. - **A data-encryption key, if any mailbox authenticates with OAuth.** MailFathom seals the refresh tokens it stores under one key the whole deployment shares, so generate it once before the first start and provision it like any other secret: ```bash openssl rand -base64 32 ``` It is `-base64 32`, not the `-base64 33` beside it for the database passwords: the value has to decode to exactly 32 bytes and a longer one is refused at startup. **Back it up with the database and never regenerate it** — the key is not in the database, and losing it means re-authorizing every mailbox. [Secret provisioning](operations/secret-provisioning.md#the-data-encryption-key) covers where it goes in each shape, and [`DataEncryption`](operations/configuration-runtime.md#dataencryption) the section that points at it. A deployment whose mailboxes all authenticate with a password needs none, and starts without one. - **OpenSSL 3.0 or later**, because MailFathom connects to the mail server over TLS and .NET hands every handshake to the system library. **1.1.1 is the floor below which nothing runs at all**: .NET 10 requires it on Unix and [fails to start](https://learn.microsoft.com/en-us/dotnet/core/compatibility/cryptography/10.0/openssl-version-requirement) without it. **Between the two, MailFathom may work and may not.** 1.1.1 has been out of upstream support since September 2023, nothing here is verified against it, and a defect that reproduces only there is not one this project can act on. Every current distribution ships 3.x, so this is a constraint on old machines rather than on new ones. The library's *security policy* is part of the installation too, not a detail of it: an OpenSSL that considers a server's cipher suite or key size too weak ends the connection before any credential is sent, and reports it as an authentication failure. **An installation that configures nothing runs at that full-strength policy and negotiates the newest TLS both ends support**, which is what almost every mail server wants. One that does not clear the policy is reached by opting in to a relaxed one — an OpenSSL configuration file named in the environment, which [the platform TLS policy](operations/platform-tls-policy.md) covers with a sample file. It is an exception you choose per deployment, never a default, and nothing in MailFathom's own configuration can substitute for it. - **An explicit schema step.** MailFathom never applies database migrations while starting: it verifies the schema and refuses to serve against one it does not recognize, so bringing a new build up *tells* you a migration is outstanding rather than silently applying one. What you apply is one idempotent SQL file — a release attaches `mailfathom-schema-.sql`, and a checkout produces the same file with `scripts/build-schema-artifact.sh`. Read it, back the database up, and run it with any PostgreSQL client; [applying the database schema](operations/database-schema.md) states the privileges it needs and what each startup failure means. ## Native process The publish output is self-contained in licensing terms — it carries `LICENSE` and `NOTICE` beside the binaries — but there is no packaged unit file or installer yet, so a native installation is assembled by hand: ```bash dotnet publish backend/src/Host/Host.csproj --configuration Release --output /opt/mailfathom ``` Build with the SDK pinned in `global.json`. The process is then an ordinary ASP.NET Core service: - Configuration arrives through `appsettings.json` beside the binaries, a deployment-provisioned JSON or YAML file or directory named by [`ConfigurationSources`](operations/configuration-sources.md), command-line arguments, or environment variables. - Credentials arrive as systemd credentials: `LoadCredential=` in the unit, `systemd-credential:` references in the configuration. [Secret provisioning](operations/secret-provisioning.md#native-systemd-service) shows the unit fragment, including the encrypted-at-rest variant and the core-dump limit worth setting alongside it. The data-encryption key is one of them, provisioned no differently from a mailbox password: ```ini [Service] LoadCredentialEncrypted=mailfathom-data-key:/etc/mailfathom/mailfathom-data-key.cred ``` ```json { "DataEncryption": { "ActiveKeyId": "2026-08", "Keys": [ { "KeyId": "2026-08", "Material": { "Name": "mailfathom-data-key", "SecretReference": "systemd-credential:mailfathom-data-key" } } ] } } ``` `KeyId` is stored beside every value the key seals, so it is chosen once and never edited afterwards. Leave both out when no account authenticates with OAuth. **`systemd-creds encrypt` seals that `.cred` file against this machine** — by default against its TPM2 chip and its `/var/lib/systemd/` together — so the file opens here and on no other host, and it is not a backup of what it holds. Run the command on the machine that will read it, back the key's own base64 up with the database, and encrypt it again on a replacement machine rather than copying the sealed file across. [What an encrypted credential is bound to](operations/secret-provisioning.md#what-an-encrypted-credential-is-bound-to) states the whole binding, including which flag makes the chip a requirement rather than a preference and why a firmware update does not invalidate the credential. - [Where each surface is served](operations/configuration-endpoints.md#where-each-surface-is-served) is stated by each surface's own section. `McpEndpoint:BindAddress` and `McpEndpoint:Port` bind the protocol surface, `0.0.0.0:8080` by default, in clear text unless you configure otherwise. `ASPNETCORE_URLS`, `ASPNETCORE_HTTP_PORTS`, and `Kestrel:Endpoints` are refused at startup, so an address you state is never one the process quietly ignores. The health probes answer on their own port, `8081` by default; [health endpoints](operations/health-endpoints.md) records how to move or disable that listener. - PostgreSQL, the `vector` extension, and the schema step are yours, exactly as they are under Kubernetes. - A mail server whose TLS parameters the machine's own OpenSSL refuses is reached by naming an OpenSSL configuration file in the service's environment, which is a pre-start concern no MailFathom setting can replace. [The platform TLS policy](operations/platform-tls-policy.md) has the sample file and the unit fragment. ## Choosing where message content lives Two stores can hold the raw MIME of your mail, and which one is a decision you take once per deployment rather than per message. Configuring nothing keeps every payload in PostgreSQL beside the metadata, which is the shape everything above describes. Setting `ContentStorage:Backend` to `ObjectStorage` writes new payloads into an S3-compatible bucket instead — useful when the mail is larger than the database you want to operate, or when object storage is what your platform already backs up well. Everything else stays where it was. Each shape carries the setting in its own idiom: `contentStorage` in the Helm chart's values, `MAILFATHOM_CONTENT_STORAGE` and the variables beside it in Compose's `.env`, and the `ContentStorage` lines in the Quadlet unit. [`ContentStorage`](operations/configuration-runtime.md#contentstorage) is the reference for every key and its bounds. **And each shape can run the store as well as point at one.** An operator who wants payload bytes out of PostgreSQL and does not already run object storage would otherwise have nothing to name, so every shape carries a single-node [Silo](https://github.com/pgsty/silo) beside the product — a switch in the chart's values, a Compose profile, an extra Quadlet unit — off in every default, and one node on one volume rather than anything replicated. It answers over TLS with a certificate you supply, its administrative console is not served, and the bucket and the access key MailFathom presents are created once by you rather than by any of it. The Kubernetes shape goes one step further and will run it as a pool of up to sixteen pods, which is erasure coding across them rather than one drive; the other two stay one container on one volume, and an operator wanting more than that there runs the store themselves. [Kubernetes](operations/deployment-kubernetes.md#running-the-object-store-beside-mailfathom), [Compose](operations/deployment-compose.md#running-an-object-store-beside-mailfathom), and [Quadlet](operations/deployment-quadlet.md#running-an-object-store-beside-mailfathom) each state what that takes. Two things about it are worth knowing before you choose rather than after. **Switching is a move, not a setting.** The value decides only where the *next* payload is written. Every stored message records which store holds its own content, so turning the bucket on leaves everything already in the database exactly where it is and readable, and turning it back off re-encodes nothing. Carrying the mail you already have into the bucket is something you run, with its own controls and its own progress — [moving stored content into the bucket](operations/moving-stored-content.md) is that operation. Until it has finished, the deployment needs both stores, and pointing it away from one it still has mail in leaves it unready rather than leaving that mail unreadable. **A database backup stops being a whole backup.** Once payloads are in the bucket, the rows point at objects there, so your backup is the database and the bucket together — and a restore brings the database back first and the bucket second, because the other order can let the reclamation sweep delete objects the database has not caught up to yet. Each deployment page states the order for its own shape: [Kubernetes](operations/deployment-kubernetes.md#what-you-now-back-up-and-in-which-order), [Compose](operations/deployment-compose.md#with-content-in-a-bucket-the-dump-above-is-only-half-of-it), and [Quadlet](operations/deployment-quadlet.md#backup-and-what-survives-removal). ## Verifying any installation An installation is done when the probes answer and the log shows a healthy start: ```bash curl -fsS http://127.0.0.1:8081/started # startup gates have passed curl -fsS http://127.0.0.1:8081/health # ready, including the database curl -fsS http://127.0.0.1:8081/alive # the process itself ``` A refusal at startup is designed to name the setting that caused it — a missing secret reference, a pending migration, an unsafe transport combination — so the log is the first place to look, and the message quotes the configuration key to fix. Continue with [getting started](users/getting-started.md): provisioning the secrets, configuring the first account, and connecting an MCP client. # Getting started This page walks from an installed MailFathom to a first successful tool call: provision the credentials, write the mailbox down, start the service, verify it, record the person it serves and their mailbox, connect an MCP client, and read a result correctly. It assumes an installation from [installing MailFathom](users/installation.md); a developer evaluating from the checkout can run the [Aspire orchestration](operations/local-development.md#running-locally-with-aspire) instead, which provisions PostgreSQL and applies the schema on its own. **Somebody evaluating MailFathom on the Compose shape can have steps 1 to 5 and 7 performed for them, and the `mfctl` commands of step 6 printed.** `scripts/quick-start-compose.sh` asks the same questions this page does, writes the same values, prints the `mfctl` commands of step 6 — recording the user a deployment serves is yours, so it leaves that step to you — and ends by printing the two a client needs in step 8 — plus an address the [MailFathom client](operations/client-endpoint.md) answers on and a generated username and password to sign in to it with, which it provisions for you. [Trying it first, with one command](operations/deployment-compose.md#trying-it-first-with-one-command) is that path, including what a deployment it prepares is missing before anybody depends on it. Read this page anyway, for what each answer means. The examples write configuration as JSON. Every setting can arrive as an environment variable instead — `:` becomes `__`, so `MailSynchronization:Enabled` is `MailSynchronization__Enabled` — and the [configuration reference](operations/configuration-reference.md) maps every key used below to the page that states it. ## 1. Provision the secrets MailFathom's configuration never carries a credential. A secret-bearing setting holds a *reference* — `file:/…`, `systemd-credential:…`, `env:…` — and the material lives wherever the deployment provisions it. A configuration file is therefore safe to review and back up: leaking it leaks paths, not passwords. You need one piece of material before anything is configured: - **The mailbox password** or app password of the IMAP account to synchronize. A mailbox whose provider no longer accepts one — a Google Workspace or Exchange Online account — is authenticated with an OAuth refresh token instead; obtain it first with [mailbox OAuth](operations/mailbox-oauth.md) and substitute that block for the password below. That account needs a second piece of material as well, the **data-encryption key** the rotated refresh token is sealed under: `openssl rand -base64 32`, generated once and never regenerated, provisioned as a reference like everything else here. [The data-encryption key](operations/secret-provisioning.md#the-data-encryption-key) is the whole of it. There is deliberately **no MCP key to provision here**. What a client presents to that endpoint belongs to the person whose mail it reaches rather than to the deployment, so the running service mints it in [step 7](#7-enable-the-mcp-endpoint) and nothing on this machine holds it beforehand. Where the files go is the deployment's convention: `secrets/mailfathom/` for [Compose](operations/deployment-compose.md#credentials), a Kubernetes `Secret` mounted at `/etc/mailfathom/secrets` for [the chart](operations/deployment-kubernetes.md#what-you-supply), `LoadCredential=` for [systemd](operations/secret-provisioning.md#native-systemd-service), and an encrypted credential under `~/.config/credstore.encrypted/` for [the Quadlet](operations/deployment-quadlet.md#the-credentials). The references below assume the mounted directory the Compose and Helm shapes share. ## 2. Write down the mailbox Synchronization is off until configuration turns it on, and turning it on is the whole of what a deployment's own file says about mail: ```json { "MailSynchronization": { "Enabled": true } } ``` **The mailbox itself is not configuration.** Every mail account is a record the deployment holds and assigns to the people it serves, written while the deployment runs rather than read from a file — so a fresh deployment holds nobody, reads no mail, and says so at startup. [Step 6](#6-record-the-mailbox) is where this mailbox is recorded, and it is served from that moment without a restart. What to write now is the account's own JSON object, saved as `mailbox.json` on the machine you administer the deployment from: ```json { "EmailAddress": "you@example.test", "DisplayName": "Personal mail", "Language": "English", "Host": "imap.example.test", "Port": 993, "UserName": "you@example.test", "Secrets": { "Password": { "Name": "imap-primary-password", "SecretReference": "file:/etc/mailfathom/secrets/imap-primary-password" } }, "Folders": [ { "Alias": "inbox", "SpecialUse": "Inbox" }, { "Alias": "sent", "SpecialUse": "Sent" } ] } ``` The reference is resolved by the deployment rather than by the machine this file sits on, so the path it names is the one the service reads — the mounted directory of [step 1](#1-provision-the-secrets), not a path on your workstation. **What goes in `Host`, `Port`, and `Secrets` depends on where the mailbox lives**, and so does whether IMAP has to be switched on first and whether a password is accepted at all. [Configuring a mailbox at your provider](users/mailbox-providers.md) has the address and the credential kind for the popular mail services, and what each one does differently once synchronization is running. Points worth knowing before you adapt it: - **`EmailAddress` is the mailbox's own address.** It is what tells this account apart from every other one the deployment holds: one address is one account, however many people it is assigned to. There is no `AccountId` to write — the deployment generates one when the account is created and reports it. - **`Alias` is your name** for a folder, not the server's. It is what every tool argument, log line, and error message uses, so pick names you are happy to see in a diagnostic. - **`DisplayName` is the name an assistant reads back to you.** It is required and has no default: the generated identifier is a key, and a person hearing "the email came from `5b0c…`" learns nothing. It travels beside the identifier in every tool result, and either spelling narrows a listing, a search, or a question to that mailbox. No two of your accounts may share one, so a name always names one mailbox; it is compared against your own accounts and against nobody else's. - **Folders are best named by role.** `SpecialUse` lets discovery find the folder whatever the server calls it — a German server's `Gesendet` is still `Sent` — and configuring no folder at all synchronizes the inbox. Naming an exact server path is the alternative for folders with no role, and you may name both: the path finds the folder and the role says what it is for, so a rule or a tool can go on asking for `role:Junk` on a server that advertises nothing. One role belongs to one folder per account. [What a role says, beside how a folder is found](features/imap-synchronization.md#what-a-role-says-beside-how-a-folder-is-found) states what naming a role buys you everywhere else. - **A folder left out of the list is a folder MailFathom does not have.** The list is not a filter over your mailbox; it is the whole of what this deployment knows about. A folder no entry names is never mirrored, never listed, searched, read, or answered from, never embedded, and never evaluated by a rule — and so is mail an earlier configuration had already stored under an entry you later removed, which stays in the database and stops being reachable. *Working out the list* below is how to arrive at one you meant. - **A mapped folder is mirrored, embedded, and readable by tools** unless you say otherwise. `Synchronize`, `GenerateEmbeddings`, and `VisibleToTools` each default to `true` on a folder entry, and switching one off is how a folder stays nameable while its mail stays out of the local copy, out of an embedding provider, or out of everything an assistant can read. Mail the folder had already stored is kept when you turn mirroring off, withheld from everything that reads a mailbox, so turning it back on later fetches what arrived meanwhile rather than the whole folder again. [What a mapping decides beyond where the folder is](features/imap-synchronization.md#what-a-mapping-decides-beyond-where-the-folder-is) states what each one costs, including what happens to mail already stored when you turn mirroring off. - **A folder you name is created only if you ask for it.** Add `CreateIfMissing: true` beside a `RemotePath` and MailFathom creates that folder on its first run, when your server has none at it — which is what a rule filing mail into an archive folder you decided on needs, without a detour through a mail client. A mapping that also carries `Synchronize: false` gets its folder the first time something files mail into it. The switch defaults to `false`, so leaving it out keeps a mistyped path reporting itself as an alias that resolves to nothing rather than becoming a folder named after the typo. Nothing a run does changes anything else about your folders: synchronization never renames, deletes, or unsubscribes from one. What does is you, asking for it in the client — creating, renaming, moving, and deleting a folder is [one surface there](operations/client-endpoint.md#the-folder-management-routes) whatever holds the mailbox, and on a mirrored account each act runs on your own server. [A folder the mapping asked for is created](features/imap-synchronization.md#a-folder-the-mapping-asked-for-is-created) states when it happens and what a server's refusal reports. - **The transport is TLS by default.** Port 993 with TLS-on-connect is the default posture, and every weakening — an unencrypted connection, clear-text authentication over one — must be stated explicitly and fails startup otherwise. A server with a private certificate authority is supported by trusting that authority, never by turning validation off; [transport security](features/imap-synchronization.md#transport-security) records the rules. - **An older server may be refused before any of this applies.** If synchronization reports an authentication failure wrapping `SSL Handshake failed with OpenSSL error`, the password is not the problem: the platform's own TLS policy ended the handshake before a credential was sent. [The platform TLS policy](operations/platform-tls-policy.md) covers how to confirm that and the one supported way to relax it. - **How far back to synchronize** is per account: `EarliestEmailReceivedDate` bounds the first synchronization of a large mailbox, and omitting it copies everything the server still holds. - **New mail arrives on the next run unless you ask for push.** The default reconciles each account every five minutes. Setting an account's `"Mode": "Push"` makes MailFathom hold an IMAP connection open and synchronize the moment the server reports a change. What that costs depends on the server: one connection for the whole account where it supports the `NOTIFY` extension, one per watched folder where it supports only `IDLE`, and nothing at all where it supports neither — which is polled instead and says so in the log. Push **adds** to the schedule rather than replacing it — the account still runs on its `Interval`, and a notification only starts the next run sooner. [Push synchronization](features/imap-synchronization.md#push-synchronization) records the whole model. ### Working out the list Nothing discovers folders into that list for you, so writing it is a step of its own. From an empty configuration: 1. **Look at what the server actually holds.** Any mail client you already use lists the account's folders, and the paths it shows are the paths `RemotePath` takes — including their separator, which is `/` on some servers and `.` on others. [Configuring a mailbox at your provider](users/mailbox-providers.md) names the folders the popular services create and which of them carry a role, so a Gmail account is a different starting list from a Fastmail one. 2. **Name by role whatever carries one.** `Inbox`, `Sent`, `Drafts`, `Junk`, `Trash`, `Archive`, `All`, `Flagged`, and `Important` are the roles a server can advertise; a mapping that names one finds the folder whatever it is called and keeps working when the localization or the path changes. Each role belongs to one folder per account. 3. **Name the rest by path.** A project folder, a mailing-list folder, a folder a filter on the server files into — none of these carries a role, so each takes a `RemotePath` and an alias of your own. 4. **Create the folder that is not there yet.** A folder you want a rule to file into — an archive of your own, say — does not have to be made in a mail client first: give the mapping its `RemotePath` and `CreateIfMissing: true`, and MailFathom creates it on the first run that resolves the alias. It is the only thing MailFathom ever changes about your mailbox's shape. 5. **Leave out what you do not want mirrored.** Leaving a folder out is the way to keep its mail out of MailFathom entirely, and it stays out until an entry names it. The account's `Folders` then grows from the two entries above into the list you meant, mixing the three kinds of entry: ```json { "Folders": [ { "Alias": "inbox", "SpecialUse": "Inbox" }, { "Alias": "sent", "SpecialUse": "Sent" }, { "Alias": "spam", "RemotePath": "INBOX.Spam", "SpecialUse": "Junk" }, { "Alias": "projects", "RemotePath": "INBOX.Work.Projects" }, { "Alias": "archive", "RemotePath": "INBOX.Archive", "SpecialUse": "Archive", "CreateIfMissing": true } ] } ``` Once the service is running, `list_accounts` reports one entry per folder this deployment mapped and lets tools read, with when each last synchronized — so a mistyped path shows up as a folder missing from that answer rather than as one holding no mail. The log names an alias that resolved to nothing or to more than one folder, in both cases naming the remedy. `MailSynchronization:Enabled` above is what a deployment reads from its own file — `config/10-mailfathom.json` for Compose, a ConfigMap key for Kubernetes, a file named through [`ConfigurationSources`](operations/configuration-sources.md) for a native process. `mailbox.json` is read by nothing until step 6 hands it over: no configuration source names it, and none declares a mail account at all. ## 3. Point it at the database The Compose deployment wires the connection and its password for you — skip this step there. Elsewhere, the connection string carries everything but the password, and the password joins it through a reference: ```json { "ConnectionStrings": { "mailfathom": "Host=db.example.test;Database=mailfathom;Username=mailfathom" }, "Persistence": { "Password": { "Name": "mailfathom-database-password", "SecretReference": "file:/etc/mailfathom/secrets/mailfathom-database-password" } } } ``` ## 4. Start it, and apply the schema Start the service the way the installation shape does. The first start against an empty database **fails on purpose**, naming the migration it expects: ```text The database has not applied 1 migration(s) this build defines: 20260731132336_Initial. ``` That is the explicit schema step described in [installing MailFathom](users/installation.md#what-every-shape-needs): MailFathom verifies the schema and refuses to serve against one it does not recognize, and applying migrations is a step you take, with a backup first once there is data to lose. What you apply is one SQL file. A release attaches it; from a checkout, generate it: ```bash scripts/build-schema-artifact.sh # artifacts/schema/mailfathom-schema-.sql ``` Read it, apply it with any PostgreSQL client, and start again — the refusal is gone. The role that applies it needs more privilege than the one MailFathom connects as, which [applying the database schema](operations/database-schema.md) explains along with the grants that leaves behind. ## 5. Verify it is healthy ```bash curl -fsS http://127.0.0.1:8081/started curl -fsS http://127.0.0.1:8081/health ``` `/started` confirms the startup gates passed — every secret reference resolved, the schema matched. `/health` is readiness and includes the database. Both answer on the probe listener, `8081` by default, never on the application port; [health endpoints](operations/health-endpoints.md) explains that separation. Then let the first synchronization run. Its progress is visible in the log — each folder run reports what it stored — and, once you can call a tool, in the `folderFreshness` every result carries. A large mailbox takes a while on the first pass; later runs move only what changed, every five minutes by default. ## 6. Record the mailbox A fresh deployment serves no user: the one user its first start records is the default administrator, kept off both mail endpoints. So the deployment started above serves nobody and reads no mail yet, and said so at startup — in a line naming `mfctl user add` and `mfctl account add`. Who a deployment serves and which mailboxes it reads are its own to keep, and the [administrative endpoint](users/administering.md) is where both are written; [a deployment that records no user](operations/configuration-sources.md#a-deployment-that-records-no-user) is the rest of that story. `mfctl` is the client for that endpoint; [administering a deployment](users/administering.md) covers reaching it. From there: ```console $ mfctl user add --display-name "Alex" $ mfctl account add --from-file mailbox.json ``` The first records the person this deployment serves, under the label they are told apart by; `mfctl user rename` changes it later. The second reads the file written in [step 2](#2-write-down-the-mailbox), creates that mail account, assigns it to them, and prints the identifier it was generated under. It names no user, because this deployment now holds exactly one: `--user` is how a deployment serving several says which of them — `mfctl user add` records each further person — and an invocation that omits it where there are several is refused rather than guessed at. **What the person may do is a role, and recording them assigns none.** A user no role is assigned to reaches no tool, whichever credential they later present, so give the person the seeded `Mail user` role at their own scope, taking the role's identifier from `mfctl role list` and theirs from `mfctl user list`: ```console $ mfctl role list $ mfctl assignment add --role --user --scope-user ``` [How a caller's grant is computed](operations/permissions.md#how-a-callers-grant-is-computed) is what that role does, and [roles, groups, and assignments](operations/admin-endpoint.md#roles-groups-and-assignments) the rest of the commands. Every replica reads the assignment within thirty seconds. The mailbox file written in [step 2](#2-write-down-the-mailbox) names the language MailFathom writes about that mailbox's mail in — the reading on a message row, the statement about a conversation. `mfctl account edit` is where it becomes something else, and [the language this mailbox is read in](operations/configuration-mail.md#the-language-this-mailbox-is-read-in--language) is the whole of it. `mfctl user add` records the person reading English, which is a second language and a different question: it is what MailFathom writes **for them** rather than about a mailbox — the card beside a contact, a message answering no correspondence. `mfctl user edit` changes it, and [the language this person reads](operations/configuration-sources.md#the-language-this-person-reads--language) is the whole of that one. A person whose mailbox is read in Polish may read English themselves, and the two are set apart. **The mailbox is served from that moment, without a restart.** The write that commits the record announces it, so the next synchronization pass reads the account from the records and starts its first run — and the same holds for every user recorded later. A declaration the deployment will not accept is refused whole rather than committed in part, naming what it refused: an account identifier the record already carries, a missing `Host` or `UserName`, a transport weakening that was not stated, or a secret reference that resolves to nothing. Correct `mailbox.json` and run the command again. ## 7. Enable the MCP endpoint The endpoint is off by default, and enabling it means stating how it is authenticated: ```json { "McpEndpoint": { "Enabled": true, "Authentication": [ { "Method": "api-key" } ] } } ``` **That names a method, not a credential.** The list says which ways in this endpoint accepts — `password`, `api-key`, `public-key`, or `oauth-subject` — and nothing about who holds one. Each key belongs to the person whose mail it reaches and is minted by the running deployment, over the [administrative endpoint](users/administering.md), once it is up: ```console $ mfctl credential create --method api-key Provisioned api-key credential 9b3e… for user 6f1c…. The client presents this key: mfk_… It is stored only as a digest, so nothing here or in the deployment can report it again. Copy it now. ``` The deployment keeps only a digest, so no file, backup, or configuration on this machine holds anything a client could present — and a key nobody copied is replaced with `mfctl credential rotate` rather than recovered. [User credentials](operations/admin-endpoint.md#user-credentials) is the whole command group, including how a key is disabled the moment it has to stop working. An empty `Authentication` list is legal — the reverse-proxy-and-loopback deployment is an ordinary one — but it is announced with a startup warning, because an unauthenticated endpoint serves your mailbox to whoever can reach its port. Read [the MCP endpoint](operations/mcp-endpoint.md) before widening anything: it records the other three methods — a mapped OAuth subject, a client's public key, and [a user's own username and password](operations/mcp-endpoint.md#passwords) — browser origins, serving your own domain over TLS, client certificates, and the rate limits that apply out of the box. **A credential reaches what its user's roles grant until its provisioning narrows it.** The command above named no `--permission`, so the key it minted narrows nothing and may do whatever its user's roles grant — with the seeded `Mail user` role, everything an agent is offered here: read the local mailbox copy, ask questions of it, and read, record, amend, and erase the contact books its user reads. A user no role is assigned to holds nothing, whichever credential they present. Naming `--permission` once per name keeps less, and `mfctl credential list` reads back what each credential names and what that leaves it holding — [what a credential may do](operations/mcp-endpoint.md#what-a-credential-may-do) has the names and the rules. A narrowed grant is enforced on the tools themselves: a client connecting with that credential is listed only the tools its grant permits, and a call naming any other is answered as a call naming a tool that does not exist. So a grant is what a credential may reach rather than a note about it. **What the endpoint offers at all is a separate decision**, and it needs no attention on a first deployment: every kind of tool is published unless `McpEndpoint:PublishedToolCategories` names some. An instance stood up for retrieval can write `["mailbox"]` there and publish the reading tools alone, so a release adding tools does not change what your endpoint offers without you noticing. [What this endpoint publishes](operations/mcp-endpoint.md#what-this-endpoint-publishes) holds the categories and what a client may narrow for its own session. MailFathom itself serves plain HTTP unless its own TLS termination is configured, so keep the application port on loopback or behind a TLS-terminating proxy — the Compose deployment's default — and give the proxy the certificate. If you put a proxy in front, name it in `ReverseProxy:TrustedProxies` as well. The public scheme and host survive the hop either way; naming the proxy is what stops anything else that can reach the port from claiming them: [behind a TLS-terminating reverse proxy](operations/mcp-endpoint.md#behind-a-tls-terminating-reverse-proxy). ## 8. Connect an MCP client The endpoint speaks the MCP **Streamable HTTP** transport at `/mcp` — the path is fixed — and the key travels as a bearer credential. Any client that supports Streamable HTTP connects with two facts: | The client asks for | The value | | --- | --- | | Server URL | `http://127.0.0.1:8080/mcp` under the Compose defaults; your proxy's HTTPS address otherwise | | Header | `Authorization: Bearer ` | **Where a client asks for those two values, and whether it will accept the second at all, differs per client.** Two of the popular chat clients offer no field for a static header, which decides the deployment's authentication rather than only the setup steps; [connecting the chat client you already use](users/mcp-clients.md) has the steps, the address kind, and the authentication shapes for each one by name. A connected client whose user holds `Mail user`, as [step 6](#6-record-the-mailbox) assigned, should be listed at least fourteen tools — `list_accounts`, `list_emails`, `get_email_content`, `search_emails`, each advertising itself as read-only, non-destructive, and idempotent; `set_mail_flags`, which marks, stars, and labels a message and announces itself as neither read-only nor confined to this process, and as destructive because a keyword replacement states the whole set; and `send_email`, `reply_to_email`, and `forward_email`, which announce themselves the same way and are destructive on the other ground — each takes nothing away and nothing takes it back. Beside those, `get_outgoing_email` reports what became of a message one of them queued and advertises itself as read-only, and `cancel_outgoing_email` stops one that has not left yet, advertising itself as destructive and — unlike the sending tools — as confined to this process, since stopping a message reaches nobody. Then `save_draft`, `update_draft`, and `delete_draft`, which write a message into your own Drafts folder and send nothing, and `send_draft`, which sends what one of them holds and announces itself exactly as `send_email` does. Then the six contact tools over the contact books its user reads — their own, and the collected book of each mail account they are assigned — of which four change state and two — `update_contact`, which replaces a whole record, and `delete_contact`, which erases one — announce themselves as destructive too. `ask_mail` appears only once you have configured a chat model and an embedding model and both are working; until then its absence is the deployment telling you it cannot answer questions yet rather than a fault. [Verifying an enabled endpoint](operations/mcp-endpoint.md#verifying-an-enabled-endpoint) is the checklist form of this, including what the refusals look like when the key or the origin is wrong. **Signing a person in through your own identity provider instead of sharing a key** is the other way to connect, and it is the only way for a client whose dialog takes no header. Most of that work is in the provider rather than here: [MCP client OAuth](operations/mcp-client-oauth.md) walks it end to end from a deployment in exactly this state. ## 9. Make the first call, and read it correctly Ask the connected agent to list recent mail, or have the client call `list_emails` with a small page. Two parts of the result matter more than the emails on the first day: - **`folderFreshness`** carries one entry per folder in scope, stating when synchronization last committed progress there. An empty page whose entries report `wasSynchronized: false` means the folder has not synchronized yet — not that the mailbox is empty. This is the field to check before trusting any early result. - **`nextCursor`** is how the rest of the timeline is read: pass it back unchanged with the same filters. Results are deliberately bounded — at most 100 summaries per page — so an agent reads pages, not mailboxes. From here, [using the tools](users/usage.md) describes the day-to-day surface: what each tool answers, what it bounds, and what its errors mean, and [administering your deployment](users/administering.md) covers reaching the running service from your own machine with the `mfctl` command. # Configuring a mailbox at your provider > [!WARNING] > Some of the steps on this page are performed in a product this project does not control. Any screen, menu, or field > named here can be renamed or moved there at any time. Where this page and that product's own documentation disagree, > the product's documentation is right. [Getting started § write down the mailbox](users/getting-started.md#2-write-down-the-mailbox) shows the account block and what each of its keys is for. This page answers the question that comes next and that no reference page can answer, because the answer belongs to somebody else: **what goes in `Host`, `Port`, `Secrets`, and `TransportSecurity` for the mail service I actually use, and what does that service do differently once synchronization is running.** Every mail service named below is reached the same way — MailFathom speaks IMAP over TLS and nothing else, and there is no per-provider code path anywhere in it. Four things differ, and a reader has to get each right before the first connection succeeds: the address, whether IMAP has to be switched on first, which credential the service will accept, and what the service's own behaviour does to a mailbox once mail starts arriving in the local copy. ## Two claims this page does not make **Presence is a check at a point in time, not a supported-provider list.** Every entry below is what that service's own current documentation said on the date the entry carries. None of these services is under this project's control, and any of them may change the answer next week without anybody here touching anything. An entry that has stopped being true is a defect in this page rather than in the deployment that trusted it. **Absence is not a refusal.** A service missing from this page is not blocked, unsupported, or known to fail — it is unchecked. MailFathom reaches any IMAP server that will serve a TLS connection and an authentication mechanism the account permits, and [an IMAP server you run yourself](#an-imap-server-you-run-yourself) is the section for one. ## What the evidence column means Each entry says which of two kinds of evidence it rests on, because they are not the same claim and blurring them is how a guide starts lying: - **Documented** — the service's own current documentation was read on the date the entry carries. It establishes what the service publishes about its address, its credential, and its own behaviour. It does not establish that a connection was made. - **Observed** — a MailFathom deployment ran against a mailbox at that service and the behaviour was what the entry says. **Every entry on this page today is `Documented`.** That is deliberate rather than a gap waiting to be filled: a third party's mail server is not something this repository verifies, and an entry claiming otherwise would be asserting a test that nothing here runs. Where a reader needs a behaviour confirmed against their own mailbox, [what your own server actually offers](#what-your-own-server-actually-offers) is how the running deployment answers it. ## The account block, written once This is the complete shape, and it is shown once. Every section below changes three parts of it at most — the address, the credential block, and, in one case, `TransportSecurity`: ```json { "EmailAddress": "you@example.test", "DisplayName": "Personal mail", "Language": "English", "Host": "imap.example.test", "Port": 993, "UserName": "you@example.test", "Secrets": { "Password": { "Name": "imap-primary-password", "SecretReference": "file:/etc/mailfathom/secrets/imap-primary-password" } }, "Folders": [ { "Alias": "inbox", "SpecialUse": "Inbox" }, { "Alias": "sent", "SpecialUse": "Sent" } ] } ``` It stands on its own rather than inside a configuration file, because a deployment declares no mail account in its own file: the block above creates a mail account the deployment holds and assigns to a user, with `mfctl account add --from-file`. Turning synchronization on at all is the deployment's own `MailSynchronization:Enabled`, and it is the whole of what a configuration source says about mail. A service that will not accept a password takes an `OAuth` block in place of `Secrets` instead; [mailbox OAuth § declaring the account](operations/mailbox-oauth.md#declaring-the-account) holds that form in full, and no section below repeats it. [Mail configuration § `MailSynchronization`](operations/configuration-mail.md#mailsynchronization) is the inventory of every key named on this page, with its type, default, and constraint. ## What is the same everywhere Four things hold whichever service a mailbox lives at, and each is stated in full on the page that owns it rather than per provider here: - **The transport is TLS on connect, on port 993, by default.** Every weakening — an unencrypted connection, clear-text authentication over one — is an explicit opt-in that fails startup otherwise, and certificate validation cannot be turned off at all. A server with a private certificate authority is reached by trusting that authority. [IMAP synchronization § transport security](features/imap-synchronization.md#transport-security) records the rules. - **Folders are named by role rather than by path.** `SpecialUse` lets discovery find a folder whatever the server calls it, which matters more here than it looks: the same role carries a different path at almost every service below. A service that advertises no role for a folder loses none of this — name the path and the role together, and everything that asks for `role:Junk` still reaches it. [Folder aliases and discovery](features/imap-synchronization.md#folder-aliases-and-discovery) covers the matching, [what a role says](features/imap-synchronization.md#what-a-role-says-beside-how-a-folder-is-found) the rest, and [the folders, and what each service calls them](#the-folders-and-what-each-service-calls-them) what you are naming. - **Reading never marks mail read.** MailFathom does not set the remote `\Seen` flag while synchronizing, reconciling, fetching content, or answering a tool call — the sessions those run on hold no operation capable of writing a flag. The flag moves only where somebody asked for it: a rule you wrote, a spam verdict's action you turned on, the `set_mail_flags` tool, or your opening a message in MailFathom's own client. If mail is turning up read at your service and none of those four was it, it is another client or a rule at the service, not this one. [Marking mail read is an act, never a side effect of reading](features/imap-synchronization.md#marking-mail-read-is-an-act-never-a-side-effect-of-reading) states the guarantee and its one deliberate exception. - **Whether `"Mode": "Push"` does anything is the server's answer, not a setting.** Push needs the `IDLE` extension, and one connection for the whole account instead of one per folder additionally needs `NOTIFY`. A server offering neither is polled on the account's interval and says so in the log. [Push synchronization](features/imap-synchronization.md#push-synchronization) holds the whole model. ## The addresses, in one table | Service | `Host` | `Port` | Switch IMAP on first | Credential the service will accept | Evidence | | --- | --- | --- | --- | --- | --- | | [Gmail, on a personal account](#gmail-on-a-personal-account) | `imap.gmail.com` | `993` | No — always on | App password, or OAuth | Documented, 2026-08-12 | | [Gmail, on a Google Workspace account](#gmail-on-a-google-workspace-account) | `imap.gmail.com` | `993` | Yes, by an administrator | **OAuth only** | Documented, 2026-08-12 | | [Outlook.com](#outlookcom) | `outlook.office365.com` | `993` | Yes, in the mailbox settings | **OAuth only** | Documented, 2026-08-12 | | [Exchange Online and Microsoft 365](#exchange-online-and-microsoft-365) | `outlook.office365.com` | `993` | No — on unless an administrator turned it off | **OAuth only** | Documented, 2026-08-12 | | [Yahoo Mail](#yahoo-mail) | `imap.mail.yahoo.com` | `993` | Not documented as required | App password | Documented, 2026-08-12 | | [iCloud Mail](#icloud-mail) | `imap.mail.me.com` | `993` | Not documented as required | App-specific password | Documented, 2026-08-12 | | [Proton Mail](#proton-mail-through-the-local-bridge) | `127.0.0.1` (the local bridge) | `1143` | The bridge is installed and signed in instead | The bridge's own generated password | Documented, 2026-08-12 | | [Fastmail](#fastmail) | `imap.fastmail.com` | `993` | Not documented as required | App password | Documented, 2026-08-12 | | [Zoho Mail](#zoho-mail) | `imap.zoho.com` or `imappro.zoho.com` | `993` | Yes, in webmail | Account password, or an application-specific one | Documented, 2026-08-12 | Proton Mail is the one row whose address is not the mail service and whose port is not 993, for the reason its section gives. Everything else takes the account block above with the address and the credential replaced. *Not documented as required* is the honest answer rather than a *no*: the service's own setup documentation names no switch, and this review made no connection that would establish one. ## The folders, and what each service calls them **MailFathom mirrors the folders your configuration names and nothing else.** Nothing discovers a folder into that list, so a folder left out of it is a folder this deployment does not have — not one it holds and hides. [Getting started § working out the list](users/getting-started.md#working-out-the-list) is how to arrive at one; this table is the part of it that depends on where the mailbox lives. | Service | What its own folders are called | Roles the server advertises | Evidence | | --- | --- | --- | --- | | Gmail, personal and Workspace alike | `INBOX`, and the system labels under a `[Gmail]` prefix: `[Gmail]/All Mail`, `[Gmail]/Drafts`, `[Gmail]/Important`, `[Gmail]/Sent Mail`, `[Gmail]/Spam`, `[Gmail]/Starred`, `[Gmail]/Trash` | Documented: `\All`, `\Drafts`, `\Important`, `\Sent`, `\Junk`, `\Flagged`, `\Trash` | Documented, 2026-08-12 | | Outlook.com, Exchange Online, Microsoft 365 | Inbox, Drafts, Sent Items, Deleted Items, Junk Email, Archive | Not documented in the pages this review read | Documented, 2026-08-12 | | Yahoo Mail | Inbox, Draft, Sent, Archive, Spam, Trash | Not documented in the pages this review read | Documented, 2026-08-12 | | iCloud Mail | Inbox, VIP, Drafts, Sent, Archive, Trash (Bin in some regions), Junk | Not documented in the pages this review read | Documented, 2026-08-12 | | Proton Mail, through the bridge | All Mail, Inbox, Drafts, Sent, Starred, Archive, Spam, Trash, and each of your labels as a folder under `Labels` | Not documented in the pages this review read | Documented, 2026-08-12 | | Fastmail | Inbox, Archive, Drafts, Sent, Spam, Trash | Not documented in the pages this review read | Documented, 2026-08-12 | | Zoho Mail | Inbox, Drafts, Sent, Spam, Trash | Not documented in the pages this review read | Documented, 2026-08-12 | **A name in that middle column is what the service calls the folder, not necessarily the IMAP path.** A service may serve its folders under a prefix, translate them into the account's language, or rewrite a character its own interface allows — Gmail's prefix and Fastmail's replacement of `.` in a custom folder name are both documented behaviours. That is the argument for naming a folder by its role wherever it has one: `SpecialUse` finds the folder whatever path it is at, and the configuration survives a rename, a language change, and a move to another service. **"Not documented" is not "not advertised".** Only Google publishes which RFC 6154 attributes its server sends, so the other rows say what this review could establish rather than what the server does. Where a role matters and the service documents no attribute, name the folder's path and its role together — `{ "Alias": "spam", "RemotePath": "Junk Email", "SpecialUse": "Junk" }` — and everything that asks for `role:Junk` reaches it regardless of what the server advertised. A mapping whose role finds nothing reports the alias as unresolved in the log rather than failing the account. Sources: [Gmail IMAP extensions](https://developers.google.com/workspace/gmail/imap/imap-extensions), [Working with message folders in Outlook.com](https://support.microsoft.com/en-US/Outlook/working-with-message-folders-in-outlook-com), [Archive and un-archive messages in Yahoo Mail](https://help.yahoo.com/kb/SLN26466.html), [Organize email with folders in Mail on iCloud.com](https://support.apple.com/guide/icloud/mm6b1a6730/icloud), [Labels in Bridge](https://proton.me/support/labels-in-bridge), [Setting up and using folders](https://www.fastmail.help/hc/en-us/articles/1500000280301-Setting-up-and-using-folders), [Using folders](https://www.zoho.com/mail/help/using-folders.html). ## Gmail, on a personal account Google documents `imap.gmail.com` on port `993` with SSL required, and states that IMAP access is always on and no longer has a setting to switch — so nothing has to be enabled first on a personal account. **The credential.** An app password works with the ordinary `Secrets:Password` block and is the shorter path; OAuth is the alternative and is the same setup a Google Workspace mailbox needs. [Mailbox OAuth § do you need this at all](operations/mailbox-oauth.md#do-you-need-this-at-all) is where the choice is already stated in full — which accounts can be issued an app password at all, and the review obligation that comes with registering your own Google project for mail access — and it is not repeated here. **Labels arrive as folders, and one message can be in several of them.** Google publishes labels over IMAP as folders, with its own labels under a `[Gmail]` prefix, and exposes each message's label set through the `X-GM-LABELS` attribute. `[Gmail]/All Mail` holds everything, so a message carrying two labels is reachable through both label folders and through All Mail as well. Configure the folders you want by role — an inbox, a sent folder — rather than synchronizing All Mail beside them, or the same message is copied under several aliases and counted several times in every listing. **Two limits worth knowing before the first synchronization of a large mailbox.** Google documents a daily IMAP ceiling of 2500 MB downloaded and 500 MB uploaded — synchronization only reads, so the download figure is the one a first pass over a large mailbox can reach — and describes a safeguard that suspends the account for about an hour, and for as long as a day, once a limit is hit. It separately documents that an account may be added to at most 15 mail clients at once, which a deployment watching many folders in push mode can approach on its own. `EarliestEmailReceivedDate` is what bounds the first pass against the first limit, and `MaxSubscribedFolders` bounds the connection count against the second. Sources: [Add Gmail to another email client](https://support.google.com/mail/answer/7126229), [IMAP, POP, and SMTP](https://developers.google.com/workspace/gmail/imap/imap-smtp), [IMAP extensions](https://developers.google.com/workspace/gmail/imap/imap-extensions), [Gmail bandwidth limits](https://support.google.com/a/answer/1071518). ## Gmail, on a Google Workspace account The address is the same as above. Two things are not. **An administrator turns IMAP on first.** Google documents the setting in the admin console under **Apps → Google Workspace → Gmail → End User Access → POP and IMAP access**, applied to the whole organization or to one organizational unit. The same setting optionally restricts access to named OAuth client identifiers, which is worth checking if the first connection is refused after the switch is on. **A password will not authenticate.** Google states that as of 1 May 2025 a Workspace account no longer accepts a sign-in from an application using a username and password, and an app password cannot be issued for one at all. The account therefore carries an `OAuth` block and no `Secrets:Password`, with `PermittedAuthenticationMechanisms` set to the token-bearing mechanisms — which is what frees the account from configuring a password. [Mailbox OAuth § Google](operations/mailbox-oauth.md#google) is the registration, and [§ declaring the account](operations/mailbox-oauth.md#declaring-the-account) is the block. The label and All Mail behaviour and both limits are Gmail's and apply here unchanged. Sources: [Turn POP & IMAP on or off for users](https://support.google.com/a/answer/105694), [Add Gmail to another email client](https://support.google.com/mail/answer/7126229). ## Outlook.com Microsoft documents `outlook.office365.com` on port `993` with SSL/TLS, and lists the authentication method for it as OAuth2 and modern authentication rather than a password. **IMAP is switched on in the mailbox.** Microsoft's own settings page states that POP and IMAP access is off by default and is enabled under **Settings → Mail → Forwarding and IMAP**. **A password will not authenticate, and neither will an app password.** Microsoft states that basic authentication stopped working for these accounts on 16 September 2024 and that devices using POP or IMAP can no longer use app passwords. So an Outlook.com mailbox takes the `OAuth` block, registered through Microsoft Entra exactly as a Microsoft 365 mailbox is; [mailbox OAuth § Microsoft — Entra](operations/mailbox-oauth.md#microsoft--entra) is the registration. The delegated permission is the one a personal mailbox user can consent to themselves. Sources: [POP, IMAP, and SMTP settings for Outlook.com](https://support.microsoft.com/en-us/office/pop-imap-and-smtp-settings-for-outlook-com-d088b986-291d-42b8-9564-9c414e2aa040), [Modern authentication methods now needed to continue syncing Outlook email in non-Microsoft email apps](https://support.microsoft.com/en-us/support/known-issues/modern-authentication-methods-now-needed-to-continue-syncing-outlook-email-in-non-microsoft-email-ap). ## Exchange Online and Microsoft 365 The address and port are the same as Outlook.com's, and so is the answer about passwords — but for a different reason and with a different consequence, which is why this is a section of its own. **Basic authentication was removed rather than discouraged.** Microsoft states that it removed the ability to use basic authentication for IMAP in Exchange Online, that no one — customer or Microsoft support — can re-enable it, and that the same change prevents the use of app passwords. OAuth 2.0 is the only way in, and Microsoft's own guidance to application developers is to keep the protocol and implement it. **Both grants are available here, and they are different mailboxes' answers.** A delegated registration carrying `IMAP.AccessAsUser.All` acts for one mailbox user and needs a refresh token obtained once; an app-only registration carrying `IMAP.AccessAsApp` acts for the application, needs tenant administrator consent, and uses the `client_credentials` grant with no sign-in at all. [Mailbox OAuth § the two grants](operations/mailbox-oauth.md#the-two-grants) states which applies, and [§ Microsoft — Entra](operations/mailbox-oauth.md#microsoft--entra) is the registration for both. **IMAP is on by default per mailbox, and an administrator can turn it off.** Microsoft documents IMAP4 as enabled when a user mailbox is created, and both the Exchange admin center and `Set-CASMailbox` as the ways to change it — so a refused connection against a tenant that has hardened its protocols is a mailbox setting rather than a credential fault. Sources: [Deprecation of basic authentication in Exchange Online](https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online), [Managing email apps for user mailboxes](https://learn.microsoft.com/en-us/exchange/recipients-in-exchange-online/manage-user-mailboxes/managing-email-apps-for-user-mailboxes), [Authenticate an IMAP, POP, or SMTP connection using OAuth](https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth). ## Yahoo Mail Yahoo documents `imap.mail.yahoo.com` on port `993` with SSL required, and directs a third-party mail client at a generated app password rather than the account password. That is the ordinary `Secrets:Password` block with the generated value behind the reference, and nothing else about the account changes. This review found no Yahoo documentation of IMAP connection caps, bandwidth ceilings, or the extension set the server advertises, so this page states none — [what your own server actually offers](#what-your-own-server-actually-offers) is where a running deployment answers that instead. Sources: [Yahoo Mail server settings](https://help.yahoo.com/kb/SLN4075.html). ## iCloud Mail Apple documents `imap.mail.me.com` on port `993` with SSL required, and an app-specific password rather than the account password. **The user name is the part that catches people out.** Apple documents it as usually the name portion of the address — `johnappleseed` rather than `johnappleseed@icloud.com` — and says to try the full address if a client cannot connect with the short form. `UserName` is an identifier rather than a secret, so trying the other form is an edit and a reload rather than a re-provisioning. Sources: [iCloud Mail server settings for other email client apps](https://support.apple.com/en-us/102525). ## Proton Mail, through the local bridge This is the one entry whose address is not the mail service. Proton documents that a mail client reaches a Proton mailbox through Proton Mail Bridge, an application that runs on the same machine as the client, holds the connection to Proton itself, and serves IMAP on a loopback address — which is what lets a client see decrypted mail without the decryption happening anywhere else. Proton states that the bridge is available only with a paid Proton Mail plan. Three consequences for a MailFathom account, and the first is the one to settle before writing any configuration: - **The bridge has to be reachable from the process, on loopback.** A deployment in a container or on another host does not reach a bridge running on somebody's laptop, and the bridge is not a service to publish onto a network — its whole design is that the decrypted channel never leaves the device. A Proton mailbox therefore fits a MailFathom process running on the same machine as the bridge, and does not fit the container and Kubernetes shapes without putting the two together deliberately. - **The port and the transport are not the defaults.** Proton documents the bridge's default IMAP port as `1143` and offers a choice of STARTTLS or SSL in the bridge's own settings. STARTTLS on 1143 means the account states `"ConnectionSecurity": "StartTlsRequired"` — which is one of the two guaranteed-TLS modes and needs no `AllowInsecureConnection`, because the handshake either happens or the connection fails. - **The certificate is the bridge's own.** Proton documents the bridge as using a self-signed TLS certificate that it generates when the application is first set up. Certificate validation is never disabled in MailFathom, so the account trusts that certificate as an additional authority: `"CertificateTrust": "AdditionalTrustedAuthority"` with the bridge's certificate behind `TrustedCertificateAuthority`. [Trust anchor material](features/imap-synchronization.md#trust-anchor-material) is what that reference holds and how it is provisioned. The credential is the password the bridge itself generates for the mail client, with the Proton address as `UserName`. It goes behind a `Secrets:Password` reference like any other. ```json { "Host": "127.0.0.1", "Port": 1143, "UserName": "you@proton.me", "TransportSecurity": { "ConnectionSecurity": "StartTlsRequired", "CertificateTrust": "AdditionalTrustedAuthority", "TrustedCertificateAuthority": { "Name": "proton-bridge-certificate", "SecretReference": "file:/etc/mailfathom/secrets/proton-bridge-certificate.pem" } } } ``` Sources: [IMAP, SMTP, and POP3 setup](https://proton.me/support/imap-smtp-and-pop3-setup), [Comprehensive guide to Bridge settings](https://proton.me/support/comprehensive-guide-to-bridge-settings), [Proton Mail Bridge connection issues](https://proton.me/support/bridge-ssl-connection-issue). ## Fastmail Fastmail documents `imap.fastmail.com` on port `993` with SSL/TLS encryption and states explicitly that STARTTLS is not offered there — which is what MailFathom's default `TlsOnConnect` already is, so the account needs no `TransportSecurity` block at all. **The user name is the full address, and it is the one the account was signed up with.** Fastmail documents that other addresses on the same account do not authenticate. **An app password is required.** Fastmail states that the ordinary account password will not connect over IMAP and that each connection needs an app password of its own. Sources: [Server names and ports](https://www.fastmail.help/hc/en-us/articles/1500000278342-Server-names-and-ports), [IMAP, POP, and SMTP](https://www.fastmail.help/hc/en-us/articles/1500000279921-IMAP-POP-and-SMTP). ## Zoho Mail Zoho documents two hostnames on port `993` with SSL required, and which one applies is the account's plan rather than a preference: `imap.zoho.com` for a personal account on a `zoho.com` address, and `imappro.zoho.com` for a paid organization account on its own domain. Zoho runs mailboxes in several data centres and the documented hostnames are the ones for its `.com` domain, so an account elsewhere takes the host its own webmail settings page names rather than the one in the table above. **IMAP is switched on in webmail first.** Zoho documents enabling IMAP access for the account before configuring any client. **Which credential depends on how the account signs in.** Zoho documents the account password for an ordinary account, and an application-specific password where two-factor authentication is on, where the account signs in through SAML, or where it uses a federated sign-in. Either way it is the `Secrets:Password` block. Sources: [IMAP and SMTP configuration details](https://www.zoho.com/mail/help/imap-access.html). ## An IMAP server you run yourself There is no entry to look up here, and that is the point: MailFathom reaches any IMAP server that will serve a TLS connection and an authentication mechanism the account permits, so the server's own documentation is the source and the account block at the top of this page is the whole configuration. Four things are worth checking against it, because each is a startup refusal rather than a runtime warning: - **The port decides nothing; the mode does.** `993` with `TlsOnConnect` is the default. A server serving IMAP on `143` and upgrading takes `"ConnectionSecurity": "StartTlsRequired"`, which is still guaranteed TLS. `StartTlsWhenAvailable` and `None` are not, and each needs `AllowInsecureConnection` written explicitly. - **A private certificate authority is trusted rather than ignored.** `"CertificateTrust": "AdditionalTrustedAuthority"` with the authority behind `TrustedCertificateAuthority`; validation itself cannot be turned off. - **An old server may be refused before a credential is ever sent.** An authentication failure wrapping `SSL Handshake failed with OpenSSL error` is the platform's TLS policy ending the handshake rather than a wrong password. [The platform TLS policy](operations/platform-tls-policy.md) covers confirming that and the one supported way to relax it. - **The mechanism list is an allow-list.** `PermittedAuthenticationMechanisms` defaults to `PLAIN` and `LOGIN`; a server offering something else needs it named. ## What your own server actually offers Nothing above states which IMAP extensions a service advertises, because almost none of them publishes that and a table of guesses would be worse than no table. The running deployment answers it instead, per folder, on every start: ```text Folder primary/inbox is now synchronized in Push mode. ``` Three neighbouring lines say why, when the answer is not the one that was configured: | What the log says | What the server advertised | | --- | --- | | `Account … watches N folders through one push subscription.` | `NOTIFY` and `IDLE`, so the whole account costs one connection | | `… advertises no NOTIFY capability, so each push folder is watched over its own connection` | `IDLE` alone, so each watched folder costs one | | `… the mail server advertises no IDLE capability; it is synchronized by polling` | Neither, so `Mode` changes nothing and the interval is what runs | The same holds for `CONDSTORE` and `QRESYNC`, which decide how much work a reconciliation pass does rather than whether it is correct: all three shapes of the question reach the same end state, and [asking only about what changed](features/imap-synchronization.md#asking-only-about-what-changed) records which command each server gets. There is nothing to configure and nothing to check — a server that supports neither is slower and no less right. ## Whether your server says who sent a message MailFathom would rather not verify a sender itself. What it reads first is the `Authentication-Results` header that the server receiving your mail wrote, because that server is the only party in the chain that observed the connection, saw the sending address the envelope carried, and could evaluate SPF at all. So how well sender verification works is mostly your provider's decision rather than yours, and where that server writes a verdict it is the verdict MailFathom records — nothing on this side is consulted, and nothing on this side overrides it. **Where no such header is found, MailFathom verifies the message's own DKIM signatures for itself**, against the keys the signing domains publish in DNS. That is a fallback rather than a second opinion: it happens only for an account whose server wrote nothing MailFathom trusts, and it establishes a signing domain where there would otherwise be no author to hold `TrustedSenders` or `TrustOwnAccountDomains` against at all. It is what makes those settings work on a mailbox whose provider records nothing, and it is on by default. What it cannot reach is the part that needed the connection: no SPF result, and no DMARC outcome. It is also the one thing in MailFathom that sends a DNS query, so an operator who wants none turns it off — see [the mail configuration](operations/configuration-mail.md#mailsynchronization). Check the mail you were actually delivered rather than the provider's documentation. Open a recently arrived message in any mail client, view its source or full headers, and look for `Authentication-Results`: | What you find | What it means | | --- | --- | | `Authentication-Results: some.host; dkim=pass …` | `some.host`, the first token after the colon, is the authserv-id and is what `TrustedAuthenticationServiceIdentifier` takes. A server may write a version number after it, as `some.host 1;` — that digit belongs to the header rather than to the identifier, and a configured value carrying whitespace fails startup | | Only `ARC-Authentication-Results` | An upstream hop's findings preserved across forwarding, which is a claim a relay signed rather than something your own server observed. It is deliberately never read, and there is nothing to configure from it | | No such header at all | Your server either does not check the sender or does not record what it found. MailFathom then verifies the message's DKIM signatures itself, which recovers the author but not SPF or DMARC | The third case is still worth raising with whoever runs that server, because local verification recovers only part of what a receiving server sees: SPF, DKIM, and DMARC have to be evaluated as mail is delivered, and the outcome written into the message as an RFC 8601 header carrying that server's own identifier. Which software does it, and how it is switched on, is that server's own documentation. An account whose server starts writing the header stops verifying locally on the mail that carries it, without anything being reconfigured. Two things are worth knowing before asking for it. It reaches mail delivered afterwards and cannot reach mail already delivered, because the header is part of the message and nobody can add one to a message that has already arrived. And the verdict is recorded when a message is extracted rather than worked out when it is read, so mail already synchronized keeps the answer it was stored with until [a re-derivation](users/administering.md#filling-in-what-a-newer-version-records) re-reads it — which is also what applies a newly configured authserv-id to the mail you already hold. [Sender authentication](features/sender-authentication.md) states what the verdict records, how the header is chosen, what local verification reaches and deliberately does not, and how a reader tells the two verdicts apart; [the mail configuration](operations/configuration-mail.md#one-account--a-mailbox-in-a-users-record) states where the setting lives. ## Related - [Getting started](users/getting-started.md) — the whole path from an installed instance to a first tool call - [Mailbox OAuth](operations/mailbox-oauth.md) — registering an application, obtaining a refresh token, and the `OAuth` block every token-bearing account above takes - [Mail configuration § `MailSynchronization`](operations/configuration-mail.md#mailsynchronization) — every key named here, with its constraint and whether changing it needs a restart - [IMAP synchronization](features/imap-synchronization.md) — what a run actually does with a mailbox - [Secret provisioning](operations/secret-provisioning.md) — how a `SecretReference` is backed by material --- **Trademarks.** The product, service, and company names on this page are their users' trademarks and are used solely to identify the mail services a MailFathom deployment can be configured against. Their use implies no affiliation with, sponsorship by, endorsement by, or certification from those users, in either direction, and this page reproduces no third-party logo. Gmail and Google Workspace are trademarks of Google LLC. Microsoft, Outlook, Microsoft 365, Exchange Online, and Microsoft Entra ID are trademarks of the Microsoft group of companies. iCloud is a trademark of Apple Inc., registered in the U.S. and other countries and regions. Yahoo and Yahoo Mail are trademarks of Yahoo Inc. and its affiliate companies. Proton and Proton Mail are trademarks of Proton AG. Fastmail is a trademark and service mark of Fastmail Pty Ltd. Zoho and Zoho Mail are trademarks of Zoho Corporation Private Limited and/or its affiliates. [`THIRD_PARTY_LICENSES.md`](https://github.com/fathomise/MailFathom/blob/main/THIRD_PARTY_LICENSES.md#trademark-and-brand-use) records the per-user review this statement comes out of, and why it sits here rather than in `NOTICE`. # Administering your deployment MailFathom ships a command, `mfctl`, that talks to a running deployment from your own machine. This page is the user's view of it: what it is for, the path from a running service to a verified sign-in, and what it deliberately cannot do yet. The full contract — every asset name, every stored path, every message the command can print — is [administering a deployment](operations/admin-endpoint.md), and this page links there rather than repeating it. ## What the command is, and is not `mfctl` is a client. Every operation it performs is an HTTP request to the deployment's administrative endpoint, so it runs on the machine you administer *from* rather than the one the service runs on — your laptop against a container on a server, or against a pod in a cluster. It reports how the deployment is configured and changes one layer of it. `mfctl config` reads the settings the deployment composed from every source and names the layer that decided each — a provisioned file, an environment variable, a command-line argument, .NET User Secrets, or the persisted layer — and it writes to the **persisted configuration layer** alone, one document in the database composed at startup like every other source. That is [changing a setting without a restart](#changing-a-setting-without-a-restart) below. The deployment's own files and environment, described in [configuration sources](operations/configuration-sources.md), are read and reported but never edited; the command never opens the database directly and never touches the secret store. > **Which layer decided a setting is the thing to read before changing one.** Three sources outrank the persisted > layer — .NET User Secrets, unprefixed environment variables, and command-line arguments — so a value one of them > supplies goes on coming from there whatever the layer is made to say, and `mfctl config` refuses such a write rather > than committing a version that changes nothing. `mfctl config get` names the source beside the value, which is what > that decision is made from. Everything else the command does is the deployment's own state rather than its > configuration: placing a mailbox credential, asking for work to be run, disposing of a folder's stored mail, and > maintaining the contact book. **What it prints is meant to be read and safe to capture.** A command's result goes to standard output and everything else to standard error, so redirecting one captures the answer alone, and a redirected run — like any run whose environment sets `NO_COLOR` — carries no escape sequences at all. How a listing and a single record are laid out, and which lines colour marks, is stated in [administering a deployment](operations/admin-endpoint.md) with the rest of the contract. ## Before it can answer The administrative endpoint is off unless a deployment turns it on, and a credential reaches it only where it was provisioned to. An API key handed to an MCP client authenticates nothing here, deliberately: reading a mailbox and administering the service that reads it are different authorities. ```jsonc { "AdminEndpoint": { "Enabled": true, "BindAddress": "127.0.0.1", "Port": 8090, "Authentication": [ { "Method": "password" }, { "Method": "api-key" } ] } } ``` Six things about that block are worth understanding before you copy it: - **An administrator is a user holding an administrative role, and `Authentication` only says how they may sign in.** The first start records the default administrator, `admin`, with the password `MAILFATHOM_ADMIN_PASSWORD` carries — `admin` in the Compose and Quadlet assets — and that is your first sign-in; change it at once with `mfctl credential rotate`. Anybody else signs in with a credential of their own provisioned with `--surface admin`, restricted with `--source-network` where it helps, and every act is attributed to their user and that credential. [Who administers the deployment](operations/admin-endpoint.md#who-administers-the-deployment) is the whole of it. - **It binds a socket of its own.** `127.0.0.1` above is the safe starting point — reachable from the machine the service runs on and nowhere else, which is what an SSH tunnel is for. Publishing it more widely is a decision, not a default. The keys are in the [endpoint configuration](operations/configuration-endpoints.md#adminendpoint), and how it relates to the port your MCP clients use is [where each surface is served](operations/configuration-endpoints.md#where-each-surface-is-served). - **No credential is written into the configuration.** Every one of them is a record beside a user in the running deployment, provisioned with [`mfctl credential create`](operations/admin-endpoint.md#user-credentials). - **A clear-text endpoint is warned about at startup, not refused.** It is the right posture behind a TLS-terminating proxy or on a loopback bind, and the wrong one anywhere else; only you know which you have. Configure `AdminEndpoint:Https:Endpoints` to have MailFathom terminate TLS itself. - **It is rate limited without your writing a number.** An endpoint that answers a network has to bound how fast a caller may present wrong credentials, so the limits apply the moment you enable it and the applied numbers are stated at startup. [Rate limiting](operations/admin-endpoint.md#rate-limiting) is where the settings and the one way this endpoint's limit differs from the MCP endpoint's are recorded. - **A request that runs too long is abandoned, also without your writing a number.** The ceiling defaults to ten minutes because the MCP endpoint shares the setting and an AI-backed answer can legitimately take minutes; no administrative route reaches a provider, so this is the endpoint worth narrowing. [Request timeouts](operations/admin-endpoint.md#request-timeouts) is where that is recorded. ## Getting the command Every release attaches a self-contained binary per platform, with nothing to install beside it — the .NET runtime is inside the file. The asset names and the checksum that tells a genuine download from a tampered one are on [getting the command](operations/admin-endpoint.md#getting-the-command), and on Linux [the install script](operations/admin-endpoint.md#on-linux-with-the-install-script) does the whole of it in one line. Download the one for the machine you administer *from*. The command talks to a deployment over HTTP, so it does not have to run where the service runs — that is the whole point of it being a client. **Take it from the release your deployment is running.** The command and the deployment have to agree on `major.minor`, because a minor release is allowed to change what they say to each other; a pair that does not agree is refused rather than attempted, and a pair that differs only in patch or nightly warns and carries on. [Take the command from the deployment's own release line](operations/admin-endpoint.md#take-the-command-from-the-deployments-own-release-line) is the rule in full. ## Signing in The first sign-in to a new deployment is the default administrator's, with its password: ```console $ mfctl login --endpoint http://127.0.0.1:8090 --name local --mode password Password for 'admin': Signed in to http://127.0.0.1:8090 as admin (3f1d...) (MailFathom 0.2.0), saved as profile 'local' and selected. ``` `--username` names anybody else who signs in with a password. With an API key instead: ```console $ mfctl login --endpoint https://mail.example.test:8443 --name production Administrative credential (an API key, or an access token from the configured authorization server): Signed in to https://mail.example.test:8443 as Alice Example (3f1d...) (MailFathom 0.2.0), saved as profile 'production' and selected. ``` The credential is typed at the prompt or piped in, never passed as an argument — an argument reaches your shell history and the process list. It is checked against the deployment before anything is written, so a wrong key, a wrong port, and a host that is not MailFathom all fail here rather than at some later command that leaves you guessing which of the three it was. If the deployment is configured for OAuth, sign in with a browser instead and let it do the authenticating: ```console $ mfctl login --endpoint https://mail.example.test:8443 --mode interactive --client-id mfctl ``` `--mode device` is the same thing on a machine with no browser: it prints a short code to enter on your phone. Either way the only thing you supply is the client identifier — the command asks the deployment where to authorize. Your access token is then renewed for you until the sign-in genuinely ends, and how long that is depends on your identity platform; [how long an OAuth sign-in lasts](operations/admin-endpoint.md#how-long-an-oauth-sign-in-lasts) states the rule and the one setting that shortens it. For a scheduled job there is a third way, and it is the one to prefer there. Generate a key pair, give the deployment the public half only — provisioned as a credential of your user with `--surface admin` — and sign in with the private one: ```console $ mfctl login --endpoint https://mail.example.test:8443 --mode keypair --private-key ~/.config/MailFathom/production.key ``` Nothing reusable is stored and nothing reusable reaches the deployment: the command signs a fresh credential per request, each good for about a minute, and the only thing the service holds is a public key. [Signing in with a key pair](operations/admin-endpoint.md#with-a-key-pair) has the `openssl` commands and the command that provisions it. If your deployment serves a certificate your workstation does not trust — self-signed, or issued by an authority only your organization carries — the sign-in shows you that certificate and asks once whether to trust it, the way an SSH client asks about a host key: ```console $ mfctl login --endpoint https://mail.internal.example:8443 --name internal … Fingerprint: 3B:9A:1C:…:7F Trust this certificate for this profile? [y/N]: ``` Compare the fingerprint against the deployment's own before you answer; nothing has been sent yet. Saying yes stores that fingerprint on the profile, which makes the profile **stricter** rather than looser: from then on it accepts that one certificate and refuses every other, so a renewal or a substitution stops the profile rather than passing unnoticed. You accept a renewed certificate by signing in again. An `http://` address gets a question of its own, because the credential and every later request would cross the network in clear text and a redirect to `https://` arrives too late to change that. [When the connection is weaker than the default](operations/admin-endpoint.md#when-the-connection-is-weaker-than-the-default) has both questions in full, and the two switches a scripted sign-in states the answers with. What is stored afterwards is one small file per user naming the deployments you signed in to — and the secrets themselves go to your operating system's own store, the Credential Manager on Windows and your keyring on Linux, so the file holds no credential at all. On a machine with no such store, a headless jump host being the usual one, the tokens are sealed into that file instead under a key beside it; `mfctl login` says which of the two you got rather than leaving you to guess. A key-pair profile keeps no credential in either place. [Where the credential is kept](operations/admin-endpoint.md#where-the-credential-is-kept) states the paths, what each arrangement does protect, and what it does not. ## Everyday use | What you want | Command | | --- | --- | | See which deployments you are signed in to | `mfctl profiles` | | Work against a different one from now on | `mfctl switch staging` | | Work against one just this once | any command with `--endpoint staging` | | Check whether your credential still works | `mfctl status` | | Forget a deployment on this machine | `mfctl logout` | Two of those repay a second look. `status` asks the *deployment*, which is what tells a revoked or expired key apart from a host that is simply down — the stored profile can only say what was true when you signed in. And `logout` forgets a local profile without revoking anything: the credential keeps working until the deployment stops accepting it, so a lost laptop is a reason to rotate the key on the server rather than to sign out. `status` also prints who you are signed in as, which roles you hold and the scope each was assigned at, and what your credential may do — which is what decides whether any other command here will work: ```console $ mfctl status 'production' (https://mail.example.test:8443) accepts the stored credential as 'user 3f1d... credential 41d7e2b0-...' (MailFathom 0.2.0). Signed in as Alice Example (3f1d...). The user holds Administrator over the deployment. It holds mailfathom.admin.read, mailfathom.admin.operate. Documentation for that version: https://fathomise.github.io/MailFathom/docs/v0.2.0/ ``` What you hold is what the roles assigned to your user grant, and each command needs the one permission its operation is published under — two, for the twelve commands that read something before they change it. A user whose roles grant no administrative permission at all is not an administrator, and every credential they hold is refused at sign-in. When a command is refused for want of one, it names the permission and says to give your user a role holding it, so the answer is to widen the user's roles rather than to replace the key. A role assigned over one organization or one user rather than the whole deployment is printed on a line of its own. Such a role reaches the users, the mail accounts with their mailboxes and contact books, the groups, the role assignments, and the organization its scope covers on the routes that name one — [a grant held below the deployment](operations/admin-endpoint.md#a-grant-held-below-the-deployment) lists them — and nothing else, and a user or a mail account outside it is answered as one the deployment does not hold. `mfctl user list`, `mfctl organization list`, `mfctl account list`, `mfctl mailbox status`, `mfctl group list`, and `mfctl assignment list` run under it show what that scope covers, `mfctl role list` shows every role, and any other command naming no target is refused with a sentence saying the scope rather than the permission is what is missing. [What a credential may do](operations/permissions.md) lists the names, what each covers, and which twelve commands need a second one; [what the endpoint serves](operations/admin-endpoint.md#what-the-endpoint-serves) names the permission every route is published under. When you work against one deployment for a whole session, `MAILFATHOM_ENDPOINT` states it once for the shell. `--endpoint` beats it, and both beat the profile you last switched to. Every command exits `0` when it did what you asked and `1` when it did not, having explained itself on standard error first. [The troubleshooting table](operations/admin-endpoint.md#troubleshooting) reads each message back to you as a cause. Each invocation also leaves a line in `~/.config/MailFathom/mfctl.log` — what ran, against which of your profiles, how long it took, and how it ended — so a command you ran yesterday is still answerable today once the scrollback is gone: ```console $ tail -3 ~/.config/MailFathom/mfctl.log | jq -r '"\(.at) \(.command) \(.outcome)"' ``` No credential and no mail goes into it, it is bounded so it cannot fill a disk, and `--no-log` leaves one invocation out. What it does name is your own deployment — the profile, and the address where a failure message quoted the one you typed — so read it before you paste it anywhere, the way you would the credentials file beside it. [What the command records about itself](operations/admin-endpoint.md#what-the-command-records-about-itself) has the path on each platform, every field, and the switch that turns it off for a whole session. ## Authorizing a mailbox A mailbox at a provider that no longer accepts a password — a Google Workspace account, anything on Exchange Online — needs a person to sign in once before MailFathom can read it. A headless service cannot arrange that, so the command does it: ```console $ mfctl mailbox authorize --provider google --client-id ``` This is the one command that talks to something other than your deployment, and it is why running `mfctl` on your own computer matters. It listens on a loopback address, opens your browser, and catches the redirect the provider sends back — so there is nothing to copy, and the authorization code never crosses a network. On a machine with no browser, forward the port over SSH, or use `--mode device` for Microsoft and `--mode manual` for Google. What it produces is a refresh token, and `--account` decides where that token goes: ```console $ mfctl mailbox authorize --provider google --client-id --account 8e3f1a6b-2c4d-4f7e-a915-7b2d0c6e1f38 … Stored the refresh token for account '8e3f1a6b-2c4d-4f7e-a915-7b2d0c6e1f38' on 'production'. It was not printed. ``` **Named, the token goes straight to your deployment**, which encrypts it and keeps it. It is never printed, so it never reaches your scrollback or a session log, and there is nothing for you to place by hand. The account has to be one your deployment configures; a name it does not know is refused and nothing is stored. Re-running it replaces what was stored, which is what re-authorizing after a revocation is. **Omitted, the token is printed on standard output and you provision it on the server yourself**, as a secret reference like every other credential. That is what a deployment with no administrative endpoint needs, and it stays the right choice if you would rather place credentials yourself. [Mailbox OAuth](operations/mailbox-oauth.md) is the whole procedure, including what each provider requires of the application you register and how a stored token relates to the reference in your configuration. ## Finding out why mail is not arriving A mailbox that looks empty and a mailbox nothing is fetching look identical from the outside. This is the command that tells them apart: ```console $ mfctl mailbox status ``` It reports, for every account your deployment configures and every folder it maps, what the deployment is doing right now, how its last run ended, how far each folder has actually got, and when that last moved. The reading worth learning is the pair of columns in each account's folder table. **Progress** is how far the deployment has durably got and when it last got there; **Last run** is what happened the last time it tried. A folder whose progress stopped yesterday and whose last run succeeded has nothing left to fetch. A folder whose progress stopped yesterday and whose runs keep ending has stopped making headway, and the outcome beside it says why — an alias naming no folder your server advertises, a server that stopped answering, or a failure to look up in the log. Without both columns the two are indistinguishable, which is exactly the situation this command exists to end. The account's own readings above that table say whether a run is happening now, queued behind other accounts, or waiting; and, when runs have been failing, how many in a row — which is what a wait far longer than your configured interval is explained by. **A deployment running several replicas answers about the deployment rather than about whichever one your command reached.** One replica supervises each account at a time, and the answer names it beside the account, so a mailbox another replica is fetching reads as supervised by that replica rather than as one nothing has run. The phase, the backoff, and the last run are the supervising replica's own scheduling state, so they are reported where the replica that answered is the one holding the account and point you at the holder where it is not — never as "no backoff" and "no run", which would read as a mailbox nothing has ever fetched. The folder table is unaffected, its progress being durable. `Answered by` on the first line names the replica that composed the answer. [Administering a deployment](operations/admin-endpoint.md#reading-what-synchronization-is-doing) reads every line of the output back to you. ## Turning semantic search on Which model your deployment embeds with is a configuration value, and editing it starts nothing. Turning semantic search on is a separate, deliberate act, because it is the first thing MailFathom does that costs money per unit of mail — a full mailbox goes to your provider, and you should see the size of that before agreeing to it: ```console $ mfctl embedding activate ``` The command reads what the deployment would spend, prints it as passages, characters, and approximate tokens, and asks before it starts. `--yes` agrees up front, for a scripted run. If your deployment also reads attachments, the same output states what reading the documents it already holds would open and how many pictures it could send to be described — a second bill, in units the first one is not counted in — and the activation is refused outright where either is past what one period admits. The refusal names the setting to raise, so you are told a number rather than left to find one. | What you want | Command | | --- | --- | | Find out why semantic search is quiet | `mfctl embedding status` | | Take up the model your configuration declares | `mfctl embedding activate` | | Stop a re-embed you have changed your mind about | `mfctl embedding cancel-reindex` | `mfctl embedding status` is the one to reach for first. It answers, in one output, whether a model is active, whether that model is still the one your configuration declares, whether your provider is answering, how much of the mailbox is embedded, what the current budget period has spent, and when the walk that embeds your existing mail next runs. That last line is the one to read in the minutes after an activation: until the first passages have gone out, a deployment that is simply between passes looks exactly like one that is broken. Two of those readings say `here` in their labels, and on a deployment running several replicas that word matters: when the walk next runs, and what the provider last answered, are the answering replica's own and another replica may be waiting out a different pause. Everything else comes from the database and is the whole deployment's. `Answered by` on the first line names which replica gave you the answer. It reports how far reading your attachments has come separately from all of that, because the two are separate: a mailbox can be entirely searchable on what people typed while every document attached to it is still unread. Beside the coverage it says what reading produced — extracted documents, described pictures, and how much the keyword index grew by — and how many attachments yielded nothing, grouped by why: encrypted, unreadable, a format your deployment does not read, too large, timed out, refused by the provider, or — the scan case — a document that parsed and carried no text at all. It is a count per reason and never a list of files, so nothing there names one of your messages. `mfctl mailbox status` reports the same three readings for one account. [Administering the embedding profile](operations/admin-endpoint.md#administering-the-embedding-profile) is the operator's reference for all three, and [changing the embedding model](operations/embedding-profiles.md) is what a switch and a rollback cost. ## Applying your rules, and seeing what they did [Mail rules](features/mail-rules.md) select mail as it arrives, so a rule you write today does nothing about the mail already in the mailbox until you ask — or until a [schedule](features/mail-rules.md#running-a-rule-on-a-schedule) you gave the rule asks on your behalf. That asking is a command, and so is finding out what the rules have been doing: | What you want | Command | | --- | --- | | See which rules your deployment is running, in order | `mfctl rules list` | | Read one of them in full | `mfctl rules show file-invoices` | | Apply them to mail that arrived before them | `mfctl rules run --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10` | | Watch that run | `mfctl rules run-status --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10` | | Find out what a rule did, or why a message is where it is | `mfctl rules history --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10` | `mfctl rules list` is the one to run after editing a rule file. A deployment refuses a reload whose rules do not validate and goes on running the previous set, which it reports to its log and nowhere else — so this is where you find out whether your edit took effect, rather than from mail that kept being filed the old way. It prints one row per rule, and the `Runs on` column says what runs each of them, which is how a rule naming [no trigger](features/mail-rules.md#which-triggers-run-a-rule) is told apart from one that simply never matched: nothing fires such a rule by itself, and `mfctl rules run` is how it is run. A rule with a schedule says so in that same column, with the occasions it declares beside the trigger. It is also where a rule you meant to run over arriving mail shows that it never says `Arrival`. None of these five writes a rule, and none ever will: they run the rules and read what the rules concluded. Rules are configuration, so what changes one is [changing a setting without a restart](#changing-a-setting-without-a-restart) or an edit to the file your deployment reads — the file is where a rule is reviewable in a diff before it reaches a mailbox, and the persisted layer is what changes one without a restart. [Reading the rules, running them, and finding out what they did](operations/admin-endpoint.md#reading-the-rules-running-them-and-finding-out-what-they-did) is the operator's reference for all five, including what the history records and what it deliberately does not. ## Classifying the mail you already have [Spam classification](features/spam-classification.md) reaches arriving mail on its own: a message is classified because it arrived, and you ask for nothing. What it does not reach is the mail that was already there — everything stored before you switched it on, and everything stored while it was off — so switching it on, switching filing on, or moving a threshold does nothing about the existing mailbox until you ask: | What you want | Command | | --- | --- | | Find out what classification would do to the mail you have | `mfctl spam run --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10` | | Carry that out | `mfctl spam run --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10 --apply` | | Watch the run | `mfctl spam run-status --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10` | | Find out why a message was filed as junk | `mfctl spam classifications --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10 --email ` | **The run is a dry run unless you add `--apply`**, and that is the order to do it in: run it, read what it found with `run-status`, and only then run it again with `--apply`. With filing switched on, a run over an inbox is the largest single thing MailFathom does to your mail, and the dry run tells you how much of it would move before any of it does. The verdicts are recorded either way — what `--apply` adds is the mail server being written to. A second run while one is going does not start a second walk; you are told the first is still under way, on the terms it was started with. None of these three writes a setting, and none ever will: they apply the settings your deployment already holds. Whether mail is classified, what a scanner is judged by, and what happens to junk are configuration, so what changes them is [changing a setting without a restart](#changing-a-setting-without-a-restart) or an edit to the file your deployment reads. [Classifying the mail you already have, and reading what was concluded](operations/admin-endpoint.md#classifying-the-mail-you-already-have-and-reading-what-was-concluded) is the operator's reference for all three. ## Getting a folder's storage back MailFathom never takes local mail away because a file changed. Switching a folder's `Synchronize` off stops mirroring it and keeps what it already stored; removing its mapping leaves those rows where they are as well. Both are the right default — an edit to a configuration file should not dispose of mail — and both leave you with storage you may actually want back: ```console $ mfctl folder erase --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10 --folder archive 1043 stored emails erased from ARCHIVE under work. The folder holds none, and its checkpoint went with them, so mirroring it again starts from the beginning rather than resuming. ``` This is the only command that erases mail, and it acts on one folder of one account. It refuses a folder your deployment still mirrors, because the next synchronization run would simply fetch it all again — switch that folder off, or take its mapping out, and ask again. A folder whose mapping you already removed is accepted, which is the case this exists for. Erasing a large folder takes a while and the command prints how far it has got. Stopping it is safe: what it reported erasing is gone, the rest is untouched, and running the same command again continues from there. [Erasing a folder you have stopped mirroring](operations/admin-endpoint.md#erasing-a-folder-you-have-stopped-mirroring) is the operator's reference, including what goes with the mail and what survives it. ## Filling in what a newer version records An upgrade sometimes teaches MailFathom to record something new about a message — who was established to have sent it, which keywords its folder carries. New mail gets it because it arrives after the upgrade. **The mail you already have does not**, and nothing fills it in on its own: synchronization resumes from where it left off in each folder, so a message it has already stored is never looked at again. | What you want | Command | | --- | --- | | Fill in what is already in the mail you stored | `mfctl mailbox rederive --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10` | | See how far that has got | `mfctl mailbox rederive-status --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10` | | Fill in what only your mail server knows | `mfctl mailbox rewind --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10` | | Any of them, for a single folder | add `--folder archive` | **Reach for `rederive` first, because it is nearly free.** Anything the message itself carries is in the raw mail already on your server's disk, so filling in the column means reading that back and parsing it. Nothing is fetched, your mail server is not contacted at all, and nothing is marked read. **The command asks for the re-reading and returns; the deployment does it.** Your terminal is not what keeps it going, so closing it changes nothing and the run survives a restart of the deployment: ```console $ mfctl mailbox rederive --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10 A re-derivation of every folder under work has been asked for. Requested: 2026-08-18 12:00:00Z Progress: 0 re-read, 0 unparseable, 0 no longer stored The deployment carries the run in the background. Watch it with 'mfctl mailbox rederive-status --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10'. ``` Asking again while one is going is answered with the run already under way rather than starting a second, so a command you are not sure landed is safe to repeat. How far it has come is a second command: ```console $ mfctl mailbox rederive-status --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10 Scope: every folder under work — under way Requested: 2026-08-18 12:00:00Z Progress: 1,043 re-read, 0 unparseable, 0 no longer stored If it stops moving, look for the work that stopped with 'mfctl jobs dead-letters'. ``` **`rewind` is the one to be careful with.** Some things are your mail server's answer rather than the message's — flags, keywords, the date it received the message — and the only way to learn them is to ask for the mail again. So `rewind` forgets how far synchronization has got, which makes the next runs fetch the whole mailbox over again. It tells you how much that is and asks before it does anything: ```console $ mfctl mailbox rewind --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10 Scope: every folder under work Cost: 22,500 stored emails would be fetched from the mail server, re-read, and stored again. Rewind that scope? [y/N] ``` Say no and nothing changes. Add `--yes` if you are scripting it and there is nobody to answer. **Neither command deletes anything, and neither creates duplicates.** Your mail, its attachments, and everything built from it stay where they are; mail fetched again lands on the message that is already there. Neither one re-embeds anything either, so no refresh can run up a bill with your AI provider. Both take a while on a large mailbox. `rewind` prints how far it has got as it goes, because the command is what does it; `rederive` returns at once and `rederive-status` is where its progress is read. Neither loses what it has already done: a deployment restarted mid-re-derivation picks the run up where it stopped, and mail it had already re-read is not re-read again. [Bringing stored mail up to a later release](operations/admin-endpoint.md#bringing-stored-mail-up-to-a-later-release) is the operator's reference for all three. ## Moving your stored mail into object storage If you configure object storage for message content, MailFathom writes the **next** message there and leaves everything it has already stored in the database. That is deliberate — a change to a configuration file should not start rewriting where your mail is held — and it means switching does nothing for the mailbox you already have until you ask: | What you want | Command | | --- | --- | | See how much is still in the database | `mfctl content move-status` | | Start carrying it into the bucket | `mfctl content move` | | Stop it while the machine is busy | `mfctl content move-pause` | | Set it going again | `mfctl content move-resume` | | Free the copies once you trust the bucket | `mfctl content release` | The first one answers before you have configured anything, which is the point: it tells you how much of your database is message content, so you know what a bucket would take off it. ```console $ mfctl content move To move: 22,500 payloads carrying 1,048,576 bytes Move that content into the object backend? [y/N] y Move: under way Progress: 0 moved carrying 0 bytes, 0 left in the database Watch it with 'mfctl content move-status', and stop it with 'mfctl content move-pause'. ``` The command returns straight away — the deployment does the carrying, a little at a time, so it stays responsive while it works. Closing your terminal stops nothing, and restarting the deployment loses nothing: it picks up where it was and does not copy anything twice. **Every message is checked before and after it moves.** MailFathom compares what it read against what your database recorded for it, writes the object, reads it back, compares again, and only then points the row at the bucket. Anything it cannot vouch for is left in the database, counted, and reported — nothing is lost and nothing is half-moved. `mfctl content move-status` says how many, and asking for another move once you have fixed the cause picks them up. **Pausing is safe and immediate.** It finishes the one message it is holding and stops there; resuming continues from the same place. **Moving copies; it does not remove.** When a message has been carried, MailFathom reads it from the bucket and your database goes on holding it as well — so if the bucket ever fails to answer, the message is still served from the copy you have. That safety net is the point, and it means a finished move leaves your database no smaller than it was. Freeing those copies is a separate command you run when you are satisfied the bucket is answering: ```console $ mfctl content release Retained: 22,500 payloads carrying 1,048,576 bytes Free those copies, leaving the object backend the only place that mail is held? [y/N] y Released: 22,500 payloads carrying 1,048,576 bytes ``` **This one cannot be undone.** What it removes is the last copy of that mail outside the bucket, so nothing does it for you — no interval, no finished move, no restart. It also refuses while any message is still waiting to be carried, and `mfctl content move-status` tells you when nothing is. If you would rather MailFathom hold the copies for a fixed period first, `ContentStorage:Release:SafetyInterval` is where you say how long, and even a release you ask for will not touch anything younger than that. [Moving stored content into the bucket](operations/moving-stored-content.md) is the operator's reference — the order of the steps, what each one costs, and what each refusal is telling you. ## Taking a mailbox out of MailFathom The mail MailFathom stores for you is yours to leave with. `mfctl export` writes one account's stored mail — or one folder of it — into a zip archive holding a Maildir tree: one directory per folder, one file per message holding the bytes exactly as they arrived, and the standard flags in the file names. Other mail software already reads that shape, so what comes out is mail rather than a MailFathom backup only MailFathom opens. It matters most when MailFathom is the **only** holder of that mailbox. An account you have drained has an empty server behind it by design, so this is the whole of how that mail leaves this installation — and the archive it hands you is what a backup of it is made from. | What you want | Command | | --- | --- | | See what an export would carry | `mfctl export measure --account work` | | Ask for one | `mfctl export start --account work` | | Follow it | `mfctl export status --account work` | | Fetch the finished archive | `mfctl export download --account work --export --output mailbox.zip` | | Stop one part way | `mfctl export cancel --account work --export ` | | Delete the archive | `mfctl export delete --account work --export ` | `--folder ` narrows measuring and exporting to one folder, and `--yes` agrees to `start` without being asked, which is what a scripted run needs. **It needs somewhere to put the archive.** An archive is a second full copy of the mailbox for as long as it is kept, so a deployment holding its message content in the database refuses the export and names the setting to change. [Moving your stored mail into object storage](#moving-your-stored-mail-into-object-storage) above is how you give it a bucket. Measuring reads no mail — the figures are summed from what the database already records, so they come back in seconds even for a mailbox of years: ```console $ mfctl export measure --account work To export: 12,480 messages carrying 3,284,140,032 bytes of stored mail Folder Messages Bytes INBOX 8,240 2,147,483,648 ARCHIVE 4,120 1,073,741,824 Sent 120 62,914,560 Nothing was written. Start the export with 'mfctl export start'. ``` The per-folder figures are there so you can see which folder holds the weight, which is the answer when a whole mailbox is more than your deployment's size limit allows in one piece. Starting an export shows the same figures again before it asks: ```console $ mfctl export start --account work To export: 12,480 messages carrying 3,284,140,032 bytes of stored mail Export that mailbox? [y/N] y Export: 0199c3d0-0000-7000-8000-000000000003 State: queued Written: 0 messages carrying 0 bytes Archive: no archive to keep Watch it with 'mfctl export status', and fetch it with 'mfctl export download' once it is finished. ``` The command returns straight away — the deployment writes the archive in the background, so closing your terminal stops nothing. `mfctl export status --account work` lists what the account has, newest first, with the counts advancing while one is being written. **One account writes one archive at a time**: asking again for the same thing answers with the export already running rather than starting a second, and `mfctl export cancel` stops one within a message and deletes whatever it had produced. **The archive does not stay forever.** A finished one is kept for two days and then deleted, which `MailboxExport:Retention` is where you change — the period is how long this deployment is holding that mailbox twice. Downloading writes the file as it arrives rather than holding it in memory, and it **refuses to write over a file that already exists**, leaving that file exactly as it was: for a drained account it is very likely the only copy of an earlier export. Delete the archive once it is safely somewhere else; deleting one already gone is not an error. [Carrying a mailbox out of this deployment](operations/mailbox-export.md) is the operator's reference — what is inside the archive, what an export costs while it runs, and what holding the only copy of somebody's mail obliges you to. ## Background work that stopped MailFathom does most of what it does in the background: classifying a message, embedding a passage, carrying out what a rule asked for. A piece of that work that keeps failing is eventually given up on rather than retried forever, and what is left behind is called a *dead letter* — a record of work nobody will attempt again. Nothing waits on one, so nothing tells you it is there: | What you want | Command | | --- | --- | | See what has stopped | `mfctl jobs dead-letters` | | See what has stopped for one account | `mfctl jobs dead-letters --account 5b0c7d2e-8f41-4a7e-9c1d-2f6b3a9e4d10` | | Run one again, after fixing what broke it | `mfctl jobs retry --job ` | | Decide one will never run | `mfctl jobs drop --job ` | ```console $ mfctl jobs dead-letters Stopped Job Kind Failed Work Queued 2026-08-13 09:30:00Z 0199c3d0-0000-7000-8000-000000000002 classify-email-spam Permanent PayloadUnreadable after 5 attempt(s) account:work|email:0199c3d0-0000-7000-8000-000000000001 for work 2026-08-13 09:00:00Z Run one again with 'mfctl jobs retry --job ', or write it off with 'mfctl jobs drop --job '. ``` **`Failed` is what decides which of the two commands is right.** `Permanent` names something that will fail the same way every time — a credential, a setting, a message the deployment cannot read — so retrying before you have changed something achieves nothing. `Transient` names a dependency that stayed broken for longer than the queue was willing to wait, which is the case `retry` exists for: fix it, or wait for it to come back, and ask again. `retry` runs the same piece of work rather than enqueuing a second one, so it is safe on work that reaches your mailbox. `drop` deletes nothing — the record stays, keeping what stopped it, and it goes on being the reason the same work is not enqueued again. Neither command waits for anything: the deployment writes the decision down and the next worker to come along carries it out, so closing the terminal changes nothing. An empty reading is the ordinary state of a healthy deployment, and it says so rather than printing nothing. [Reading the background work that stopped, and deciding what becomes of it](operations/admin-endpoint.md#reading-the-background-work-that-stopped-and-deciding-what-becomes-of-it) is the operator's reference, and [durable background work](operations/telemetry.md#durable-background-work) is what your monitoring can watch instead of you reading this by hand. ## Mail you asked it to send Sending is the one thing MailFathom does that somebody else notices going wrong before you do. A message that will not leave waits quietly: nothing retries it forever, nothing pages you, and the first sign is usually a person asking why they never heard back. The `outbox` commands are how you look: | What you want | Command | | --- | --- | | See whether anything is stuck | `mfctl outbox status` | | See what is queued, newest first | `mfctl outbox list` | | See only what is waiting | `mfctl outbox list --stage Recorded` | | See who one message is for, and what their server said | `mfctl outbox show --message ` | | Take one back before it leaves | `mfctl outbox cancel --message ` | | Offer one again | `mfctl outbox requeue --message ` | ```console $ mfctl outbox status Stage Messages Recorded 2 TransmissionBegun 1 Sent 418 Refused 3 Cancelled 0 3 message(s) are still waiting. See which with 'mfctl outbox list'. ``` **The stage is what tells you which command is right.** `Recorded` is a message waiting for its next attempt — leave it alone unless it stops moving, and it is the only stage `cancel` applies at. `Sent` and `Cancelled` are finished. `Refused` is a message a server will not take, so offering it again is a decision to disbelieve that and the command makes you say so: `mfctl outbox requeue --message --despite-refusal`. `TransmissionBegun` is the one that needs you. The message began to go out and the server never answered, so **nobody knows whether it arrived** — and MailFathom will not guess on your behalf, because attempting it again might put a second copy in somebody's mailbox rather than fix a failure. Read it with `outbox show`, decide, and then either `requeue` it or leave it where it is. `cancel` means the message reached nobody: the deployment refuses to withdraw one that has begun transmitting rather than racing the worker sending it. `requeue` gives the attempts back and offers the message only to the addresses still outstanding, so nobody a server already accepted it for gets it twice. Neither command waits for anything — the deployment writes the decision down and the next delivery pass carries it out. `mfctl outbox list` names no recipient and no subject, deliberately: a listing of who you write to and when is not something to leave in a terminal. Ask `outbox show` about a message when you need to know who it was for. [Reading what is in the outbox, and deciding about one message](operations/admin-endpoint.md#reading-what-is-in-the-outbox-and-deciding-about-one-message) is the operator's reference, and [what delivering the outbox emits](operations/telemetry.md#what-delivering-the-outbox-emits) is what your monitoring can watch instead of you reading this by hand. ## Keeping your contact book MailFathom holds a contact book of its own — people, the addresses each of them uses, and what you wrote about them — and `mfctl contact` is where you keep it: ```console $ mfctl contact create --name "Anna Kowalska" --address anna@example.test $ mfctl contact add-address --id 018f2b1c-9b3a-7c41-8f7d-2c6a5e9d10ab --address a.kowalska@work.example $ mfctl contact show --address a.kowalska@work.example ``` A contact is a *person* rather than an address, which is why the third command answers with Anna rather than with a match: one person uses a work address, a personal one, and an old one they still receive on, and the book knows those are the same person. [Contacts](features/contacts.md) is what the record holds and every rule it obeys. **Every one of those commands but `mfctl contact delete-collected` acts for one user**, because a book belongs to somebody rather than to the deployment. `--user` is how you say which, and you can leave it off while the deployment holds one person — the command asks and acts on the single one. On a deployment holding several it refuses rather than guessing, and prints the identifiers to choose between. `delete-collected` is the exception because the book it empties belongs to a mail account rather than to a person: it takes `--account` and no `--user` at all. Two of the commands are not conveniences. **`mfctl contact delete` erases somebody** — the record and their addresses go from the database and nothing can put them back, so the command shows you the record and asks first. **`mfctl contact export` writes everything held about a person** as JSON on standard output, which is what you redirect into a file and hand to somebody who asked what you have about them. Those are the two things you will need on a day when somebody asks, and they are commands so that you are not assembling either by hand on that day. Listing is paged on purpose: your contact book is other people's personal data, so there is no command that prints all of it in one go. `mfctl contact list` reads a page and prints the cursor for the next one. [Administering the contact book](operations/admin-endpoint.md#administering-the-contact-book) is the operator's reference for every command, option, and refusal. **The book can also fill itself, and it does not until you say so.** Switching [contact collection](features/contacts.md#collecting-contacts-from-arriving-mail) on for an account records the people that account corresponds with as its mail is synchronized. Those records belong to the **mailbox** rather than to any one person, and everybody assigned that mailbox reads them, so they are read beside a user's own book rather than mixed into it: where both hold one address, the record somebody wrote down is the one served. `mfctl contact promote` is how a user takes one on, and it writes their own copy — the mailbox's record stays where it is, for whoever else is assigned it. If you change your mind about a mailbox filling the book, `mfctl contact delete-collected --account ` erases everything that one account collected, keeps everything anybody entered, and leaves what another account collected alone — and switching collection off in configuration is the separate act that stops that account filling the book again. ## The people this deployment serves `mfctl user` is where every person this deployment serves is recorded and where what MailFathom reads for them is maintained — the one who reads their own mail on a deployment of their own, and each of a household or a small team alike. **Nothing is written into a file**: a user is recorded rather than declared, there is no configuration section that names one, and none that declares a mailbox either. A fresh deployment holds nobody and reads no mail: `mfctl user add` records the first person, and a mailbox declared in their record is what it then reads. A deployment holding no user — a new one, or one whose every user was erased — starts and serves nobody, and says so at startup naming the commands that end it. A person recorded, and a mailbox declared, is served from that moment — no restart. ```console $ mfctl user list 3f1d... (Alex) MCP endpoint: on; client endpoint: on 7c02... (Sam) MCP endpoint: off; client endpoint: on $ mfctl user add --display-name Morgan Recorded Morgan as 9b41.... Their mail accounts are records this deployment holds; no configuration source reaches them. Create one with 'mfctl account add', and provision a way for them to sign in with 'mfctl credential create'. The replica this request reached serves this user now; other replicas pick up the change after their next user write or restart. ``` Every command but `list` and `add` takes `--user` and does not need it while the deployment holds one person: it acts on the single user there is, and refuses rather than guessing where there are several. `mfctl user rename` replaces the label you tell somebody apart by; nothing is keyed by it, so it moves no mail and invalidates no identifier, and the new label lasts — no start reads anybody's label out of a file any more, so there is nobody a rename is undone for. **Keeping somebody off one endpoint is `mfctl user endpoints`.** `--mcp false` stops any agent acting for a person who only reads their mail, and `--client false` keeps an automation account out of the mail client; both switches start on, and one you do not name stays as it is. It holds whichever password, key, or token they present, and whatever they are already signed in with stops working there on their next request. Nothing is deleted, so `--mcp true` lets them back on. The switches live in that person's record, so `mfctl user edit` shows and changes them as `EndpointAccess` too, and they cannot change them from their own client. An endpoint you left requiring no credential has no idea who is calling, so it has nobody to keep off: give it a credential first. **Mailboxes are `mfctl account`, and they are records of their own.** `mfctl account add` creates one from a file and assigns it to a person, and `mfctl account edit` changes its settings. One address is one account in the whole deployment, and an account is served to one person at a time, so adding a mailbox somebody already has is refused, and so is assigning it to somebody else. The file is JSON, or YAML where you name it `.yaml` or `.yml` — the extension decides, the same way it decides for the configuration files you provision. What the deployment stores is JSON either way, so a comment you write to explain a setting stays in your own file. ```console $ mfctl account add --user 7c02... --from-file work.json Created mail account 5b0c.... ``` **Changing more than one thing about somebody at once is `mfctl user edit`.** It opens that person's whole record in your `$VISUAL` or `$EDITOR` and commits what you saved as one change — set it up as `VISUAL="code --wait"` if your editor is a graphical one, since the command reads the file back when the editor exits. Empty the buffer to abandon the session, or save it unchanged, and nothing is written either way. Passwords read back as `(redacted)`, and a marker saved back leaves the credential beneath it alone. A password reference in one of their accounts that had already stopped resolving does not block the edit: the change commits and the command prints that problem after it, so you can correct it before the deployment next restarts — [the endpoint reference](operations/admin-endpoint.md#users-and-their-records) holds the rule. **Add `--format yaml` to read and edit in YAML instead of JSON.** `mfctl user edit`, `mfctl user show`, `mfctl account edit`, `mfctl account show`, and `mfctl config edit` all take it, and `json` stays the default. What you save is converted back to JSON before anything is sent, so `true`, `3`, and an empty value mean what they meant; write `"3"` in quotes when you mean the text. Comments you add are not kept. A buffer that is not acceptable YAML — an anchor, a tag, a key written twice — changes nothing, and the command tells you why and where it kept your edit so you can fix it rather than start again; [editing a document as YAML](operations/configuration-sources.md#editing-a-document-as-yaml) has the whole rule. ```console $ mfctl user edit --user 7c02... Committed user record version 4. The replica this request reached is using this account set now. A synchronization run already in flight finishes against the previous version; the next run uses this one. Other replicas pick up the change after their next user write or restart. ``` **Recording a second person is refused while a surface they reach authenticates nobody.** A deployment serving one person may leave the MCP endpoint open, or hold it with a key, because there is only one answer to whose mail a caller is asking about. With two people there is no such answer, so give the MCP and client endpoints a username and password belonging to a person — `mfctl credential create` is that — or switch them off. The refusal says which of the two applies. A deployment serving nobody is admissible on either surface for the same reason a deployment serving one is: there is no second person for an unauthenticated caller to be handed. **Letting people sign in to the client with your identity provider takes one configuration key and one credential each.** The authorization server is probably already configured, because it is the same `ClientEndpoint:Authentication::OAuth:AuthorizationServers:` block whose tokens the endpoint already believes; what turns it into a way *in* is writing a `ClientId` on it — the client you registered at that server for MailFathom — and registering the address the head comes back to, which is the page's own address for a browser and `http://127.0.0.1:8766/` for the desktop head. The client then draws a control for it beside the password form, or instead of the form where no entry accepts a password. Nothing about the people changes: each person still needs a credential mapping their subject at that server onto their record, `mfctl credential create --method oauth-subject` being that, and a token whose subject you mapped to nobody is refused. `DisplayName` beside the client identifier is what the control says where the server's short name is not the words you want — `keycloak` as the name, so the client draws that provider's mark, and *Nordwind staff directory* beside it. [Offering a person a provider to sign in with](operations/configuration-endpoints.md#offering-a-person-a-provider-to-sign-in-with) has every key, and [what a sign-in screen is offered](operations/client-endpoint.md#what-a-sign-in-screen-is-offered) what a person then meets. **A deployment upgrading from a release that declared its own mailboxes does not start until the section is cleared.** `MailSynchronization:Accounts` is no longer read, and nothing imports what it declared, so a start that ignored it would leave you believing mail was being read that nothing was reading. The refusal names the section and the two commands that replace it: record the person with `mfctl user add`, create each of their mailboxes with `mfctl account add`, credentials included, and remove the section. Whatever else that section decided about them is stated again the same way — the spam classification posture, and the [`SensitiveContent`](features/sensitive-content-scanning.md) block if it stated one, both of which each **mail account's** record carries in blocks of its own. **Taking a mailbox from its last person deletes its mail.** `mfctl account unassign` ends one person's assignment without a restart; while somebody else is still assigned the mailbox, its mail stays theirs, and what goes with the departing person is only what they wrote there — their drafts and the recurring sends they declared, neither of which anybody else could read. Ending the last assignment erases the account and everything stored for it, exactly as `mfctl account delete` does, so both show what they are about to do and ask. A run already in flight drains against the document version it began with. `mfctl user remove` erases the person and every message, folder, attachment, and derived index the deployment holds for them; it shows what it is about to do and asks, and nothing puts it back. Before it deletes anything it stops the deployment reading the mailboxes that were only theirs, and it waits up to half a minute for a run or a job already going to finish — a mailbox still being written to after that refuses the whole erasure, naming what is running, and nothing at all is erased. Run it again once that has ended. **Nobody adds or removes a mailbox from the client.** `mfctl account add` creates each mailbox and assigns it, `mfctl account assign` and `mfctl account unassign` decide who else reads it, and a person signed in to the client changes the folders of a mailbox assigned to them and nothing else about it. [The client endpoint](operations/client-endpoint.md#the-record-routes) states what that surface writes. **Several companies on one deployment sign in under an organization.** `mfctl organization add --short-name TESTFIRMA --display-name "Test Firma"` records one, and `mfctl user set-organization --user 7c02... --organization ` moves a person into it, taking the identifier `mfctl organization list` reports. From then on that person signs in with a password as `TESTFIRMA/username` rather than as `username`, so two companies can each have a `jan`; `--none` moves them back out. `mfctl organization rename`, `set-short-name`, and `remove` maintain the rest, and `mfctl credential list` shows each password credential's login in its "Resolved by" column, so you can read off what somebody should type. **A company can have an administrator of its own.** A role assigned at an organization's scope administers that organization's people — recording them with `mfctl user add --organization `, editing their records, and provisioning their credentials — and nobody else: a person outside it reads to that administrator as somebody this deployment does not hold. [A grant held below the deployment](operations/admin-endpoint.md#a-grant-held-below-the-deployment) lists which acts take a scope and which stay with an administrator over the whole deployment. **A company's mailboxes belong to it too, and are assigned only to its people.** `mfctl account set-organization --account --organization ` moves a mail account into an organization, and `--none` takes it out. An account in an organization is assigned only to that organization's members, and one in none only to people in none, so an assignment across the two is refused naming both, and a move of a person or an account is refused while it would leave an assignment straddling two. Nothing is unassigned for you: unassign first, move both sides, then assign again. An account you create with `mfctl account add` lands in the organization of the person it is created for, and `mfctl account list` and `mfctl organization list` show where each account and how many accounts each company holds. [Organizations](operations/admin-endpoint.md#organizations) holds the rules — what a short name may contain, what a move or an assignment is refused over, and when an organization cannot be removed. **What the deployment or a company states once for its people is a settings policy.** `mfctl policy edit` opens the deployment's in your editor and `mfctl policy edit --organization ` a company's, and `mfctl policy show` reads either: the defaults a person's record and a mail account start from, the values they are held to, and which of the rest the person may change. A save is checked whole and committed whole or not at all, naming every path to correct. What a policy states for people takes effect when it is saved: each person's settings are read through the deployment's policy and their company's, a forced value wins over what their record says, and a default fills in what the record leaves out. A save that would leave somebody's record without something it needs — the language a default used to supply, say — is refused naming those people. `mfctl user show --effective` shows one person's settings as they are served, with what supplied each. What a policy states for mail accounts works the same way for every mailbox in its scope: the server, the folders, or the scanning posture a company states once is what each of its mailboxes is read with, a mailbox's own declaration states only what the policy leaves to it, and `mfctl account show --effective` shows one mailbox as it is served. A policy may also hold the telemetry switch on each person's settings screen on or off: their own answer is kept and comes back when you stop holding it, and holding it **on** reports what somebody declined to have reported, so [read what that sends](operations/telemetry.md#what-the-client-publishes-about-itself) before you do. [Settings policies](operations/admin-endpoint.md#settings-policies) holds what a policy may state and what a save is refused over, and [how a settings policy resolves a mail account](operations/configuration-mail.md#how-a-settings-policy-resolves-a-mail-account) what that means for a mailbox. **Sharing a mailbox is something a company does.** An account in an organization can be assigned to any number of its members, and an account in none belongs to one person: `mfctl account assign` refuses a second person for it and tells you to move it into an organization to share it, and `mfctl account set-organization --none` is refused while the account is assigned to more than one person, saying how many. **What each person may do is a role you give them.** `mfctl role list` shows the roles, `mfctl assignment add` gives one to a person or to a group at the whole deployment, one organization, or one person, and `mfctl group add-member` gives a person everything a group holds. `mfctl user permissions --user ` answers why somebody can or cannot do something: each permission they hold within what you administer, the role and group it came from, and the scope. You can give only what you hold yourself, at a scope you hold it over, and the deployment refuses to revoke, narrow, or remove from a group the last grant that lets anybody change roles. Erasing a person, or moving them to another organization, is not refused that way, so make sure somebody else can change roles before you erase or move an administrator. [Roles, groups, and assignments](operations/admin-endpoint.md#roles-groups-and-assignments) lists the commands, and [administering roles, groups, and assignments](operations/permissions.md#administering-roles-groups-and-assignments) holds the rules. **A role may list a pattern, and one that does grows with each release.** `mailfathom.admin.*` in a role's list holds every administrative permission the running release publishes, one a later release adds included, and the seeded `Administrator` role lists `*`, which is everything. Because nobody holds today what such a role holds tomorrow, only an administrator who may change roles over the whole deployment gives one, or provisions a credential for somebody who holds one — so give the people an organization's administrator looks after roles that list names. [A pattern in a role's list](operations/permissions.md#a-pattern-in-a-roles-list) holds the syntax and the rule. **A row the deployment will not read is named rather than hidden.** A user record, a mail account declaration, or an organization row written by an older build, edited in the database, or restored from a backup may stop reading as one — and each of them costs only itself, so nothing else tells you. `mfctl organization list` names any organization row in that state beneath the listing, and [records this deployment will not read](operations/admin-endpoint.md#records-this-deployment-will-not-read) is the route that reports all three kinds with the settings to correct. A person served this way maintains the folders of the mailboxes assigned to them from [the client](operations/client-endpoint.md) without reaching this command at all — and sees only their own. Who else a deployment serves is administrative, and no surface a person signs in to publishes it. [Administering a deployment](operations/admin-endpoint.md#users-and-their-records) is the operator's reference for every route behind these commands. ## Changing a setting without a restart Most of what MailFathom reads comes from the files your deployment provisioned, and those stay yours: nothing in the process edits one. What a deployment persists for itself is a document in the database, layered above those files, and `mfctl config` is where you read and change it: ```console $ mfctl config show MailboxSearch MailboxSearch: SnippetsPerEmail = 3 [file (10-deployment.json)] WordsPerSnippet = 12 [persisted-layer] 2 settings, over persisted configuration version 7. $ mfctl config set MailboxSearch:SnippetsPerEmail 5 ``` **Every value comes with where it was decided**, and that is half the answer. A deployment reads its settings from files, from that persisted document, and from an environment variable or a command-line argument somebody put beside the process — so before changing anything, the reading tells you which of those you would actually have to edit. A value an environment variable is supplying is refused rather than persisted, naming the source that outranks the persisted layer, because persisting it would spend a version and change nothing you read. `mfctl config unset` gives one setting back to the file beneath it. `mfctl config edit` opens the whole persisted document in your `$VISUAL` or `$EDITOR` and commits what you saved as one change, which is what you want when a change spans half a section — set it up as `VISUAL="code --wait"` if your editor is a graphical one, since the command reads the file back when the editor exits; `--format yaml` opens it as YAML instead. And `mfctl config adopt` copies what your files decide beneath a path into the database, which is the one thing here that stops a file deciding a value; it shows you exactly what it would take and asks first. A setting that holds a credential reads back as `(redacted)` everywhere, including in the editor — the document holds a reference to where the material is kept rather than the material, and neither reaches your screen. [Configuration sources](operations/configuration-sources.md#reading-and-changing-settings-from-mfctl) is the whole of what a write proves before it commits and every refusal it can answer with. ## Where to go next - [Administering a deployment](operations/admin-endpoint.md) — the operator's reference for everything above - [Configuration sources](operations/configuration-sources.md) — where every setting can come from, and what `mfctl config` changes - [Users and their records](operations/admin-endpoint.md#users-and-their-records) — every route behind `mfctl user`, and what each refusal names - [Contacts](features/contacts.md) — what the contact book holds, and every rule a writer of it obeys - [Mail rules](features/mail-rules.md) — every fact, operator, and action a rule can use - [Carrying a mailbox out of this deployment](operations/mailbox-export.md) — what an export carries, what it costs, and what holding the only copy of a mailbox obliges you to - [Mailbox OAuth](operations/mailbox-oauth.md) — registering the application, and every mode of the sign-in above - [Changing the embedding model](operations/embedding-profiles.md) — what activating, switching, and rolling back cost - [Endpoint configuration](operations/configuration-endpoints.md#adminendpoint) — every `AdminEndpoint` key - [Secret provisioning](operations/secret-provisioning.md) and [rotation](operations/secret-rotation.md) — how the key on the server is supplied and replaced --- Copyright © 2026 Krzysztof Kasprowicz Licensed under the GNU Affero General Public License, Version 3. See LICENSE in the project root for license information. Project repository: https://github.com/fathomise/MailFathom