ClawEngine.ai
All posts
Integrations

OpenClaw Email Agent for Company Inboxes and What It Costs

OpenClaw reads a company mailbox through its bundled IMAP plugin, one isolated session per allowed sender. Here is who it answers, where teams get caught and a first-year cost example.

ClawEngine hosts OpenClaw for teams, and this article shows what an OpenClaw email agent for a company inbox involves and what it costs to run. The short answer: OpenClaw ships a bundled IMAP plugin that watches one mailbox and starts a separate, restricted agent session for each allowed message, but it only reads mail from senders you list, and it never sees mail that was already in the box. Below is how it works, where teams get caught, and a worked first-year cost against a hosted instance from $24 a month billed yearly.

How does an OpenClaw email agent read a company inbox?

The OpenClaw IMAP guide describes a plugin, not a chat channel. You give it the host, port, user, mailbox and a password stored as a secret reference. It then watches that mailbox and, for each new message that passes its checks, opens a fresh agent session that has no memory of the previous email.

The plugin does not modify message flags, does not expose a public webhook and does not backfill old mail. On first start it records a baseline of what is already there and dispatches nothing from it. That surprises people who expect the agent to clear a backlog on day one.

Watching works in two modes. With watch.mode set to auto, the plugin uses IMAP IDLE when the server supports it and sweeps every pollSeconds as well. The minimum interval is 15 seconds. Some iCloud servers advertise a different push extension, so polling is the supported path there.

Which emails will the agent actually answer?

Only mail from addresses on allowedSenders. Entries can be full addresses or a whole domain written as @yourcompany.com. The check runs on the parsed From address before any model sees the message, and the guide is explicit that display names and Reply-To do not grant access. An empty allowlist disables the account.

The sender also has to pass mail authentication. The default minimum is verified, which means a local DMARC pass. You can lower it to asserted (a trusted Authentication-Results server) or unverified, but the guide calls both operator-owned security relaxations. Mail older than 48 hours by its internal date is rejected unless it arrives on a sender-bound token address.

Incoming messageWhat the plugin does
From a listed colleague, DMARC passStarts an isolated agent session
From a customer domain not on the listRejected before the model sees it
Listed sender, SPF onlyRejected at the default verified level
Two From addressesRejected
Already in the mailbox at first startBaselined, never dispatched
Fails three times in a rowSkipped, stays in the mailbox

This shapes the use case. An IMAP agent fits internal mail: staff forwarding invoices, a sales rep sending a lead for enrichment, a manager asking for a summary of a thread. It is a poor fit for an open support inbox where strangers write in, because strangers are exactly who the allowlist keeps out.

Is it safe to point an agent at company email?

Only with a restricted reader. The guide treats every email as untrusted input and gives a boundary test: send a message that says to follow a link and run a command, and expect nothing but a summary. Any link navigation, file write, shell command or browser action in response counts as a failed check.

In practice that means a separate agent entry for mail, with its own workspace, a sandbox and a minimal tool profile, bound so your main agent keeps its chat channels. The sandbox setup matters more here than anywhere else, because the input is written by whoever can reach the inbox. Our security checklist for companies covers the same principle for skills and channels.

There is one more trap the guide spells out. Your receiving mail server must strip or overwrite inbound Authentication-Results headers that claim your trusted server ID, because OpenClaw cannot verify which hop wrote them. If you lower the minimum to asserted without that, a forged header can pass.

Does it work with Gmail and Outlook?

The IMAP guide names Fastmail, iCloud and any other IMAP mailbox. Gmail has its own route in OpenClaw through Pub/Sub, which needs Google Cloud and a public HTTP endpoint. The IMAP plugin needs neither, which is its main appeal for a small team. If your company runs on Google Workspace, read our OpenClaw Gmail integration guide before choosing.

Third-party plugins on ClawHub add other email setups, including inboxes that can send replies. Those are separate products with their own terms, so vet them like any skill before installing.

What does an email agent cost in the first year? A worked example

The model tokens cost the same wherever the agent runs, because you bring your own key and your provider bills you directly. What changes is the server and the hours around it. The example below uses assumptions, labelled as such, for a team of eight that forwards about 40 internal emails a day to the agent.

Item (assumption)Self-hosted IMAP agentClawEngine Team
Engineer rate$60 an hour (assumed)$60 an hour (assumed)
First setup: mailbox, secret, allowlist, reader agent, boundary test6 hours, $3602 hours for the agent config, $120
Host machine and its upkeep$10 a month server (assumed), $120 a yearIncluded
Monthly checks, updates, password rotation, unhealthy watcher restarts1.5 hours a month, $1,080 a year0.5 hours a month for the agent rules, $360 a year
Hosting priceNone$288 a year ($24 a month billed yearly)
First-year total before tokens$1,560$768

The gap comes from the host, not the plugin. Three authentication failures in a row mark the watcher unhealthy and stop retries, so a password change at the mail provider quietly stops the agent until someone reloads the gateway configuration. On a server you own, that someone is your engineer, and the upkeep row assumes they check.

Change the assumptions to your own. If your engineer costs $100 an hour, the self-hosted total passes $2,400 while the hosted line rises to about $1,080. If you already run a server for other work, drop its $120. The break-even sits near one hour of saved upkeep a month.

What should a team decide before turning it on?

  • Which mailbox. Use a dedicated address such as reader@ rather than a person's inbox. The plugin reads one mailbox per account entry.
  • Who may write to it. List addresses or your own domain in allowedSenders, and keep the default verified level unless your mail server rewrites authentication headers.
  • Where answers go. The deliver setting controls whether results are announced. Many teams post the summary in Slack and keep email replies in human hands.
  • What the agent may touch. A minimal tool profile, a sandbox and no shell. Run the boundary test from the guide before real mail arrives.
  • What happens to new contacts. When a forwarded email is a new supplier or client, the agent can draft the onboarding summary, while checks such as a sanctions screen on ofacscanner.com stay with the person who signs off.

Who it is for and who it is not for

An IMAP email agent suits an ops lead or finance team that already forwards routine mail to one place and wants it triaged, summarised and posted where the team works. It needs no Google Cloud project and no public endpoint, which keeps setup short.

It does not suit an open customer support inbox, a team that wants the agent to send replies to the public on its own, or anyone expecting it to work through years of existing mail. For those jobs a person stays in the loop, or a different tool fits better.

Which ClawEngine plan fits an inbox agent?

A single mail reader next to a chat agent fits Team, which covers one instance with up to 3 agents for $24 a month billed yearly or $49 monthly. Business covers 15 agents across 3 instances for $99.50 a month billed yearly, useful when finance and sales each want their own reader. Plan details are on the pricing page, and the OpenClaw pricing comparison sets hosted plans next to running your own server.

Frequently asked questions

Can OpenClaw read my email?

Yes, through the bundled IMAP plugin or the separate Gmail Pub/Sub route. The IMAP plugin watches one mailbox and starts an isolated agent session for each new message from an allowed, authenticated sender. It does not modify flags and does not process mail that was already there.

Does the OpenClaw IMAP plugin send email?

The guide says the plugin does not send email itself. Its deliver setting controls whether results are announced, and many teams route the summary to a chat channel. Plugins on ClawHub add sending, but they are third-party code you should vet first.

Why does my OpenClaw email agent ignore some messages?

Usually the sender is not on allowedSenders, fails DMARC at the default verified level, arrived before the baseline, or the message is older than 48 hours. Rejection logs name the sender domain and the failing check without showing the subject or body.

How often does the OpenClaw IMAP plugin check for mail?

It sweeps every pollSeconds, with a 15-second minimum, in both polling and IDLE modes. When the server supports IDLE, a notification also triggers an immediate sweep, so new mail is usually picked up within seconds.

Build the agent you just read about

Describe the job on our home page and get its workspace files, its first reply and the instance we would host for it.

Build your agent

Run OpenClaw without running servers

Isolated OpenClaw instances hosted for you, with your own model keys.