zele domain setup example.com
zele domain status example.com. Status exits with code 1 while setup runs, after a failed or unfinished setup (it prints the error as last_setup), when receiving does not work, or when the domain has no local account. Interactive terminals stay attached and show progress. If your browser runs on another machine, open its final localhost redirect URL on the CLI machine to finish the callback.zele domain setup mail.example.com --address support
--receive-only skips sending onboarding. It does not reduce OAuth permissions or disable an existing sending configuration. Cloudflare bills your account for usage.hello@example.com is the default From address; use --address tommy or --address tommy@example.com to change it.zele mail list --account alice@example.com # only alice: reads one R2 prefix zele mail list --account example.com # every mailbox, merged newest first zele domain status example.com # lists the mailboxes that have mail
--account works like --account example.com. An address selects its mailbox even without a routing rule of its own, so you can read catch-all aliases. When another connected account has the exact same email, that account wins.--address, not a catch-all.zele domain setup example.com --no-catch-all --address tommy zele mail list --account tommy@example.com
--no-catch-all creates or enables the selected address rule and disables zele's apex catch-all. It does not delete other literal rules. Previous address rules can remain after you change --address. Manage unwanted rules in Cloudflare. To switch back, run zele domain setup example.com --catch-all.External sender ──> Cloudflare Email Routing ──> email Worker ──> your R2 bucket ^ Your computer: zele CLI ──> Cloudflare R2 API ─────────────────────────┘ │ list, download, save, move, delete v Cloudflare Email Sending API ──> external recipient send_raw All Cloudflare mail resources above belong to your Cloudflare account. zele.sh is not a mail proxy, storage service, or OAuth token relay for this feature.
email(), which writes raw messages to R2. It has no mailbox HTTP API or shared secret. Sending does not pass through the Worker. The CLI builds MIME and calls Cloudflare's send_raw API, then saves a Sent copy in R2.~/.zele/sqlite.db, alongside records of messages shown by mail read. Credentials are unencrypted and protected by file permissions. The Cloudflare client currently downloads message content on each read rather than caching it in the local Thread table. Other connected providers can have local mail caches in the same database.@zele.sh inboxes, which use zele-operated storage. See the privacy policy for both services..eml files to import them into another mail tool. To move delivery to another provider, change your domain's routing and DNS records. Moving providers does not require access to a zele-operated service.http://localhost:8089 on the machine running setup.| Scope | Used for |
zone.read | Find the active zone and its account |
zone-settings.write | Configure Email Routing DNS |
email-routing-rule.write | Create, inspect, and remove routing rules |
email-sending.write | Onboard the sending domain and send mail |
workers-scripts.write | Deploy the receiving Worker and inspect its version |
workers-r2.write | Create the bucket and list, read, write, or delete mail |
offline_access | Refresh access without a new browser consent each time |
--receive-only is not saved; domain status prints the update command with it when sending is off:zele domain status example.com zele domain setup example.com --receive-only
zele-domain-mail. The ZELE_WORKER_VERSION binding identifies the Worker. The .zele object identifies the bucket. Setup refuses a foreign Worker or nonempty unmarked bucket. An empty unmarked bucket can be adopted.domain status checks the deployed version. Inbox listings can warn from version metadata on stored messages; that warning is not a live deployment check.--account hello@example.com: list, read, search, send, reply, forward, archive, trash, untrash, attachment list/get, and watch. New mail goes out as the selected address and its Sent copy is filed in that mailbox; with --account example.com that is the default address. --from can set any address on the domain as the From header, but the Sent copy stays in the selected mailbox. Replies and forwards go out as the mailbox of the original message: the address it was delivered to, or the address a Sent message was filed under. The To header is never used for this, because the sender controls it.zele mail search invoice --account hello@example.com zele mail list --account hello@example.com --folder sent --filter invoice zele mail watch --account hello@example.com --filter invoice --timeout 600
| Term | Matches |
from:ann | sender name or address |
to:sales@example.com | To, Cc, or the delivered address |
deliveredto:sales@example.com | only the delivered address (catch-all aliases) |
subject:"order 42" | subject |
invoice | any of the above |
mail search checks the inbox. Use mail list --folder <folder> --filter <text> for another folder.--page token that resumes right after the last message checked, so no match is skipped. A rare match in a big folder can take several pages.| Selection | R2 list calls per page |
--account alice@example.com | 1 (unfiltered) or up to 10 (filtered), only under example.com/alice/ |
--account example.com | 1 to find the mailboxes, then the above for each mailbox |
deliveredto: skips mailboxes that cannot match before listing them.inbox, sent, archive, and trash. Archive and trash download, upload, and delete an object. IDs look like alice:inbox:<stamp>. Mailbox and stamp never change, so an ID from before a move still works: zele checks the folder in the ID first, then the other folders of the same mailbox (up to three more list calls). An ID never resolves in another mailbox. Lists show the current folder. Trash has no automatic expiry.--interval when needed. A send with an uncertain outcome must not be retried automatically. A failed Sent copy after acceptance is a warning, not permission to resend.<domain>/<mailbox>/<folder>/<stamp>.<index>. <mailbox> is the lowercased local part of the address, with any byte outside a-z 0-9 . _ + - written as %XX, so a/b@example.com becomes a%2Fb. Received mail uses the SMTP envelope recipient, Sent copies the selected address. The Worker rejects a local part longer than 192 encoded characters instead of storing it. The timestamp counts down so listings put newest mail first. The base64url index is JSON with the fields lists and filters need, so listing never downloads bodies:| Field | Source | Notes |
f, t, c, s, r | From, To, Cc, Subject, In-Reply-To headers | sender-controlled, cut to fit |
m | Content-Type | 1 when the message may have attachments |
rt | SMTP RCPT TO (received mail) | the address on your domain that got the message |
mf | SMTP MAIL FROM | received: the sender's bounce address, not verified; Sent copies: your From address |
zele domain imap enable hello@example.com
zele domain remove example.com # Permanent deletion of this domain's messages in every folder: zele domain remove example.com --delete-mail
--delete-mail, messages stay in R2. The command removes zele routing for the domain and the account on the current machine. It leaves the shared Worker and bucket, DNS records, Email Sending configuration, and OAuth grants. Other machines retain their local accounts. Non-interactive removal needs --force.