DocsUpdated November 11, 2026

Permissions and autonomy for agents in Command Mail

An agent in Command Mail is limited in two ways. Permissions (scopes) are chosen when you connect it and apply to every mailbox in your account. Autonomy levels are set per mailbox. They decide whether an agent's organizing actions take effect there, wait as a suggestion or are refused, whether it may send from that mailbox on its own, and whether it may delete mail there for good. Autonomy does not limit reading. In the app, the four levels are called Read only (read), Suggest (suggest), Confirmed rules (rules) and Limited filing (auto); you set them in Settings under Automation & rules.

This page describes how Command Mail actually behaves, including the places where it protects less than a level called "read" might suggest. It expands on the Scopes and Autonomy sections of the documentation and the page for agents.

Updated: Published: Fact-checked: About 19 min readAs Markdown

Contents
  1. Recommendation: permissions for a sorting agent
  2. Permissions at a glance
  3. Autonomy levels per mailbox
  4. Approving drafts: exactly this revision
  5. Sending on its own: send key, daily limit, recipient cap
  6. Automated senders
  7. Prompt injection: email content is data
  8. Activity log and undo
  9. Common setups
  10. Connecting your agent
  11. Revoking access
  12. What changed on this page
  13. Frequently asked questions
  14. Sources

01Recommendation: permissions for a sorting agent

An agent that only sorts your mail gets mail:read, plus mail:draft if it should prepare replies. Do not grant it mail:send. New mailboxes start on suggest (on read if the account default is read), but any mailbox can be raised to auto, and there an agent with mail:send may send on its own; with mail:read and mail:send together it may also delete mail for good and empty Trash or Spam. Keep mailboxes on suggest while you want to see every cleanup by the agent before it happens, and switch to auto only when the agent should clean up on its own.

Direct Trash and restore calls require both mail:read and mail:send. Omitting send permission is not a universal Trash safeguard: with mail:read, an agent can create a trash rule and, where rule execution is allowed (rules or auto), activate it and apply it to matching, unprotected mail. On suggest, such an agent rule initially remains a proposal. If you switch it on yourself, it becomes yours and then acts on suggest too. Check permissions, active rules and retention together.

If the agent should send replies after you approve them, add mail:send-approved; it works on suggest, rules and auto. Reserve mail:send for an agent that really should send without asking; it only works in mailboxes on auto.

02Permissions at a glance

Every connection carries a list of permissions, whether it uses the hosted MCP server, the CLI or an API key.[1] A call without the needed permission is refused, and the MCP server does not even offer many tools to an agent that lacks the matching permission.

PermissionAllowsDoes not allow
mail:readread and search every mailbox; overview and morning brief; organize within the autonomy level; labels and folders; read and star flags; create and activate rules within the autonomy level; view activity and undo changes made by agents and rules; follow-upssending, direct Trash and restore calls, direct permanent-deletion calls; rules and running retention need separate checks
mail:draftsave drafts and discard untouched agent drafts in this accountsending, overwriting your edits
mail:send-approvedsend the exact revision you approved, once, from mailboxes on suggest, rules or autosending anything you did not approve; sending from a mailbox on read
mail:sendsend new mail and replies without approval from mailboxes on auto, each with its own send key, within the daily limitsending from mailboxes below auto, more than 20 recipients per message, mail to recognized machines and no-reply addresses
mailboxesconnect addresses, prove domain ownership with a DNS TXT record, import old mail, change signaturesreading or sending mail

Operator permissions such as admin are not available for customer keys.[1]

By default, reading through MCP and the CLI leaves the read status alone; the CLI and local MCP offer an explicit option to mark mail as read. A direct REST call to GET /api/mail/{id} marks the conversation as read unless you add markRead=false; in mailboxes on read the flag stays unchanged either way.

Actions that need two permissions

Some actions hand content to new recipients or remove mail. They need mail:read and mail:send together: forwarding, direct Trash and restore calls, direct permanent deletion, emptying Trash or Spam, marking everything read, and switching on or shortening automatic removal of Spam and Trash.[3] Forwarding, deleting for good, emptying and tightening removal also need the auto level, as described below. A key that may only send therefore cannot read your mail or wipe your mailbox.

Actions limited to the browser session

An agent's access cannot approve drafts, confirm or dismiss suggestions, change autonomy levels, set the daily send limit, manage API keys or generate text through a model route.[2] The server refuses these calls from a token; they only work in a signed-in browser session.

Choosing permissions when you connect

The authorization page lists each requested permission separately, and you can switch off any of them. mail:send starts switched off, so by default an agent drafts and you approve.[3] Permissions apply to every mailbox in your account.

03Autonomy levels per mailbox

The autonomy level decides whether an agent's logged organizing actions in a mailbox take effect, wait as a suggestion or are refused.[1] These actions are archive, spam, Trash, category changes and filing into folders. The order is read → suggest → rules → auto.

LevelAgent's logged organizing actionsRead flags, stars and labelsSwitched-on rules on new mail
readrefusedrefuseddo not act
suggeststored as suggestions ({"suggested": true})take effectyours act; an agent's stay suggestions
rulesstored as suggestionstake effectact, an agent's too
autorun and are logged, at most 50 conversations per organizing calltake effectact

The rules column follows the app code (classify-policy.ts, classify.ts) and the hint in Settings: on Suggest your own rules apply, while agent actions and agent rules become suggestions. Protection reasons can turn matches of switched-on rules into suggestions; archive and folder rules may still file an explicitly named protected kind under the conditions described below. When automatic classification detects a message as spam, an archive or folder rule gives way to it.

Who a rule belongs to

Whether a rule already acts on suggest depends on who it belongs to. According to the app code, a rule belongs to whoever created it or last switched it on (mail-activity.ts, mail-rules.ts). If you switch on a rule an agent proposed, it is yours from then on. If an agent changes a rule, it counts as the agent's afterwards; if it was active and the level does not allow agent rules, it goes back to being a suggestion. When you mark a message as spam in the app, Command Mail learns or activates your own spam rule for that sender. It names the recognized kind; for Other, the kind stays unspecified and the rule covers matching routine mail from that sender. Spam actions by an agent teach no rule.

When an agent applies an active rule to existing mail, Command Mail skips mailboxes below rules and only counts them, even for your own rules.

Direct sending and permanent deletion by level

The level also limits agent sending and direct permanent-deletion calls. For sending, the level of the mailbox the message goes out from counts; for a catch-all identity without its own mailbox, the account default applies.[1]

LevelSend, reply, forward on its own (mail:send)Send an approved draft (mail:send-approved)Delete for good, empty Trash or Spam
readrefusedrefusedrefused
suggestrefused; with mail:draft the agent may then save a draftallowedrefused
rulesrefused; with mail:draft the agent may then save a draftallowedrefused
autoallowedallowedallowed with mail:read and mail:send

A refused send returns the code autonomy_blocks_send (HTTP 403). Nothing goes out, and neither a send key nor the daily limit is used up; the agent should save the message as a draft instead. On read, Command Mail also refuses an approved draft. The approval stays in place, and you send the draft yourself in the app.

For direct permanent deletion, Command Mail returns autonomy_blocks_delete on suggest and rules, or autonomy_read on read. Only on suggest and rules does the response recommend Trash as an alternative, which becomes a proposal for you. On read, a person decides and acts in the app. For a direct deletion across several mailboxes, the strictest level applies and is checked again when the deletion executes. Emptying Trash or Spam removes mail only from mailboxes on auto and reports the rest as skipped. Permanently deleted mail cannot be recovered.

capabilities shows under mailboxes[].agentSending whether an agent can currently send from a mailbox, separately for direct sending and approved drafts. If something stands in the way, the entry names the reason, such as the level, a missing permission, the plan or a used-up daily limit. Agent permissions, agent autonomy and the agent daily limit do not restrict your own sending in the app. Your plan and a configured sending identity still apply.

Existing retention keeps running

The table describes direct agent calls. An already-enabled retention policy continues permanently removing due Spam and Trash on suggest and rules; lowering a mailbox to either level does not stop it. The running sweep excludes only mailboxes on read. Direct spam actions by an agent execute without individual approval only on auto. An agent's Spam and Trash rules run on rules and auto and need only mail:read for matching unprotected mail; your own already run on suggest. On suggest, new organizing actions by agents and their rules remain proposals. Mail already in Spam or Trash can nevertheless be removed by the running retention policy. To stop timed deletion, review and disable retention separately in Settings. The stronger checks when enabling or shortening retention do not replace that control.

What autonomy does not limit. Autonomy does not restrict reading. An agent with mail:read also reads mailboxes on read. Because only the level of the sending mailbox counts for sending, an agent with mail:read and mail:send can read a message in a mailbox on read and forward or quote it through another mailbox on auto. If a mailbox must be off limits to an agent, it needs its own Command Mail account.

Every newly connected mailbox starts on suggest, even when the account default is rules or auto; only an account set to read gives new mailboxes read. Mailboxes connected earlier keep their level, so check each one in Settings. When one organizing call touches mail from several mailboxes, the strictest of their levels applies. Direct folder actions by an agent take effect only on auto, wait as suggestions on suggest and rules, and are refused on read. Folder rules follow the thresholds in the rules column above. Closing or moving follow-up reminders needs auto. An agent may change automatic removal of Spam and Trash only when the account's default level is rules or auto. Switching it on or shortening it also needs mail:send, and the account default and every mailbox not on read must be on auto; removal leaves mailboxes on read alone. Switching it off or lengthening it stays possible.

An agent should create rules only on your explicit instruction; that is what the guidance Command Mail hands every agent through capabilities says, and the server cannot verify it. In mailboxes on read or suggest, an agent's rule stays a suggestion until you switch it on; on rules and auto, the agent may switch it on itself, according to the app code. The retrieved public documentation says only a person can switch rules on, and that a spam mark alone is not yet an active rule. Both differ from the reviewed app code, which this page follows: agents may switch rules on at rules and auto, and your own spam marks learn or activate a spam rule.

The app code (mail-signals.ts, classify-policy.ts) protects mail that Command Mail recognizes as a security notice, payment problem, invoice, deadline, appointment, request for action or personal message. Other protection reasons include threads you have replied in, conversations with several senders and senders stored as safe, for example after Not spam. Known correspondents receive additional protection when the message is not detected as bulk mail and is not already protected as personal. When a spam or trash rule matches protected mail, the match becomes a suggestion for you to decide.

Archive and folder rules may only file the protected type they explicitly name, for example one shop's invoices into a Finance folder. For such a rule, neither that type nor the safe-sender protection (safe_sender) blocks filing; if other protections remain, such as an additional deadline, the match still becomes a suggestion.

For disguised phishing identified with certainty, the code removes the security, payment-problem, invoice, deadline and action-request protections; other protections may remain, and mere suspicion of phishing removes no protection. This protection applies to rule decisions and the classifier's spam decision. Direct organizing actions by an agent on auto are limited by autonomy only, not by these protections. Recognition works with patterns and will not catch every invoice or deadline.

04Approving drafts: exactly this revision

With mail:draft, an agent saves a draft. With mail:send-approved, it sends that draft after you approve it, exactly the approved revision and only once.[1]

  1. The agent saves a draft, as a reply in the conversation if you like and with up to five attachments. Every change creates a new revision.
  2. You review the draft in the app and approve that revision. If a newer message arrived in the conversation after the draft was written, Command Mail points it out and you approve again on purpose.
  3. The agent calls send_approved_draft with the approved revision. If the draft changed since, the sending address is no longer valid, or the sending mailbox is on read, Command Mail refuses.
  4. If it is unclear whether the message was delivered, Command Mail does not retry. If delivery was refused before sending, the approval stays in place.

Once you edit or approve a draft, no agent can overwrite or discard it. Untouched agent drafts can be discarded by any agent in this account that holds mail:draft, not only the one that wrote them. Approved mail goes out without a signature added afterwards, exactly as you reviewed it, and it does not count toward the agent daily limit. Sending requires a Pro plan and a sending address that is set up for it.[3]

05Sending on its own: send key, daily limit, recipient cap

mail:send is meant for agents that should reply without asking, such as in customer support.[1] The mailbox the agent sends from must be on auto; below that, the send is refused; with mail:draft it can save a draft instead. Three more brakes apply.

Send key. Every message an agent sends needs its own sendKey of 8 to 128 letters, digits or the characters _ . : -. If an agent repeats a request with the same key, for example after a lost response or from a second window, the message is not sent twice. When delivery was certainly refused, Command Mail releases the key right away. Keys not bound to a stored message are cleaned up after 30 days. After an unclear outcome, an agent should check the send status and must not start a new request with a new key.

Daily limit. By default an agent sends at most 50 messages per day, counted in UTC. You set the value between 0 and 500 in the automation settings; 0 stops direct agent sending; approved drafts remain exempt.[1] Messages with an unclear outcome count. Your own messages and approved drafts do not. The agent sees the current numbers in capabilities under limits.

Recipient cap. A message an agent sends on its own may have at most 20 recipients across To, Cc and Bcc.[3] Above that, nothing is sent, and the agent should save a draft for you.

06Automated senders

An agent does not write to machines on its own.[2] Command Mail refuses a reply with the code automated_sender when it recognized the original message as automated. It checks for Auto-Submitted under RFC 3834 with any value other than no, Precedence: bulk, junk or list, the List-Id and List-Unsubscribe headers, an empty Return-Path: <> as bounce messages carry it, and common autoresponder markers. It also checks for senders such as noreply@, do-not-reply@, mailer-daemon@, postmaster@ or bounces@, and for subjects such as "Automatic reply:", "Out of Office:", "Undeliverable" or "Delivery Status Notification". According to the app code (auto-submitted.ts), a sender name such as "Customer portal (no-reply)" and sentences such as "Please do not reply to this email" or "This mailbox is not monitored" in the sender's own text count as well. The text check considers at most the first 20,000 characters and stops at a recognized quote boundary, such as a line "On … wrote:".

When an agent creates a new reply draft with replyToEmailId, Command Mail checks the original message the same way. If it recognizes automated mail, it refuses the draft with automated_sender and saves nothing (agent-drafts.ts); this check currently does not run again when an existing agent draft is revised. You can still reply yourself in the app.

New independent agent messages and forwards are checked too: no recipient in To, Cc or Bcc may be a no-reply address. The recipient-history check also treats an address as automated when all currently stored inbound messages to this account from that address are marked automated. For a new message or a forward prepared as a new message, the agent can instead save an independent draft without replyToEmailId. A human-approved revision bypasses this automation check; other checks, including sender capability and mailbox autonomy, remain.

This check has limits. It recognizes automated mail by headers, address patterns, subjects, sender names and fixed sentences. Whether Command Mail files a message as a newsletter plays no part in it. Automated mail can go undetected when none of the checked signals matches, for example an out-of-office note with its own subject, an ordinary sender address and none of those headers or sentences; recipient history can still block sending separately. For the separate recipient-history check, one non-automated message among currently stored inbound mail prevents an address from being classified as automated on that history alone. No-reply patterns and checks on a specifically answered automated message still apply. The check is therefore not complete protection against mail loops; the daily limit caps how much can go out in the worst case.

07Prompt injection: email content is data

Email content cannot, through Command Mail, grant an agent permissions, approve drafts, create rules or change model routes.[3] Command Mail scans subject and text for patterns aimed at an AI model, such as "ignore all previous instructions", requests to forward every invoice, or requests for passwords and codes. Such messages get a visible flag, get_thread reports it to the agent, and the daily overview lists the attempts.

The flag is a warning. It does not catch every phrasing, and an agent that is swayed by a message can still act within the permissions you granted. Narrow permissions therefore remain the real limit. The risk assessment looks at text, link addresses and attachment names, but never follows links or opens attachments.[1]

08Activity log and undo

Archive, spam, Trash, category changes and folder filing are logged with the state before and after.[1] Undo restores the earlier state only where nothing else changed it since; conflicts are counted. Undoing a change a rule made on new mail pauses that rule until you review it. According to the app code, undoing a spam click also removes the rule learned from it, and running a rule on existing mail is taken back in one step without pausing the rule.

A token may undo what agents, rules and automatic classification did; your own decisions you undo yourself in the app. Suggestions wait in the log for your decision. Sent mail, mail deleted for good, emptied Trash or Spam, label changes and creating or renaming folders cannot be undone. Messages an agent sent on its own are in the Sent folder; approved drafts also appear in the log.

09Common setups

Read and draft only. Grant mail:read and mail:draft, plus mail:send-approved if you want the agent to send what you approve. Set mailboxes to suggest. The agent reads, proposes cleanups and writes replies for your approval. No message leaves without your approval, and without mail:send the agent cannot make a direct permanent-deletion call. An existing retention policy can still remove mail already in Spam or Trash; the agent's new organizing actions remain proposals on suggest, while your own switched-on rules act there. It still sets read flags, stars and labels directly on suggest.

Archive newsletters automatically. Grant mail:read and no mail:send. Tell the agent which senders to archive, for example "From now on, archive the newsletters from this shop." On rules, it creates a rule and switches it on, so future mail from that sender goes straight to the archive, and it can apply the rule to existing mail in one step you can undo. On suggest, the rule waits for you to switch it on; after that it is yours and acts there too.

Forward invoices. Forwarding needs mail:read and mail:send together, a Pro plan, a send-enabled address and that sending mailbox on auto, and each forward counts toward the daily limit. On auto, the same permissions also allow permanent deletion in that mailbox. An agent does not forward to no-reply addresses. Rules cannot forward; a scheduled run in your agent does that. The safer variant uses approval and also works on suggest and rules: grant mail:read, mail:draft and mail:send-approved, let the agent save a new draft with the invoice attached, and approve it.

Let a support mailbox answer on its own. Grant mail:read, mail:draft and mail:send and choose a daily limit that fits your volume. Set the support mailbox to auto and your personal mailbox to suggest or read. The agent then sends and deletes on its own only in the support mailbox; from your personal mailbox, at most a draft you approved goes out on suggest, and nothing on read. The agent can still read your personal mailbox, and it could forward a message from it through the support mailbox. If it should not even see your personal mail, keep the support mailbox in its own Command Mail account.

10Connecting your agent

Your agent connects through the hosted MCP server at https://commandmail.app/mcp, signing in with OAuth.[3] ChatGPT has an official plugin in its plugin directory; per llms.txt, installing and using it depends on the ChatGPT plan, workspace, role and region. In Claude, Command Mail is listed in the directory as a community connector, and Claude Code connects with claude mcp add --transport http commandmail https://commandmail.app/mcp.[3]

On the authorization page, select the requested permissions individually. No single permission allows every action; mail:read does allow reading every mailbox in your account within your plan's limits. mail:read and mail:draft are enough to start; mail:send starts switched off there. Check each mailbox's level under Automation & rules before the first run.

11Revoking access

In Settings, disconnect an app under connected apps. This revokes every token that app holds for your account, including a sign-in that has not finished yet, and the app must ask for access again. Revoke API keys in the API keys section of Settings; a key cannot manage other keys. To give an agent fewer permissions, disconnect it, connect it again and pick only what it needs on the authorization page.

12What changed on this page

Revised on 2026-11-11 and checked against the app code at commit 60c8c3d. We corrected the table of autonomy levels: it said your rules stay suggestions on suggest. According to the app code, your own switched-on rules already act there; only rules and actions by agents remain suggestions. We clarified the protection rules for important mail: the earlier version named six kinds, left out requests for action and other protection reasons, and did not say that disguised phishing identified with certainty loses five protections. New are the level names used in the app, the section on who a rule belongs to, automated-sender detection by sender name and sentences in the text, the refusal of new agent reply drafts to automated mail, the differences between the public documentation and the app code, notes on undoing rule actions and the section on connecting your agent.

Setup steps are in the documentation, and agent workflows are on the page for agents. Start free and connect your agent with mail:read and mail:draft first.

Frequently asked questions

Which permissions should an agent get that only sorts mail?

Only mail:read, plus mail:draft if it should prepare replies. No mail:send: on a mailbox set to auto, an agent with mail:send may send on its own and, together with mail:read, delete for good. New mailboxes start on suggest (on read if the account default is read), but a mailbox can already be on auto. Keep mailboxes on suggest while you want to see every cleanup by the agent before it happens.

Does the read level fully protect a mailbox?

No. On read an agent sorts, flags, deletes and sends nothing there, not even approved drafts. It can still read that mailbox, and with mail:read and mail:send it can forward a message from it through another mailbox on auto. Separate read rights for individual mailboxes require separate Command Mail accounts.

Can an agent approve its own draft?

Not through its own access. Approving drafts, deciding suggestions, changing autonomy and setting the daily limit only work in a signed-in browser session. Email content never grants permissions.

What happens if I edit a draft after approving it?

Every edit creates a new revision and clears the approval. Only the revision you approved last can be sent.

How do I remove an agent's access?

In Settings, disconnect the app under connected apps; that revokes all of its access. API keys are revoked in the API keys section.

Do my own rules already act on the suggest level?

Yes. According to the app code, switched-on rules that belong to you already act on suggest (Suggest in the app), including the spam rules learned from your spam clicks in the app. A rule belongs to you if you created it or were the last to switch it on. Agent rules stay suggestions on suggest and only act from rules (Confirmed rules) on; if an agent changes one of your rules, it counts as the agent's from then on. When a spam or trash rule matches protected mail, such as a recognized invoice, the match becomes a suggestion.

Sources

  1. Command Mail: Documentation (scopes, autonomy, let your agent reply) commandmail.app, accessed
  2. Command Mail: For agents (permissions, autonomy, limits) commandmail.app, accessed
  3. Command Mail: llms.txt (permissions, plans, agent options) commandmail.app, accessed
EN