Table of Contents

Endpoint configuration

Every key deciding where each of the four surfaces is served, what a caller has to present to reach one, and how much traffic and how long a request each will take, plus the one endpoint on this page MailFathom dials rather than binds: the signal backplane the client surface fans its signals across replicas over. What an admitted caller may then do is a grant rather than a listener setting, and what a credential may do is the whole of it. The tables read as the configuration reference says they do, and that page is the map to the rest of the sections.

Where each surface is served

Every socket this process opens is named by the section of the surface that owns it, and by nothing else. McpEndpoint, AdminEndpoint, and ClientEndpoint each state a BindAddress, a Port, and a Transport; HealthEndpoints states the same three under a smaller set of TLS settings. Read those four sections and you have read every listener the process binds.

The host's own ways of naming a listener are refused at startup. ASPNETCORE_URLS, ASPNETCORE_HTTP_PORTS, ASPNETCORE_HTTPS_PORTS, --urls, and any endpoint under Kestrel:Endpoints each fail the process with a message naming the setting that replaces them. They are refused rather than ignored because ignoring them is silent: Kestrel drops the URL-shaped addresses as soon as a listener is bound in code — which every surface here does — and binds a configured endpoint beside them on a socket no section describes, no credential guards, and no isolation middleware was composed for. An operator who states a port deserves to be told it moved, not to find the surface answering somewhere else.

A deployment that enables no surface at all is refused for the same reason. Kestrel answers zero listeners by binding its own default address, and a development certificate on the machine would add a TLS one beside it, so the process would hold a socket nothing configured.

Transport

McpEndpoint:Transport, AdminEndpoint:Transport, and ClientEndpoint:Transport each decide what that surface's clear-text socket does. The HTTPS half is the profiles under Https:Endpoints, each with its own domain, certificate, TLS floor, and HTTP versions.

Value The socket at BindAddress:Port Https:Endpoints
Http Serves the routes Must be empty
HttpAndHttps Redirects to the profiles, or serves the routes when Https:Redirect:Enabled is false Bind
HttpsOnly Not opened at all Bind

Http is the default, so adopting a release costs no certificate work, and it is the right posture behind a TLS-terminating reverse proxy and wrong anywhere else — startup warns about it either way, because only an operator knows which they have.

HttpsOnly is the posture that leaves nothing reachable in clear text. HttpAndHttps keeps the clear-text socket, and the redirect is on unless a deployment turns it off, so enabling TLS does not read as an outage to a client nobody has repointed yet; turning the redirect off is what makes that socket serve the routes, which is the deliberate both-schemes posture rather than the migration one. HealthEndpoints:Transport takes the same three values, and because the probes carry one certificate rather than profiles, its HttpAndHttps needs a second port of its own in HealthEndpoints:HttpsPort.

Sharing a socket

Two surfaces, or all four, may name one port. That is the posture a single-node deployment behind one ingress wants — one socket to publish and one backend to route — and it is why all three request-serving surfaces default to 8080 for clear text and 8443 for a profile. The port is bound once and serves each surface's own paths; which paths a request may ask for is decided from the port it arrived on, so a surface that is not on that port is still refused there with a 404. The one exception is the HTTP API document and the explorer, which belong to no surface and answer on every bound port — and which exist only in a Development process.

What sharing costs is exposure. The probes answer without a credential and the administrative surface is a different authority from the mailbox, so putting either on the endpoint's port publishes it wherever that port is published. Keep them apart when that matters; the ports exist so the decision is yours.

Which settings a shared socket couples

Sharing is per socket, not per surface. Each surface declares its clear-text socket (BindAddress + Port) and one socket per HTTPS profile (Https:Endpoints:<n>:BindAddress + :Port) separately, so two surfaces may share the clear-text one and keep TLS sockets of their own. Every rule below applies to one socket at a time, and each failure names both sections.

Setting Coupled on Why it cannot differ
Transport — whether this socket carries TLS Every shared socket One socket serves one scheme
Https:Redirect:Enabled A shared clear-text socket The socket either redirects or serves the routes; it cannot do both
The domain a redirect resolves A shared redirecting socket The client sent one host name, so two answers to it would be settled by composition order
Profiles by server name vs one certificate A shared TLS socket A socket answers a handshake one way; the probes present one certificate and the endpoints select by name
ClientCertificateProfiles — configured or not A shared TLS socket Whether a certificate is asked for is settled while the connection is established
Https:Endpoints:<n>:Domain — uniqueness A shared TLS socket One name served by two surfaces would leave composition order deciding which the client reached
Https:Endpoints:<n>:HttpProtocols A shared TLS socket ALPN offers what the listener was bound with, which is before any server name has been read
BindAddress — a wildcard beside a specific address The same port The operating system grants only one of those two sockets

What stays each surface's own, on a shared socket as much as on a separate one:

  • The HTTPS ports. Two surfaces sharing a clear-text socket may redirect to profiles on ports of their own, because a redirect resolves the name the client asked for: mail.example.test goes to the MCP endpoint's port and admin.example.test to the administrative one, from the same 8080. Only publishing one name at two ports is refused.
  • MinimumTlsVersion, per profile. The TLS floor is settled per connection, after the server name is known, so profiles on one socket may each keep their own.
  • Different domains on one TLS socket, which is what sharing one is for.
  • Everything decided per request rather than per socket: Authentication and every method it carries, Cors, RateLimiting, origin validation, and the route prefix. An API key provisioned for an agent still authenticates nothing under /api/admin, whichever port both are reached on.

Two specific addresses on one port are two sockets and are accepted; none of the rules above applies between them.

ReverseProxy

Which peers this process accepts a public scheme, host, and client address from, when something in front of it terminates TLS. One section for the whole process rather than one per surface: it runs at the front of the one request pipeline every listener shares, so a proxy named here is trusted on each of them. Behind a TLS-terminating reverse proxy is the page.

X-Forwarded-Proto and X-Forwarded-Host are always read; there is no key that switches that off. What the section carries is who they are believed from, and an unconfigured section believes every peer.

Key Type Default Constraint Change
ReverseProxy:TrustedProxies string list empty, which trusts 0.0.0.0/0 and ::/0 Each entry an IP address or a CIDR network whose host bits are clear — not a DNS name. What is named replaces the default rather than adding to it, and the framework's loopback default is cleared rather than inherited. Left empty, or written as 0.0.0.0/0 and ::/0, it trusts every peer and so disables the refusal of an OAuth token that arrived without TLS — see what the default costs restart
ReverseProxy:MaximumForwardedHops int 1 At least 1; how far right-to-left through each header a value is believed restart

X-Forwarded-For is read only when TrustedProxies names a proxy and no entry covers a whole address family, and then only from a peer it names; otherwise the peer MailFathom observes stays the one that opened the connection. The client address it yields is what the password bound and a credential's source networks compare, which is why provisioning a restriction is refused while no proxy is named, and why a start warns once restrictions exist and the section stops naming one. The configured OAuth Resource stays a value you wrote rather than anything derived from a header.

ConnectionLimits

How many connections this process accepts at once, across every listener it opens. The other section that belongs to the whole process rather than to a surface, and for a stronger reason than ReverseProxy: a connection is accepted before any routing has decided which endpoint it was for, so there is no per-surface form of this question to ask.

Read it as the process's ceiling, never as the sum of what the endpoints permit. McpEndpoint:RateLimiting:MaxConcurrentRequests bounds what one surface serves at once; this bounds what the machine accepts at all, the probe listener included. The two numbers are deliberately far apart, because a connection is not a request — a client holds one open across several, and an idle one survives until the keep-alive timeout — so a ceiling near the request limit would refuse ordinary clients long before it refused a flood.

It exists because every other limit is reached too late to see this. The rate limiter partitions a request that already has an HttpContext, and what a connection flood spends before that point — the accept, the TLS handshake, and on the MCP surface the client certificate's chain building — is the most expensive per-connection work the process does.

Key Type Default Constraint Change
ConnectionLimits:Enabled bool true Turning it off restores the framework's own default, which accepts connections until the operating system stops supplying them; it costs a startup warning restart
ConnectionLimits:MaxConcurrentConnections int 1000 1 – 100000; process-wide, across every listener restart

Like every limit here it is counted in this process alone, so a deployment running several instances enforces it once per instance rather than once in total, and none of it is protection against a distributed flood.

McpEndpoint

Whether the protocol surface is served and what a client must present. The whole section is restart — it decides routing and listeners — while key and certificate material is read per request or per handshake. Where it is served is its own BindAddress, Port, and Transport. The MCP endpoint is the page, section by section.

Key Type Default Constraint Change
McpEndpoint:Enabled bool false — restart
McpEndpoint:BindAddress string 0.0.0.0 An IP address; binds the clear-text socket, which HttpsOnly does not open restart
McpEndpoint:Port int 8080 1–65535. The administrative and client endpoints' default as well — see sharing a socket restart
McpEndpoint:Transport enum Http Http, HttpAndHttps, HttpsOnly — see Transport restart
McpEndpoint:Authentication list of credentials empty One entry per accepted credential; empty warns at startup. A value written here rather than a list fails startup restart
McpEndpoint:PublishedToolCategories string list absent = every category mailbox, flags, sending, drafts, answering, contacts, in any case; a name nothing publishes fails startup naming the value and listing what is accepted. Only narrows — see what the endpoint publishes restart

What the endpoint publishes

The coarse answer to what this instance offers, beside the per-capability switches that decide what it can do. Every category is published unless the list names some, so a deployment written before the setting existed keeps the surface it had, and an endpoint that should offer nothing at all is one with Enabled set to false.

A category only ever takes away. Naming sending does not enable sending — the account's own switches decide that — and no category widens a grant or reveals a tool a caller was not offered. A tool appears when its capability is available, its category is published, and the caller's grant reaches it.

A connecting client may narrow further for its own session, by naming categories in the MailFathom-Tool-Categories header. The effective set is the intersection with the list above, so a category this list excludes is never published because a client asked for it. Tool categories states which tools each category carries and what the header does with a value it cannot read.

The accepted methods — McpEndpoint:Authentication:<n>

Each entry names one method the endpoint accepts and carries whatever that method needs from a deployment. The credentials themselves are records beside the user each resolves, provisioned over the administrative endpoint, so nothing here names a key, a public key, a subject, or a grant. Each method is accepted at most once — oauth-subject excepted, since an entry states one authorization server's terms — and an entry naming no published method, or carrying a block another method owns, fails startup named by its position. All three request-serving endpoints take these entries, each its own list; a credential is presented on an endpoint only where it lists that endpoint, and the administrative one only where it was provisioned to.

Key Type Default Constraint Change
…:<n>:Method string — Required; one of password, api-key, public-key, oauth-subject. Compared without regard to case, because it is written by hand. A word no method publishes, and a repeat of one an earlier entry accepts, each fail startup naming the entry's index — oauth-subject excepted, which may be written once per authorization server restart
…:<n>:Basic block — Written only on an entry accepting password. Permitted on a surface that answers its routes over clear text, and warned about at every startup instead — the warning names the surface, the port, and that a password crosses that hop readable, and a proxy named in ReverseProxy:TrustedProxies changes what it describes rather than silencing it restart
…:<n>:Basic:AttemptsPerMinute int 10 Wrong passwords one source and one login each get per minute — the login being the organization's short name in front of the username where it names one — spent only by a wrong password and returned a minute after it; the source axis is skipped for a peer ReverseProxy:TrustedProxies names, whose address reports the proxy rather than the client; 1 to 600 restart
…:<n>:Basic:MaxConcurrentVerifications int 128 Password verifications the surface may have in flight at once, whatever logins they name — what a caller varying the login can make one replica derive together; 32, which is what one source or one login may already hold, to 512; one replica's, so n replicas derive up to n × this restart
…:<n>:PermissionsFromTokenScopes bool false Narrows each token's own credential grant by that token's scopes. Written only on an entry accepting oauth-subject, since no other method carries a token to read a scope from restart
…:<n>:OAuth block — Required on an entry accepting oauth-subject, and refused on every other restart
…:<n>:OAuth:Resource string — Required; the canonical https URL clients reach this endpoint at — behind a proxy, the proxy's public URL. Every OAuth entry names the same one, because the endpoint publishes one metadata document at an address derived from it restart
…:<n>:OAuth:RequiredScopes string list empty Scopes a token from this entry's servers must carry; empty accepts any token they issued for this resource. A permission name is refused here, because requiring one would close the door on a caller the deployment meant to serve less, and so is a pattern covering permissions, because a scope is compared byte for byte and no authorization server can mint one restart
…:<n>:OAuth:AdvertisedScopes string list empty Scopes published in scopes_supported for a client to ask for and checked on no token — offline_access is what a client needs to be issued a refresh token. Every required scope is published regardless, so a value repeating one is refused, as is one that is not a scope token, as is a permission name — the grant that reads one advertises it already — and as is a pattern covering permissions, since the grant publishes the names one resolves to restart
…:<n>:OAuth:AuthorizationServers:<m>:Name string — Required; the identity diagnostics use, and unique across every entry because it composes the scheme its validator registers under restart
…:<n>:OAuth:AuthorizationServers:<m>:Issuer string — Required; a well-formed https issuer, compared against iss exactly, and unique across every entry restart
…:<n>:OAuth:AuthorizationServers:<m>:MetadataAddress string unset An absolute https URL on the issuer's own host; overrides issuer-derived discovery restart
…:<n>:OAuth:AuthorizationServers:<m>:ClientId string unset The identifier a browser starts an authorization code flow with, registered by you at that server for the MailFathom client. Written, the server becomes a sign-in method the client endpoint publishes to a browser and a person is offered a control for it; unset, the server goes on validating tokens and is offered to nobody, which is what a deployment serving agents alone stays. Refused when the key is written and left empty. Read on ClientEndpoint alone — a browser signs in to no other surface, so the client endpoint is the only one that publishes it restart
…:<n>:OAuth:AuthorizationServers:<m>:DisplayName string the name The words the sign-in control carries, where they should not be Name. It exists because the name is also what a client matches its provider marks against, so a deployment wanting Nordwind staff directory under the Keycloak mark writes keycloak as the name and that sentence here. Refused when the key is written and left empty restart

MailFathom is a protected resource only; an external authorization server signs users in. OAuth records what a token must prove and scopes you advertise but do not require why the published list is longer than the checked one, API keys what a key is compared against, Key pairs what a client signs and what the deployment verifies — including the audience, expiry, and replay identifier an assertion carries, none of which is a setting — and Passwords what a deployment must arrange before it may accept one at all.

Browser origins — McpEndpoint:Cors

Key Type Default Constraint Change
…:AllowedOrigins string list absent = every origin * for every origin, a list for exactly those, an empty list for none restart

The default is deliberately the permissive one — an Origin header only exists in browsers, and a client that is not one is unaffected — but a deployment reachable from a browser should narrow it. A client rendering in a webview is a browser here, whatever it was installed as, so narrowing means listing its origin rather than leaving it out. CORS and the Origin header explains what the check does and does not protect.

TLS termination — McpEndpoint:Https:Endpoints:<n>

Read under the two Transport modes that terminate TLS and refused under the one that does not. Configuring any profile takes over the host's listeners: only the profiles' sockets are opened. HTTPS and your own domain is the page.

Key Type Default Constraint Change
…:Name string — Required; unique restart
…:Domain string — Required; the DNS name the certificate is proven to cover restart
…:BindAddress string 0.0.0.0 An IP address restart
…:Port int 8443 1 – 65535 restart
…:MinimumTlsVersion enum Tls12 Tls12, Tls13 restart
…:HttpProtocols enum list Http1, Http2 Http1, Http2, Http3; selecting Http3 where the platform provides no QUIC fails startup rather than falling back, and naming it without Http1 or Http2 beside it fails startup because nothing would advertise it restart
…:ServerCertificate certificate block — Required; see below restart; renewal behind unchanged references — see secret rotation

A certificate block names either Bundle (one PKCS#12 secret block, optionally with a nested Password) or the pair CertificateChain and PrivateKey (PEM, as two secret blocks). Startup proves the material loads, covers the stated domain, and is not expired — before any listener opens.

Clear-text redirect — McpEndpoint:Https:Redirect

What the surface's clear-text socket does while the profiles above are served. On, it answers every request with a 308 to the address those profiles are at, so enabling TLS does not read as an outage to a client nobody repointed yet; it then maps no route and runs no credential check. Off, the same socket serves the routes in clear text.

The socket is McpEndpoint:BindAddress and McpEndpoint:Port — there is no address here to state again. The section is meaningful under Transport: HttpAndHttps alone, which is the one mode with both a clear-text socket and somewhere to send what arrives on it; writing it under either other mode fails startup. Redirecting a client still pointed at http:// records what a redirect does and does not protect.

Key Type Default Constraint Change
…:Enabled bool true Refused unless Transport is HttpAndHttps restart

Client certificates — McpEndpoint:ClientCertificateProfiles:<n>

Mutual TLS, judged per configured client application. A certificate exists only on a TLS connection this process terminates — over the HTTPS profiles above, or over a listener the deployment configured with TLS otherwise — so a plain-HTTP deployment presents none, which a Required profile refuses. Client certificates records how a presented certificate is judged.

Key Type Default Constraint Change
…:Name string — Required; unique restart
…:Requirement enum — Optional, Required; required to be stated restart
…:TrustAnchors list of secret blocks — At least one; the authorities the client's chain must anchor in restart; material per handshake
…:SubjectAlternativeNames string list — At least one; a DNS name the certificate must carry restart

Rate limiting

One of the two endpoint subsections where every value has a product default — request timeout is the other — so an enabled endpoint is bounded whether or not anyone wrote a number. McpEndpoint:RateLimiting, AdminEndpoint:RateLimiting, and ClientEndpoint:RateLimiting carry it, with the same keys, defaults, and validation, and configure it independently: no endpoint's traffic reaches another's limits. Rate limiting records whose capacity a request spends, and administering a deployment records the one behavioural difference on the administrative endpoint — its burst is the endpoint's rather than one caller's, because that surface judges a credential behind the limiter.

The numbers are the deployment's and each user is given them. A user's every credential spends one bucket and one concurrency allowance of the configured size, independently of every other user; no user, credential, or organization carries a limit of its own.

Every value here is one process's, and a deployment of n replicas admits up to n × it. The limiter counts in this process's own memory, which is what a limiter in front of a socket can count: a caller whose requests reach two replicas spends a bucket on each. That is deliberate rather than a gap — the thing being protected is each process's capacity to serve, and a deployment behind a load balancer bounds a caller at the balancer, where every one of that caller's requests is visible. ADR 0031 records the rule these follow: a rate that names a provider's quota becomes the deployment's, and an in-flight count over this process's own resources stays a process's and says so.

Key Type Default Constraint Change
…:Enabled bool true Turning it off costs a startup warning restart
…:MaxConcurrentRequests int 48 1 – 1000; process-wide, across every user of the endpoint — n replicas admit n × this restart
…:MaxConcurrentRequestsPerUser int 8 1 – 999, and below MaxConcurrentRequests; what one user may hold of it at once at one replica restart
…:ConcurrencyQueueLimit int 0 0 – 1000; the process-wide limit's queue, 0 refuses instead of queueing restart
…:TokenCapacity int 120 1 – 1000000; the largest burst one user may spend at one replica restart
…:TokensPerReplenishmentPeriod int 120 1 – 1000000, and not above TokenCapacity restart
…:ReplenishmentPeriod TimeSpan 00:01:00 1 s – 1 h restart
…:RequestQueueLimit int 0 0 – 1000, and below MaxConcurrentRequests restart

Request timeout

How long one request may run before the endpoint abandons it, answering 504 and releasing the concurrency permit it held. Defaulted throughout like the rate limits, carried by all three request-serving endpoints with the same keys, and configured independently of them — because how much traffic is admitted and how long an admitted request may hold what it was admitted with are different questions, and a deployment may already have one answered in front of the process without the other.

Without it, MaxConcurrentRequests bounds how many requests run at once and nothing bounds how long any of them lasts, so twenty slow requests take a surface out of service without exceeding any rate.

Key Type Default Constraint Change
…:Enabled bool true Turning it off costs a startup warning restart
…:Duration TimeSpan 00:10:00 1 s – 1 h restart

The default is a bound on a hang rather than a promise that no legitimate request is abandoned. An ask_mail run is a conversation whose length the model decides, bounded by MailAnswering:MaxProviderCallsPerRun at eight calls, each an AiProviderInvocation whose own TotalTimeout defaults to five minutes — so a ceiling enclosing the maximum would sit at forty minutes, which is not a request ceiling and would let one stalled run hold a concurrency permit that long. Ten minutes clears an ordinary answering run by a wide margin and abandons one that walks its whole provider budget, which is the trade taken. Raise it alongside MailAnswering:MaxProviderCallsPerRun if you raise that. A deployment serving no AI-backed tool narrows it instead: every other MCP tool answers from the local mailbox copy with a bounded query, so a minute is generous there. AdminEndpoint reaches no provider at all, which makes it the endpoint to narrow without having to ask what a tool call needs.

Both are attached to each surface's own routes rather than applied as the process's default policy. A default limiter or a default ceiling would count a readiness probe against the capacity a caller is spending, so a deployment under load would start failing the probe that decides whether it is taken out of service.

The ceiling is applied ahead of the rate limiter, so time a request spends waiting for a limiter lease is inside it. That wait is nothing under the default queue limits of 0, and is the whole point of the ordering once a queue is configured: a request queued for its caller's tokens already holds a concurrency permit.

AdminEndpoint

Whether the administrative surface the mfctl command reaches is served, and what a client must present. Its own listener, its own accepted methods, and its own authorization servers: a credential is presented here only where it lists admin, so a key provisioned for the MCP endpoint authenticates nothing here, and the reverse holds. The whole section is restart, while key and certificate material is read per request or per handshake. Administering a deployment is the page.

Key Type Default Constraint Change
AdminEndpoint:Enabled bool false — restart
AdminEndpoint:BindAddress string 0.0.0.0 An IP address; binds the clear-text socket, which HttpsOnly does not open restart
AdminEndpoint:Port int 8080 1–65535. The MCP and client endpoints' default as well, so enabling several without stating a port publishes one shared socket — see sharing a socket restart
AdminEndpoint:Transport enum Http Http, HttpAndHttps, HttpsOnly — the same setting the MCP endpoint carries, read the same way restart
AdminEndpoint:Authentication list of methods empty, which serves every caller as the default administrator admin One entry per accepted method, in the shape the MCP and client endpoints take: password, api-key, public-key, and oauth-subject are all accepted. A caller is admitted when a credential listing admin resolves its user and that user holds an administrative role — see who administers the deployment. Every OAuth block's Resource must end in /api/admin, because that is where these routes answer and what mfctl appends to find the metadata document; a client assertion presented here names the audience urn:mailfathom:admin. Empty warns at startup restart; material per request
AdminEndpoint:Administrators — — Not read. A configuration carrying it fails startup naming what replaces it —
AdminEndpoint:Cors:AllowedOrigins string list absent = every origin * for every origin, a list for exactly those, an empty list for none. The same setting the MCP and client endpoints carry, configured separately restart
AdminEndpoint:Https:Endpoints:<n> list of profiles empty Same shape and rules as McpEndpoint:Https:Endpoints:<n>, read under the two Transport modes that terminate TLS restart; material per handshake
AdminEndpoint:Https:Redirect block on Same shape and rules as McpEndpoint:Https:Redirect; its socket is this surface's own BindAddress and Port, so terminating TLS on both surfaces opens two clear-text ports that do not collide restart
AdminEndpoint:RateLimiting block bounded Same shape, defaults, and rules as McpEndpoint:RateLimiting above; applied whether or not it is written restart
AdminEndpoint:RequestTimeout block bounded Same shape, defaults, and rules as McpEndpoint:RequestTimeout above; applied whether or not it is written. This surface reaches no AI provider, so it is the one the default can be narrowed on freely restart

The routes are served beneath /api/admin, which is a constant rather than a setting: a client is configured with a host and a port and appends the rest.

ClientEndpoint

Whether the surface the MailFathom client reaches is served, and what a client must present. Its own listener, its own credentials, and its own authorization servers, exactly as the administrative endpoint has: a key configured under McpEndpoint or AdminEndpoint authenticates nothing here, and one configured here authenticates nothing there. The whole section is restart, while key material is read per request. The client endpoint is the page.

What a grant here draws on is the user-facing half of the published set — the same half the MCP endpoint's grants come from, because the client reaches the records an agent reaches. Only the transport is separate.

Key Type Default Constraint Change
ClientEndpoint:Enabled bool false — restart
ClientEndpoint:BindAddress string 0.0.0.0 An IP address; binds the clear-text socket, which HttpsOnly does not open restart
ClientEndpoint:Port int 8080 1–65535. The other two request-serving endpoints' default as well — see sharing a socket restart
ClientEndpoint:Transport enum Http Http, HttpAndHttps, HttpsOnly — the same setting the other endpoints carry, read the same way restart
ClientEndpoint:Authentication list of methods empty Same shape and rules as McpEndpoint:Authentication:<n>, with two additions: every OAuth block's Resource must end in /api/client, because that is where these routes answer and what the client appends to find the metadata document; and a client assertion presented here names the audience urn:mailfathom:client restart; material per request
ClientEndpoint:Cors block every origin Same shape and rules as McpEndpoint:Cors, configured separately. The setting no client but the page this deployment serves itself can start without, a downloaded head included — see browser origins and the origin a downloaded head sends restart
ClientEndpoint:Https:Endpoints:<n> list of profiles empty Same shape and rules as McpEndpoint:Https:Endpoints:<n>, read under the two Transport modes that terminate TLS. HTTP/3 on this surface is what HttpProtocols means for a browser restart; material per handshake
ClientEndpoint:Https:Redirect block on Same shape and rules as McpEndpoint:Https:Redirect; its socket is this surface's own BindAddress and Port restart
ClientEndpoint:RateLimiting block bounded Same shape, defaults, and rules as McpEndpoint:RateLimiting above; applied whether or not it is written restart
ClientEndpoint:RequestTimeout block bounded Same shape, defaults, and rules as McpEndpoint:RequestTimeout above; applied whether or not it is written restart
ClientEndpoint:TelemetryLevel enum Info Trace, Debug, Info, Warn, Error, Fatal, None — the lowest severity a client is asked to record about itself, or None for no log record at all, published on the session route and applied by the client before a record is written. The default for every client rather than the only answer: a person whose record states a ClientTelemetryLevel is served theirs instead, without a restart and without changing what anybody else is served. Read only where a collector is named; a deployment forwarding nothing publishes off whatever this and every record says. None silences log records alone: a client's traces and metrics are forwarded as under every other level, and a batch of log records from a caller whose level resolves to None is refused, so the level is held by the deployment rather than asked of a client. A value outside the seven stops the start, naming the key and the values it takes. Debug is what a defect report is worth turning on — for one person on their record rather than here, see what the client publishes restart
ClientEndpoint:Application:Enabled bool false Refused unless ClientEndpoint:Enabled is on. Serves the client bundle every published image carries from this endpoint's own listeners. A host given an image built without the client stage refuses this at startup, naming the setting, rather than answering 404s restart
ClientEndpoint:Application:AllowClearText bool false Required before the page is served over a socket this process opens in the clear, and refused where it is not — see serving the page restart

There is no ClientCertificateProfiles here: the trust question a certificate answers is a second one this surface does not yet ask.

Offering a person a provider to sign in with

A server written with a ClientId becomes a way in rather than only a way a token is trusted, and three things follow from writing one. The client endpoint publishes it, unauthenticated, at /api/client/sign-in-methods — the issuer, the name, the display name, and that client identifier, none of which is a secret — because a browser has to know what to draw before it holds anything. The page this deployment serves is served under a content security policy widened by that issuer's origin, so the client may read the server's discovery document and redeem a code there; a deployment publishing no such server serves the policy its build wrote, unchanged. And the sign-in screen stops offering a password form where no entry accepts one, which is what makes a token-only deployment a screen somebody can use rather than a form nobody can submit.

Name one of them self to have the client draw it as this deployment's own way in rather than as a third party's. It is a drawing instruction and nothing more: MailFathom issues no token and serves no login page whatever it is set to, the profile carrying it is an ordinary authorization server — yours — and every rule above applies to it unchanged. At most one server across a surface may carry the name, which the rule against a repeated name already enforces.

Register the redirect address at the authorization server before anybody signs in. There are two, because the two heads come back differently, and each is compared exactly by the server: the web head is redirected to the address of the page itself — https://mail.example.test/app/ where a published image serves it — and the desktop head is redirected to http://127.0.0.1:8766/, a loopback address its own shell listens on while the sign-in is in flight. Register whichever heads your people use. A server that has neither refuses the authorization request rather than the token, so the person meets it at the provider's own screen.

The client endpoint is where the published document and what a client does with it are described.

Serving the page — ClientEndpoint:Application

ClientEndpoint:Application:Enabled is the one setting that turns the client on, and what it adds is static files: a client bundle, answered beneath /app/ on the listeners this endpoint already serves. Every published image carries one, so writing it serves a page; an artifact built without the client stage is the one host that still fails at startup, and the refusal names the setting. Nothing else changes. The routes beneath /api/client are the same routes, judged by the same credentials and the same grants — the page holds none of its own, because a browser has to load the application before it can obtain one, and what that application then calls is authorized exactly as any other caller is. A deployment that leaves this off serves the routes and no page, which is what every default here does.

ClientEndpoint:Application:AllowClearText is the transport half, and it is a declaration rather than an inference, for the reason a provider address in the clear needs one: nothing here can tell a socket behind a TLS-terminating ingress from one published to a network. So the page is refused at startup when this process would serve it over a clear-text socket it opens itself, and the refusal names both ways out — terminate TLS here with ClientEndpoint:Transport: HttpsOnly and a ClientEndpoint:Https:Endpoints profile, or state that something in front of this process already did by writing ClientEndpoint:Application:AllowClearText: true. A socket that only redirects to HTTPS needs no permission, because it serves nothing. Permitting clear text is reported at every startup rather than assumed to still be true.

The routes are served beneath /api/client, which is a constant rather than a setting, for the reason /api/admin is one — a client is configured with a host and a port and appends the rest. There is no version segment in it.

SignalBackplane

The RESP endpoint a signal raised on one replica reaches the other replicas' client connections over. It is the one section here that names somewhere MailFathom connects to rather than a socket it opens, and it exists for one deployment shape: more than one replica serving the client surface, where the replica that synchronized an account is routinely not the one holding the connection that has to hear about it. A deployment running a single replica needs none of this and should write none of it.

Writing no section registers nothing. No connection is opened, no library is asked for, and the host behaves exactly as one built before this section existed. Writing the section makes every replica connect, whichever surfaces it serves, because the endpoint also carries the announcement that a configuration change committed — what reaches every replica is that half. Client signals are fanned out over it only where the client surface is served. What losing the backplane costs, and what a client does about it, is the signal channel.

Key Type Default Constraint Change
SignalBackplane:ConnectionString secret block none Required once the section is written. A StackExchange.Redis configuration string — host:port at its smallest, with the options that library reads beside it. Resolved through secret provisioning like every other credential, because it usually carries one restart
SignalBackplane:ChannelPrefix string mailfathom Non-empty. Prefixes every channel this deployment publishes and subscribes to, so two deployments sharing one RESP server do not hear each other restart

The connection string is a secret block rather than a string, for the reason every other credential here is one: a RESP endpoint is usually reached with a password, and a password written into a configuration value is a password in whatever the operator's configuration is backed by. A section naming no connection string is refused at startup, as is one whose channel prefix was written empty.

The material is read once and then kept for the life of the process, which is the one place this section departs from every other credential here. It is resolved when a connection is first wanted rather than while the host is composed — that is what lets a replica whose endpoint is down finish starting — and the endpoint parsed from it, password included, is what every later reconnection uses. So a credential rotated behind an unchanged reference takes effect at the next start rather than on the next attempt, and rotating it is a restart to schedule.

The default prefix separates one MailFathom from something else, never one MailFathom from another. mailfathom is the same literal in every deployment that writes no prefix, so two of them pointed at one RESP server publish and subscribe under the same channels: each one's statements reach the other's client connections, carrying an account alias, a folder alias, and the two lines of a raised notification. A deployment sharing a RESP server with another MailFathom therefore writes a prefix of its own, and a deployment sharing one with anything else is already separated by this default.

An unreachable endpoint does not stop the host. The connection is opened with AbortOnConnectFail off, so a deployment whose backplane is down starts and serves; the signals raised while it is down are the ones a client catches up on. Losing and regaining it is logged at Warning and counted, which the signal backplane records, and it is deliberately not a readiness failure — a deployment that stops answering probes because a fan-out is down has turned an optimization into an outage.

HealthEndpoints

The startup, readiness, and liveness probes and the dedicated listener they answer on. Health endpoints records why the surface carries no credential and how each transport behaves.

Key Type Default Constraint Change
HealthEndpoints:Enabled bool true Off maps no probe route and opens no listener restart
HealthEndpoints:BindAddress string 0.0.0.0 An IP address; 127.0.0.1 restricts to the machine restart
HealthEndpoints:Port int 8081 1 – 65535. A port another surface binds is permitted and shares that socket — see sharing a socket restart
HealthEndpoints:HttpsPort int unset Required by, and only valid with, HttpAndHttps restart
HealthEndpoints:Transport enum Http Http, HttpAndHttps, HttpsOnly restart
HealthEndpoints:Domain string — Required by the TLS transports; the name the certificate is proven against restart
HealthEndpoints:ServerCertificate certificate block unset Required by the TLS transports; refused otherwise restart