Skip to content
Mail The org-wide Mail hub at /mail — one mail host per organization, people and mailboxes, forwarding, groups, sign-in pages, Cloudflare routing, sending providers, deliverability and delivery tracking.

Mail

Mail is an account-level hub at /mail, not a per-server section. Each organization picks one mail host — a server in the fleet that runs Postfix (SMTP), Dovecot (IMAP/POP3) and OpenDKIM, with optional Rspamd spam filtering and ClamAV — and manages every mail domain, person and mailbox from one page. You can also receive mail with Cloudflare Email Routing only, with no mail server at all. The old per-server link /servers/:id/mail redirects to /mail?settings=host.

Available on all plans (the hub is in its build period and not tier-gated).

When the org has neither a mail host nor Cloudflare forwarding, /mail shows a setup wizard with two paths.

Server path (a real mail server):

  1. Host — pick the server, click Install (streams mail.install; idempotent) and set the mail server name — a public FQDN such as mail.example.com (mail.hostname-set, optionally issuing its certificate).
  2. Domain — add the first mail domain (mail.domain-add). MZPanel generates its DKIM key and shows the MX / SPF / DKIM / DMARC records; if the zone is connected to Cloudflare it can publish them for you.
  3. Sign-in page — choose the login domain and brand for the end-user mail app (mail.portal-add, mail.portal-brand) with a live preview.
  4. First person — create a mailbox with a password, or send an invite link (mail.mailbox-add / mail.invite-create).

Forwarding path (Cloudflare only): pick a zone → turn on Email Routing (an explicit confirm if MX points elsewhere) → add the first forwarding address.

  • Hero — host status and counts, the sign-in page link, a Manage ▾ menu that opens the drawers below (?panel=domains|routing|sending|deliverability|delivery), the Settings drawer (?settings=host|portals|unified|policies|automation) and Add person ▾ (one person, or Add many from a list).
  • Overview — needs-attention items and the Mail features grid: Accounts, Forwarders, Catch-all, Auto-replies, Groups & mailing lists, Filters & blocked senders, Routing, Deliverability, Import, Spam filter, Calendars & contacts and Track delivery. Each tile opens the place that feature lives.
  • People table — every person/mailbox, with Groups and Shared sub-tabs.

Open a person to get the Person drawer: profile (name, title), extra addresses (including “use on all domains” and send-as), sign-in (invite link or a new password shown once, connection details with a QR code), mailbox (size/quota, auto-reply, forwarding), groups & shared mailboxes, and API keys. Footer actions: open inbox, import, reset password, suspend / resume / re-invite and offboard (a wizard). One Save applies every edited field in a single run.

  • Forwarding — forward a mailbox to another address, optionally without keeping a local copy (mail.mailbox-forward {address, to?, keep?}; omit to to turn forwarding off, keep: false = don’t keep a copy).
  • Suspend / offboard — mail.mailbox-suspend, mail.mailbox-offboard (data removal; needs the data:delete token scope).
  • Groups & mailing lists — mail.group-list|set|del.
  • Shared mailboxes — mail.shared-list|set|del.
  • Unified inbox (Settings) — merge one person’s addresses on several domains into a main mailbox (mail.unified-get|set).
  • Import — from another IMAP server (mail.import) or an mbox file such as Gmail Takeout or Thunderbird (mail.import-mbox); re-running only fills gaps.
  • Calendars & contacts — CalDAV/CardDAV on the mail host.
  • Domains drawer — every mail domain with its receive mode (host or Cloudflare), records, sending, catch-all and inbound webhooks (mail.domain-add|del).
  • Routing drawer — forwarding addresses on your servers (mail.alias-set|del), catch-all per domain (mail.catchall-set), Cloudflare Email Routing per zone (switch, addresses, catch-all, verified destination inboxes) and host-wide blocked senders (mail.block-list|add|del).
  • Sending drawer — per server, its send routes in order: the primary route first, then fallbacks it tries when a route refuses (direct from the box, Cloudflare Email Sending, Resend, Amazon SES, a custom SMTP relay). Move, add or remove routes, and Test each one on its own (mail.routes-get|set|test|smtp); volume (mail.sent-stats). Older agents keep one send mode and a single test send (mail.send-set, mail.test-send); Cloudflare Email Sending (onboard a domain, then apply to a server with a send-only token); Resend and Amazon SES providers (verify domains, use on a server).
  • Deliverability drawer — outbound port 25, reverse DNS and DNS blocklists (mail.preflight), MX/SPF/DKIM/DMARC per domain from live DNS, and DMARC reports (mail.dmarc-report).
  • Track delivery drawer — the Postfix log joined per message and recipient, newest first (mail.delivery-log {q?, status?: all|sent|deferred|bounced|rejected|expired, hours: 1–720 (default 48), limit: 1–500 (default 200)}). Needs agent 0.2.141+.
  • Mail host — which server runs mail; services, TLS, sending, queue; delivery check; spam / antivirus toggles (mail.spam-set, mail.av-set); mail queue (mail.queue, mail.flush, mail.queue-del); firewall ports; change host, reinstall, uninstall (mail.uninstall).
  • Sign-in pages — the login domains the host serves the mail app on: certificate, DNS, primary, white-label brand (mail.portal-list|add|del|primary|cert|brand).
  • Unified inbox — see above.
  • Policies — default quota, password minimum, invite expiry, Trash/Spam auto-delete, company signature, and who may create mailbox API keys (mail.policy-get|set).
  • Automation — inbound webhooks (mail.received, mail.hooks-list|set) and the mail scopes an API token can carry.

The page reads GET /v1/servers/mail/all (the cached mail inventory of every server, so it renders instantly and includes offline boxes) plus GET /v1/mail/settings for the host. Mutations are mail.* jobs dispatched to the mail host (or the server holding a domain, for orgs that still run mail on several servers). Cloudflare routing and providers are control-plane routes under /v1/mail/cf/* and /v1/mail/providers/*. Webmail opens signed in per mailbox at webmail.<domain>.

People stay signed in to webmail: with Keep me signed in (on by default) a browser stays signed in for 30 days after its last use, up to 90 days after the sign-in, and agent updates no longer sign anyone out. Turn it off on a shared computer to end the session when the browser closes. Settings › Signed-in devices in the mail app lists every browser signed in to the mailbox with Sign out and Sign out other devices. Changing a mailbox’s password, suspending, offboarding or deleting it signs that mailbox out everywhere.

Terminal window
mz mail status --json # services, TLS, queue
mz mail list --json # domains, mailboxes, aliases
mz mail domain add example.com --json # add a mail domain (+DKIM)
mz mail mailbox add [email protected] --password 's3cret' --quota 2048 --json
mz mail forward set [email protected] --to [email protected] --no-keep --json
mz mail delivery --status bounced --hours 24 --limit 100 --json

See The mz CLI and the command catalog.

GoalMCP toolREST / job
Every mail domain, mailbox and aliasservers_mail_allGET /v1/servers/mail/all
Which server is the mail hostmail_settings_get / mail_settings_setGET / PUT /v1/mail/settings
Mailboxes, forwarding, groups, shared, policiesjobs_create on the hostmail.mailbox-add, mail.mailbox-forward, mail.group-set, mail.shared-set, mail.policy-set …
Track deliveryjobs_createmail.delivery-log (operate level)
Cloudflare Email Routingmail_cf_zones, mail_cf_domain, mail_cf_enable, mail_cf_rule_create, mail_cf_catch_all, mail_cf_destination_add/v1/mail/cf/domains/{domain}/…
Cloudflare Email Sendingmail_cf_permissions, mail_cf_sending_setup, mail_cf_sending_apply
Resend / SESmail_providers_list, mail_provider_domain_add, mail_provider_domain_check, mail_provider_apply/v1/mail/providers/…
Read / send mail in a mailboxmail_messages_list, mail_message_get, mail_message_send, …/v1/mail/servers/{serverId}/mailboxes/{address}/…

Mailbox content needs the opt-in scopes mail:read, mail:send or mail:modify and a mailbox allowlist on the token. Deleting a domain/mailbox or the queue needs data:delete. Not available to API tokens: mail.webmail-login (live webmail session) and mail.apikey-* — per-mailbox API keys are created in the Person drawer, their secret is shown once. An agent too old for a kind answers with exit 127.

  • One host per org. New domains go to the mail host. Change it from Settings → Mail host (moving mail between servers is not automatic).
  • Sending is opt-in. After install the host only receives until you set a send mode, a relay or a sending provider.
  • Set the mail server name first. TLS, deliverability and MX key off a valid FQDN.
  • Not yet tested live (per the feature ledger): Cloudflare forwarding writes, Resend/SES sending, real mail clients/devices and real sign-in-page certificates. Cloudflare Email Sending is verified live.
  • Needs the host online. Reads come from cache; every change needs the agent.